<?php
// +---------------------------------------------+
// |     Copyright  2008 - 2018 weenCompany      |
// |     http://www.weentech.com                 |
// |     This file may not be redistributed.     |
// +---------------------------------------------+


function DB_Query($sql)
{
  $result = MYSQL_QUERY ($sql);

  if(!$result)
  {
    $message  = "數據庫訪問錯誤\r\n\r\n";
    $message .= $sql . " \r\n";
    $message .= "錯誤內容: ". mysql_error() ." \r\n";
    $message .= "錯誤代碼: " . mysql_errno() . " \r\n";
    $message .= "時間: ".gmdate("l dS of F Y h:i:s A"). "\r\n";
    $message .= "文件: http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];

	die(
		'<action
		result="fail"
		error="11"
		sqlMsgError="'.htmlspecialchars($message).'"
		sqlNumberError=""
		sqlQuery=""
		/>'
	);

    exit;
  }
}

	
$resultDB = checkDB($_GET['server'], $_GET['login'], $_GET['password'], $_GET['name']);

if ($resultDB != 0){
	die("<action result='fail' error='".$resultDB."'/>\n");
}


if (!isset($_GET['tablePrefix']) OR !isValidName($_GET['tablePrefix']) OR !preg_match('/^[A-Za-z0-9]+_$/', $_GET['tablePrefix'])){
	die('<action result="fail" error="8"/>'."\n");
}
		
@include(INSTALL_PATH.'/../includes/config.php');

if(defined('CWSINSTALLED'))
{
	die('<action result="fail" error="14" />'."\n");
}

$servername      = trim($_GET['server']);
$dbname          = trim($_GET['name']);
$dbusername      = trim($_GET['login']);
$dbpassword      = trim($_GET['password']);
$tableprefix     = strtolower(trim($_GET['tablePrefix']));


// attempt to connect to the database
$connection = @MYSQL_CONNECT($servername, $dbusername, $dbpassword);
  
$sqlversion = @mysql_get_server_info();
if(empty($sqlversion)){$sqlversion='5.0';}

if($sqlversion >= '4.1'){
   mysql_query("set names 'utf8'");
   mysql_query("SET COLLATION_CONNECTION='utf8_general_ci'");
   mysql_query("ALTER DATABASE $dbname DEFAULT CHARACTER SET utf8 COLLATE 'utf8_general_ci'");           
   
}

if($sqlversion >= '5.0') {
   mysql_query("SET sql_mode=''");
}
// connected, now lets select the database
@MYSQL_SELECT_DB($dbname, $connection);

  

  //安裝中文數據庫
define('TABLE_PREFIX', $tableprefix);

include(INSTALL_PATH.'/../includes/db/mysql.php');
$wcversion = '5.3.0';

$DB = new DB;

$DB->database = $dbname;
$DB->server   = $servername;
$DB->user     = $dbusername;
$DB->password = $dbpassword;

$DB->connect();

$getoldtables = $DB->query("SHOW TABLES FROM `" . $dbname . "` LIKE '" . substr($tableprefix, 0, -1) ."\_%'");

