From eaa11c68f30c8cfea41064a6a7d3de00c2232651 Mon Sep 17 00:00:00 2001 From: Lee <42119604+Leesneaks@users.noreply.github.com> Date: Tue, 31 Mar 2020 02:03:16 +0100 Subject: [PATCH] Admin Panel Updates - Updated Admin Panel to Bootstrap 4. - Code cleanup - Rewrote menu generation code - Added top 10 coins, top 10 premium points, last 10 logins to modules page. - Added full account list to Account editor - Added load outfits from XML to player editor and lists all enabled outfits in editor (will default to textbox if array of outfits do not exist) - Added tabs to account editor - account, characters,store history, bans(this is based off the bans.php page so will not work on TFS 0.2/1.0) - Updated datepickers to display the actual date rather than unix time. - Added last 10 posts to player editor --- admin/template/style.css | 44 - admin/template/template.php | 367 +- system/functions.php | 159 + system/pages/admin/accounts.php | 918 ++-- system/pages/admin/dashboard.php | 40 +- system/pages/admin/logs.php | 55 +- system/pages/admin/menus.php | 101 +- system/pages/admin/modules/balance.php | 6 + system/pages/admin/modules/coins.php | 9 +- system/pages/admin/modules/created.php | 6 + system/pages/admin/modules/lastlogin.php | 10 +- system/pages/admin/modules/points.php | 8 +- .../admin/modules/templates/balance.html.twig | 31 + .../admin/modules/templates/coins.html.twig | 24 +- .../admin/modules/templates/created.html.twig | 31 + .../modules/templates/lastlogin.html.twig | 22 +- .../admin/modules/templates/points.html.twig | 24 +- system/pages/admin/phpinfo.php | 2 +- system/pages/admin/players.php | 1131 ++-- system/pages/admin/reports.php | 43 +- system/pages/bans.php | 113 - system/templates/admin.dashboard.html.twig | 121 +- system/templates/admin.items.html.twig | 4 +- system/templates/admin.login.html.twig | 67 +- system/templates/admin.logs.html.twig | 57 +- system/templates/admin.logs.view.html.twig | 16 +- system/templates/admin.mailer.html.twig | 57 +- system/templates/admin.menus.form.html.twig | 48 +- system/templates/admin.news.form.html.twig | 242 +- system/templates/admin.news.html.twig | 295 +- system/templates/admin.notepad.html.twig | 37 +- system/templates/admin.pages.form.html.twig | 133 +- system/templates/admin.pages.html.twig | 86 +- system/templates/admin.plugins.form.html.twig | 39 +- system/templates/admin.plugins.html.twig | 82 +- system/templates/admin.reports.html.twig | 67 +- system/templates/admin.statistics.html.twig | 27 +- system/templates/admin.visitors.html.twig | 54 +- tools/css/AdminLTE.min.css | 19 +- tools/css/adminlte.min.css.map | 141 +- tools/css/bootstrap.min.css | 7 +- tools/css/bootstrap.min.css.map | 1 - tools/css/font-awesome.min.css | 7 +- tools/css/ionicons.min.css | 11 - tools/css/jquery-ui.min.css | 8 +- tools/css/jquery.dataTables.min.css | 1 - tools/css/skins/skin-blue.css | 142 - tools/css/skins/skin-blue.min.css | 1 - tools/fonts/FontAwesome.otf | Bin 134808 -> 0 bytes tools/fonts/fontawesome-webfont.eot | Bin 165742 -> 0 bytes tools/fonts/fontawesome-webfont.svg | 2671 ---------- tools/fonts/fontawesome-webfont.ttf | Bin 165548 -> 0 bytes tools/fonts/fontawesome-webfont.woff | Bin 98024 -> 0 bytes tools/fonts/fontawesome-webfont.woff2 | Bin 77160 -> 0 bytes tools/fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes tools/fonts/glyphicons-halflings-regular.svg | 288 - tools/fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes tools/fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes tools/fonts/ionicons.eot | Bin 120724 -> 0 bytes tools/fonts/ionicons.svg | 2230 -------- tools/fonts/ionicons.ttf | Bin 188508 -> 0 bytes tools/fonts/ionicons.woff | Bin 67904 -> 0 bytes tools/js/adminlte.min.js | 21 +- tools/js/adminlte.min.js.map | 1 + tools/js/bootstrap.bundle.min.js | 7 + tools/js/bootstrap.bundle.min.js.map | 1 + tools/js/bootstrap.min.js | 7 - tools/js/jquery-ui.min.js | 22 +- tools/js/jquery.dataTables.min.js | 166 - tools/js/jquery.min.js | 4 +- tools/js/jquery.min.map | 2 +- tools/webfonts/fa-brands-400.eot | Bin 0 -> 130906 bytes tools/webfonts/fa-brands-400.svg | 3496 ++++++++++++ tools/webfonts/fa-brands-400.ttf | Bin 0 -> 130600 bytes tools/webfonts/fa-brands-400.woff | Bin 0 -> 88428 bytes tools/webfonts/fa-brands-400.woff2 | Bin 0 -> 75336 bytes tools/webfonts/fa-regular-400.eot | Bin 0 -> 34394 bytes tools/webfonts/fa-regular-400.svg | 803 +++ tools/webfonts/fa-regular-400.ttf | Bin 0 -> 34096 bytes tools/webfonts/fa-regular-400.woff | Bin 0 -> 16804 bytes tools/webfonts/fa-regular-400.woff2 | Bin 0 -> 13584 bytes tools/webfonts/fa-solid-900.eot | Bin 0 -> 192758 bytes tools/webfonts/fa-solid-900.svg | 4667 +++++++++++++++++ tools/webfonts/fa-solid-900.ttf | Bin 0 -> 192472 bytes tools/webfonts/fa-solid-900.woff | Bin 0 -> 98384 bytes tools/webfonts/fa-solid-900.woff2 | Bin 0 -> 75728 bytes tools/{fonts => webfonts}/index.html | 0 88 files changed, 11220 insertions(+), 8080 deletions(-) create mode 100644 system/pages/admin/modules/balance.php create mode 100644 system/pages/admin/modules/created.php create mode 100644 system/pages/admin/modules/templates/balance.html.twig create mode 100644 system/pages/admin/modules/templates/created.html.twig delete mode 100644 tools/css/bootstrap.min.css.map delete mode 100644 tools/css/ionicons.min.css delete mode 100644 tools/css/jquery.dataTables.min.css delete mode 100644 tools/css/skins/skin-blue.css delete mode 100644 tools/css/skins/skin-blue.min.css delete mode 100644 tools/fonts/FontAwesome.otf delete mode 100644 tools/fonts/fontawesome-webfont.eot delete mode 100644 tools/fonts/fontawesome-webfont.svg delete mode 100644 tools/fonts/fontawesome-webfont.ttf delete mode 100644 tools/fonts/fontawesome-webfont.woff delete mode 100644 tools/fonts/fontawesome-webfont.woff2 delete mode 100644 tools/fonts/glyphicons-halflings-regular.eot delete mode 100644 tools/fonts/glyphicons-halflings-regular.svg delete mode 100644 tools/fonts/glyphicons-halflings-regular.ttf delete mode 100644 tools/fonts/glyphicons-halflings-regular.woff delete mode 100644 tools/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 tools/fonts/ionicons.eot delete mode 100644 tools/fonts/ionicons.svg delete mode 100644 tools/fonts/ionicons.ttf delete mode 100644 tools/fonts/ionicons.woff create mode 100644 tools/js/adminlte.min.js.map create mode 100644 tools/js/bootstrap.bundle.min.js create mode 100644 tools/js/bootstrap.bundle.min.js.map delete mode 100644 tools/js/bootstrap.min.js delete mode 100644 tools/js/jquery.dataTables.min.js create mode 100644 tools/webfonts/fa-brands-400.eot create mode 100644 tools/webfonts/fa-brands-400.svg create mode 100644 tools/webfonts/fa-brands-400.ttf create mode 100644 tools/webfonts/fa-brands-400.woff create mode 100644 tools/webfonts/fa-brands-400.woff2 create mode 100644 tools/webfonts/fa-regular-400.eot create mode 100644 tools/webfonts/fa-regular-400.svg create mode 100644 tools/webfonts/fa-regular-400.ttf create mode 100644 tools/webfonts/fa-regular-400.woff create mode 100644 tools/webfonts/fa-regular-400.woff2 create mode 100644 tools/webfonts/fa-solid-900.eot create mode 100644 tools/webfonts/fa-solid-900.svg create mode 100644 tools/webfonts/fa-solid-900.ttf create mode 100644 tools/webfonts/fa-solid-900.woff create mode 100644 tools/webfonts/fa-solid-900.woff2 rename tools/{fonts => webfonts}/index.html (100%) diff --git a/admin/template/style.css b/admin/template/style.css index c94f27c9..e69de29b 100644 --- a/admin/template/style.css +++ b/admin/template/style.css @@ -1,44 +0,0 @@ -.slidecontainer { - width: 100%; -} - -.slider { - -webkit-appearance: none; - width: 100%; - - outline: none; - opacity: 0.7; - -webkit-transition: .2s; - transition: opacity .2s; -} - -.slider:hover { - opacity: 1; -} - -.slider::-webkit-slider-thumb { - -webkit-appearance: none; - appearance: none; - width: 15px; - height: 25px; - background: #3c8dbc; - cursor: pointer; -} - -.slider::-moz-range-thumb { - width: 25px; - height: 25px; - background: #3c8dbc; - cursor: pointer; -} - -td.details-control { - text-align: center; - color: forestgreen; - cursor: pointer; -} - -tr.shown td.details-control { - text-align: center; - color: red; -} \ No newline at end of file diff --git a/admin/template/template.php b/admin/template/template.php index c25d90d9..db8df386 100644 --- a/admin/template/template.php +++ b/admin/template/template.php @@ -1,229 +1,206 @@ - +
-