cd /var/www/html
wget http://downloads.sourceforge.net/project/owl/Owl/Owl%200.9x/owl-0.96.tar.gz?use_mirror=ncu
tar -zxvf owl-0.96.tar.gz
mv owl-0.96 owl
wget http://ncu.dl.sourceforge.net/project/owl/Owl%20Language%20Packs/Owl%200.9x/Owl-0.9x-locale-Chinese_b5.tar.gz
tar -zxvf Owl-0.9x-locale-Chinese_b5.tar.gz
mv Chinese_b5 owl/locale/Chinese
chown -R apache:apache owl
cd owl
mysqladmin -p create intranet
mysql -p intranet < DOCS/sql/mysql-tables.sql
vi config/owl.php
:
$default->owl_root_url = "/owl";
:
$default->owl_lang = "Chinese";
:
:
$default->owl_db_id[0] = "0";
$default->owl_db_user[0] = "intranet";
//$default->owl_db_user[0] = "postgres";
$default->owl_db_pass[0] = "xxxxxxxx";
$default->owl_db_host[0] = "localhost";
$default->owl_db_name[0] = "intranet";
$default->owl_db_display_name[0] = "Intranet";
:
cd DOCS
wget http://blog.orz101.net/attachments/2008/10/utf8_list_valid_chars.zip
unzip utf8_list_valid_chars.zip
vi config/owl.php
:
#$default->list_of_valid_chars_in_file_names
include($default->owl_fs_root ."/DOCS/utf8_list_valid_chars.php");
vi download.php
:
$filename = rawurlencode($filename);
}
#header("Content-Disposition: attachment; filename=\"$filename\"");
$str = $download_name;
$str_result = mb_convert_encoding($str,"big5","utf-8");
header("Conent-Disposition: attachment; filename = \"$str_result\"");
header("Content-Location: $filename");
: