diff --git a/admin/index.php b/admin/index.php index a87baa35..988fd699 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: prpr - * @Last Modified time: 2016-02-06 23:29:33 + * @Last Modified time: 2016-02-10 15:05:08 */ require "../includes/session.inc.php"; if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员'); @@ -31,9 +31,7 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是
  • 个人设置
  • -
  • - 欢迎,|登出? -
  • +
    @@ -64,9 +62,9 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是 - '; ?> - '; ?> - '; ?> + src="../skin/-steve.png" /> + src="../skin/-alex.png" /> + src="../cape/.png" /> 皮肤 diff --git a/assets/css/style.css b/assets/css/style.css index 583bc52f..5ac94ca6 100755 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2,7 +2,7 @@ * @Author: prpr * @Date: 2016-01-21 07:57:38 * @Last Modified by: prpr -* @Last Modified time: 2016-02-07 13:10:55 +* @Last Modified time: 2016-02-10 14:16:23 */ @import url(https://fonts.googleapis.com/css?family=Ubuntu); @@ -46,7 +46,7 @@ p { .pure-menu-heading:hover { color: #444; } -.home-menu a { +.home-menu button { color: #fff; font-size: 15px; } diff --git a/get.php b/get.php index 744ddcb1..1b18d6a8 100644 --- a/get.php +++ b/get.php @@ -3,7 +3,7 @@ * @Author: prpr * @Date: 2016-02-02 20:56:42 * @Last Modified by: prpr - * @Last Modified time: 2016-02-06 23:06:26 + * @Last Modified time: 2016-02-10 14:06:10 * * All textures requests of legacy link will be handle here. */ @@ -15,7 +15,8 @@ if (isset($_GET['type']) && isset($_GET['uname'])) { $user = new User($_GET['uname']); if (!$user->is_registered) Utils::raise(1, 'Non-existent user.'); // Cache friendly - $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) : null; + $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? + strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) : null; if ($_GET['type'] == "skin" || $_GET['type'] == "cape") { $model_preferrnce = ($user->getPreference() == "default") ? "steve" : "alex"; diff --git a/includes/welcome.inc.php b/includes/welcome.inc.php new file mode 100644 index 00000000..3f2712f8 --- /dev/null +++ b/includes/welcome.inc.php @@ -0,0 +1,16 @@ + +
  • + + 欢迎,! + | + 登出? +
  • diff --git a/index.php b/index.php index c020c254..49a5d924 100755 --- a/index.php +++ b/index.php @@ -3,13 +3,13 @@ * @Author: printempw * @Date: 2016-01-17 13:55:20 * @Last Modified by: prpr - * @Last Modified time: 2016-02-10 10:56:24 + * @Last Modified time: 2016-02-10 14:18:22 */ session_start(); $dir = dirname(__FILE__); require "$dir/includes/autoload.inc.php"; - Database::checkConfig(); + // Auto load cookie value to session if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) { $user = new User($_COOKIE['uname']); @@ -41,11 +41,13 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
    @@ -62,9 +64,9 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {

    开源的 PHP Minecraft 皮肤站

    - +

    - 现在注册 +

    @@ -74,6 +76,7 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) { © Blessing Studio 2016
    +

    登录

    @@ -101,6 +104,7 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
    请使用您的 Minecraft 用户名 来注册
    + @@ -108,9 +112,8 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) { - + - + diff --git a/user/index.php b/user/index.php index 43d10950..2cf965f4 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: prpr - * @Last Modified time: 2016-02-10 10:45:04 + * @Last Modified time: 2016-02-10 15:18:56 */ require "../includes/session.inc.php"; ?> @@ -26,12 +26,10 @@ require "../includes/session.inc.php";
    @@ -48,15 +46,14 @@ require "../includes/session.inc.php";

    选择皮肤:

    - -
    +

    选择披风:

    - +
    + +
    + +

    - -
    - -

    2D 皮肤预览
    @@ -66,7 +63,9 @@ require "../includes/session.inc.php";
    修改优先皮肤模型
    -

    你现在的优先皮肤模型是 getPreference(); ?>更改

    +

    你现在的优先皮肤模型是 getPreference(); ?>。 + 更改 +

    @@ -94,7 +93,9 @@ require "../includes/session.inc.php"; getTexture('alex') && ($user->getTexture('steve') == "")) {?> diff --git a/user/profile.php b/user/profile.php index ac52123a..f6f9c44b 100644 --- a/user/profile.php +++ b/user/profile.php @@ -3,7 +3,7 @@ * @Author: prpr * @Date: 2016-02-03 16:12:45 * @Last Modified by: prpr - * @Last Modified time: 2016-02-06 23:29:32 + * @Last Modified time: 2016-02-10 14:39:11 */ require "../includes/session.inc.php"; ?> @@ -31,9 +31,7 @@ require "../includes/session.inc.php";
  • 皮肤上传
  • -
  • - 欢迎,|登出? -
  • +
    @@ -79,7 +77,7 @@ require "../includes/session.inc.php";
    - is_admin) { ?> + is_admin): ?>
    欢迎,尊敬的管理员
    @@ -88,7 +86,7 @@ require "../includes/session.inc.php";
    - +