From 3fbc76fd5baeb6685e3bd1a75732d5c8b7efb980 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 3 Apr 2016 14:41:25 +0800 Subject: [PATCH] added option of user default skin --- admin/options.php | 10 ++++++++-- libraries/User.class.php | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/admin/options.php b/admin/options.php index cfe23e59..b644629d 100644 --- a/admin/options.php +++ b/admin/options.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-03-18 22:50:25 * @Last Modified by: printempw - * @Last Modified time: 2016-04-03 13:26:36 + * @Last Modified time: 2016-04-03 14:37:11 */ require "../libraries/session.inc.php"; if (!$user->is_admin) Utils::redirect('../index.php?msg=看起来你并不是管理员'); @@ -56,7 +56,7 @@ $db = new Database\Database('users'); - + 站点地址(URL) @@ -70,6 +70,12 @@ $db = new Database\Database('users'); + + 新用户默认皮肤 + + + + 每个 IP 限制注册数 diff --git a/libraries/User.class.php b/libraries/User.class.php index 273a1aad..5830d55e 100644 --- a/libraries/User.class.php +++ b/libraries/User.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: printempw - * @Last Modified time: 2016-04-02 22:50:16 + * @Last Modified time: 2016-04-03 14:39:40 */ use Database\Database; @@ -70,6 +70,8 @@ class User "ip" => $ip, "preference" => 'default' ); + if (Option::get('user_default_skin') != "") + $data['hash_steve'] = Option::get('user_default_skin'); return $this->db->insert($data); }