diff --git a/admin/index.php b/admin/index.php index b516b0b5..ef03d2a3 100644 --- a/admin/index.php +++ b/admin/index.php @@ -3,7 +3,7 @@ * @Author: prpr * @Date: 2016-02-03 14:39:50 * @Last Modified by: printempw - * @Last Modified time: 2016-03-06 14:43:49 + * @Last Modified time: 2016-03-18 14:44:17 */ require "../includes/session.inc.php"; if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员'); @@ -13,7 +13,7 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是 - 仪表盘 - <?php echo SITE_TITLE; ?> + 仪表盘 - <?php echo Config::get('site_name'); ?> @@ -26,7 +26,9 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是
- + + +
"; ?>

@@ -121,67 +121,91 @@ case 2: ?> case 3: // check post if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['password2'])) { - if ($_POST['password'] != $_POST['password2']) { - header('Location: install.php?step=2&msg=确认密码不一致。'); die(); - } - $username = $_POST['username']; - $password = $_POST['password']; - if (User::checkValidUname($username)) { - if (strlen($password) > 16 || strlen($password) < 5) { - header('Location: install.php?step=2&msg=无效的密码。密码长度应该大于 6 并小于 15。'); - die(); - } else if (Utils::convertString($password) != $password) { - header('Location: install.php?step=2&msg=无效的密码。密码中包含了奇怪的字符。'); die(); - } - } else { - header('Location: install.php?step=2&msg=无效的用户名。用户名只能包含数字,字母以及下划线。'); die(); - } + if ($_POST['password'] != $_POST['password2']) { + header('Location: install.php?step=2&msg=确认密码不一致。'); die(); + } + $username = $_POST['username']; + $password = $_POST['password']; + if (User::checkValidUname($username)) { + if (strlen($password) > 16 || strlen($password) < 5) { + header('Location: install.php?step=2&msg=无效的密码。密码长度应该大于 6 并小于 15。'); + die(); + } else if (Utils::convertString($password) != $password) { + header('Location: install.php?step=2&msg=无效的密码。密码中包含了奇怪的字符。'); die(); + } + } else { + header('Location: install.php?step=2&msg=无效的用户名。用户名只能包含数字,字母以及下划线。'); die(); + } } else { - header('Location: install.php?step=2&msg=表单信息不完整。'); die(); + header('Location: install.php?step=2&msg=表单信息不完整。'); die(); } -$sql = "CREATE TABLE IF NOT EXISTS `".DB_PREFIX."users` ( - `uid` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(20) NOT NULL, - `password` varchar(255) NOT NULL, - `ip` varchar(32) NOT NULL, - `preference` varchar(10) NOT NULL, - `hash_steve` varchar(64), - `hash_alex` varchar(64), - `hash_cape` varchar(64), - `last_modified` datetime, - PRIMARY KEY (`uid`) - ) ENGINE=MyISAM DEFAULT CHARSET=utf8;"; +$table_users = DB_PREFIX."users"; +$table_options = DB_PREFIX."options"; -if (!$conn->query($sql)) { ?> -

数据表创建失败

-

照理来说不应该的,请带上错误信息联系作者:

-

error; ?>

- query($sql1) || !$conn->query($sql2) || !$conn->query($sql3)) { ?> +

数据表创建失败

+

照理来说不应该的,请带上错误信息联系作者:

+

error; ?>

+ query("INSERT INTO `".DB_PREFIX."users` (`uid`, `username`, `password`, `ip`, `preference`) VALUES - (1, '".$username."', '".md5($_POST['password'])."', '127.0.0.1', 'default')"); + (1, '".$username."', '".md5($_POST['password'])."', '127.0.0.1', 'default')"); if (!is_dir("../textures/")) { - if (!mkdir("../textures/")): ?> -

文件夹创建失败

-

textures 文件夹创建失败。确定你拥有该目录的写权限吗?

- +

文件夹创建失败

+

textures 文件夹创建失败。确定你拥有该目录的写权限吗?

+

成功!

Blessing Skin Server 安装完成。您是否还沉浸在愉悦的安装过程中?很遗憾,一切皆已完成! :)

