<?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']));
$entableprefix   = substr($tableprefix, 0, -1) . 'en_';


// 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 'gbk'");
   mysql_query("SET COLLATION_CONNECTION='gb2312_chinese_ci'");
   mysql_query("ALTER DATABASE $dbname DEFAULT CHARACTER SET gb2312 COLLATE 'gb2312_chinese_ci'");           
   
}

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

  

  //安装中文数据库
define('CNTABLE_PREFIX', $tableprefix);
define('ENTABLE_PREFIX', $entableprefix);

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']);
}

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

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

  DB_Query ("CREATE TABLE " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_PREFIX . "categories VALUES (1, 0, 1, '首页',          'home',      1, '', '', 65, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (2, 0, 2, '客户留言',     'guestbook', 2, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (3, 0, 4, '公司产品',     'products',   3, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (4, 0, 2, '友情链接',     'links',     4, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (5, 0, 2, '联系我们',       'contact',   5, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (6, 0, 2, '我要注册',      'register',  6, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (7, 0, 2, '我的帐号',       'profile',   7, '', '', 82, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "categories VALUES (8, 0, 1, 'English',      'english',  8, 'index.php?lang=en', '', 90, 0) ");

  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "custommodules VALUES (1, '联系我们', '联系我们!', '您需要联系我们吗?<br /><br /><a href=\"index.php?categoryid=5\">点击这里!</a>', '', '17') ");


  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'enablewysiwyg',   '系统设置',   'yesno', 'TinyMCE编辑器', '后台管理是否开启TinyMCE编辑器?<br /><br />weenCompany闻名企业网站系统安装了功能强大的TinyMCE编辑器, 默认为开启状态。如果您对HTML, JavaScript等比较熟练，可以关闭此功能.', '1') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'simpletingymce',   '系统设置',         'yesno', '编辑器简洁模式', 'TinyMCE编辑器简洁模式下仅加载常用编辑工具, 具有更快的显示速度.', '1') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'checkforupdates', '系统设置',   'yesno', '检查最新版本', '允许weenCompany自动检查最新版本?', '1')");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'admincookietimeout','系统设置', 'text', '管理员Cookie过期时间', '管理员处于不活动状态, 需要重新登录的时间间隔(秒):', '1800')");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'admin_dir',   '系统设置',         'text', '后台管理目录', '进入weenCompany系统后台管理的目录名称:<br><br>默认的后台管理目录为admin, 如果自定了后台管理目录, 则需要使用FTP工具将网站中的admin文件夹改为对应的名称; 同时需要将网站根目录下的robots.txt文件中的admin改为对应的名称, 以防止搜索引擎抓取后台数据.', 'admin') ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'sitedefaultlang',  '语言设置',       '<select name=\\\\\"sitedefaultlang\\\\\">\r\n<option value=\\\\\"auto\\\\\"   \".iif(\$sitedefaultlang[value]==\"auto\",      \"selected\",  \"\").\">自动</option>\r\n<option value=\\\\\"cn\\\\\"   \".iif(\$sitedefaultlang[value]==\"cn\",      \"selected\",  \"\").\">中文</option>\r\n<option value=\\\\\"en\\\\\"        \".iif(\$sitedefaultlang[value]==\"en\",\"selected\",\"\").\">英文</option>\r\n</select>', '系统默认语言', '选择\'自动\', 系统前后台将根据用户的浏览器自动进入中文或英文, 中文浏览器进入中文, 其它语言浏览器进入英文; 选择\'中文\', 系统前后台默认进入中文; 选择\'英文\', 系统前后台默认进入英文.', 'auto') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'offmessage',      '开关设置',       'textarea', '关闭时显示', '网站关闭时显示:', '网站正在进行数据维护，请稍后光临，谢谢！') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'websitetitle',    '网站设置',         'text', '网站title名称', '显示在浏览器上方的网站title:', 'weenCompany闻名企业网站系统') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'technicalemail',  '网站设置',         'text', '管理员信箱', '网站运行错误将发Email至管理员信箱:<br />\r\n不希望收到网站运行错误请留空.<br />\r\n多个信箱请用英文逗号隔开.', '') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'metakeywords',    '网站设置',         'text', 'Meta关键字', '便于搜索引擎收录您的网站，多个Meta关键字需用英文逗号隔开:', 'weenCompany闻名企业网站系统,企业自助建站系统') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'metadescription', '网站设置',         'text', 'Meta描述', '便于搜索引擎搜索您的网站，多个Meta描述需用英文逗号隔开:', 'weenCompany闻名企业网站系统,企业自助建站系统') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'categorytitle',   '网站设置',         'yesno', 'title关联', '选择是否将菜单名称关联到网站title中.', '1') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'copyrighttext',   '网站设置',         'text', '版权信息', '网站的版权信息将添加到\'Created by weenCompany\'之前:', '闻名企业网站') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'websitebeian',   '网站设置',         'text', '备案信息', '在网站的版权信息后面添加备案信息链接:', '京ICP备888888号') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'modrewrite',      '网站设置',         'yesno', '友好访问', '如果您的网站服务器是Apache环境，且Rewrite重写模式开启，可将此项设置为是，有利于搜索引擎收录您的网页. <br>当设置为是后，如果网站前台菜单链接无效，则说明服务器不支持，需要重新设置为否.', '0')");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'gzipcompress',    '网站设置',         'yesno', 'GZip压缩传送', '是否使用GZip压缩传送提高TinyMCE编辑器加载和传输速度?<br>注: 要求服务器为PHP4或以上版本, 且zlib压缩功能已关闭.', '0')");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_host',   'SMTP邮件设置',         'text', 'SMTP服务器地址', 'SMTP邮件服务器地址:<br>如: mail.weentech.com 或邮件服务IP地址.', '') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_port',   'SMTP邮件设置',         'text', '服务器端口', 'SMTP邮件服务器的端口号.', '25') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_require_auth',   'SMTP邮件设置',         'yesno', 'SMTP邮件验证', 'SMTP方式发送邮件时, 邮件服务器是否要求验证用户?', '1') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_user',   'SMTP邮件设置',         'text', 'SMTP服务器用户名', '登录SMTP邮件服务器的用户名:<br>注: 有时用户名需要填写为此用户在SMTP服务器上对应的邮箱地址, 如: weentech@yoursite.com', 'weentech') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_pass',   'SMTP邮件设置',         'password', 'SMTP服务器密码', '登录SMTP邮件服务器的用户密码:', '') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_from',   'SMTP邮件设置',         'text', 'SMTP服务器邮箱', '与SMTP邮件服务器用户名对应的用户Email地址:', 'weentech@yoursite.com') ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'daylightsavings', '时区设置', 'yesno', '夏时制', '如该时区正实行夏时制，可将此功能打开，以便显示正确的时间:', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'smiliesystem', 'Smilies', '', 'Smilie System', '', 'weenCompany') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'language',             'NA',                    '', 'Language', '', 'default.php|5.0|gb2312') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'bfo',             'NA',                    '', 'bfo', '', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "mainsettings VALUES (NULL, 'sdversion',       '',                      '',     'version', 'weenCompany Version', '$wcversion') ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_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 " . CNTABLE_PREFIX . "m4_guestbook  VALUES (1, 0, 'Admin', 'weenCompany', 'http://www.weentech.com', '不错的网站系统!', " . time() . ") ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "m7_chatterbox VALUES (1, 1, 'Admin', 'Hi, 大家好!', " . time() . ")");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "m16_sections  VALUES (1, 0, 1, '链接', '', '时间(降序)') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "m16_links     VALUES (1, 1, 1, 1, 1, 'Admin', '闻泰网络', 'http://www.weentech.com', '技术支持与服务!') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "m17_sections  VALUES (NULL, 0, 1, 1, '产品', '', '时间(降序)', NULL, " . time() . ")");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "m18_hitcounter VALUES (0,0,1,8,3600,'网站点击统计: ')");
  
  // pagesort with Default Template
  DB_Query ("INSERT INTO " . CNTABLE_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),
  (8, '1', 1),
  (8, '1', 2),
  (8, '1', 3),
  (8, '1', 4),
  (8, '1', 5),
  (8, '1', 6),
  (8, '1', 7),
  (8, '1', 8),
  (8, '1', 9),
  (8, '1', 10),
  (8, '1', 11),
  (8, '1', 12),
  (8, '1', 13),
  (8, '1', 14),
  (8, '1', 15),
  (8, '1', 16),
  (8, '1', 17),
  (8, '1', 18),
  (8, '1', 19),
  (8, '1', 20) ");

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

  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (8,  '最新话题',      '最新话题',     '2.0', 'm8_latestposts/latestposts.php',               'm8_latestposts/m8_settings.php',       'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (9,  '发帖排行',       '发帖排行',      '2.0', 'm9_topposters/topposters.php',                 'm9_topposters/m9_settings.php',        'weencompany', '1', 17) ");

  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (10, '用户登陆',  '用户登陆',      '2.0', 'm10_loginpanel/loginpanel.php',              'm10_loginpanel/m10_settings.php',    'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (11, '用户资料',      '我的帐号',          '2.0', 'm11_usercp/usercp.php',                      'm11_usercp/m11_settings.php',        'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (12, '用户注册', '用户注册',     '2.0', 'm12_registration/register.php',              'm12_registration/m12_settings.php',  'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (16, '链接模块',    '友情链接',   '2.0', 'm16_linkdirectory/linkdirectory.php',         'm16_linkdirectory/m16_settings.php',   'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (17, '产品模块',     '公司产品',    '2.0', 'm17_products/imagegallery.php',            'm17_products/m17_settings.php',    'weencompany', '1', 27) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (18, '网站计数器',     '网站计数器',    '2.0', 'm18_hitcounter/hitcounter.php',            'm18_hitcounter/m18_settings.php',    'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modules VALUES (31, '二级菜单',  '二级菜单', '2.0', 'm31_submenu/m31_submenu.php', 'm31_submenu/m31_settings.php', 'weencompany', '1', 17) ");

  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示标题',                      'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示作者',                     'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示发布日期',              'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示更新日期',               'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示打印',         'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示发送邮件',         'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '简要描述显示在详细内容中', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示表情符号',              'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示用户评论',              'yesno', '1', 9) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '邮件通知',                 '会员提交文章条目后, 按此邮箱地址通知管理员: <br />不希望收到通知, 请留空.<br />\r\n多个信箱地址可用英文逗号隔开.', 'text', '', '1') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '自动发布',                    '是否允许会员提交文章条目后不经审核自动发布? ', 'yesno', '0', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '文章推广',                '是否允许用户将文章内容Email给朋友?', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '邮件验证码',                     '用户将文章内容Email给朋友时, 是否需要填写验证码?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '文章验证码',                     '会员发表文章时, 是否需要填写验证码?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '列表显示',                     '文章模块是否以文章列表的方式显示?', 'yesno', '0', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '目标模块',                                '选择\'最新文章\'模块的目标模块ID, 即从哪个\'文章模块\'中提取最新文章:<br/>注: 在模块管理中或将鼠标箭头移到模块名称上, 可查看模块ID号. 必须是文章模块或其复制模块, 且仅能设置为一个模块.', 'text',  '2',  1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '条目数',                                '模块中显示的最新文章条目数:', 'text',  '10',  2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '目标菜单',                   '是否仅从\'最新文章\'模块被包含在某特定菜单中的\'文章模块\'中提取最新文章?<br />如果设置为\'是\', 则\'关联菜单\'和\'匹配菜单\'选项设置无效.',                                  'yesno', '0',   3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '关联菜单',                   '\'最新文章\'模块从哪些菜单所包含的\'文章模块\'中提取最新文章, 输入要关联的菜单ID, 并用英文逗号隔开(如: 1,3,6):<br/>注: 在菜单管理中或将鼠标箭头移到菜单上, 可查看菜单ID号, 留空表示关联所有菜单.',  'text',  '',    4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '匹配菜单',                  '此选项可与\'关联菜单\'配合使用, 不使用可留空. 如: \'关联菜单\'设置为\'1,3\', 此项设置为: \'2,6\', 则表示: 如果菜单1中放置了\'最新文章\'模块, 则其从菜单2中的\'文章模块\'提取最新文章; 如果菜单3中放置了\'最新文章\', 则其从菜单6中的\'文章模块\'提取最新文章.',  'text',  '',    5) ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示菜单名称',                '是否在最新文章的标题后面显文章所在菜单的名称?',                                                                 'yesno', '0',   7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示简要描述',                  '是否在最新文章标题下面显示文章的简要描述?',                                                                             'yesno', '0',   8) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示查看详情',                            '当\'显示简要描述\'设置为\'是\'时, 是否显示\'查看详情\'链接?',           'yesno', '0',   9) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示作者',                       '是否显示文章作者?',                                                                           'yesno', '0',  10) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示发布日期',                '是否显示文章的发布日期?',                                                                         'yesno', '0',  11) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示打印',         '是否显示打印文章链接?',                                                                     'yesno', '0',  12) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示发送邮件',         '是否显示发送邮件链接便于用户推广文章?',                                                                     'yesno', '0',  13) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '粗体标题',                           '是否显示文章标题为粗体字?',                                                                 'yesno', '0',  14) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '标题链接',                           '是否转换文章标题为查看全文链接(仅当\'显示简要描述\'选项设置为\'是\'时有效)?',                                                     'yesno', '1',  15) ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '菜单链接',                        '是否显示菜单为链接(仅当\'分组显示\'设置为菜单名称方式或\'显示菜单名称\'设置为是时有效)?',      'yesno', '0',  17) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '群组分隔符',                      '当最新文章以分组方式显示时, 群组间的分隔符号:',                                            'text',  '<br />', 18) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '组与文章分隔符',              '当最新文章以分组方式显示时, 分组名称与文章间的分隔符号:',                                  'text',  '<br />', 19) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '文章分隔符',               '模块内最新文章之间的分隔符(仅当\'分组显示\'设置为不分组时有效):',            'text',  '<br />', 20) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '标题字节数',               '最新文章标题显示的字节数:',            'text',  '36', 21) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '审核发布',                       '用户提交的留言是否经过审核后才能发布?', 'yesno', '0', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '允许表情符号',                       '允许表情符号可以使输入的表情代码字符组合转换成表情符号.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '显示条目数',                    '模块内显示的每页内容条目数量:', 'text', '10', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '内容字符长度',                       '内容中可输入的最大字符数量:', 'text', '200', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '换行字符数',                            '插入换行符的字符数量(\"0\"表示不插入换行):', 'text', '0', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '显示发表日期',                       '是否显示用户发表留言的日期?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '验证码',                     '用户发表留言时, 是否需要填写验证码?', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 6,  '模块设置',                  '收件箱',                                '用户提交的联络信息以邮件的方式发送至:<br />\r\n多个邮箱地址可用英文逗号隔开.', 'text', '', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 6,  '模块设置',                  '验证码',                     '用户提交联系信息时是否需要填写验证码?', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '允许表情符号',                       '允许表情符号可以使输入的表情代码字符组合转换成表情符号.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '显示条目数',        '模块内显示的内容条目数量:', 'text', '5', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '换行字符数',                            '插入换行符的字符数量(\"0\"表示不插入换行):', 'text', '0', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '用户名长度',              '非注册用户可输入姓名的最多字符数:', 'text', '12', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '内容长度',               '内容中可输入的最大字符数量:', 'text', '80', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '目标菜单',                   '当不同的网站菜单中包含此模块时, 仅显示打开该菜单时提交的内容.', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '显示全部内容',                   '显示一个链接, 在新窗口中打开全部模块内容.', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '显示发表时间',                         '是否显示留言发表的日期和时间?', 'yesno', '0', 10) ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模块设置',                  '最新话题条目数',            '最新话题模块中显示的论坛最新主题条目数:', 'text', '5', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模块设置',                  '换行字符数',                            '设定标题换行的字符数量:', 'text', '30', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模块设置',                  '排除论坛',                       '最新话题模块不从被排除的论坛中选择话题, 比如私密论坛:<br/>注: 需输入论坛ID号, 多个排除论坛ID需用英文逗号隔开.', 'text', '', '3') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 9,  '模块设置',                  '显示用户数量',     '发帖排行模块中显示的用户数量:', 'text', '5', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '显示头像',                       '会员登陆后是否在显示头像?<br/>注: 仅当使用论坛接口后有效.', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '短信统计',                             '会员登陆后是否显示内部短信息统计数据?<br/>注: 仅当使用论坛接口后有效.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '短信通知',                          '会员收到最新短信后是否弹出Javascript小窗口通知?<br/>注: 仅当使用论坛接口且\'短信统计\'设置为是时有效.', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '管理链接',                   '有管理权限的用户前台登陆后, 是否显示转向后台管理的链接?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '校验方式',           '提交注册信息时, 是否弹出小窗口显示错误信息?<br/>注: 选择\'否\'则以网页方式显示错误信息.', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '用户名长度',              '可输入用户名的最大长度:', 'text', '12', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '密码长度',              '可输入密码的最大长度:', 'text', '15', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '禁止Email地址',               '禁止注册的Email地址(以空格分开):<br />注: 禁止特定Email地址如: info@weentech.com; 禁止全部地址如: @weentech.com.', 'textarea', '', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '禁止IP地址',                  '被禁止注册和访问的IP地址(以空格分开):<br/>注: 可禁止特定的IP地址, 或使用通配符禁止子网络IP地址如: 192.168.*.*', 'textarea', '', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '人工审核',             '用户注册是否进行人工审核?<br>注: 选择人工审核, 邮件验证功能失效.', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '邮件验证',             '是否发送一封验证邮件到用户注册的信箱, 并在用户验证后完成注册?', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',         '验证码',                                         '注册时是否输入验证码?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',         '关闭注册',                                         '是否关闭新用户注册, 关闭后已注册用户仍可正常登录?', 'yesno', '0', 9) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示姓名',      '是否在用户注册时显示姓名?',            'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示单位',      '是否在用户注册时显示所属单位?',            'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示地址',      '是否在用户注册时显示通讯地址?',            'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示邮编',      '是否在用户注册时显示邮编?',            'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示电话',      '是否在用户注册时显示电话?',            'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示传真',      '是否在用户注册时显示传真?',            'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示在线联系',      '是否在用户注册时显示在线联系?',            'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示网址',      '是否在用户注册时显示网址?',            'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '每页链接数',                       '每页显示的链接数量:', 'text', '20', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '每行链接数',              '每行显示的链接数量:', 'text', '4', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '邮件通知',                    '会员提交链接后, 按此邮箱地址通知管理员:<br />\r\n多个信箱可用英文逗号隔开, 不希望收到通知, 请留空.', 'text', '', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '显示导航栏',                         '是否显示导航栏?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '自动发布',                   '是否允许会员提交链接后不经审核自动发布?', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '弹出方式',                         '是否点击产品缩图, 直接弹出窗口显示大图片和产品信息:', 'yesno', '0', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '每行产品数',             '每行显示的产品数量:', 'text', '4', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '每页产品数',                      '每页显示的产品数量:', 'text', '12', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '邮件通知',                   '会员提交产品图片及说明后, 按此邮箱地址通知管理员:<br />\r\n多个信箱可用英文逗号隔开, 不希望收到通知, 请留空.', 'text', '', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '自动发布',                  '是否允许会员提交产品图片后不经审核自动发布?', 'yesno', '0', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示点击率',                     '是否显示产品的点击次数?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示评论数',                  '是否显示产品的评论条数?', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示跳转',                    '是否显示产品类别下拉跳转栏?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示导航',                    '是否显示产品类别水平导航栏?', 'yesno', '1', 9) ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置', '居中显示', '窗口中是否居中显示产品图片?', 'yesno', '1', 11) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置', 'TinyMCE编辑器', '后台管理中编辑产品描述时是否启用TinyMCE中文编辑器?<br />注: 此项设置仅当系统基本设置中启用了TinyMCE编辑器时才有效.', 'yesno', '1', 12) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置', '验证码', '会员提交产品时, 是否需要填写验证码?', 'yesno', '1', 13) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '自动缩图',                       '是否在上传产品大图时自动生成缩图?<br />注: 自动生成缩图仅当产品图片为jpg或png图片时有效. 选择\"否\", 则需上传大图时同时上传缩图.', 'yesno', '1', 1)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '缩图最大宽度',                  '自动生成缩图的最大宽度(像素):', 'text', '100', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '缩图最大高度',                 '自动生成缩图的最大高度(像素):', 'text', '100', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '方形缩图',                '是否拉伸大图自动生成方形缩图?', 'yesno', '0', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置', '缩图边框', '是否显示缩图边框?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '自动中图',                '是否在上传产品大图时自动生成中图?<br />注: 自动生成中图仅当产品图片为jpg或png类型时有效, 选择\"否\", 将无法创建中图(系统不提供上传中图功能).', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '大图保持原始',                 '上传的产品大图是否保持原始尺寸?<br />如果此项设置为\"否\", 且\"自动中图\"设置为\"是\", 则仅显示产品中图, 且删除原上传图片.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '中图最大宽度',                    '自动生成中图的最大宽度(像素):', 'text', '400', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '中图最大高度',                   '自动生成中图的最大高度(像素):', 'text', '400', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '方型中图',                   '是否拉伸大图自动生成方形中图?', 'yesno', '0', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置', '中图边框', '是否显示中图边框?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '分类统计', '是否显示类别的产品数量统计? <br />如果网站访问速度太慢或有大量产品, 建议选\"否\".', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '显示方式', '是否以图片方式显示类别? <br />选择\"否\", 则仅显示类别名称.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '每行类别数', '每行显示的产品类别数, 设置为\"1\"表示纵向排列:', 'text', '4', 3) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '图片边框', '当类别以图片方式显示时, 是否显示图片边框?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '显示类别', '是否显示产品类别的下属分类别?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '根类别显示所有产品', '是否在产品模块的根类别下显示所有产品? 此时进入产品页面将显示所有产品; 选择否, 仅显示根类别下的产品.', 'yesno', '0', 6) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '边框设置', '边框颜色', '图片边框的颜色:<br />默认颜色: #606E9B', 'text', '#606E9B', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '边框设置', '边框间隙', '图片与边框之间的间隙(像素):<br />默认间隙: 3', 'text', '3', 2) ");


  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '分隔符',                '二级菜单间的分隔符号:<br/>提示: 二级菜单模块仅显示当前菜单中的二级菜单.', 'text', '<br />', 1) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '菜单样式',                   '是否使用以下自定义CSS样式?<br/>选择\'否\', 则使用网站模板CSS文件中设置的样式.' , 'yesno', '0', 2) ");
  DB_Query ("INSERT INTO " . CNTABLE_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 " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '活动时样式',                    '当前二级菜单的CSS样式(a: active):', 'text', 'font: 11px verdana; color: #6E8195;', 4) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '访问后样式',                   '二级菜单访问后的CSS样式(a: visited):', 'text', 'font: 11px verdana; color: #6E8195;', 5) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '翻转时样式',                     '二级菜单翻转时的CSS样式(a: hover):', 'text', 'font: 11px verdana; color: #6E8195;', 6) ");


  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sunday', '星期天', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Monday', '星期一', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Tuesday', '星期二', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Wednesday', '星期三', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Thursday', '星期四', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Friday', '星期五', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Saturday', '星期六', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sun', '周日', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Mon', '周一', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Tue', '周二', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Wed', '周三', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Thu', '周四', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Fri', '周五', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sat', '周六', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'January', '一月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'February', '二月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'March', '三月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'April', '四月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'May', '五月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'June', '六月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'July', '七月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'August', '八月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'September', '九月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'October', '十月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'November', '十一月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'December', '十二月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jan', '1月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Feb', '2月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Mar', '3月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Apr', '4月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'May', '5月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jun', '6月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jul', '7月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Aug', '8月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sep', '9月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Oct', '10月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Nov', '11月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Dec', '12月', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_comment_name',       '请输入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_comment',            '请输入评论内容!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'repeat_comment',           '请勿重复发表内容相同的评论!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'users_name',               '评论人:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'your_name',                '您的姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'comment',                  '评论内容:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'update_comment',           '保存更新', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'post_comment',             '发表评论', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'comments',                 '评论:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'edit',                     '编辑', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'delete',                   '删除', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'login_post_comments',      '请先登陆再发表评论!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'view_comments',            '查看评论', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'hide_comments',            '隐藏评论', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'more_comments',            '更多评论', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'login_view_page',          '对不起, 查看此页需要先登陆网站!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'wrong_password',           '密码错误!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'wrong_username',           '用户名不正确!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'please_enter_username',    '请输入用户名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'session_error',            '无法开始会话!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'you_are_banned',           '对不起, 您的用户名被锁定!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'ip_banned',                '对不起, 您的IP被禁止注册!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_view_access',           '对不起, 您所在的用户组无权访问此页!',       '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_post_access',           '对不起, 您所在的用户组无权发表留言!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_download_access',       '对不起, 您所在的用户组无权下载!',          '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_comment_access',        '对不起, 您所在的用户组无权发表评论!',      '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'url_not_found',            'URL未找到!',                          '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'page_not_found',           '无法找到此页面!',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'redirect_to_homepage',     '点击这里转向首页.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'not_yet_activated',        '您的帐号未激活! 请查收邮件并按要求激活帐号.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'incorrect_vvc_code',       '验证码不正确!',                                            '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_verify_code',        '请输入上图中显示的字符(区分大小写):', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'previous_page',            '&laquo; 上一页', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'next_page',                '下一页 &raquo;',     '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'page',                     '页',                  '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'of',                       '/',                    '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'published',                '发布: ', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'updated',                  '更新: ',                                          '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'discuss_article_in_forum', '在论坛中讨论此文章!',                 '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'by',                       '作者:',                                                 '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'read_more',                '点击查看...',                                       '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'previous',                 '&laquo; 上一页',                                   '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'next',                     '下一页 &raquo;',                                       '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'article_offline',          '此文章未发布!',                 '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'author',                   '作者:',                                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'title',                    '标题:',                                             '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'description',              '简要描述:',                                       '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'article',                  '详细内容:',                                           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'submit_article',           '发表文章',                                     '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_name',               '请输入您的姓名!',                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_title',              '请输入文章标题!',                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_description',        '请输入简要描述!',                      '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_article',            '请输入详细内容!',                           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'article_submitted',        '谢谢! 您的文章已提交, 如未发表请等待审核.',           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'print',                    '打印',                                              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'email',                    '发送邮件',                                              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_recipient_email',    '发送这篇文章到邮箱:',                              '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'separate_with_commas',     '多个邮箱请用英文逗号隔开.',           '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_your_email',         '您的Email地址:',                          '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_comment',            '您的对此文章的评论(可选):',                         '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'send_email',               '发送邮件',                                         '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'invalid_email',            '请输入有效的Email地址!',                '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'email_sent',               '以下文章已发送成功:',               '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'go_back',                  '点击返回到当前文章.',              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'email_not_sent',           '系统错误! 邮件发送未完成.', '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_from',                 '文章作者', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_subject',         '有新文章提交到您网站!', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_message',         '一个新文章已提交到您的网站, 如未发表请在后台审核.', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_author',      '作者', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_title',       '标题', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'website_url',              '网址:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'name',                     '姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'date',                     '日期:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'website_name',             '单位:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'message',                  '留言内容:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'submit_message',           '提交留言', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'reset',                    '重置', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_username',              '请输入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_message',               '请输入留言内容!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'message_too_long',         '留言内容的字符数不能超过', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'url_invalid',              '无效的网站URL!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_site_name',             '请输入网站名称!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'repeat_comment',           '请勿重复提交内容相同的留言!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'website',                  '单位:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'previous',                 '&laquo; 上一页', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'next',                     '下一页 &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'sign_guestbook',           '点击这里发表留言!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'characters',                    '字节!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 4, 'message_checking',                    '留言内容等待审核中...', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'full_name',                '您的姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'your_email',               'Email地址:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'subject',                  '您的问题:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'message',                  '详细内容:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'send_message',             '提交发送', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'reset',                    '重置', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'invalid_email',            'Email地址无效!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'no_post_access',           '对不起, 您所在的用户组无权提交联系信息!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'email_sent',               '谢谢! 您的问题已发送邮件给管理员.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'email_not_sent',           '系统错误! 邮件发送未完成.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 6, 'empty_fields',             '错误: 联系内容不完整!', '', '', '', '', '1', '0', '0') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'name',                     '姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'comment',                  '内容:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'say',                      '提交', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'no_username',              '请输入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'no_comment',               '请输入留言内容!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'repeat_comment',           '请勿重复提交内容相同的留言!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 7, 'view_history',             '查看全部留言', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 8, 'posted_by',                '作者', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 9, 'user',                     '用户名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 9, 'posts',                    '发帖数:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'my_account',              '我的帐号', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'welcome_back',            '欢迎回来!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'logout',                  '安全退出', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'username',                '用户名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'password',                '密码:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'remember_me',             '记住我', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'login',                   '登陆', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'not_registered',          '您注册了吗?', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'register_now',            '马上注册!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'private_messages',        '论坛短信:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'unread_total',            ' 条未读, 共计 ', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'new_priv_msg',            '您有新短信!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'title',                   '标题:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'sender',                  '发送人:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'click_ok',                '点击\"确定\"查看, 点击\"取消\"隐藏提示.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'open_msg',                '在新窗口中打开吗?', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'new_priv_msg_title',      '查看新短信', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'forgot_password',         '忘记密码?',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 10, 'admin_panel',             '管理员控制面板', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'no_changes_entered',      '没有做任何修改!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'enter_valid_password',    '密码仅能用字母或数字组成!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'password_unmatched',      '新密码与确认密码不匹配!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'enter_valid_email',       'Email地址无效!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'email_already_exists',    'Email地址已被使用, 请重新输入!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'profile_updated',         '用户资料已成功更新!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'new_password',            '新密码:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'confirm_password',        '确认密码:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'new_email',               'Email地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'update_profile',          '提交更新', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'visit_cp',                '点击这里进入您的控制面板.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_fullname',               '姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_company',               '所属单位:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_add',               '通讯地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_postcode',               '邮编:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_tel',               '电话:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_fax',               '传真:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_online',               '在线联系:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_website',               '网址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_name',               '用户名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password',                '密码:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_again',          '确认密码:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email',                   'Email地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_again',             '确认Email地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_fullname',               '姓名:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_company',               '所属单位:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_add',               '通讯地址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_postcode',               '邮编:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_tel',               '电话:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_fax',               '传真:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_online',               '在线联系:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_website',               '网址:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'register',                '注册', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'reset_form',              '重置', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'enter_alnum_username',    '用户名仅能用字母或数字组成!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'enter_alnum_password',    '密码仅能用字母或数字组成!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_unmatched',      '您输入的密码与确认密码不匹配!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'unvalid_email',           'Email地址无效!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_unmatched',         '您输入的Email地址与确认Email地址不匹配!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'username_exists',         '用户名已被注册, 请重新输入!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_exists',            'Email地址已被注册, 请重新输入!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'register_success',        '感谢您的注册!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'already_logged_in',       '您已经注册, 并登陆为:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'logout',                  '如果您希望退出, 请点击这里.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'register_now',            '点击这里注册!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_banned',            '您输入的Email地址禁止注册!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'pwd_reset',               '取回密码',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_not_found',         '您输入的Email地址不正确:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_subject',                          '您的新密码',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message',                          '您的新密码是: ',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_reset_success',  '系统已为您生成了一个新密码, 并发送到您的邮箱中, 请查收.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'activation_required',                  '感谢您的注册! 一封确认邮件已发送到您的信箱, 请按邮件中的提示信息激活您的帐号.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'activation_required_manual',                  '感谢您的注册! 我们将在1-2个工作日内完成您的注册审核, 请耐心等待!',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_subject_activation', '感谢您的注册!',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message_activation', '感谢您的注册! 请点击以下链接激活您的帐号:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'validation_key_not_found', '您的帐号未注册! 请正确地拷贝链接.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'already_validated',                 '您的帐号已激活, 可以使用用户名和密码登陆网站了.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'validation_success',                 '您的帐号已激活, 可以使用用户名和密码登陆网站了.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'registration_turnoff',                 '对不起! 新用户注册功能已关闭, 请与管理员联系.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message_resetpassword',                 '点击以下链接重设您的密码:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_reset_confirm',                 '一封重设密码的确认邮件已发送到您的邮箱, 请查收并点击其中的链接来完成密码的重新设定.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 12, 'invalid_link',                 '重设密码的链接无效!',                         '', '', '#FF0000', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'sections',                '分类:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submitting_link',         '申请链接', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'your_name',               '您的姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'website_name',            '网站名称:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'website_url',             '网站URL:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'description',             '网站介绍:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submit_link',             '提交申请', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submit_a_link',           '点击这里在此类中申请链接!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submitted_by',            '来自:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'previous_links',          '&laquo; 上一页', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'more_links',              '下一页 &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_name',              '请输入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_site_name',         '请输入网站名称!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_site_url',          '请输入网站URL!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'url_invalid',             '网站URL无效!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_description',       '请输入网站介绍!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'link_submitted',          '申请链接提交成功! 如未发布, 请等待审核.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_from',        '友情链接模块', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_subject',         '有新申请链接提交到您的网站!','', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_message',         '有新申请链接提交到您的网站, 如友情链接模块设置为审核发布, 请尽快到网站后台审核.',  '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_author',     '申请人', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_website',    '网站名称', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_url',        '网站URL', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_description','网站介绍', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'sections',                '分类:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'no_gif_support',          '网站已开启自动缩图功能, 仅支持jpg和png图片格式!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'previous_images',         '&laquo; 上一页', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'more_images',             '下一页 &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submitted_by',            '来自:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submit_an_image',         '提交产品到此类别.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submitting_image',        '提交产品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'your_name',               '您的姓名:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'description',             '产品描述:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'thumbnail',               '产品缩图:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image',                   '产品图片:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submit_image',            '提交产品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image_title',             '产品名称:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_title',             '请输入产品名称!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_author',            '请输入您的姓名!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'select_image',            '请选择产品图片!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'select_thumbnail',        '请选择产品缩图', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_description',       '请输入产品描述!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image_submitted',         '谢谢! 产品提交成功.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'previous_image',          '&laquo; 上一个', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'next_image',              '下一个 &raquo;',     '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'invalid_image_type',      '无效的图片类型!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'views',                   '查看次数:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'jump_to',                 '跳转到...', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'comments',                '个评论', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'comment',                '评论', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image2',                '个产品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'images',                '个产品', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'images2',                '产品列表:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'specification',               '技术规格:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'priceship',               '价格及运输:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'descriptiontitle',               '基本信息', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'specificationtitle',               '技术规格', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "phrases VALUES (NULL, 17, 'priceshiptitle',               '价格及运输', '', '', '', '', 0, 0, 0)");

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

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

  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '失望',         ':|',   'disappointed.gif') ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '快乐',         ':H',   'happy.gif')        ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '忧愁',          ':(',   'sad.gif')          ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '微笑',         ':)',   'smile.gif')        ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '愤怒',         ':@',       'angry.gif')        ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '害羞',         ':B',       'blush.gif')        ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '无耻',         ':C',      'cheeky.gif')       ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '可恶',         ':S',        'darn.gif')         ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '去死',         ':D',        'dead.gif')         ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '惊讶',         ':O',         'eek.gif')         ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '难堪',         ':$',       'embar.gif')  ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '求助',         ':?',        'help.gif')         ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '爱意',         ':L',         'luv.gif')          ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '赞扬',         ':G',          'ok.gif')           ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '眨眼',         ';)',        'wink.gif')         ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '呵欠',         ':Y',        'yawn.gif')         ");
  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "smilies VALUES (NULL, '美味',         ':T',         'yum.gif')          ");


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


  DB_Query ("INSERT INTO " . CNTABLE_PREFIX . "usergroups VALUES (1, '0', '系统管理员',   '1', '1', '1', '1,2,3,4,5,6,7,8', '1,2,3,4,5,7,8', '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 " . CNTABLE_PREFIX . "usergroups VALUES (2, '0', '信息管理员',       '0', '1', '1', '1,2,3,4,5,6,7,8', '1,2,3,4,5,7,8', '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 " . CNTABLE_PREFIX . "usergroups VALUES (3, '0', '注册用户', '0', '0', '0', '1,2,3,4,5,6,7,8', '1,2,3,4,5,7,8', '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 " . CNTABLE_PREFIX . "usergroups VALUES (4, '0', '游客',           '0', '0', '0', '1,2,3,4,5,6,8',   '1,2,3,4,5,6,8',   '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '4,6',                 '', '',        '',                                '1', ''  ) ");

  //安装中文数据库结束
  
  //安装English数据库

  DB_Query ("CREATE TABLE " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_PREFIX . "categories VALUES (1, 0, 1, 'Home',          'home',      1, '', '', 65, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (2, 0, 2, 'Guestbook',     'guestbook', 2, '', '', 100, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (3, 0, 4, 'Products',      'products',   3, '', '', 100, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (4, 0, 2, 'Links',         'links',     4, '', '', 70, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (5, 0, 2, 'Contact',       'contact',   5, '', '', 70, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (6, 0, 2, 'Register',      'register',  6, '', '', 90, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (7, 0, 2, 'My Account',       'profile',   7, '', '', 105, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "categories VALUES (8, 0, 1, 'Chinese',      'chinese',  8, 'index.php?lang=cn', '', 90, 0) ");

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "custommodules VALUES (1, '联系我们', 'Contact us!', 'Need to contact us?<br /><br /><a href=\"index.php?categoryid=5\">Click Here!</a>', '', '17') ");


  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'enablewysiwyg',   '系统设置',   'yesno', 'TinyMCE编辑器', '后台管理是否开启TinyMCE编辑器?<br /><br />weenCompany闻名企业网站系统安装了功能强大的TinyMCE编辑器, 默认为开启状态。如果您对HTML, JavaScript等比较熟练，可以关闭此功能.', '1') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'simpletingymce',   '系统设置',         'yesno', '编辑器简洁模式', 'TinyMCE编辑器简洁模式下仅加载常用编辑工具, 具有更快的显示速度.', '1') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'checkforupdates', '系统设置',   'yesno', '检查最新版本', '允许weenCompany自动检查最新版本?', '1')");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'admincookietimeout','系统设置', 'text', '管理员Cookie过期时间', '管理员处于不活动状态, 需要重新登录的时间间隔(秒):', '1800')");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'admin_dir',   '系统设置',         'text', '后台管理目录', '进入weenCompany系统后台管理的目录名称:<br><br>默认的后台管理目录为admin, 如果自定了后台管理目录, 则需要使用FTP工具将网站中的admin文件夹改为对应的名称; 同时需要将网站根目录下的robots.txt文件中的admin改为对应的名称, 以防止搜索引擎抓取后台数据.', 'admin') ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'offmessage',      '开关设置',       'textarea', '关闭时显示', '网站关闭时显示:', 'We are currently maintaining database, please check back soon, thanks!') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'websitetitle',    '网站设置',         'text', '网站title名称', '显示在浏览器上方的网站title:', 'weenCompany Web System') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'technicalemail',  '网站设置',         'text', '管理员信箱', '网站运行错误将发Email至管理员信箱:<br />\r\n不希望收到网站运行错误请留空.<br />\r\n多个信箱请用英文逗号隔开.', '') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'metakeywords',    '网站设置',         'text', 'Meta关键字', '便于搜索引擎收录您的网站，多个Meta关键字需用英文逗号隔开:', 'weenCompany闻名企业网站系统,企业自助建站系统') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'metadescription', '网站设置',         'text', 'Meta描述', '便于搜索引擎搜索您的网站，多个Meta描述需用英文逗号隔开:', 'weenCompany闻名企业网站系统,企业自助建站系统') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'categorytitle',   '网站设置',         'yesno', 'title关联', '选择是否将菜单名称关联到网站title中.', '1') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'copyrighttext',   '网站设置',         'text', '版权信息', '网站的版权信息将添加到\'Created by weenCompany\'之前:', 'Ween Company Website') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'websitebeian',   '网站设置',         'text', '备案信息', '在网站的版权信息后面添加备案信息链接:', '京ICP备888888号') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'modrewrite',      '网站设置',         'yesno', '友好访问', '如果您的网站服务器是Apache环境，且Rewrite重写模式开启，可将此项设置为是，有利于搜索引擎收录您的网页. <br>当设置为是后，如果网站前台菜单链接无效，则说明服务器不支持，需要重新设置为否.', '0')");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'gzipcompress',    '网站设置',         'yesno', 'GZip压缩传送', '是否使用GZip压缩传送提高TinyMCE编辑器加载和传输速度?<br>注: 要求服务器为PHP4或以上版本, 且zlib压缩功能已关闭.', '0')");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_host',   'SMTP邮件设置',         'text', 'SMTP服务器地址', 'SMTP邮件服务器地址:<br>如: mail.weentech.com 或邮件服务IP地址.', '') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_port',   'SMTP邮件设置',         'text', '服务器端口', 'SMTP邮件服务器的端口号.', '25') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_require_auth',   'SMTP邮件设置',         'yesno', 'SMTP邮件验证', 'SMTP方式发送邮件时, 邮件服务器是否要求验证用户?', '1') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_user',   'SMTP邮件设置',         'text', 'SMTP服务器用户名', '登录SMTP邮件服务器的用户名:<br>注: 有时用户名需要填写为此用户在SMTP服务器上对应的邮箱地址, 如: weentech@yoursite.com', 'weentech') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_pass',   'SMTP邮件设置',         'password', 'SMTP服务器密码', '登录SMTP邮件服务器的用户密码:', '') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'email_smtp_from',   'SMTP邮件设置',         'text', 'SMTP服务器邮箱', '与SMTP邮件服务器用户名对应的用户Email地址:', 'weentech@yoursite.com') ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_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 " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'daylightsavings', '时区设置', 'yesno', '夏时制', '如该时区正实行夏时制，可将此功能打开，以便显示正确的时间:', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'smiliesystem', 'Smilies', '', 'Smilie System', '', 'weenCompany') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'language',             'NA',                    '', 'Language', '', 'default.php|5.0|gb2312') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'bfo',             'NA',                    '', 'bfo', '', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "mainsettings VALUES (NULL, 'sdversion',       '',                      '',     'version', 'weenCompany Version', '$wcversion') ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "m2_news       VALUES (NULL, 1, 3, 0, 1, '" . time() . "', 0, 0, 0, 'Admin', 'Welcome to your new weenCompany website!', '', '', '', 'weenCompany CWS is easy and convenient for building your company website!<br /><br /><a href=\"admin\">Click here</a> to begin updating and changing your website from the admin panel.', 2, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "m4_guestbook  VALUES (1, 0, 'Admin', 'weenCompany', 'http://www.weentech.com', 'Nice website!', " . time() . ") ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "m7_chatterbox VALUES (1, 1, 'Admin', 'Hi, Everybody!', " . time() . ")");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "m16_sections  VALUES (1, 0, 1, 'Links', '', '时间(降序)') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "m16_links     VALUES (1, 1, 1, 1, 1, 'Admin', 'weentech.com', 'http://www.weentech.com', 'Technics service for weenCompany CWS!') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "m17_sections  VALUES (NULL, 0, 1, 1, 'Products', '', '时间(降序)', NULL, " . time() . ")");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "m18_hitcounter VALUES (0,0,1,8,3600,'You\'re visitor number: ')");  

  // pagesort with Default Template
  DB_Query ("INSERT INTO " . ENTABLE_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),
  (8, '1', 1),
  (8, '1', 2),
  (8, '1', 3),
  (8, '1', 4),
  (8, '1', 5),
  (8, '1', 6),
  (8, '1', 7),
  (8, '1', 8),
  (8, '1', 9),
  (8, '1', 10),
  (8, '1', 11),
  (8, '1', 12),
  (8, '1', 13),
  (8, '1', 14),
  (8, '1', 15),
  (8, '1', 16),
  (8, '1', 17),
  (8, '1', 18),
  (8, '1', 19),
  (8, '1', 20) ");

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (1,  '--empty--',         '',                 '',    'm1_empty/empty.php',                            '',                                      'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (2,  '文章模块',          'News',             '2.0', 'm2_news/news.php',                              'm2_news/m2_settings.php',               'weencompany', '1', 27) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (3,  '最新文章',   'Latest News',      '2.0', 'm3_latestnews/latestnews.php',                  'm3_latestnews/m3_settings.php',         'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (4,  '留言簿',         'Guestbook',        '2.0', 'm4_guestbook/guestbook.php',                    'm4_guestbook/m4_settings.php',          'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (6,  '联系框',      'Contact us',      '2.0', 'm6_contactform/contactform.php',               'm6_contactform/m6_settings.php',       'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (7,  '留言板',        'Message Board',       '2.0', 'm7_chatterbox/chatterbox.php',                  'm7_chatterbox/m7_settings.php',         'weencompany', '1', 19) ");

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (8,  '最新话题',      'Latest Posts',     '2.0', 'm8_latestposts/latestposts.php',               'm8_latestposts/m8_settings.php',       'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (9,  '发帖排行',       'Top Posters',      '2.0', 'm9_topposters/topposters.php',                 'm9_topposters/m9_settings.php',        'weencompany', '1', 17) ");

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (10, '用户登陆',  'Login Panel',      '2.0', 'm10_loginpanel/loginpanel.php',              'm10_loginpanel/m10_settings.php',    'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (11, '用户资料',      'My Account',          '2.0', 'm11_usercp/usercp.php',                      'm11_usercp/m11_settings.php',        'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (12, '用户注册', 'Registration',     '2.0', 'm12_registration/register.php',              'm12_registration/m12_settings.php',  'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (16, '链接模块',    'Link Directory',   '2.0', 'm16_linkdirectory/linkdirectory.php',         'm16_linkdirectory/m16_settings.php',   'weencompany', '1', 19) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (17, '产品模块',     'Products',    '2.0', 'm17_products/imagegallery.php',            'm17_products/m17_settings.php',    'weencompany', '1', 27) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (18, '网站计数器',     'Hits Counter',    '2.0', 'm18_hitcounter/hitcounter.php',            'm18_hitcounter/m18_settings.php',    'weencompany', '1', 17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modules VALUES (31, '二级菜单',  'Subcategory Menu', '2.0', 'm31_submenu/m31_submenu.php', 'm31_submenu/m31_settings.php', 'weencompany', '1', 17) ");

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示标题',                      'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示作者',                     'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示发布日期',              'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示更新日期',               'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示打印',         'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示发送邮件',         'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '简要描述显示在详细内容中', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示表情符号',              'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '显示设置', '',                                     '显示用户评论',              'yesno', '1', 9) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '邮件通知',                 '会员提交文章条目后, 按此邮箱地址通知管理员: <br />不希望收到通知, 请留空.<br />\r\n多个信箱地址可用英文逗号隔开.', 'text', '', '1') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '自动发布',                    '是否允许会员提交文章条目后不经审核自动发布? ', 'yesno', '0', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '文章推广',                '是否允许用户将文章内容Email给朋友?', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '邮件验证码',                     '用户将文章内容Email给朋友时, 是否需要填写验证码?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '文章验证码',                     '会员发表文章时, 是否需要填写验证码?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 2,  '模块设置',                  '列表显示',                     '文章模块是否以文章列表的方式显示?', 'yesno', '0', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '目标模块',                                '选择\'最新文章\'模块的目标模块ID, 即从哪个\'文章模块\'中提取最新文章:<br/>注: 在模块管理中或将鼠标箭头移到模块名称上, 可查看模块ID号. 必须是文章模块或其复制模块, 且仅能设置为一个模块.', 'text',  '2',  1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '条目数',                                '模块中显示的最新文章条目数:', 'text',  '10',  2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '目标菜单',                   '是否仅从\'最新文章\'模块被包含在某特定菜单中的\'文章模块\'中提取最新文章?<br />如果设置为\'是\', 则\'关联菜单\'和\'匹配菜单\'选项设置无效.',                                  'yesno', '0',   3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '关联菜单',                   '\'最新文章\'模块从哪些菜单所包含的\'文章模块\'中提取最新文章, 输入要关联的菜单ID, 并用英文逗号隔开(如: 1,3,6):<br/>注: 在菜单管理中或将鼠标箭头移到菜单上, 可查看菜单ID号, 留空表示关联所有菜单.',  'text',  '',    4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '匹配菜单',                  '此选项可与\'关联菜单\'配合使用, 不使用可留空. 如: \'关联菜单\'设置为\'1,3\', 此项设置为: \'2,6\', 则表示: 如果菜单1中放置了\'最新文章\'模块, 则其从菜单2中的\'文章模块\'提取最新文章; 如果菜单3中放置了\'最新文章\', 则其从菜单6中的\'文章模块\'提取最新文章.',  'text',  '',    5) ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示菜单名称',                '是否在最新文章的标题后面显文章所在菜单的名称?',                                                                 'yesno', '0',   7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示简要描述',                  '是否在最新文章标题下面显示文章的简要描述?',                                                                             'yesno', '0',   8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示查看详情',                            '当\'显示简要描述\'设置为\'是\'时, 是否显示\'查看详情\'链接?',           'yesno', '0',   9) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示作者',                       '是否显示文章作者?',                                                                           'yesno', '0',  10) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示发布日期',                '是否显示文章的发布日期?',                                                                         'yesno', '0',  11) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示打印',         '是否显示打印文章链接?',                                                                     'yesno', '0',  12) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '显示发送邮件',         '是否显示发送邮件链接便于用户推广文章?',                                                                     'yesno', '0',  13) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '粗体标题',                           '是否显示文章标题为粗体字?',                                                                 'yesno', '0',  14) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '标题链接',                           '是否转换文章标题为查看全文链接(仅当\'显示简要描述\'选项设置为\'是\'时有效)?',                                                     'yesno', '1',  15) ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '菜单链接',                        '是否显示菜单为链接(仅当\'分组显示\'设置为菜单名称方式或\'显示菜单名称\'设置为是时有效)?',      'yesno', '0',  17) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '群组分隔符',                      '当最新文章以分组方式显示时, 群组间的分隔符号:',                                            'text',  '<br />', 18) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '组与文章分隔符',              '当最新文章以分组方式显示时, 分组名称与文章间的分隔符号:',                                  'text',  '<br />', 19) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '文章分隔符',               '模块内最新文章之间的分隔符(仅当\'分组显示\'设置为不分组时有效):',            'text',  '<br />', 20) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 3,  '模块设置',                  '标题字节数',               '最新文章标题显示的字节数:',            'text',  '36', 21) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '审核发布',                       '用户提交的留言是否经过审核后才能发布?', 'yesno', '0', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '允许表情符号',                       '允许表情符号可以使输入的表情代码字符组合转换成表情符号.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '显示条目数',                    '模块内显示的每页内容条目数量:', 'text', '10', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '内容字符长度',                       '内容中可输入的最大字符数量:', 'text', '200', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '换行字符数',                            '插入换行符的字符数量(\"0\"表示不插入换行):', 'text', '0', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '显示发表日期',                       '是否显示用户发表留言的日期?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 4,  '模块设置',                  '验证码',                     '用户发表留言时, 是否需要填写验证码?', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 6,  '模块设置',                  '收件箱',                                '用户提交的联络信息以邮件的方式发送至:<br />\r\n多个邮箱地址可用英文逗号隔开.', 'text', '', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 6,  '模块设置',                  '验证码',                     '用户提交联系信息时是否需要填写验证码?', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '允许表情符号',                       '允许表情符号可以使输入的表情代码字符组合转换成表情符号.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '显示条目数',        '模块内显示的内容条目数量:', 'text', '5', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '换行字符数',                            '插入换行符的字符数量(\"0\"表示不插入换行):', 'text', '0', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '用户名长度',              '非注册用户可输入姓名的最多字符数:', 'text', '12', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '内容长度',               '内容中可输入的最大字符数量:', 'text', '80', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '目标菜单',                   '当不同的网站菜单中包含此模块时, 仅显示打开该菜单时提交的内容.', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '显示全部内容',                   '显示一个链接, 在新窗口中打开全部模块内容.', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 7,  '模块设置',                  '显示发表时间',                         '是否显示留言发表的日期和时间?', 'yesno', '0', 10) ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模块设置',                  '最新话题条目数',            '最新话题模块中显示的论坛最新主题条目数:', 'text', '5', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模块设置',                  '换行字符数',                            '设定标题换行的字符数量:', 'text', '30', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 8,  '模块设置',                  '排除论坛',                       '最新话题模块不从被排除的论坛中选择话题, 比如私密论坛:<br/>注: 需输入论坛ID号, 多个排除论坛ID需用英文逗号隔开.', 'text', '', '3') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 9,  '模块设置',                  '显示用户数量',     '发帖排行模块中显示的用户数量:', 'text', '5', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '显示头像',                       '会员登陆后是否在显示头像?<br/>注: 仅当使用论坛接口后有效.', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '短信统计',                             '会员登陆后是否显示内部短信息统计数据?<br/>注: 仅当使用论坛接口后有效.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '短信通知',                          '会员收到最新短信后是否弹出Javascript小窗口通知?<br/>注: 仅当使用论坛接口且\'短信统计\'设置为是时有效.', 'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 10, '模块设置',      '管理链接',                   '有管理权限的用户前台登陆后, 是否显示转向后台管理的链接?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '校验方式',           '提交注册信息时, 是否弹出小窗口显示错误信息?<br/>注: 选择\'否\'则以网页方式显示错误信息.', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '用户名长度',              '可输入用户名的最大长度:', 'text', '12', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '密码长度',              '可输入密码的最大长度:', 'text', '15', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '禁止Email地址',               '禁止注册的Email地址(以空格分开):<br />注: 禁止特定Email地址如: info@weentech.com; 禁止全部地址如: @weentech.com.', 'textarea', '', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '禁止IP地址',                  '被禁止注册和访问的IP地址(以空格分开):<br/>注: 可禁止特定的IP地址, 或使用通配符禁止子网络IP地址如: 192.168.*.*', 'textarea', '', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '人工审核',             '用户注册是否进行人工审核?<br>注: 选择人工审核, 邮件验证功能失效.', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',     '邮件验证',             '是否发送一封验证邮件到用户注册的信箱, 并在用户验证后完成注册?', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',         '验证码',                                         '注册时是否输入验证码?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12, '模块设置',         '关闭注册',                                         '是否关闭新用户注册, 关闭后已注册用户仍可正常登录?', 'yesno', '0', 9) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示姓名',      '是否在用户注册时显示姓名?',            'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示单位',      '是否在用户注册时显示所属单位?',            'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示地址',      '是否在用户注册时显示通讯地址?',            'yesno', '1', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示邮编',      '是否在用户注册时显示邮编?',            'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示电话',      '是否在用户注册时显示电话?',            'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示传真',      '是否在用户注册时显示传真?',            'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示在线联系',      '是否在用户注册时显示在线联系?',            'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 12,  '显示设置',      '显示网址',      '是否在用户注册时显示网址?',            'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '每页链接数',                       '每页显示的链接数量:', 'text', '20', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '每行链接数',              '每行显示的链接数量:', 'text', '4', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '邮件通知',                    '会员提交链接后, 按此邮箱地址通知管理员:<br />\r\n多个信箱可用英文逗号隔开, 不希望收到通知, 请留空.', 'text', '', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '显示导航栏',                         '是否显示导航栏?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '自动发布',                   '是否允许会员提交链接后不经审核自动发布?', 'yesno', '0', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 16, '模块设置',                  '验证码',                     '会员提交链接申请时, 是否需要填写验证码?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '弹出方式',                         '是否点击产品缩图, 直接弹出窗口显示大图片和产品信息:', 'yesno', '0', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '每行产品数',             '每行显示的产品数量:', 'text', '4', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '每页产品数',                      '每页显示的产品数量:', 'text', '12', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '邮件通知',                   '会员提交产品图片及说明后, 按此邮箱地址通知管理员:<br />\r\n多个信箱可用英文逗号隔开, 不希望收到通知, 请留空.', 'text', '', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '自动发布',                  '是否允许会员提交产品图片后不经审核自动发布?', 'yesno', '0', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示点击率',                     '是否显示产品的点击次数?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示评论数',                  '是否显示产品的评论条数?', 'yesno', '1', 7) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示跳转',                    '是否显示产品类别下拉跳转栏?', 'yesno', '1', 8) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置',                  '显示导航',                    '是否显示产品类别水平导航栏?', 'yesno', '1', 9) ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置', '居中显示', '窗口中是否居中显示产品图片?', 'yesno', '1', 11) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置', 'TinyMCE编辑器', '后台管理中编辑产品描述时是否启用TinyMCE中文编辑器?<br />注: 此项设置仅当系统基本设置中启用了TinyMCE编辑器时才有效.', 'yesno', '1', 12) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '基本设置', '验证码', '会员提交产品时, 是否需要填写验证码?', 'yesno', '1', 13) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '自动缩图',                       '是否在上传产品大图时自动生成缩图?<br />注: 自动生成缩图仅当产品图片为jpg或png图片时有效. 选择\"否\", 则需上传大图时同时上传缩图.', 'yesno', '1', 1)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '缩图最大宽度',                  '自动生成缩图的最大宽度(像素):', 'text', '100', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '缩图最大高度',                 '自动生成缩图的最大高度(像素):', 'text', '100', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置',        '方形缩图',                '是否拉伸大图自动生成方形缩图?', 'yesno', '0', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '缩图设置', '缩图边框', '是否显示缩图边框?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '自动中图',                '是否在上传产品大图时自动生成中图?<br />注: 自动生成中图仅当产品图片为jpg或png类型时有效, 选择\"否\", 将无法创建中图(系统不提供上传中图功能).', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '大图保持原始',                 '上传的产品大图是否保持原始尺寸?<br />如果此项设置为\"否\", 且\"自动中图\"设置为\"是\", 则仅显示产品中图, 且删除原上传图片.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '中图最大宽度',                    '自动生成中图的最大宽度(像素):', 'text', '400', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '中图最大高度',                   '自动生成中图的最大高度(像素):', 'text', '400', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置',              '方型中图',                   '是否拉伸大图自动生成方形中图?', 'yesno', '0', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '中图设置', '中图边框', '是否显示中图边框?', 'yesno', '1', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '分类统计', '是否显示类别的产品数量统计? <br />如果网站访问速度太慢或有大量产品, 建议选\"否\".', 'yesno', '1', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '显示方式', '是否以图片方式显示类别? <br />选择\"否\", 则仅显示类别名称.', 'yesno', '1', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '每行类别数', '每行显示的产品类别数, 设置为\"1\"表示纵向排列:', 'text', '4', 3) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '图片边框', '当类别以图片方式显示时, 是否显示图片边框?', 'yesno', '1', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '显示类别', '是否显示产品类别的下属分类别?', 'yesno', '1', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '类别设置', '根类别显示所有产品', '是否在产品模块的根类别下显示所有产品? 此时进入产品页面将显示所有产品; 选择否, 仅显示根类别下的产品.', 'yesno', '0', 6) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '边框设置', '边框颜色', '图片边框的颜色:<br />默认颜色: #606E9B', 'text', '#606E9B', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 17, '边框设置', '边框间隙', '图片与边框之间的间隙(像素):<br />默认间隙: 3', 'text', '3', 2) ");


  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '分隔符',                '二级菜单间的分隔符号:<br/>提示: 二级菜单模块仅显示当前菜单中的二级菜单.', 'text', '<br />', 1) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '菜单样式',                   '是否使用以下自定义CSS样式?<br/>选择\'否\', 则使用网站模板CSS文件中设置的样式.' , 'yesno', '0', 2) ");
  DB_Query ("INSERT INTO " . ENTABLE_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 " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '活动时样式',                    '当前二级菜单的CSS样式(a: active):', 'text', 'font: 11px verdana; color: #6E8195;', 4) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '访问后样式',                   '二级菜单访问后的CSS样式(a: visited):', 'text', 'font: 11px verdana; color: #6E8195;', 5) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "modulesettings VALUES (NULL, 31, '模块设置',      '翻转时样式',                     '二级菜单翻转时的CSS样式(a: hover):', 'text', 'font: 11px verdana; color: #6E8195;', 6) ");


  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sunday', 'Sunday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Monday', 'Monday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Tuesday', 'Tuesday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Wednesday', 'Wednesday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Thursday', 'Thursday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Friday', 'Friday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Saturday', 'Saturday', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sun', 'Sun', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Mon', 'Mon', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Tue', 'Tue', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Wed', 'Wed', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Thu', 'Thu', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Fri', 'Fri', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sat', 'Sat', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'January', 'January', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'February', 'February', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'March', 'March', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'April', 'April', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'May', 'May', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'June', 'June', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'July', 'July', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'August', 'August', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'September', 'September', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'October', 'October', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'November', 'November', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'December', 'December', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jan', 'Jan', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Feb', 'Feb', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Mar', 'Mar', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Apr', 'Apr', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'May', 'May', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jun', 'Jun', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Jul', 'Jul', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Aug', 'Aug', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Sep', 'Sep', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Oct', 'Oct', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Nov', 'Nov', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'Dec', 'Dec', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_comment_name',       'Please fill out the name field!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_comment',            'Please fill out the comment field!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'repeat_comment',           'Repeat comment not posted!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'users_name',               'User\'s Name:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'your_name',                'Your Name:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'comment',                  'Comment:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'update_comment',           'Update Comment', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'post_comment',             'Post Comment', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'comments',                 'Comments:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'edit',                     'Edit', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'delete',                   'Delete', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'login_post_comments',      'You must be logged in to post comments!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'view_comments',            'View Comments', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'hide_comments',            'Hide Comments', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'more_comments',            'More Comments', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'login_view_page',          'Sorry, you must be logged in to view this page!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'wrong_password',           'Wrong Password', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'wrong_username',           'Wrong Username', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'please_enter_username',    'Please enter a username!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'session_error',            'Couldn\'t start session!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'you_are_banned',           'You have been banned!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'ip_banned',                'Your IP address has been banned!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_view_access',           'Sorry, your account does not have access to this section!',       '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_post_access',           'Sorry, your account does not have access to submit message!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_download_access',       'Sorry, your account does not have access to downloads!',          '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'no_comment_access',        'Sorry, your account does not have access to post comments!',      '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'url_not_found',            'URL Not Found!',                          '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'page_not_found',           'Page Not Found!',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'redirect_to_homepage',     'Click here to redirect to the homepage.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'not_yet_activated',        'Your haven\'t yet activated your account! Check your email for the activation instructions.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'incorrect_vvc_code',       'Incorrect confirmation code!',                                            '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 1, 'enter_verify_code',        'Enter the code you see in the image above(case sensitive):', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'previous_page',            '&laquo; Previous Page', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'next_page',                'Next Page &raquo;',     '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'page',                     'Page',                  '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'of',                       'of',                    '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'published',                'Published: ', '', '', '', '', '0', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'updated',                  'Updated: ',                                          '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'discuss_article_in_forum', 'Discuss this article in the Forum!',                 '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'by',                       'By',                                                 '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'read_more',                'Read More...',                                       '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'previous',                 '&laquo; Previous',                                   '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'next',                     'Next &raquo;',                                       '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'article_offline',          'This article is currently offline!',                 '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'author',                   'Author:',                                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'title',                    'Title:',                                             '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'description',              'Description:',                                       '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'article',                  'Article:',                                           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'submit_article',           'Submit Article',                                     '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_name',               'Please enter your name!',                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_title',              'Please enter the title!',                            '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_description',        'Please enter the description!',                      '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_article',            'Please enter an article!',                           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'article_submitted',        'Thanks! Your article has been submitted.',           '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'print',                    'Print',                                              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'email',                    'Email',                                              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_recipient_email',    'Send this article to:',                              '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'separate_with_commas',     'Separate multiple addresses with commas.',           '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_your_email',         'Enter your email address:',                          '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'enter_comment',            'Enter an optional comment:',                         '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'send_email',               'Send Email',                                         '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'invalid_email',            'Please enter a valid email address!',                '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'email_sent',               'The following article has been sent:',               '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'go_back',                  'Click here to go back to the article.',              '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'email_not_sent',           'A system error occured. Your message was not sent!', '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_from',                 'Article Module', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_subject',         'New article submitted to your website!', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_message',         'A new article has been submitted to your website.', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_author',      'Author', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 2, 'notify_email_title',       'Title', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'website_url',              'Website:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'name',                     'Name:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'date',                     'Date:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'website_name',             'Company:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'message',                  'Message:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'submit_message',           'Submit Message', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'reset',                    'Reset', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_username',              'Please fill out the username field!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_message',               'Please fill out the message field!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'message_too_long',         'Message length must be less than', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'url_invalid',              'Website URL is invalid!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'no_site_name',             'Please enter the site name of the url specified!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'repeat_comment',           'Repeat comment not posted!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'website',                  'Company:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'previous',                 '&laquo; Previous', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'next',                     'Next &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'sign_guestbook',           'Click here to leave a message!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'characters',               'characters', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 4, 'message_checking',                    'This message is being verified...', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'full_name',                'Full Name:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'your_email',               'Your Email:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'subject',                  'Subject:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'message',                  'Message:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'send_message',             'Send Message', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'reset',                    'Reset', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'invalid_email',            'Invalid Email entered!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'no_post_access',           'Sorry, your account does not have access to submit contact information!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'email_sent',               'Thanks! Your email has been sent!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'email_not_sent',           'A system error occured. Your message was not sent!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 6, 'empty_fields',             'Error: One of the required field(s) is empty!', '', '', '', '', '1', '0', '0') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'name',                     'Name:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'comment',                  'Comment:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'say',                      'Say', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'no_username',              'No username supplied!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'no_comment',               'No comment supplied!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'repeat_comment',           'Repeat comment not posted!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 7, 'view_history',             'View Message History', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 8, 'posted_by',                'Posted by', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 9, 'user',                     'User:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 9, 'posts',                    'Posts:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'my_account',              'My Account', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'welcome_back',            'Welcome back!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'logout',                  'Log Out', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'username',                'Username:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'password',                'Password:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'remember_me',             'Remember Me', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'login',                   'Login', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'not_registered',          'Not registered?', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'register_now',            'Register now!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'private_messages',        'Private Messages:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'unread_total',            ' Unread, Total ', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'new_priv_msg',            'You have a new private message.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'title',                   'Title:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'sender',                  'Sender:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'click_ok',                'Click OK to view it, or cancel to hide this prompt.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'open_msg',                'Open Message in New Window?', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'new_priv_msg_title',      'New Private Message', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'forgot_password',         'Forgot password?',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 10, 'admin_panel',             'Admin Panel', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'no_changes_entered',      'No Changes Entered!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'enter_valid_password',    'Please enter a new password that consists only of letters and numbers!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'password_unmatched',      'The new password you entered did not match the new confirmed password!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'enter_valid_email',       'Please enter a valid email address!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'email_already_exists',    'email already exists, please try another!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'profile_updated',         'User Profile Updated!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'new_password',            'New Password:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'confirm_password',        'Confirm New Password:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'new_email',               'Email:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'update_profile',          'Update Profile', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'visit_cp',                'Click here to visit your control panel.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_fullname',               'Full Name:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_company',               'Company:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_add',               'Address:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_postcode',               'Post Code:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_tel',               'Tel:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_fax',               'Fax:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_online',               'Online:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 11, 'user_website',               'Website:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_name',               'User Name:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password',                'Password:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_again',          'Enter Password Again:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email',                   'Email:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_again',             'Enter Email Again:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_fullname',               'Full Name:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_company',               'Company:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_add',               'Address:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_postcode',               'Post Code:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_tel',               'Tel:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_fax',               'Fax:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_online',               'Online:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'user_website',               'Website:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'register',                'Register', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'reset_form',              'Reset Form', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'enter_alnum_username',    'Please enter a username that consists only of letters and numbers!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'enter_alnum_password',    'Please enter a password that consists only of letters and numbers!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_unmatched',      'Your confirmed password does not match the entered password!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'unvalid_email',           'Please enter a valid email address.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_unmatched',         'The email you entered did not match the confirmed email!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'username_exists',         'Username already exists, please try another!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_exists',            'Email already exists, please try another!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'register_success',        'Thank you for registering!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'already_logged_in',       'You are already logged in as:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'logout',                  'Click here if you wish to log out.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'register_now',            'Click here to Register!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_banned',            'Your Email address has been banned!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'pwd_reset',               'Get Back Password',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_not_found',         'No account could be found that matched the entered email address:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_subject',                          'Your new Password',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message',                          'Here is your new password: ',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_reset_success',  'Your password was reset successfully! An email will arrive shortly with your new login details.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'activation_required',                  'Thankyou for registering! An email has been sent to your email address with instructions on how to activate your new account',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'activation_required_manual',                  'Thank you for registering! We will verify your registration in 1 or 2 workdays, please waiting!',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_subject_activation', 'Thanks for registering!',                         '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message_activation', 'Thanks for registering with us! Please click the following link to activate your account:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'validation_key_not_found', 'Your account was not found. Please ensure you copied the link correctly.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'already_validated',                 'Your account has already been activated. You may login using your username and password.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'validation_success',                 'Thankyou for activating your account. You may now login using your username and password.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'registration_turnoff',                 'Sorry! Registration is turned off, please contact the administrator.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'email_message_resetpassword',                 'Please click this link for resetting your password:',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'password_reset_confirm',                 'A confirm email has been sent to your e-mail address, please click the link in it to complete resetting your password.',                         '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 12, 'invalid_link',                 'Invalid link for resetting password!',                         '', '', '#FF0000', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'sections',                'Sections:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submitting_link',         'Submitting Link', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'your_name',               'Your Name:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'website_name',            'Website Name:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'website_url',             'Website URL:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'description',             'Description:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submit_link',             'Submit Link', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submit_a_link',           'Click here to submit a link to this section!', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'submitted_by',            'Submitted by:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'previous_links',          '&laquo; Previous Page', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'more_links',              'Next Page &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_name',              'Please enter your name!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_site_name',         'Please enter the name of the site!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_site_url',          'Please enter the url of the site!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'url_invalid',             'Website URL is invalid!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'enter_description',       'Please enter the description!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'link_submitted',          'Thanks! Your link has been submitted.', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_from',                'Link Directory Module', '', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_subject',         'New link submitted to your website!','', '', '', '', 0, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_message',         'A new link has been submitted to your link directory.',  '', '', '', '', 1, 0, 0) ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_author',     'Author', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_website',    'Website Name', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_url',            'Website URL', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 16, 'notify_email_description','Description', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'sections',                'Sections:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'no_gif_support',          'Images with the .gif extension are not supported.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'previous_images',         '&laquo; Previous Page', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'more_images',             'Next Page &raquo;', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submitted_by',            'Submitted by:', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submit_an_image',         'Submit a product to this section.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submitting_image',        'Submitting Product', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'your_name',               'Your Name:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'description',             'Description:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'thumbnail',               'Thumbnail:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image',                   'Image:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'submit_image',            'Submit Product', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image_title',             'Title:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_title',             'Please enter a title!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_author',            'Please enter the author\'s name!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'select_image',            'Please select an image!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'select_thumbnail',        'Please select a thumbnail!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'enter_description',       'Please enter a description!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image_submitted',         'Thanks! Your product has been submitted. ', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'previous_image',          '&laquo; Previous Product', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'next_image',              'Next Product &raquo;',     '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'invalid_image_type',      'Invalid image type!', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'views',                   'Views', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'jump_to',                 'Jump To...', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'comments',                'Comments', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'comment',                'Comment', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'image2',                'Product', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'images',                'Products', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'images2',                'Products List:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'specification',               'Specification:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'priceship',               'Price & Shipment:', '', '', '', '', 1, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'descriptiontitle',               'Basic Info.', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'specificationtitle',               'Data Sheet', '', '', '', '', 0, 0, 0)");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "phrases VALUES (NULL, 17, 'priceshiptitle',               'Price & Shipment', '', '', '', '', 0, 0, 0)");

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

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

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "designs VALUES (4, 1, 10, 'default/advanced_4.php', 'default/images/adv_design_4.png') ");

  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '失望',         ':|',   'disappointed.gif') ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '快乐',         ':H',   'happy.gif')        ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '忧愁',          ':(',   'sad.gif')          ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '微笑',         ':)',   'smile.gif')        ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '愤怒',         ':@',       'angry.gif')        ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '害羞',         ':B',       'blush.gif')        ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '无耻',         ':C',      'cheeky.gif')       ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '可恶',         ':S',        'darn.gif')         ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '去死',         ':D',        'dead.gif')         ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '惊讶',         ':O',         'eek.gif')         ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '难堪',         ':$',       'embar.gif')  ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '求助',         ':?',        'help.gif')         ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '爱意',         ':L',         'luv.gif')          ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '赞扬',         ':G',          'ok.gif')           ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '眨眼',         ';)',        'wink.gif')         ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '呵欠',         ':Y',        'yawn.gif')         ");
  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "smilies VALUES (NULL, '美味',         ':T',         'yum.gif')          ");


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


  DB_Query ("INSERT INTO " . ENTABLE_PREFIX . "usergroups VALUES (1, '0', '系统管理员',   '1', '1', '1', '1,2,3,4,5,6,7,8', '1,2,3,4,5,7,8', '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 " . ENTABLE_PREFIX . "usergroups VALUES (2, '0', '信息管理员',       '0', '1', '1', '1,2,3,4,5,6,7,8', '1,2,3,4,5,7,8', '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 " . ENTABLE_PREFIX . "usergroups VALUES (3, '0', '注册用户', '0', '0', '0', '1,2,3,4,5,6,7,8', '1,2,3,4,5,7,8', '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 " . ENTABLE_PREFIX . "usergroups VALUES (4, '0', '游客',           '0', '0', '0', '1,2,3,4,5,6,8',   '1,2,3,4,5,6,8',   '2,3,4,6,7,8,9,10,11,12,16,17,18,31', '4,6',                 '', '',        '',                                '1', ''  ) ");

  //安装English数据库结束  
    
$DB->close();

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