From ef0c2adbde560370651afc8a62d9351a7a95f239 Mon Sep 17 00:00:00 2001 From: printempw Date: Thu, 4 Feb 2016 23:48:20 +0800 Subject: [PATCH] responsive design for skin preview --- user/index.php | 136 +++++++++++++---------------------------------- user/preview.php | 25 +++++++++ 2 files changed, 61 insertions(+), 100 deletions(-) create mode 100644 user/preview.php diff --git a/user/index.php b/user/index.php index 36352309..7c75ac75 100644 --- a/user/index.php +++ b/user/index.php @@ -8,7 +8,6 @@ session_start(); $dir = dirname(dirname(__FILE__)); require "$dir/includes/autoload.inc.php"; -require "$dir/config.php"; $action = isset($_GET['action']) ? $_GET['action'] : ""; @@ -25,7 +24,6 @@ if (isset($_SESSION['uname'])) { } else { header('Location: ../index.php?msg=Illegal access. Please login.'); } - ?> @@ -45,18 +43,12 @@ if (isset($_SESSION['uname'])) {
Blessing Skin Server - - -
@@ -66,107 +58,51 @@ if (isset($_SESSION['uname'])) {
- - -
-
-
- - - - -
-
-

Upload

-
-

Select a skin:

- -
-

Select a cape:

- -

- - Preview -
- -
- - - - -
-
-
-
-
-
-

Upload

-
-

Select a skin:

- -
-

Select a cape:

- -
-

Well, the skin server does support double layer skin of 1.8, but the preview does not. So just upload and you will get it display well in game.

- - - Preview +
+
+
+
Upload
+
+
+

Select a skin:

+ +
+

Select a cape:

+ +
+ My skin fits on the classic Steve player model. +
+ My skin fits on the new Alex player model. +

+ + Preview +
+
- +
+
+
+
Preview +
+ + + +
+
+
+ +
+
- - - - - - - -getTexture('skin')) { - echo ""; -} else { - echo ''; -} -echo ""; -if ($user->getTexture('cape')) { - echo ""; - echo ""; -} ?> diff --git a/user/preview.php b/user/preview.php new file mode 100644 index 00000000..e27af970 --- /dev/null +++ b/user/preview.php @@ -0,0 +1,25 @@ + + +
+ + +getTexture('skin')) { + echo ""; +} else { + echo ''; +} +echo ""; + +if ($user->getTexture('cape')) { + echo ""; + echo ""; +} ?>