www.gusucode.com > weenCompany闻名企业网站系统 4.0.0 繁体中英文 UTF8源码程序 > modules/m11_usercp/install.php
<?php // +---------------------------------------------+ // | Copyright 2003-2005 weenCompany | // | http://www.weentech.com | // | This file may not be redistributed. | // +---------------------------------------------+ if(!defined('TABLE_PREFIX')) define('TABLE_PREFIX', ''); if(!defined('IN_WEENCOMPANY')) die('File not found!'); // ############################### MODULE DETAILS ############################## $uniqueid = 11; $modulename = '用戶資料'; $version = '2.0'; $modulepath = 'm11_usercp/usercp.php'; $settingspath = 'm11_usercp/m11_settings.php'; $authorname = 'weencompany'; $authorlink = 1; $modulesettings = '17'; // ############################### INSTALL MODULE ############################## if($installtype == 'install') { $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'no_changes_entered', '沒有做任何修改!', '', '', '', '', 1, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'enter_valid_password', '密碼僅能用字母或數字組成!', '', '', '', '', 1, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'password_unmatched', '新密碼與確認密碼不匹配!', '', '', '', '', 1, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'enter_valid_email', 'Email地址無效!', '', '', '', '', 0, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'email_already_exists', 'Email地址已被使用, 請重新輸入!', '', '', '', '', 1, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'profile_updated', '用戶資料已成功更新!', '', '', '', '', 1, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'new_password', '新密碼:', '', '', '', '', 0, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'confirm_password', '確認密碼:', '', '', '', '', 0, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'new_email', '新Email地址:', '', '', '', '', 0, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'update_profile', '提交更新', '', '', '', '', 0, 0, 0)"); $DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES (NULL, $uniqueid, 'visit_cp', '點擊這裏進入您的控制面板.', '', '', '', '', 0, 0, 0)"); } // ############################### UPGRADE MODULE ############################## if($installtype == 'upgrade') { if($currentversion == '2.0') { // example: // UpdateModuleVersion(11, 2.1); // $currentversion = 2.1; } } // ############################## UNINSTALL MODULE ############################# if($installtype == 'uninstall') { // no tables to uninstall } ?>