- - - - - - - - + + + + + + + +
用户名
密码

用户名
密码

首页

is_admin) header('Location: ../index.php?msg=看起来你并不是管理员'); @@ -13,7 +13,7 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是 - 用户管理 - <?php echo SITE_TITLE; ?> + 用户管理 - <?php echo Config::get('site_name'); ?> @@ -26,7 +26,9 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是
- + + +
  • 仪表盘 diff --git a/ajax.php b/ajax.php index 0acea550..8c8897a8 100644 --- a/ajax.php +++ b/ajax.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 14:03:58 + * @Last Modified time: 2016-03-18 14:50:43 * * - login, register, logout * - upload, change, delete @@ -55,29 +55,34 @@ if ($action == "login") { } else if ($action == "register") { if (checkPost('register')) { if (!$user->is_registered) { - if (User::checkValidPwd($_POST['passwd'])) { - if (!empty($_SERVER['HTTP_CLIENT_IP'])) { - $ip = $_SERVER['HTTP_CLIENT_IP']; - } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { - $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; - } else { - $ip = $_SERVER['REMOTE_ADDR']; - } - // If amount of registered accounts of IP is more than allowed mounts, - // then reject the registration. - if ($user->db->getNumRows('ip', $ip) < REGS_PER_IP) { - // use once md5 to encrypt password - if ($user->register($_POST['passwd'], $ip)) { - $json['errno'] = 0; - $json['msg'] = "注册成功~"; + if (Config::get('user_can_register') == 1) { + if (User::checkValidPwd($_POST['passwd'])) { + if (!empty($_SERVER['HTTP_CLIENT_IP'])) { + $ip = $_SERVER['HTTP_CLIENT_IP']; + } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { + $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; + } else { + $ip = $_SERVER['REMOTE_ADDR']; + } + // If amount of registered accounts of IP is more than allowed mounts, + // then reject the registration. + if ($user->db->getNumRows('ip', $ip) < Config::get('regs_per_ip')) { + // use once md5 to encrypt password + if ($user->register($_POST['passwd'], $ip)) { + $json['errno'] = 0; + $json['msg'] = "注册成功~"; + } else { + $json['errno'] = 1; + $json['msg'] = "出现了奇怪的错误。。请联系作者 :("; + } } else { $json['errno'] = 1; - $json['msg'] = "出现了奇怪的错误。。请联系作者 :("; + $json['msg'] = "你最多只能注册 ".Config::get('regs_per_ip')." 个账户哦"; } - } else { - $json['errno'] = 1; - $json['msg'] = "你最多只能注册 ".REGS_PER_IP." 个账户哦"; } + } else { + $json['errno'] = 1; + $json['msg'] = "残念。。本皮肤站已经关闭注册咯 QAQ"; } } else { $json['errno'] = 1; diff --git a/config.example.php b/config.example.php index f7a5e6ac..44fa0533 100644 --- a/config.example.php +++ b/config.example.php @@ -14,21 +14,6 @@ define('DB_PORT', 3306); /* MySQL 主机 */ define('DB_HOST', 'localhost'); -/* 盐,用于 token 加密,修改为任意随机字符串 */ -define('SALT', '9tvsE+1._%R4@VLaX(I|.U+h_d*s'); - -/* 调试模式,开启后将会显示所有用于错误提示 */ -define('DEBUG_MODE', false); - -/* 同一 IP 最大可注册账户数 */ -define('REGS_PER_IP', 2); - -/* 优先使用的 Json API,0 为 CustomSkinLoader API, 1 为 UniSkinAPI */ -define('API_TYPE', 0); - -/* 站点名称,推荐英文(字体原因) */ -define('SITE_TITLE', 'Blessing Skin Server'); - /** * 数据表前缀 * @@ -38,10 +23,8 @@ define('SITE_TITLE', 'Blessing Skin Server'); */ define('DB_PREFIX', ''); -/** - * 数据对接适配器 - * - * 目前可进行数据对接的程序有 Authme、Crazylogin、Discuz - * 只可填写 `Authme`,`Crazy` 或者 `Discuz`,留空即为不进行数据对接 - */ -define('DATA_ADAPTER', ''); +/* 盐,用于 token 加密,修改为任意随机字符串 */ +define('SALT', '9tvsE+1._%R4@VLaX(I|.U+h_d*s'); + +/* 调试模式,开启后将会显示所有错误提示 */ +define('DEBUG_MODE', false); diff --git a/get.php b/get.php index bb912d1b..ea1e6b0d 100644 --- a/get.php +++ b/get.php @@ -3,7 +3,7 @@ * @Author: prpr * @Date: 2016-02-02 20:56:42 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 09:27:24 + * @Last Modified time: 2016-03-18 14:38:46 * * All textures requests of legacy link will be handle here. */ @@ -39,7 +39,7 @@ if (isset($_GET['type']) && isset($_GET['uname'])) { if (isset($_GET['api'])) { echo $user->getJsonProfile(($_GET['api'] == 'csl') ? 0 : 1); } else { - echo $user->getJsonProfile(API_TYPE); + echo $user->getJsonProfile(Config::get('api_type')); } } else { Utils::raise(1, 'Illegal parameters.'); diff --git a/includes/AuthmeDatabase.class.php b/includes/AuthmeDatabase.class.php index d6cb8363..766c1267 100644 --- a/includes/AuthmeDatabase.class.php +++ b/includes/AuthmeDatabase.class.php @@ -3,12 +3,23 @@ * @Author: printempw * @Date: 2016-03-13 11:59:32 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 15:29:23 + * @Last Modified time: 2016-03-18 16:40:24 */ class AuthmeDatabase extends Database implements EncryptInterface, SyncInterface { - protected $table_name = "authme"; + protected $table_name; + protected $column_uname; + protected $column_passwd; + protected $column_ip; + + function __construct() { + parent::__construct(); + $this->table_name = Config::get('data_table_name'); + $this->column_uname = Config::get('data_column_uname'); + $this->column_passwd = Config::get('data_column_passwd'); + $this->column_ip = Config::get('data_column_ip'); + } /** * Default SHA256 encryption method for Authme @@ -16,22 +27,21 @@ class AuthmeDatabase extends Database implements EncryptInterface, SyncInterface * http://pastebin.com/1wy9g2HT */ public function encryptPassword($raw_passwd, $username="") { - $hash = hash('sha256', hash('sha256', $raw_passwd) . SALT); - $encrypt = '$SHA$' . SALT . '$' . $hash; + $hash = hash('sha256', hash('sha256', $raw_passwd).SALT); + $encrypt = '$SHA$'.SALT.'$'. $hash; return $encrypt; } public function createRecord($username, $password, $ip) { - $sql = "INSERT INTO ".$this->table_name." (username, password, ip) + $sql = "INSERT INTO ".$this->table_name." (".$this->column_uname.", ".$this->column_passwd.", ".$this->column_ip.") VALUES ('$username', '$password', '$ip')"; return $this->query($sql); - } public function sync($username) { $exist_in_bs_table = $this->checkRecordExist('username', $username); $exist_in_authme_table = ($this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->num_rows) ? true : false; + WHERE ".$this->column_uname."='$username'")->num_rows) ? true : false; if ($exist_in_bs_table && !$exist_in_authme_table) { $result = $this->select('username', $username); @@ -41,11 +51,11 @@ class AuthmeDatabase extends Database implements EncryptInterface, SyncInterface if (!$exist_in_bs_table && $exist_in_authme_table) { $result = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array(); + WHERE ".$this->column_uname."='$username'")->fetch_array(); $this->insert(array( "uname" => $username, - "passwd" => $result['password'], - "ip" => $result['ip'] + "passwd" => $result[$this->column_passwd], + "ip" => $result[$this->column_ip] )); return $this->sync($username); } @@ -56,7 +66,7 @@ class AuthmeDatabase extends Database implements EncryptInterface, SyncInterface if ($exist_in_bs_table && $exist_in_authme_table) { $passwd1 = $this->select('username', $username)['password']; $passwd2 = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array()['password']; + WHERE ".$this->column_uname."='$username'")->fetch_array()[$this->column_passwd]; if ($passwd1 == $passwd2) { return true; } else { diff --git a/includes/Config.class.php b/includes/Config.class.php new file mode 100644 index 00000000..14749194 --- /dev/null +++ b/includes/Config.class.php @@ -0,0 +1,37 @@ +query($sql); + if ($conn->error) + Utils::raise(-1, "Database query error: ".$conn->error); + return $result->fetch_array()['option_value']; + } + + public static function set($key, $value) { + $conn = new mysqli(DB_HOST, DB_USER, DB_PASSWD, DB_NAME, DB_PORT); + $sql = "UPDATE ".DB_PREFIX."options SET `option_value`='$value' WHERE `option_name`='$key'"; + $result = $conn->query($sql); + if ($conn->error) + Utils::raise(-1, "Database query error: ".$conn->error); + else + return true; + } + + public static function setArray($options) { + foreach ($options as $key => $value) { + self::set($key, $value); + } + return true; + } +} diff --git a/includes/CrazyDatabase.class.php b/includes/CrazyDatabase.class.php index 59a98b31..821b340b 100644 --- a/includes/CrazyDatabase.class.php +++ b/includes/CrazyDatabase.class.php @@ -3,12 +3,23 @@ * @Author: printempw * @Date: 2016-03-13 12:15:08 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 15:29:19 + * @Last Modified time: 2016-03-18 16:41:05 */ class CrazyDatabase extends Database implements EncryptInterface, SyncInterface { - protected $table_name = "CrazyLogin_accounts"; + protected $table_name; + protected $column_uname; + protected $column_passwd; + protected $column_ip; + + function __construct() { + parent::__construct(); + $this->table_name = Config::get('data_table_name'); + $this->column_uname = Config::get('data_column_uname'); + $this->column_passwd = Config::get('data_column_passwd'); + $this->column_ip = Config::get('data_column_ip'); + } /** * Fucking CrazyCrypt1 @@ -25,16 +36,15 @@ class CrazyDatabase extends Database implements EncryptInterface, SyncInterface } public function createRecord($username, $password, $ip) { - $sql = "INSERT INTO ".$this->table_name." (username, password, ips) + $sql = "INSERT INTO ".$this->table_name." (".$this->column_uname.", ".$this->column_passwd.", ".$this->column_ip.") VALUES ('$username', '$password', '$ip')"; return $this->query($sql); - } public function sync($username) { $exist_in_bs_table = $this->checkRecordExist('username', $username); $exist_in_crazy_table = ($this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->num_rows) ? true : false; + WHERE ".$this->column_uname."='$username'")->num_rows) ? true : false; if ($exist_in_bs_table && !$exist_in_crazy_table) { $result = $this->select('username', $username); @@ -44,11 +54,11 @@ class CrazyDatabase extends Database implements EncryptInterface, SyncInterface if (!$exist_in_bs_table && $exist_in_crazy_table) { $result = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array(); + WHERE ".$this->column_uname."='$username'")->fetch_array(); $this->insert(array( "uname" => $username, - "passwd" => $result['password'], - "ip" => $result['ips'] + "passwd" => $result[$this->column_passwd], + "ip" => $result[$this->column_ip] )); return $this->sync($username); } @@ -59,7 +69,7 @@ class CrazyDatabase extends Database implements EncryptInterface, SyncInterface if ($exist_in_bs_table && $exist_in_crazy_table) { $passwd1 = $this->select('username', $username)['password']; $passwd2 = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array()['password']; + WHERE ".$this->column_uname."='$username'")->fetch_array()[$this->column_passwd]; if ($passwd1 == $passwd2) { return true; } else { @@ -71,4 +81,5 @@ class CrazyDatabase extends Database implements EncryptInterface, SyncInterface } + } diff --git a/includes/Database.class.php b/includes/Database.class.php index 8f81f632..4cbf9108 100644 --- a/includes/Database.class.php +++ b/includes/Database.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-02-02 21:59:06 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 14:21:10 + * @Last Modified time: 2016-03-18 14:34:09 */ class Database implements EncryptInterface, SyncInterface @@ -22,7 +22,7 @@ class Database implements EncryptInterface, SyncInterface "无法连接至 MySQL 服务器。请确认 config.php 中的配置是否正确:".$conn->connect_error); } if (!self::checkTableExist($conn)) { - Utils::showErrorPage(-1, "数据库中不存在 ".DB_PREFIX."users 表。请先运行 /admin/install.php 进行安装。"); + } $dir = dirname(dirname(__FILE__)); if (!is_dir("$dir/textures/")) { @@ -33,9 +33,11 @@ class Database implements EncryptInterface, SyncInterface public static function checkTableExist($conn) { $sql = "SELECT table_name FROM - `INFORMATION_SCHEMA`.`TABLES` WHERE table_name ='".DB_PREFIX."users' - AND TABLE_SCHEMA='".DB_NAME."'"; - return ($conn->query($sql)->num_rows != 0) ? true : false; + `INFORMATION_SCHEMA`.`TABLES` WHERE (table_name ='".DB_PREFIX."users' + OR table_name ='".DB_PREFIX."options') AND TABLE_SCHEMA='".DB_NAME."'"; + + if ($conn->query($sql)->num_rows != 2) + Utils::showErrorPage(-1, "数据库中不存在 ".DB_PREFIX."users 或 ".DB_PREFIX."options 表。请先运行 /admin/install.php 进行安装。"); } public function query($sql) { diff --git a/includes/DiscuzDatabase.class.php b/includes/DiscuzDatabase.class.php index da00313f..c6435f9c 100644 --- a/includes/DiscuzDatabase.class.php +++ b/includes/DiscuzDatabase.class.php @@ -3,25 +3,36 @@ * @Author: printempw * @Date: 2016-03-13 14:59:32 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 15:29:26 + * @Last Modified time: 2016-03-18 16:42:37 */ class DiscuzDatabase extends Database implements EncryptInterface, SyncInterface { - protected $table_name = "pre_ucenter_members"; + protected $table_name; + protected $column_uname; + protected $column_passwd; + protected $column_ip; + + function __construct() { + parent::__construct(); + $this->table_name = Config::get('data_table_name'); + $this->column_uname = Config::get('data_column_uname'); + $this->column_passwd = Config::get('data_column_passwd'); + $this->column_ip = Config::get('data_column_ip'); + } /** * Discuz's Fucking dynamic salt */ public function encryptPassword($raw_passwd, $username="") { $salt = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array()['salt']; + WHERE ".$this->column_uname."='$username'")->fetch_array()['salt']; $encrypt = md5(md5($raw_passwd).$salt); return $encrypt; } public function createRecord($username, $password, $ip) { - $sql = "INSERT INTO ".$this->table_name." (username, password, regip) + $sql = "INSERT INTO ".$this->table_name." (".$this->column_uname.", ".$this->column_passwd.", ".$this->column_ip.") VALUES ('$username', '$password', '$ip')"; return $this->query($sql); } @@ -29,7 +40,7 @@ class DiscuzDatabase extends Database implements EncryptInterface, SyncInterface public function sync($username) { $exist_in_bs_table = $this->checkRecordExist('username', $username); $exist_in_discuz_table = ($this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->num_rows) ? true : false; + WHERE ".$this->column_uname."='$username'")->num_rows) ? true : false; if ($exist_in_bs_table && !$exist_in_discuz_table) { $result = $this->select('username', $username); @@ -39,11 +50,11 @@ class DiscuzDatabase extends Database implements EncryptInterface, SyncInterface if (!$exist_in_bs_table && $exist_in_discuz_table) { $result = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array(); + WHERE ".$this->column_uname."='$username'")->fetch_array(); $this->insert(array( "uname" => $username, - "passwd" => $result['password'], - "ip" => $result['regip'] + "passwd" => $result[$this->column_passwd], + "ip" => $result[$this->column_ip] )); return $this->sync($username); } @@ -54,7 +65,7 @@ class DiscuzDatabase extends Database implements EncryptInterface, SyncInterface if ($exist_in_bs_table && $exist_in_discuz_table) { $passwd1 = $this->select('username', $username)['password']; $passwd2 = $this->query("SELECT * FROM ".$this->table_name." - WHERE username='$username'")->fetch_array()['password']; + WHERE ".$this->column_uname."='$username'")->fetch_array()[$this->column_passwd]; if ($passwd1 == $passwd2) { return true; } else { @@ -65,4 +76,5 @@ class DiscuzDatabase extends Database implements EncryptInterface, SyncInterface } } + } diff --git a/includes/User.class.php b/includes/User.class.php index 95232070..1c891bdc 100644 --- a/includes/User.class.php +++ b/includes/User.class.php @@ -3,12 +3,12 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: printempw - * @Last Modified time: 2016-03-13 14:45:04 + * @Last Modified time: 2016-03-18 16:45:00 */ class User { - public $uname = ""; + public $uname = ""; private $passwd = ""; private $token = ""; @@ -18,7 +18,7 @@ class User function __construct($uname) { $this->uname = Utils::convertString($uname); - $class_name = DATA_ADAPTER."Database"; + $class_name = Config::get('data_adapter')."Database"; $this->db = new $class_name(); if ($this->db->sync($this->uname)) { diff --git a/index.php b/index.php index 33c0fddb..b4ebfe02 100755 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-17 13:55:20 * @Last Modified by: printempw - * @Last Modified time: 2016-03-12 18:03:48 + * @Last Modified time: 2016-03-18 15:02:24 */ session_start(); $dir = dirname(__FILE__); @@ -24,7 +24,7 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) { - <?php echo SITE_TITLE; ?> + <?php echo Config::get('site_name'); ?> @@ -38,14 +38,16 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
    - + + +
    • 欢迎,|登出? - +
    • @@ -60,15 +62,19 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
      -

      +

      - 开源的 PHP Minecraft 皮肤站 +

      -

      - + + + +

      -
      @@ -91,7 +97,7 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
    - +

    注册

    @@ -104,6 +110,7 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
    请使用您的 Minecraft 用户名 来注册
+ diff --git a/user/index.php b/user/index.php index 0bf62587..0666496f 100644 --- a/user/index.php +++ b/user/index.php @@ -3,7 +3,7 @@ * @Author: prpr * @Date: 2016-01-21 13:56:40 * @Last Modified by: printempw - * @Last Modified time: 2016-03-12 21:29:34 + * @Last Modified time: 2016-03-18 14:44:02 */ require "../includes/session.inc.php"; ?> @@ -12,7 +12,7 @@ require "../includes/session.inc.php"; - 上传皮肤 - <?php echo SITE_TITLE; ?> + 上传皮肤 - <?php echo Config::get('site_name'); ?> @@ -24,7 +24,9 @@ require "../includes/session.inc.php";
- + + +
  • 个人设置 diff --git a/user/profile.php b/user/profile.php index bcc00db9..879cc4f1 100644 --- a/user/profile.php +++ b/user/profile.php @@ -2,8 +2,8 @@ /** * @Author: prpr * @Date: 2016-02-03 16:12:45 - * @Last Modified by: prpr - * @Last Modified time: 2016-02-10 20:54:13 + * @Last Modified by: printempw + * @Last Modified time: 2016-03-18 14:44:12 */ require "../includes/session.inc.php"; ?> @@ -12,7 +12,7 @@ require "../includes/session.inc.php"; - 个人设置 - <?php echo SITE_TITLE; ?> + 个人设置 - <?php echo Config::get('site_name'); ?> @@ -23,7 +23,9 @@ require "../includes/session.inc.php";
    - + + +