在 Ubuntu 7.10 安裝 PHPlist 2.11.3 記錄

1. lists/admin/structure.php
找到:
"index_2" => array("emailnameidx (email,name)",""),
*將這一行刪除

2. lists/admin/languages.php
找到:
if (is_file($this->basedir.$this->language.'/'.$page.'.php')) {
      @include $this->basedir.$this->language.'/'.$page.'.php';
    } elseif (!isset($GLOBALS['developer_email'])) {
      @include $this->basedir.$this->defaultlanguage.'/'.$page.'.php';
    }
改成:
if (is_file($this->basedir.$this->language.'/'.$page.'.php')) {
      @include $this->basedir.$this->language.'/'.$page.'.php';
    } elseif (!isset($GLOBALS['developer_email']) && is_file($this->basedir.$this->defaultlanguage.'/'.$page.'.php')) {
      @include $this->basedir.$this->defaultlanguage.'/'.$page.'.php';
    }
3. lists/admin/mysql.inc
找到:
return $db;
在上面加一行:
@mysql_query('SET NAMES utf8');

4. lists/admin/info
複製 en ,改名為 zh-tw
5. lists/admin/help
複製 en ,改名為 zh-tw
6. lists/config/config.php
修改設定:
$language_module = "tchinese.inc";  //使用中文
$database_host = "localhost"; //資料庫主機
$database_name = "xxx"; //資料庫名稱
$database_user = "xxx"; //資料庫帳號
$database_password = 'xxx';  //資料庫密碼
7. 建立資料庫
8. 透過瀏覽器開啟 xxx/lists/admin/ ,點選初始化資料庫連結

搞定 :)

原始討論: http://twpug.net/x/modules/newbb/viewtopic.php?topic_id=3172

評論

Sign In or Register to comment.