while($table = $DB->fetch_array($getoldtables))
{
	$tableinfo = $DB->query_first("SHOW TABLE STATUS LIKE '" . $table[0] . "'");
	$DB->query("DROP TABLE IF EXISTS " . $tableinfo['Name']);
}


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "categories (
  categoryid   INT(10)      UNSIGNED NOT NULL AUTO_INCREMENT,
  parentid     INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  designid     INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  name         VARCHAR(64)           NOT NULL DEFAULT '',
  urlname      VARCHAR(64)           NOT NULL DEFAULT '',
  displayorder INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  link         VARCHAR(128)          NOT NULL DEFAULT '',
  target       VARCHAR(10)           NOT NULL DEFAULT '',
  menuwidth    SMALLINT     UNSIGNED NOT NULL DEFAULT 0,
  nolink         TINYINT(1)            NOT NULL DEFAULT 0,
  PRIMARY KEY (categoryid),
  KEY displayorder (displayorder)
  ) TYPE=MyISAM;" );

  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "comments (
  commentid INT(10)     UNSIGNED NOT NULL              AUTO_INCREMENT,
  moduleid  INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  objectid  INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  date      INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  username  VARCHAR(64)          NOT NULL DEFAULT '',
  comment   TEXT                 NOT NULL,
  PRIMARY KEY (commentid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "custommodules (
  custommoduleid INT(10)      UNSIGNED NOT NULL             AUTO_INCREMENT,
  name           VARCHAR(64)           NOT NULL DEFAULT '',
  displayname    VARCHAR(64)           NOT NULL DEFAULT '',
  module         MEDIUMTEXT            NOT NULL,
  includefile    VARCHAR(128)          NOT NULL DEFAULT '',
  settings       INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (custommoduleid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "designs (
  designid   INT(10)     UNSIGNED NOT NULL              AUTO_INCREMENT,
  templateid     INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  maxmodules INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  designpath VARCHAR(64)          NOT NULL DEFAULT '',
  imagepath  VARCHAR(64)          NOT NULL DEFAULT '',
  PRIMARY KEY (designid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "mainsettings (
  settingid   INT( 10 )    UNSIGNED  NOT NULL             AUTO_INCREMENT,
  varname     VARCHAR(64)            NOT NULL DEFAULT '',
  groupname   VARCHAR(64)            NOT NULL DEFAULT '',
  input       MEDIUMTEXT             NOT NULL,
  title       VARCHAR(100)           NOT NULL DEFAULT '',
  description MEDIUMTEXT             NOT NULL,
  value       MEDIUMTEXT             NOT NULL,
  PRIMARY KEY (settingid)
  ) TYPE=MyISAM;" );

  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "phrases (
  phraseid      INT(10)     NOT NULL              AUTO_INCREMENT,
  moduleid      INT(10)     NOT NULL DEFAULT 0,
  varname       VARCHAR(64) NOT NULL DEFAULT '',
  defaultphrase TEXT        NOT NULL,
  customphrase  TEXT        NOT NULL,
  font          VARCHAR(32) NOT NULL DEFAULT '',
  color         VARCHAR(32) NOT NULL DEFAULT '',
  size          VARCHAR(32) NOT NULL DEFAULT '',
  bold          TINYINT(1)  NOT NULL DEFAULT 0,
  italic        TINYINT(1)  NOT NULL DEFAULT 0,
  underline     TINYINT(1)  NOT NULL DEFAULT 0,
  PRIMARY KEY (phraseid),
  KEY moduleid (moduleid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m2_news (
  articleid       INT(10)       UNSIGNED NOT NULL              AUTO_INCREMENT,
  categoryid      INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  settings        INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  views           INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  displayorder    INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  datecreated     INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  dateupdated     INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  datestart       INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  dateend         INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  author          VARCHAR(64)            NOT NULL DEFAULT '',
  title           VARCHAR(128)           NOT NULL DEFAULT '',
  metadescription TEXT                   NOT NULL,
  metakeywords    TEXT                   NOT NULL,
  description     TEXT                   NOT NULL,
  article         MEDIUMTEXT             NOT NULL,
  moduleid        INT(10)       UNSIGNED NOT NULL DEFAULT 2,
  aorp            TINYINT(1)    NOT NULL DEFAULT 0,
  PRIMARY KEY (articleid),
  KEY categoryid (categoryid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m2_settings (
  categoryid     INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  maxarticles    INT(10)     UNSIGNED NOT NULL DEFAULT 10,
  sorting        VARCHAR(64)          NOT NULL DEFAULT 'Newest First',
  multiplepages  TINYINT(1)           NOT NULL DEFAULT 0,
  KEY categoryid (categoryid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m4_guestbook (
  messageid   INT(10)      UNSIGNED NOT NULL AUTO_INCREMENT,
  noactivated   TINYINT(1)          NOT NULL DEFAULT 0,
  username    VARCHAR(64)           NOT NULL DEFAULT '',
  websitename VARCHAR(128)          NOT NULL DEFAULT '',
  website     VARCHAR(128)          NOT NULL DEFAULT '',
  message     TEXT                  NOT NULL,
  datecreated INT(10)               NOT NULL DEFAULT 0,
  PRIMARY KEY (messageid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m7_chatterbox (
  commentid  INT(10)     UNSIGNED NOT NULL AUTO_INCREMENT,
  categoryid INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  username   VARCHAR(64)          NOT NULL DEFAULT '',
  comment    TEXT                 NOT NULL,
  datecreated   INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (commentid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m16_links (
  linkid       INT(10)      UNSIGNED NOT NULL              AUTO_INCREMENT,
  sectionid    INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  activated    TINYINT(1)            NOT NULL DEFAULT 0,
  allowsmilies TINYINT(1)            NOT NULL DEFAULT 0,
  showauthor   TINYINT(1)            NOT NULL DEFAULT 0,
  author       VARCHAR(64)           NOT NULL DEFAULT '',
  title        VARCHAR(128)          NOT NULL DEFAULT '',
  url          TEXT                  NOT NULL,
  description  TEXT                  NOT NULL,
  PRIMARY KEY (linkid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m16_sections (
  sectionid   INT(10)      UNSIGNED NOT NULL              AUTO_INCREMENT,
  parentid    INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  activated   TINYINT(1)            NOT NULL DEFAULT 0,
  name        VARCHAR(128)          NOT NULL DEFAULT '',
  description TEXT                  NOT NULL,
  sorting     VARCHAR(32)           NOT NULL DEFAULT '',
  PRIMARY KEY (sectionid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m17_products (
  imageid       INT(10)      UNSIGNED NOT NULL              AUTO_INCREMENT,
  sectionid     INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  activated     TINYINT(1)            NOT NULL DEFAULT 0,
  ordernum    INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  filename      VARCHAR(32)           NOT NULL DEFAULT '',
  thumbname     VARCHAR(32)           NOT NULL DEFAULT '',
  isautothumb   TINYINT(1)            NOT NULL DEFAULT 1,
  allowsmilies  TINYINT(1)            NOT NULL DEFAULT 0,
  allowcomments TINYINT(1)            NOT NULL DEFAULT 0,
  showauthor    TINYINT(1)            NOT NULL DEFAULT 0,
  author        VARCHAR(64)           NOT NULL DEFAULT '',
  title         VARCHAR(128)          NOT NULL DEFAULT '',
  description   TEXT,
  specification   TEXT,
  priceship   TEXT,
  viewcount     INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  datecreated   INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  moduleid      INT(10)       UNSIGNED NOT NULL DEFAULT 17,
  aorp          TINYINT(1)    NOT NULL DEFAULT 1,
  PRIMARY KEY (imageid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m17_sections (
  sectionid     INT(10)      UNSIGNED NOT NULL              AUTO_INCREMENT,
  parentid      INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  activated     TINYINT(1)            NOT NULL DEFAULT 0,
  ordernum    INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  name          VARCHAR(128)          NOT NULL DEFAULT '',
  description   TEXT                  NOT NULL,
  sorting       VARCHAR(32)           NOT NULL DEFAULT '',
  imageid       INT(10)      UNSIGNED NULL,
  datecreated   INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (sectionid)
  ) TYPE=MyISAM;" );

	DB_Query ("CREATE TABLE " . TABLE_PREFIX . "m18_hitcounter (
	hits int(11) NOT NULL DEFAULT '0',
	start int(11) NOT NULL DEFAULT '0',
	style int(11) NOT NULL DEFAULT '1',
	digits int(11) NOT NULL DEFAULT '1',
	cookietimeout int(11) NOT NULL DEFAULT '3600',
	message varchar(255) NOT NULL DEFAULT ''
	) TYPE=MyISAM;");

  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "pagesort (
  categoryid   INT(10)    UNSIGNED NOT NULL DEFAULT 0,
  moduleid     VARCHAR(5)          NOT NULL DEFAULT 1,
  displayorder INT(10)    UNSIGNED NOT NULL DEFAULT 0,
  KEY categoryid (categoryid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "modules (
  moduleid     INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  name         VARCHAR(64)          NOT NULL DEFAULT '',
  displayname  VARCHAR(64)          NOT NULL DEFAULT '',
  version      VARCHAR(10)          NOT NULL DEFAULT '',
  modulepath   VARCHAR(64)          NOT NULL DEFAULT '',
  settingspath VARCHAR(64)          NOT NULL DEFAULT '',
  authorname   VARCHAR(32)          NOT NULL DEFAULT '',
  authorlink   INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  settings     INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (moduleid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "modulesettings (
  settingid    INT(10)      UNSIGNED NOT NULL AUTO_INCREMENT,
  moduleid     INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  groupname    VARCHAR(100)          NOT NULL DEFAULT 'Options',
  title        VARCHAR(100)          NOT NULL DEFAULT '',
  description  MEDIUMTEXT            NOT NULL,
  input        MEDIUMTEXT            NOT NULL,
  value        MEDIUMTEXT            NOT NULL,
  displayorder INT(10)      UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (settingid),
  KEY moduleid (moduleid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "sessions (
  sessionid    CHAR(32)              NOT NULL DEFAULT '',
  userid       INT(10)            UNSIGNED NOT NULL DEFAULT 0,
  ipaddress    VARCHAR(15)           NOT NULL DEFAULT '',
  useragent    VARCHAR(255)          NOT NULL DEFAULT '',
  lastactivity INT(10)            UNSIGNED NOT NULL DEFAULT 0,
  location     VARCHAR(255)          NOT NULL DEFAULT '',
  loggedin     TINYINT(1)            NOT NULL DEFAULT 0,
  admin        TINYINT(1)            NOT NULL DEFAULT 0,
  PRIMARY KEY (sessionid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "templates (
  templateid       INT(10)     UNSIGNED NOT NULL             AUTO_INCREMENT,
  name         VARCHAR(64)          NOT NULL DEFAULT '',
  activated    TINYINT(1)           NOT NULL DEFAULT 0,
  numdesigns   INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  previewimage VARCHAR(64)          NOT NULL DEFAULT '',
  authorname   VARCHAR(64)          NOT NULL DEFAULT '',
  authorlink   INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (templateid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "smilies (
  smilieid INT(10)      UNSIGNED NOT NULL             AUTO_INCREMENT,
  title    VARCHAR(100)          NOT NULL DEFAULT '',
  text     VARCHAR(32)           NOT NULL DEFAULT '',
  image    VARCHAR(100)          NOT NULL DEFAULT '',
  PRIMARY KEY (smilieid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "users (
  userid        INT(10)     UNSIGNED NOT NULL             AUTO_INCREMENT,
  usergroupid   SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0,
  username      VARCHAR(64)          NOT NULL DEFAULT '',
  password      VARCHAR(32)          NOT NULL DEFAULT '',
  email         VARCHAR(64)          NOT NULL DEFAULT '',
  banned        TINYINT(1)           NOT NULL DEFAULT 0,
  activated     TINYINT(1)           NOT NULL DEFAULT 0,
  validationkey VARCHAR(50)          DEFAULT '',
  joindate      INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  lastactivity  INT(10)     UNSIGNED NOT NULL DEFAULT 0,
  userfullname VARCHAR(64)          NOT NULL DEFAULT '',
  usercompany VARCHAR(255)          NOT NULL DEFAULT '',
  useradd VARCHAR(255)          NOT NULL DEFAULT '',
  userpostcode VARCHAR(32)          NOT NULL DEFAULT '',
  usertel VARCHAR(255)          NOT NULL DEFAULT '',
  userfax VARCHAR(255)          NOT NULL DEFAULT '',
  useronline VARCHAR(255)          NOT NULL DEFAULT '',
  userwebsite VARCHAR(255)          NOT NULL DEFAULT '',
  PRIMARY KEY (userid),
  KEY usergroupid (usergroupid)
  ) TYPE=MyISAM;" );


  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "usersystems (
  usersystemid  INT(10)       UNSIGNED NOT NULL             AUTO_INCREMENT,
  name          VARCHAR(64)            NOT NULL DEFAULT '',
  activated     TINYINT(1)             NOT NULL DEFAULT 0,
  dbname        VARCHAR(64)            NOT NULL DEFAULT '',
  queryfile     VARCHAR(64)            NOT NULL DEFAULT '',
  tblprefix     VARCHAR(32)            NOT NULL DEFAULT '',
  folderpath    VARCHAR(64)            NOT NULL DEFAULT '',
  cookietimeout INT(10)       UNSIGNED NOT NULL DEFAULT 0,
  cookieprefix  VARCHAR(32)            NOT NULL DEFAULT '',
  extra         VARCHAR(64)            NOT NULL DEFAULT '',
  PRIMARY KEY (usersystemid)
  ) TYPE=MyISAM;" );

  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "usergroups (
  usergroupid           SMALLINT(5)  UNSIGNED NOT NULL auto_increment,
  forumusergroupid      SMALLINT(5)           NOT NULL DEFAULT 0,
  name                  VARCHAR(100)          NOT NULL default '',
  adminaccess           TINYINT(1)            NOT NULL DEFAULT 0,
  commentaccess         TINYINT(1)            NOT NULL DEFAULT 0,
  offlinecategoryaccess TINYINT(1)            NOT NULL DEFAULT 0,
  categoryviewids       TEXT                  NOT NULL,
  categorymenuids       TEXT                  NOT NULL,
  moduleviewids         TEXT                  NOT NULL,
  modulesubmitids       TEXT                  NOT NULL,
  moduledownloadids     TEXT                  NOT NULL,
  modulecommentids      TEXT                  NOT NULL,
  moduleadminids        TEXT                  NOT NULL,
  custommoduleviewids   TEXT                  NOT NULL,
  custommoduleadminids  TEXT                  NOT NULL,
  PRIMARY KEY (usergroupid),
  KEY forumusergroupid (forumusergroupid)
  ) TYPE=MyISAM;");

  DB_Query ("CREATE TABLE " . TABLE_PREFIX . "vvc (
  vvcid                                 INT(10)      UNSIGNED NOT NULL             AUTO_INCREMENT,
  verifycode                    VARCHAR(100)          NOT NULL DEFAULT '',
  PRIMARY KEY (vvcid)
  ) TYPE=MyISAM;" );


  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (1, 0, 1, '首頁',          'home',      1, '', '', 65, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (2, 0, 2, '客戶留言',     'guestbook', 2, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (3, 0, 4, '公司產品',     'products',   3, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (4, 0, 2, '友情鏈接',     'links',     4, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (5, 0, 2, '聯繫我們',       'contact',   5, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (6, 0, 2, '我要註冊',      'register',  6, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "categories VALUES (7, 0, 2, '我的帳號',       'profile',   7, '', '', 82, 0) ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "custommodules VALUES (1, '聯繫我們', '聯繫我們!', '您需要聯繫我們嗎?<br /><br /><a href=\"index.php?categoryid=5\">點擊這裏!</a>', '', '17') ");


  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'enablewysiwyg',   '系統設置',   'yesno', 'TinyMCE編輯器', '後臺管理是否開啟TinyMCE編輯器?<br /><br />weenCompany聞名企業網站系統安裝了功能強大的TinyMCE編輯器, 默認為開啟狀態。如果您對HTML, JavaScript等比較熟練，可以關閉此功能.', '1') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'simpletingymce',   '系統設置',         'yesno', '編輯器簡潔模式', 'TinyMCE編輯器簡潔模式下僅加載常用編輯工具, 具有更快的顯示速度.', '1') ");
DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'checkforupdates', '系統設置',   'yesno', '檢查最新版本', '允許weenCompany自動檢查最新版本?', '1')");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'admincookietimeout','系統設置', 'text', '管理員Cookie過期時間', '管理員處於不活動狀態, 需要重新登錄的時間間隔(秒):', '1800')");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'admin_dir',   '系統設置',         'text', '後臺管理目錄', '進入weenCompany系統後臺管理的目錄名稱:<br><br>默認的後臺管理目錄為admin, 如果自定了後臺管理目錄, 則需要使用FTP工具將網站中的admin文件夾改為對應的名稱; 同時需要將網站根目錄下的robots.txt文件中的admin改為對應的名稱, 以防止搜索引擎抓取後臺數據.', 'admin') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'siteactivation',  '開關設置',       '<select name=\\\\\"settings[\$setting[settingid]]\\\\\">\r\n<option value=\\\\\"on\\\\\"   \".iif(\$setting[value]==\"on\",      \"selected\",  \"\").\">開啟</option>        \r\n  <option value=\\\\\"off\\\\\"        \".iif(\$setting[value]==\"off\",\"selected\",\"\").\">關閉</option>\r\n</select>', '開啟或關閉網站', '當網站進行升級、數據庫備份或恢復等維護時，請關閉網站.', 'on') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'offmessage',      '開關設置',       'textarea', '關閉時顯示', '網站關閉時顯示:', '網站正在進行數據維護，請稍後光臨，謝謝！') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'websitetitle',    '網站設置',         'text', '網站title名稱', '顯示在瀏覽器上方的網站title:', 'weenCompany聞名企業網站系統') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'technicalemail',  '網站設置',         'text', '管理員信箱', '網站運行錯誤將發Email至管理員信箱:<br />\r\n不希望收到網站運行錯誤請留空.<br />\r\n多個信箱請用英文逗號隔開.', '') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'metakeywords',    '網站設置',         'text', 'Meta關鍵字', '便於搜索引擎收錄您的網站，多個Meta關鍵字需用英文逗號隔開:', 'weenCompany聞名企業網站系統,企業自助建站系統') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'metadescription', '網站設置',         'text', 'Meta描述', '便於搜索引擎搜索您的網站，多個Meta描述需用英文逗號隔開:', 'weenCompany聞名企業網站系統,企業自助建站系統') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'categorytitle',   '網站設置',         'yesno', 'title關聯', '選擇是否將菜單名稱關聯到網站title中.', '1') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'copyrighttext',   '網站設置',         'text', '版權信息', '網站的版權信息將添加到\'Created by weenCompany\'之前:', '聞名企業網站') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'websitebeian',   '網站設置',         'text', '備案信息', '在網站的版權信息後面添加備案信息鏈接:', '京ICP備888888號') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'modrewrite',      '網站設置',         'yesno', '友好訪問', '如果您的網站服務器是Apache環境，且Rewrite重寫模式開啟，可將此項設置為是，有利於搜索引擎收錄您的網頁. <br>當設置為是後，如果網站前臺菜單鏈接無效，則說明服務器不支持，需要重新設置為否.', '0')");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'gzipcompress',    '網站設置',         'yesno', 'GZip壓縮傳送', '是否使用GZip壓縮傳送提高TinyMCE編輯器加載和傳輸速度?<br>注: 要求服務器為PHP4或以上版本, 且zlib壓縮功能已關閉.', '0')");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_use_smtp',   'SMTP郵件設置',         'yesno', 'SMTP郵件發送方式', '是否使用SMTP方式發送郵件?<br><br>注: 如果您的網站服務器是windows系統, 則必須選擇SMTP方式才能發送郵件, 而且要求服務器php環境支持Sockets.<br>UNIX或linux服務器無需使用SMTP方式發送郵件.', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_host',   'SMTP郵件設置',         'text', 'SMTP服務器地址', 'SMTP郵件服務器地址:<br>如: mail.weentech.com 或郵件服務IP地址.', '') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_port',   'SMTP郵件設置',         'text', '服務器端口', 'SMTP郵件服務器的端口號.', '25') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_require_auth',   'SMTP郵件設置',         'yesno', 'SMTP郵件驗證', 'SMTP方式發送郵件時, 郵件服務器是否要求驗證用戶?', '1') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_user',   'SMTP郵件設置',         'text', 'SMTP服務器用戶名', '登錄SMTP郵件服務器的用戶名:<br>注: 有時用戶名需要填寫為此用戶在SMTP服務器上對應的郵箱地址, 如: weentech@yoursite.com', 'weentech') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_pass',   'SMTP郵件設置',         'password', 'SMTP服務器密碼', '登錄SMTP郵件服務器的用戶密碼:', '') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_from',   'SMTP郵件設置',         'text', 'SMTP服務器郵箱', '與SMTP郵件服務器用戶名對應的用戶Email地址:', 'weentech@yoursite.com') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'dateformat',      '時區設置', 'text', '日期格式', '格式化日期顯示:<br /><br />參考: <a href=\'http://us2.php.net/manual/en/function.date.php\' target=\'_blank\'>http://us2.php.net/manual/en/function.date.php</a>', 'Y.m.d') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'timezoneoffset',  '時區設置',
   '<select name=\\\\\"settings[\$setting[settingid]]\\\\\">\r\n
    <option value=\\\\\"-12\\\\\"  \".iif(\$setting[value]==\"-12\",  \"selected\", \"\").\">(GMT -12:00) Eniwetok, Kwajalein</option>\r\n
    <option value=\\\\\"-11\\\\\"  \".iif(\$setting[value]==\"-11\",  \"selected\", \"\").\">(GMT -11:00) Midway Island, Samoa</option>\r\n
    <option value=\\\\\"-10\\\\\"  \".iif(\$setting[value]==\"-10\",  \"selected\", \"\").\">(GMT -10:00) Hawaii</option>\r\n
    <option value=\\\\\"-9\\\\\"   \".iif(\$setting[value]==\"-9\",   \"selected\", \"\").\">(GMT -9:00) Alaska</option>\r\n
    <option value=\\\\\"-8\\\\\"   \".iif(\$setting[value]==\"-8\",   \"selected\", \"\").\">(GMT -8:00) Pacific Time (US & Canada)</option>\r\n
    <option value=\\\\\"-7\\\\\"   \".iif(\$setting[value]==\"-7\",   \"selected\", \"\").\">(GMT -7:00) Mountain Time (US & Canada)</option>\r\n
    <option value=\\\\\"-6\\\\\"   \".iif(\$setting[value]==\"-6\",   \"selected\", \"\").\">(GMT -6:00) Central Time (US & Canada), Mexico City</option>\r\n
    <option value=\\\\\"-5\\\\\"   \".iif(\$setting[value]==\"-5\",   \"selected\", \"\").\">(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option>\r\n
    <option value=\\\\\"-4\\\\\"   \".iif(\$setting[value]==\"-4\",   \"selected\", \"\").\">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option>\r\n
    <option value=\\\\\"-3.5\\\\\" \".iif(\$setting[value]==\"-3.5\", \"selected\", \"\").\">(GMT -3:30) Newfoundland</option>\r\n
    <option value=\\\\\"-3\\\\\"   \".iif(\$setting[value]==\"-3\",   \"selected\", \"\").\">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>\r\n
    <option value=\\\\\"-2\\\\\"   \".iif(\$setting[value]==\"-2\",   \"selected\", \"\").\">(GMT -2:00) Mid-Atlantic</option>\r\n
    <option value=\\\\\"-1\\\\\"   \".iif(\$setting[value]==\"-1\",   \"selected\", \"\").\">(GMT -1:00 hour) Azores, Cape Verde Islands</option>\r\n
    <option value=\\\\\"0\\\\\"    \".iif(\$setting[value]==\"0\",    \"selected\", \"\").\">(GMT) Western Europe Time, London, Lisbon, Casablanca</option>\r\n
    <option value=\\\\\"1\\\\\"    \".iif(\$setting[value]==\"1\",    \"selected\", \"\").\">(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>\r\n
    <option value=\\\\\"2\\\\\"    \".iif(\$setting[value]==\"2\",    \"selected\", \"\").\">(GMT +2:00) Kaliningrad, South Africa</option>\r\n
    <option value=\\\\\"3\\\\\"    \".iif(\$setting[value]==\"3\",    \"selected\", \"\").\">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>\r\n
    <option value=\\\\\"3.5\\\\\"  \".iif(\$setting[value]==\"3.5\",  \"selected\", \"\").\">(GMT +3:30) Tehran</option>\r\n
    <option value=\\\\\"4\\\\\"    \".iif(\$setting[value]==\"4\",    \"selected\", \"\").\">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>\r\n
    <option value=\\\\\"4.5\\\\\"  \".iif(\$setting[value]==\"4.5\",  \"selected\", \"\").\">(GMT +4:30) Kabul</option>\r\n
    <option value=\\\\\"5\\\\\"    \".iif(\$setting[value]==\"5\",    \"selected\", \"\").\">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>\r\n
    <option value=\\\\\"5.5\\\\\"  \".iif(\$setting[value]==\"5.5\",  \"selected\", \"\").\">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>\r\n
    <option value=\\\\\"6\\\\\"    \".iif(\$setting[value]==\"6\",    \"selected\", \"\").\">(GMT +6:00) Almaty, Dhaka, Colombo</option>\r\n
    <option value=\\\\\"7\\\\\"    \".iif(\$setting[value]==\"7\",    \"selected\", \"\").\">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>\r\n
    <option value=\\\\\"8\\\\\"    \".iif(\$setting[value]==\"8\",    \"selected\", \"\").\">(GMT +8:00) 北京, 新加坡, 香港</option>\r\n
    <option value=\\\\\"9\\\\\"    \".iif(\$setting[value]==\"9\",    \"selected\", \"\").\">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>\r\n
    <option value=\\\\\"9.5\\\\\"  \".iif(\$setting[value]==\"9.5\",  \"selected\", \"\").\">(GMT +9:30) Adelaide, Darwin</option>\r\n
    <option value=\\\\\"10\\\\\"   \".iif(\$setting[value]==\"10\",   \"selected\", \"\").\">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>\r\n
    <option value=\\\\\"11\\\\\"   \".iif(\$setting[value]==\"11\",   \"selected\", \"\").\">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>\r\n
    <option value=\\\\\"12\\\\\"   \".iif(\$setting[value]==\"12\",   \"selected\", \"\").\">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>\r\n
    </select>'
   , '默認時區', '選擇默認時區:', '8') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'daylightsavings', '時區設置', 'yesno', '夏時制', '如該時區正實行夏時制，可將此功能打開，以便顯示正確的時間:', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'smiliesystem', 'Smilies', '', 'Smilie System', '', 'weenCompany') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'language',             'NA',                    '', 'Language', '', 'default.php|5.0|UTF-8') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'bfo',             'NA',                    '', 'bfo', '', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'sdversion',       '',                      '',     'version', 'weenCompany Version', '$wcversion') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "mainsettings VALUES (NULL, 'currentlogo',     '',                      '', 'Current Logo', '', '<a href=\"index.php\" style=\"font-family: Arial; font-size: 16pt; font-weight:bold; color: #fa9d20; text-decoration: none;\" title=\"Home\">weenCompany<span style=\"color: #66ffff;\">5</span></a>') ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m2_news       VALUES (NULL, 1, 3, 0, 1, '" . time() . "', 0, 0, 0, '管理員', '歡迎使用weenCompany聞名企業網站系統!', '', '', '', 'weenCompany聞名企業網站系統(CWS)為您快速地建設企業網站提供了極大的方便!<br /><br /><a href=\"admin\">點擊這裏</a> 進入後臺管理面板設置和管理網站.', 2, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m4_guestbook  VALUES (1, 0, 'Admin', 'weenCompany', 'http://www.weentech.com', '不錯的網站系統!', " . time() . ") ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m7_chatterbox VALUES (1, 1, 'Admin', 'Hi, 大家好!', " . time() . ")");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m16_sections  VALUES (1, 0, 1, '鏈接', '', '時間(降序)') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m16_links     VALUES (1, 1, 1, 1, 1, 'Admin', '聞泰網絡', 'http://www.weentech.com', '技術支持與服務!') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m17_sections  VALUES (NULL, 0, 1, 1, '產品', '', '時間(降序)', NULL, " . time() . ")");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m17_products    VALUES (1, 1, 1, 1, '1.jpg','1.jpg', 1, 1, 1, 0, 'weenCompany', 'weenCompany CWS', 'weenCompany System', '', '', 0, " . time() . ", 17, 1)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "m18_hitcounter VALUES (0,0,1,8,3600,'網站點擊統計: ')");
  
  // pagesort with Default Template
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "pagesort   (`categoryid`, `moduleid`, `displayorder`) VALUES   (3, '17', 1),
  (3, '1', 2),
  (3, '1', 3),
  (3, '1', 4),
  (3, '1', 5),
  (3, '1', 6),
  (3, '1', 7),
  (3, '1', 8),
  (3, '1', 9),
  (3, '1', 10),
  (1, '10', 1),
  (1, '3', 2),
  (1, '1', 3),
  (1, '1', 4),
  (1, '1', 5),
  (1, '1', 6),
  (1, '1', 7),
  (1, '1', 8),
  (1, '1', 9),
  (1, '1', 10),
  (1, '2', 11),
  (1, '1', 12),
  (1, '1', 13),
  (1, '1', 14),
  (1, '1', 15),
  (1, '1', 16),
  (1, '1', 17),
  (1, '1', 18),
  (1, '1', 19),
  (1, '1', 20),
  (1, 'c1', 21),
  (1, '7', 22),
  (1, '18', 23),
  (2, '10', 1),
  (2, '1', 2),
  (2, '1', 3),
  (2, '1', 4),
  (2, '1', 5),
  (2, '1', 6),
  (2, '1', 7),
  (2, '1', 8),
  (2, '1', 9),
  (2, '1', 10),
  (2, '4', 11),
  (2, '1', 12),
  (2, '1', 13),
  (2, '1', 14),
  (2, '1', 15),
  (2, '1', 16),
  (2, '1', 17),
  (2, '1', 18),
  (2, '1', 19),
  (2, '1', 20),
  (4, '10', 1),
  (4, '1', 2),
  (4, '1', 3),
  (4, '1', 4),
  (4, '1', 5),
  (4, '1', 6),
  (4, '1', 7),
  (4, '1', 8),
  (4, '1', 9),
  (4, '1', 10),
  (4, '16', 11),
  (4, '1', 12),
  (4, '1', 13),
  (4, '1', 14),
  (4, '1', 15),
  (4, '1', 16),
  (4, '1', 17),
  (4, '1', 18),
  (4, '1', 19),
  (4, '1', 20),
  (5, '10', 1),
  (5, '1', 2),
  (5, '1', 3),
  (5, '1', 4),
  (5, '1', 5),
  (5, '1', 6),
  (5, '1', 7),
  (5, '1', 8),
  (5, '1', 9),
  (5, '1', 10),
  (5, '6', 11),
  (5, '1', 12),
  (5, '1', 13),
  (5, '1', 14),
  (5, '1', 15),
  (5, '1', 16),
  (5, '1', 17),
  (5, '1', 18),
  (5, '1', 19),
  (5, '1', 20),
  (6, '10', 1),
  (6, '1', 2),
  (6, '1', 3),
  (6, '1', 4),
  (6, '1', 5),
  (6, '1', 6),
  (6, '1', 7),
  (6, '1', 8),
  (6, '1', 9),
  (6, '1', 10),
  (6, '12', 11),
  (6, '1', 12),
  (6, '1', 13),
  (6, '1', 14),
  (6, '1', 15),
  (6, '1', 16),
  (6, '1', 17),
  (6, '1', 18),
  (6, '1', 19),
  (6, '1', 20),
  (7, '10', 1),
  (7, '1', 2),
  (7, '1', 3),
  (7, '1', 4),
  (7, '1', 5),
  (7, '1', 6),
  (7, '1', 7),
  (7, '1', 8),
  (7, '1', 9),
  (7, '1', 10),
  (7, '11', 11),
  (7, '1', 12),
  (7, '1', 13),
  (7, '1', 14),
  (7, '1', 15),
  (7, '1', 16),
  (7, '1', 17),
  (7, '1', 18),
  (7, '1', 19),
  (7, '1', 20) ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (1,  '--empty--',         '',                 '',    'm1_empty/empty.php',                            '',                                      'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (2,  '文章模塊',          '公司新聞',             '2.0', 'm2_news/news.php',                              'm2_news/m2_settings.php',               'weencompany', '1', 27) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (3,  '最新文章',   '最新消息',      '2.0', 'm3_latestnews/latestnews.php',                  'm3_latestnews/m3_settings.php',         'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (4,  '留言簿',         '客戶留言',        '2.0', 'm4_guestbook/guestbook.php',                    'm4_guestbook/m4_settings.php',          'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (6,  '聯繫框',      '聯繫我們',      '2.0', 'm6_contactform/contactform.php',               'm6_contactform/m6_settings.php',       'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (7,  '留言板',        '留言板',       '2.0', 'm7_chatterbox/chatterbox.php',                  'm7_chatterbox/m7_settings.php',         'weencompany', '1', 19) ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (8,  '最新話題',      '最新話題',     '2.0', 'm8_latestposts/latestposts.php',               'm8_latestposts/m8_settings.php',       'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (9,  '發帖排行',       '發帖排行',      '2.0', 'm9_topposters/topposters.php',                 'm9_topposters/m9_settings.php',        'weencompany', '1', 17) ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (10, '用戶登陸',  '用戶登陸',      '2.0', 'm10_loginpanel/loginpanel.php',              'm10_loginpanel/m10_settings.php',    'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (11, '用戶資料',      '我的帳號',          '2.0', 'm11_usercp/usercp.php',                      'm11_usercp/m11_settings.php',        'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (12, '用戶註冊', '用戶註冊',     '2.0', 'm12_registration/register.php',              'm12_registration/m12_settings.php',  'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (16, '鏈接模塊',    '友情鏈接',   '2.0', 'm16_linkdirectory/linkdirectory.php',         'm16_linkdirectory/m16_settings.php',   'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (17, '產品模塊',     '公司產品',    '2.0', 'm17_products/imagegallery.php',            'm17_products/m17_settings.php',    'weencompany', '1', 27) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (18, '網站計數器',     '網站計數器',    '2.0', 'm18_hitcounter/hitcounter.php',            'm18_hitcounter/m18_settings.php',    'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modules VALUES (31, '二級菜單',  '二級菜單', '2.0', 'm31_submenu/m31_submenu.php', 'm31_submenu/m31_settings.php', 'weencompany', '1', 17) ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示標題',                      'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示作者',                     'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示發佈日期',              'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示更新日期',               'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示打印',         'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示發送郵件',         'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '簡要描述顯示在詳細內容中', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示表情符號',              'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '顯示設置', '',                                     '顯示用戶評論',              'yesno', '1', 9) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模塊設置',                  '郵件通知',                 '會員提交文章條目後, 按此郵箱地址通知管理員: <br />不希望收到通知, 請留空.<br />\r\n多個信箱地址可用英文逗號隔開.', 'text', '', '1') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模塊設置',                  '自動發佈',                    '是否允許會員提交文章條目後不經審核自動發佈? ', 'yesno', '0', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模塊設置',                  '文章推廣',                '是否允許用戶將文章內容Email給朋友?', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模塊設置',                  '郵件驗證碼',                     '用戶將文章內容Email給朋友時, 是否需要填寫驗證碼?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模塊設置',                  '文章驗證碼',                     '會員發表文章時, 是否需要填寫驗證碼?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模塊設置',                  '列表顯示',                     '文章模塊是否以文章列表的方式顯示?', 'yesno', '0', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '目標模塊',                                '選擇\'最新文章\'模塊的目標模塊ID, 即從哪個\'文章模塊\'中提取最新文章:<br/>注: 在模塊管理中或將鼠標箭頭移到模塊名稱上, 可查看模塊ID號. 必須是文章模塊或其複製模塊, 且僅能設置為一個模塊.', 'text',  '2',  1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '條目數',                                '模塊中顯示的最新文章條目數:', 'text',  '10',  2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '目標菜單',                   '是否僅從\'最新文章\'模塊被包含在某特定菜單中的\'文章模塊\'中提取最新文章?<br />如果設置為\'是\', 則\'關聯菜單\'和\'匹配菜單\'選項設置無效.',                                  'yesno', '0',   3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '關聯菜單',                   '\'最新文章\'模塊從哪些菜單所包含的\'文章模塊\'中提取最新文章, 輸入要關聯的菜單ID, 並用英文逗號隔開(如: 1,3,6):<br/>注: 在菜單管理中或將鼠標箭頭移到菜單上, 可查看菜單ID號, 留空表示關聯所有菜單.',  'text',  '',    4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '匹配菜單',                  '此選項可與\'關聯菜單\'配合使用, 不使用可留空. 如: \'關聯菜單\'設置為\'1,3\', 此項設置為: \'2,6\', 則表示: 如果菜單1中放置了\'最新文章\'模塊, 則其從菜單2中的\'文章模塊\'提取最新文章; 如果菜單3中放置了\'最新文章\', 則其從菜單6中的\'文章模塊\'提取最新文章.',  'text',  '',    5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '排序方式',                              '\'最新文章\'模塊總是從\'文章模塊\'提取最新文章, 此項指此模塊內文章的排序方式:', '<select name=\\\\\"settings[\$setting[settingid]]\\\\\">\r\n<option value=\\\\\"newest\\\\\" \".iif(\$setting[value]==\"newest\", \"selected\", \"\").\">時間(降序)</option>\r\n<option value=\\\\\"oldest\\\\\" \".iif(\$setting[value]==\"oldest\", \"selected\", \"\").\">時間(升序)</option>\r\n<option value=\\\\\"alphaAZ\\\\\" \".iif(\$setting[value]==\"alphaAZ\", \"selected\", \"\").\">標題(A-Z)</option>\r\n<option value=\\\\\"alphaZA\\\\\" \".iif(\$setting[value]==\"alphaZA\", \"selected\", \"\").\">標題(Z-A)</option>\r\n<option value=\\\\\"authornameAZ\\\\\" \".iif(\$setting[value]==\"authornameAZ\", \"selected\", \"\").\">作者(A-Z)</option>\r\n<option value=\\\\\"authornameZA\\\\\" \".iif(\$setting[value]==\"authornameZA\", \"selected\", \"\").\">作者(Z-A)</option>\r\n</select>', 'newest', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示菜單名稱',                '是否在最新文章的標題後面顯文章所在菜單的名稱?',                                                                 'yesno', '0',   7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示簡要描述',                  '是否在最新文章標題下面顯示文章的簡要描述?',                                                                             'yesno', '0',   8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示查看詳情',                            '當\'顯示簡要描述\'設置為\'是\'時, 是否顯示\'查看詳情\'鏈接?',           'yesno', '0',   9) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示作者',                       '是否顯示文章作者?',                                                                           'yesno', '0',  10) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示發佈日期',                '是否顯示文章的發佈日期?',                                                                         'yesno', '0',  11) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示打印',         '是否顯示打印文章鏈接?',                                                                     'yesno', '0',  12) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '顯示發送郵件',         '是否顯示發送郵件鏈接便於用戶推廣文章?',                                                                     'yesno', '0',  13) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '粗體標題',                           '是否顯示文章標題為粗體字?',                                                                 'yesno', '0',  14) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '標題鏈接',                           '是否轉換文章標題為查看全文鏈接(僅當\'顯示簡要描述\'選項設置為\'是\'時有效)?',                                                     'yesno', '1',  15) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '分組顯示',                             '最新文章分組顯示方式:', '<select name=\\\\\"settings[\$setting[settingid]]\\\\\">\r\n<option value=\\\\\"category\\\\\" \".iif(\$setting[value]==\"category\", \"selected\", \"\").\">菜單名稱</option>\r\n<option value=\\\\\"author\\\\\" \".iif(\$setting[value]==\"author\", \"selected\", \"\").\">作者姓名</option>\r\n<option value=\\\\\"date\\\\\" \".iif(\$setting[value]==\"date\", \"selected\", \"\").\">發佈日期</option>\r\n<option value=\\\\\"nothing\\\\\" \".iif(\$setting[value]==\"nothing\", \"selected\", \"\").\">不分組</option>\r\n</select>', 'nothing', 16) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '菜單鏈接',                        '是否顯示菜單為鏈接(僅當\'分組顯示\'設置為菜單名稱方式或\'顯示菜單名稱\'設置為是時有效)?',      'yesno', '0',  17) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '群組分隔符',                      '當最新文章以分組方式顯示時, 群組間的分隔符號:',                                            'text',  '<br />', 18) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '組與文章分隔符',              '當最新文章以分組方式顯示時, 分組名稱與文章間的分隔符號:',                                  'text',  '<br />', 19) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '文章分隔符',               '模塊內最新文章之間的分隔符(僅當\'分組顯示\'設置為不分組時有效):',            'text',  '<br />', 20) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模塊設置',                  '標題字節數',               '最新文章標題顯示的字節數:',            'text',  '36', 21) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '審核發佈',                       '用戶提交的留言是否經過審核後才能發佈?', 'yesno', '0', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '允許表情符號',                       '允許表情符號可以使輸入的表情代碼字符組合轉換成表情符號.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '顯示條目數',                    '模塊內顯示的每頁內容條目數量:', 'text', '10', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '內容字符長度',                       '內容中可輸入的最大字符數量:', 'text', '200', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '換行字符數',                            '插入換行符的字符數量(\"0\"表示不插入換行):', 'text', '0', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '顯示發表日期',                       '是否顯示用戶發表留言的日期?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模塊設置',                  '驗證碼',                     '用戶發表留言時, 是否需要填寫驗證碼?', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 6,  '模塊設置',                  '收件箱',                                '用戶提交的聯絡信息以郵件的方式發送至:<br />\r\n多個郵箱地址可用英文逗號隔開.', 'text', '', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 6,  '模塊設置',                  '驗證碼',                     '用戶提交聯繫信息時是否需要填寫驗證碼?', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '允許表情符號',                       '允許表情符號可以使輸入的表情代碼字符組合轉換成表情符號.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '顯示條目數',        '模塊內顯示的內容條目數量:', 'text', '5', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '換行字符數',                            '插入換行符的字符數量(\"0\"表示不插入換行):', 'text', '0', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '用戶名長度',              '非註冊用戶可輸入姓名的最多字符數:', 'text', '12', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '內容長度',               '內容中可輸入的最大字符數量:', 'text', '80', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '目標菜單',                   '當不同的網站菜單中包含此模塊時, 僅顯示打開該菜單時提交的內容.', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '顯示全部內容',                   '顯示一個鏈接, 在新窗口中打開全部模塊內容.', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '顯示發表時間',                         '是否顯示留言發表的日期和時間?', 'yesno', '0', 10) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模塊設置',                  '日期時間格式',                          '格式化日期時間顯示:<br /><br />參考: <a href=\'http://us2.php.net/manual/en/function.date.php\' target=\'_blank\'>http://us2.php.net/manual/en/function.date.php</a>', 'text', 'Y.m.d-H:i:s', 11) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模塊設置',                  '最新話題條目數',            '最新話題模塊中顯示的論壇最新主題條目數:', 'text', '5', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模塊設置',                  '換行字符數',                            '設定標題換行的字符數量:', 'text', '30', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模塊設置',                  '排除論壇',                       '最新話題模塊不從被排除的論壇中選擇話題, 比如私密論壇:<br/>注: 需輸入論壇ID號, 多個排除論壇ID需用英文逗號隔開.', 'text', '', '3') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 9,  '模塊設置',                  '顯示用戶數量',     '發帖排行模塊中顯示的用戶數量:', 'text', '5', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模塊設置',      '顯示頭像',                       '會員登陸後是否在顯示頭像?<br/>注: 僅當使用論壇接口後有效.', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模塊設置',      '短信統計',                             '會員登陸後是否顯示內部短信息統計數據?<br/>注: 僅當使用論壇接口後有效.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模塊設置',      '短信通知',                          '會員收到最新短信後是否彈出Javascript小窗口通知?<br/>注: 僅當使用論壇接口且\'短信統計\'設置為是時有效.', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模塊設置',      '管理鏈接',                   '有管理權限的用戶前臺登陸後, 是否顯示轉向後臺管理的鏈接?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '校驗方式',           '提交註冊信息時, 是否彈出小窗口顯示錯誤信息?<br/>注: 選擇\'否\'則以網頁方式顯示錯誤信息.', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '用戶名長度',              '可輸入用戶名的最大長度:', 'text', '12', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '密碼長度',              '可輸入密碼的最大長度:', 'text', '15', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '禁止Email地址',               '禁止註冊的Email地址(以空格分開):<br />注: 禁止特定Email地址如: info@weentech.com; 禁止全部地址如: @weentech.com.', 'textarea', '', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '禁止IP地址',                  '被禁止註冊和訪問的IP地址(以空格分開):<br/>注: 可禁止特定的IP地址, 或使用通配符禁止子網絡IP地址如: 192.168.*.*', 'textarea', '', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '人工審核',             '用戶註冊是否進行人工審核?<br>注: 選擇人工審核, 郵件驗證功能失效.', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',     '郵件驗證',             '是否發送一封驗證郵件到用戶註冊的信箱, 並在用戶驗證後完成註冊?', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',         '驗證碼',                                         '註冊時是否輸入驗證碼?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模塊設置',         '關閉註冊',                                         '是否關閉新用戶註冊, 關閉後已註冊用戶仍可正常登錄?', 'yesno', '0', 9) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示姓名',      '是否在用戶註冊時顯示姓名?',            'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示單位',      '是否在用戶註冊時顯示所屬單位?',            'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示地址',      '是否在用戶註冊時顯示通訊地址?',            'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示郵編',      '是否在用戶註冊時顯示郵編?',            'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示電話',      '是否在用戶註冊時顯示電話?',            'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示傳真',      '是否在用戶註冊時顯示傳真?',            'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示在線聯繫',      '是否在用戶註冊時顯示在線聯繫?',            'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '顯示設置',      '顯示網址',      '是否在用戶註冊時顯示網址?',            'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模塊設置',                  '每頁鏈接數',                       '每頁顯示的鏈接數量:', 'text', '20', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模塊設置',                  '每行鏈接數',              '每行顯示的鏈接數量:', 'text', '4', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模塊設置',                  '郵件通知',                    '會員提交鏈接後, 按此郵箱地址通知管理員:<br />\r\n多個信箱可用英文逗號隔開, 不希望收到通知, 請留空.', 'text', '', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模塊設置',                  '顯示導航欄',                         '是否顯示導航欄?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模塊設置',                  '自動發佈',                   '是否允許會員提交鏈接後不經審核自動發佈?', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模塊設置',                  '驗證碼',                     '會員提交鏈接申請時, 是否需要填寫驗證碼?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '彈出方式',                         '是否點擊產品縮圖, 直接彈出窗口顯示大圖片和產品信息:', 'yesno', '0', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '每行產品數',             '每行顯示的產品數量:', 'text', '4', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '每頁產品數',                      '每頁顯示的產品數量:', 'text', '12', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '郵件通知',                   '會員提交產品圖片及說明後, 按此郵箱地址通知管理員:<br />\r\n多個信箱可用英文逗號隔開, 不希望收到通知, 請留空.', 'text', '', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '自動發佈',                  '是否允許會員提交產品圖片後不經審核自動發佈?', 'yesno', '0', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '顯示點擊率',                     '是否顯示產品的點擊次數?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '顯示評論數',                  '是否顯示產品的評論條數?', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '顯示跳轉',                    '是否顯示產品類別下拉跳轉欄?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '顯示導航',                    '是否顯示產品類別水平導航欄?', 'yesno', '1', 9) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置',                  '類別排序',                   '產品分類目錄的排序方式:',                      '<select name=\\\\\"settings[\$setting[settingid]]\\\\\">\r\n
  <option value=\\\\\"0\\\\\" \".iif(\$setting[value]==\"0\", \"selected\", \"\").\">時間(降序)</option>\r\n
  <option value=\\\\\"1\\\\\" \".iif(\$setting[value]==\"1\", \"selected\", \"\").\">時間(升序)</option>\r\n
  <option value=\\\\\"2\\\\\" \".iif(\$setting[value]==\"2\", \"selected\", \"\").\">編號(降序)</option>\r\n
  <option value=\\\\\"3\\\\\" \".iif(\$setting[value]==\"3\", \"selected\", \"\").\">編號(升序)</option>\r\n
  </select>', '2', 10) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置', '居中顯示', '窗口中是否居中顯示產品圖片?', 'yesno', '1', 11) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置', 'TinyMCE編輯器', '後臺管理中編輯產品描述時是否啟用TinyMCE中文編輯器?<br />注: 此項設置僅當系統基本設置中啟用了TinyMCE編輯器時才有效.', 'yesno', '1', 12) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本設置', '驗證碼', '會員提交產品時, 是否需要填寫驗證碼?', 'yesno', '1', 13) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '縮圖設置',        '自動縮圖',                       '是否在上傳產品大圖時自動生成縮圖?<br />注: 自動生成縮圖僅當產品圖片為jpg或png圖片時有效. 選擇\"否\", 則需上傳大圖時同時上傳縮圖.', 'yesno', '1', 1)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '縮圖設置',        '縮圖最大寬度',                  '自動生成縮圖的最大寬度(像素):', 'text', '100', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '縮圖設置',        '縮圖最大高度',                 '自動生成縮圖的最大高度(像素):', 'text', '100', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '縮圖設置',        '方形縮圖',                '是否拉伸大圖自動生成方形縮圖?', 'yesno', '0', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '縮圖設置', '縮圖邊框', '是否顯示縮圖邊框?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中圖設置',              '自動中圖',                '是否在上傳產品大圖時自動生成中圖?<br />注: 自動生成中圖僅當產品圖片為jpg或png類型時有效, 選擇\"否\", 將無法創建中圖(系統不提供上傳中圖功能).', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中圖設置',              '大圖保持原始',                 '上傳的產品大圖是否保持原始尺寸?<br />如果此項設置為\"否\", 且\"自動中圖\"設置為\"是\", 則僅顯示產品中圖, 且刪除原上傳圖片.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中圖設置',              '中圖最大寬度',                    '自動生成中圖的最大寬度(像素):', 'text', '400', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中圖設置',              '中圖最大高度',                   '自動生成中圖的最大高度(像素):', 'text', '400', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中圖設置',              '方型中圖',                   '是否拉伸大圖自動生成方形中圖?', 'yesno', '0', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中圖設置', '中圖邊框', '是否顯示中圖邊框?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '類別設置', '分類統計', '是否顯示類別的產品數量統計? <br />如果網站訪問速度太慢或有大量產品, 建議選\"否\".', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '類別設置', '顯示方式', '是否以圖片方式顯示類別? <br />選擇\"否\", 則僅顯示類別名稱.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '類別設置', '每行類別數', '每行顯示的產品類別數, 設置為\"1\"表示縱向排列:', 'text', '4', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '類別設置', '圖片邊框', '當類別以圖片方式顯示時, 是否顯示圖片邊框?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '類別設置', '顯示類別', '是否顯示產品類別的下屬分類別?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '類別設置', '根類別顯示所有產品', '是否在產品模塊的根類別下顯示所有產品? 此時進入產品頁面將顯示所有產品; 選擇否, 僅顯示根類別下的產品.', 'yesno', '0', 6) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '邊框設置', '邊框顏色', '圖片邊框的顏色:<br />默認顏色: #606E9B', 'text', '#606E9B', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 17, '邊框設置', '邊框間隙', '圖片與邊框之間的間隙(像素):<br />默認間隙: 3', 'text', '3', 2) ");


  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模塊設置',      '分隔符',                '二級菜單間的分隔符號:<br/>提示: 二級菜單模塊僅顯示當前菜單中的二級菜單.', 'text', '<br />', 1) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模塊設置',      '菜單樣式',                   '是否使用以下自定義CSS樣式?<br/>選擇\'否\', 則使用網站模板CSS文件中設置的樣式.' , 'yesno', '0', 2) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模塊設置',      '基本樣式',                   '二級菜單鏈接的CSS樣式(a: link):\r\n<br />如: <i>font: 11px verdana; color: #6E8195;</i>', 'text', 'font: 11px verdana; color: #6E8195;', 3) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模塊設置',      '活動時樣式',                    '當前二級菜單的CSS樣式(a: active):', 'text', 'font: 11px verdana; color: #6E8195;', 4) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模塊設置',      '訪問後樣式',                   '二級菜單訪問後的CSS樣式(a: visited):', 'text', 'font: 11px verdana; color: #6E8195;', 5) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模塊設置',      '翻轉時樣式',                     '二級菜單翻轉時的CSS樣式(a: hover):', 'text', 'font: 11px verdana; color: #6E8195;', 6) ");


  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sunday', '星期天', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Monday', '星期一', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Tuesday', '星期二', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Wednesday', '星期三', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Thursday', '星期四', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Friday', '星期五', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Saturday', '星期六', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sun', '周日', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Mon', '週一', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Tue', '週二', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Wed', '週三', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Thu', '週四', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Fri', '週五', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sat', '週六', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'January', '一月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'February', '二月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'March', '三月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'April', '四月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'May', '五月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'June', '六月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'July', '七月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'August', '八月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'September', '九月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'October', '十月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'November', '十一月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'December', '十二月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jan', '1月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Feb', '2月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Mar', '3月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Apr', '4月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'May', '5月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jun', '6月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jul', '7月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Aug', '8月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sep', '9月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Oct', '10月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Nov', '11月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'Dec', '12月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_comment_name',       '請輸入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_comment',            '請輸入評論內容!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'repeat_comment',           '請勿重複發表內容相同的評論!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'users_name',               '評論人:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'your_name',                '您的姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'comment',                  '評論內容:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'update_comment',           '保存更新', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'post_comment',             '發表評論', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'comments',                 '評論:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'edit',                     '編輯', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'delete',                   '刪除', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'login_post_comments',      '請先登陸再發表評論!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'view_comments',            '查看評論', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'hide_comments',            '隱藏評論', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'more_comments',            '更多評論', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'login_view_page',          '對不起, 查看此頁需要先登陸網站!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'wrong_password',           '密碼錯誤!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'wrong_username',           '用戶名不正確!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'please_enter_username',    '請輸入用戶名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'session_error',            '無法開始會話!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'you_are_banned',           '對不起, 您的用戶名被鎖定!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'ip_banned',                '對不起, 您的IP被禁止註冊!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_view_access',           '對不起, 您所在的用戶組無權訪問此頁!',       '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_post_access',           '對不起, 您所在的用戶組無權發表留言!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_download_access',       '對不起, 您所在的用戶組無權下載!',          '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_comment_access',        '對不起, 您所在的用戶組無權發表評論!',      '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'url_not_found',            'URL未找到!',                          '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'page_not_found',           '無法找到此頁面!',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'redirect_to_homepage',     '點擊這裏轉向首頁.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'not_yet_activated',        '您的帳號未激活! 請查收郵件並按要求激活帳號.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'incorrect_vvc_code',       '驗證碼不正確!',                                            '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_verify_code',        '請輸入上圖中顯示的字符(區分大小寫):', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'previous_page',            '&laquo; 上一頁', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'next_page',                '下一頁 &raquo;',     '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'page',                     '頁',                  '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'of',                       '/',                    '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'published',                '發佈: ', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'updated',                  '更新: ',                                          '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'discuss_article_in_forum', '在論壇中討論此文章!',                 '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'by',                       '作者:',                                                 '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'read_more',                '點擊查看...',                                       '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'previous',                 '&laquo; 上一頁',                                   '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'next',                     '下一頁 &raquo;',                                       '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'article_offline',          '此文章未發佈!',                 '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'author',                   '作者:',                                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'title',                    '標題:',                                             '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'description',              '簡要描述:',                                       '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'article',                  '詳細內容:',                                           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'submit_article',           '發表文章',                                     '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_name',               '請輸入您的姓名!',                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_title',              '請輸入文章標題!',                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_description',        '請輸入簡要描述!',                      '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_article',            '請輸入詳細內容!',                           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'article_submitted',        '謝謝! 您的文章已提交, 如未發表請等待審核.',           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'print',                    '打印',                                              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'email',                    '發送郵件',                                              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_recipient_email',    '發送這篇文章到郵箱:',                              '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'separate_with_commas',     '多個郵箱請用英文逗號隔開.',           '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_your_email',         '您的Email地址:',                          '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_comment',            '您的對此文章的評論(可選):',                         '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'send_email',               '發送郵件',                                         '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'invalid_email',            '請輸入有效的Email地址!',                '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'email_sent',               '以下文章已發送成功:',               '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'go_back',                  '點擊返回到當前文章.',              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'email_not_sent',           '系統錯誤! 郵件發送未完成.', '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_from',                 '文章作者', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_subject',         '有新文章提交到您網站!', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_message',         '一個新文章已提交到您的網站, 如未發表請在後臺審核.', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_author',      '作者', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_title',       '標題', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'website_url',              '網址:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'name',                     '姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'date',                     '日期:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'website_name',             '單位:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'message',                  '留言內容:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'submit_message',           '提交留言', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'reset',                    '重置', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_username',              '請輸入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_message',               '請輸入留言內容!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'message_too_long',         '留言內容的字符數不能超過', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'url_invalid',              '無效的網站URL!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_site_name',             '請輸入網站名稱!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'repeat_comment',           '請勿重複提交內容相同的留言!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'website',                  '單位:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'previous',                 '&laquo; 上一頁', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'next',                     '下一頁 &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'sign_guestbook',           '點擊這裏發表留言!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'characters',                    '字節!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 4, 'message_checking',                    '留言內容等待審核中...', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'full_name',                '您的姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'your_email',               'Email地址:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'subject',                  '您的問題:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'message',                  '詳細內容:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'send_message',             '提交發送', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'reset',                    '重置', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'invalid_email',            'Email地址無效!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'no_post_access',           '對不起, 您所在的用戶組無權提交聯繫信息!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'email_sent',               '謝謝! 您的問題已發送郵件給管理員.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'email_not_sent',           '系統錯誤! 郵件發送未完成.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 6, 'empty_fields',             '錯誤: 聯繫內容不完整!', '', '', '', '', '1', '0', '0') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'name',                     '姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'comment',                  '內容:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'say',                      '提交', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'no_username',              '請輸入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'no_comment',               '請輸入留言內容!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'repeat_comment',           '請勿重複提交內容相同的留言!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 7, 'view_history',             '查看全部留言', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 8, 'posted_by',                '作者', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 9, 'user',                     '用戶名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 9, 'posts',                    '發帖數:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'my_account',              '我的帳號', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'welcome_back',            '歡迎回來!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'logout',                  '安全退出', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'username',                '用戶名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'password',                '密碼:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'remember_me',             '記住我', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'login',                   '登陸', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'not_registered',          '您註冊了嗎?', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'register_now',            '馬上註冊!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'private_messages',        '論壇短信:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'unread_total',            ' 條未讀, 共計 ', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'new_priv_msg',            '您有新短信!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'title',                   '標題:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'sender',                  '發送人:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'click_ok',                '點擊\"確定\"查看, 點擊\"取消\"隱藏提示.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'open_msg',                '在新窗口中打開嗎?', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'new_priv_msg_title',      '查看新短信', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'forgot_password',         '忘記密碼?',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 10, 'admin_panel',             '管理員控制面板', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'no_changes_entered',      '沒有做任何修改!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'enter_valid_password',    '密碼僅能用字母或數字組成!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'password_unmatched',      '新密碼與確認密碼不匹配!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'enter_valid_email',       'Email地址無效!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'email_already_exists',    'Email地址已被使用, 請重新輸入!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'profile_updated',         '用戶資料已成功更新!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'new_password',            '新密碼:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'confirm_password',        '確認密碼:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'new_email',               'Email地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'update_profile',          '提交更新', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'visit_cp',                '點擊這裏進入您的控制面板.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_fullname',               '姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_company',               '所屬單位:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_add',               '通訊地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_postcode',               '郵編:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_tel',               '電話:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_fax',               '傳真:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_online',               '在線聯繫:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_website',               '網址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_name',               '用戶名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'password',                '密碼:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_again',          '確認密碼:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email',                   'Email地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_again',             '確認Email地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_fullname',               '姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_company',               '所屬單位:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_add',               '通訊地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_postcode',               '郵編:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_tel',               '電話:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_fax',               '傳真:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_online',               '在線聯繫:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_website',               '網址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'register',                '註冊', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'reset_form',              '重置', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'enter_alnum_username',    '用戶名僅能用字母或數字組成!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'enter_alnum_password',    '密碼僅能用字母或數字組成!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_unmatched',      '您輸入的密碼與確認密碼不匹配!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'unvalid_email',           'Email地址無效!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_unmatched',         '您輸入的Email地址與確認Email地址不匹配!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'username_exists',         '用戶名已被註冊, 請重新輸入!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_exists',            'Email地址已被註冊, 請重新輸入!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'register_success',        '感謝您的註冊!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'already_logged_in',       '您已經註冊, 並登陸為:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'logout',                  '如果您希望退出, 請點擊這裏.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'register_now',            '點擊這裏註冊!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_banned',            '您輸入的Email地址禁止註冊!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'pwd_reset',               '取回密碼',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_not_found',         '您輸入的Email地址不正確:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_subject',                          '您的新密碼',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message',                          '您的新密碼是: ',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_reset_success',  '系統已為您生成了一個新密碼, 並發送到您的郵箱中, 請查收.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'activation_required',                  '感謝您的註冊! 一封確認郵件已發送到您的信箱, 請按郵件中的提示信息激活您的帳號.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'activation_required_manual',          '感謝您的註冊! 我們將在1-2個工作日內完成您的註冊審核, 請耐心等待!',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_subject_activation', '感謝您的註冊!',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message_activation', '感謝您的註冊! 請點擊以下鏈接激活您的帳號:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'validation_key_not_found', '您的帳號未註冊! 請正確地拷貝鏈接.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'already_validated',                 '您的帳號已激活, 可以使用用戶名和密碼登陸網站了.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'validation_success',                 '您的帳號已激活, 可以使用用戶名和密碼登陸網站了.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'registration_turnoff',                 '對不起! 新用戶註冊功能已關閉, 請與管理員聯繫.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message_resetpassword',                 '點擊以下鏈接重設您的密碼:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_reset_confirm',                 '一封重設密碼的確認郵件已發送到您的郵箱, 請查收並點擊其中的鏈接來完成密碼的重新設定.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 12, 'invalid_link',                 '重設密碼的鏈接無效!',                         '', '', '#FF0000', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'sections',                '分類:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'submitting_link',         '申請鏈接', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'your_name',               '您的姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'website_name',            '網站名稱:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'website_url',             '網站URL:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'description',             '網站介紹:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'submit_link',             '提交申請', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'submit_a_link',           '點擊這裏在此類中申請鏈接!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'submitted_by',            '來自:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'previous_links',          '&laquo; 上一頁', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'more_links',              '下一頁 &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_name',              '請輸入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_site_name',         '請輸入網站名稱!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_site_url',          '請輸入網站URL!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'url_invalid',             '網站URL無效!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_description',       '請輸入網站介紹!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'link_submitted',          '申請鏈接提交成功! 如未發佈, 請等待審核.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_from',        '友情鏈接模塊', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_subject',         '有新申請鏈接提交到您的網站!','', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_message',         '有新申請鏈接提交到您的網站, 如友情鏈接模塊設置為審核發佈, 請儘快到網站後臺審核.',  '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_author',     '申請人', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_website',    '網站名稱', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_url',        '網站URL', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_description','網站介紹', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'sections',                '分類:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'no_gif_support',          '網站已開啟自動縮圖功能, 僅支持jpg和png圖片格式!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'previous_images',         '&laquo; 上一頁', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'more_images',             '下一頁 &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'submitted_by',            '來自:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'submit_an_image',         '提交產品到此類別.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'submitting_image',        '提交產品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'your_name',               '您的姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'description',             '產品描述:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'thumbnail',               '產品縮圖:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'image',                   '產品圖片:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'submit_image',            '提交產品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'image_title',             '產品名稱:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_title',             '請輸入產品名稱!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_author',            '請輸入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'select_image',            '請選擇產品圖片!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'select_thumbnail',        '請選擇產品縮圖', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_description',       '請輸入產品描述!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'image_submitted',         '謝謝! 產品提交成功.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'previous_image',          '&laquo; 上一個', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'next_image',              '下一個 &raquo;',     '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'invalid_image_type',      '無效的圖片類型!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'views',                   '查看次數:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'jump_to',                 '跳轉到...', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'comments',                '個評論', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'comment',                '評論', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'image2',                '個產品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'images',                '個產品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'images2',                '產品列表:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'specification',               '技術規格:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'priceship',               '價格及運輸:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'descriptiontitle',               '基本信息', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'specificationtitle',               '技術規格', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, 17, 'priceshiptitle',               '價格及運輸', '', '', '', '', 0, 0, 0)");

  // install advanced template
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "templates VALUES (1, 'Default', 1, 4, 'default/images/adv_preview.jpg', 'weenCompany', '1') ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "designs VALUES (1, 1, 23, 'default/advanced_1.php', 'default/images/adv_design_1.png') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "designs VALUES (2, 1, 20, 'default/advanced_2.php', 'default/images/adv_design_2.png') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "designs VALUES (3, 1, 20, 'default/advanced_3.php', 'default/images/adv_design_3.png') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "designs VALUES (4, 1, 10, 'default/advanced_4.php', 'default/images/adv_design_4.png') ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '失望',         ':|',   'disappointed.gif') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '快樂',         ':H',   'happy.gif')        ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '憂愁',          ':(',   'sad.gif')          ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '微笑',         ':)',   'smile.gif')        ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '憤怒',         ':@',       'angry.gif')        ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '害羞',         ':B',       'blush.gif')        ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '無恥',         ':C',      'cheeky.gif')       ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '可惡',         ':S',        'darn.gif')         ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '去死',         ':D',        'dead.gif')         ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '驚訝',         ':O',         'eek.gif')         ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '難堪',         ':$',       'embar.gif')  ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '求助',         ':?',        'help.gif')         ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '愛意',         ':L',         'luv.gif')          ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '讚揚',         ':G',          'ok.gif')           ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '眨眼',         ';)',        'wink.gif')         ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '呵欠',         ':Y',        'yawn.gif')         ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "smilies VALUES (NULL, '美味',         ':T',         'yum.gif')          ");


  DB_Query ("INSERT INTO " . TABLE_PREFIX . "usersystems VALUES (NULL, 'weenCompany',              '1', '', 'weencompany.php', '', '', '0', '', '') ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "usersystems VALUES (NULL, 'phpBB2',                  '0', '', 'phpbb2.php',     '', '', '0', '', '') ");

  DB_Query ("INSERT INTO " . TABLE_PREFIX . "usergroups VALUES (1, '0', '系統管理員',   '1', '1', '1', '1,2,3,4,5,6,7', '1,2,3,4,5,7', '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '2,4,6,7,10,16,17', '', '2,16,17', '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '1', '1' ) "); 
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "usergroups VALUES (2, '0', '信息管理員',       '0', '1', '1', '1,2,3,4,5,6,7', '1,2,3,4,5,7', '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '2,4,6,7,10,16,17', '', '2,16,17', '2,3,4,6,7,8,9,10,11,12,16,17,31', '1', '1' ) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "usergroups VALUES (3, '0', '註冊用戶', '0', '0', '0', '1,2,3,4,5,6,7', '1,2,3,4,5,7', '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '2,4,6,7,10,16,17', '', '2,16,17', '',                                '1', ''  ) ");
  DB_Query ("INSERT INTO " . TABLE_PREFIX . "usergroups VALUES (4, '0', '遊客',           '0', '0', '0', '1,2,3,4,5,6',   '1,2,3,4,5,6',   '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '4,6',                 '', '',        '',                                '1', ''  ) ");
  
    
$DB->close();

die('<action result="ok" error="" />'."\n");
?>
