From c23d87277db3adecc5c09c9531ee5e4aae8cad15 Mon Sep 17 00:00:00 2001 From: Ambushed91 Date: Thu, 23 Oct 2014 19:59:49 +0200 Subject: Update WebAdmin All files have been updated to the latest version off the new WebAdmin look. --- MCServer/webadmin/(original).html | 8 +- MCServer/webadmin/files/guest.html | 5 + MCServer/webadmin/files/header.png | Bin 0 -> 221 bytes MCServer/webadmin/files/home.gif | Bin 0 -> 1026 bytes MCServer/webadmin/files/loading.gif | Bin 0 -> 7364 bytes MCServer/webadmin/files/log_out.png | Bin 0 -> 995 bytes MCServer/webadmin/files/login.css | 442 +++++++++++++ MCServer/webadmin/files/login.gif | Bin 0 -> 586 bytes MCServer/webadmin/files/logo_login.png | Bin 0 -> 18057 bytes MCServer/webadmin/files/pmfolder.gif | Bin 0 -> 995 bytes MCServer/webadmin/files/style.css | 1063 ++++++++++++++++++++++++------ MCServer/webadmin/files/sub_pmfolder.gif | Bin 0 -> 1022 bytes MCServer/webadmin/files/tcat.png | Bin 0 -> 183 bytes MCServer/webadmin/files/thead.png | Bin 0 -> 132 bytes MCServer/webadmin/login_template.html | 78 ++- MCServer/webadmin/temp.html | 100 +++ MCServer/webadmin/template.html | 261 ++++---- MCServer/webadmin/template.lua | 143 ++-- 18 files changed, 1699 insertions(+), 401 deletions(-) create mode 100644 MCServer/webadmin/files/guest.html create mode 100644 MCServer/webadmin/files/header.png create mode 100644 MCServer/webadmin/files/home.gif create mode 100644 MCServer/webadmin/files/loading.gif create mode 100644 MCServer/webadmin/files/log_out.png create mode 100644 MCServer/webadmin/files/login.css create mode 100644 MCServer/webadmin/files/login.gif create mode 100644 MCServer/webadmin/files/logo_login.png create mode 100644 MCServer/webadmin/files/pmfolder.gif create mode 100644 MCServer/webadmin/files/sub_pmfolder.gif create mode 100644 MCServer/webadmin/files/tcat.png create mode 100644 MCServer/webadmin/files/thead.png create mode 100644 MCServer/webadmin/temp.html (limited to 'MCServer') diff --git a/MCServer/webadmin/(original).html b/MCServer/webadmin/(original).html index 673a93ada..239a255e5 100644 --- a/MCServer/webadmin/(original).html +++ b/MCServer/webadmin/(original).html @@ -1,7 +1,7 @@ - + {TITLE} -
- -

MCServer - WebAdmin

-
- -
-
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + +
+
+ Welcome Guest +
+
+
+ +
+
+
+
+
+ - + \ No newline at end of file diff --git a/MCServer/webadmin/temp.html b/MCServer/webadmin/temp.html new file mode 100644 index 000000000..697bf6276 --- /dev/null +++ b/MCServer/webadmin/temp.html @@ -0,0 +1,100 @@ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Menu
User CP Home
+
[-]
+
Messenger
+
Compose
+ + + + +
Tracking
Edit Folders
+
[-]
+
Your Profile
+
+ + + + + + + + +
Edit Options
+
[-]
+
Miscellaneous
+
Group Memberships
Buddy/Ignore List
Manage Attachments
Saved Drafts
Subscribed Threads
Forum Subscriptions
View Profile
+
+ + + + + + + + + + +
Your Account Summary
ambushed01
+ ambushed01
+ Posts: 25 (4.3 per day | 0.16 percent of total posts)
+ + Reputation: 0 [Details]
+ + Email: arianroeloffzen@gmail.com
+ Registration Date: 10-10-2014, 09:07 PM
+ Primary User Group: Registered
+ + Members Referred: 0
+
To refer a member to this board, direct them to http://forum.mc-server.org/member.php?action=register&referrer=2273 + +
+
\ No newline at end of file diff --git a/MCServer/webadmin/template.html b/MCServer/webadmin/template.html index b0864e35d..822f73857 100644 --- a/MCServer/webadmin/template.html +++ b/MCServer/webadmin/template.html @@ -1,140 +1,129 @@ - - {TITLE} | {PLUGIN_NAME} - - - - - - -
- - Login: {USERNAME} - -
-
- -
- -
- {CONTENT} -
-
-

MCServer is using {MEM}MB of memory, with {NUMCHUNKS} chunks loaded.

-

Web Design by

-
+ + {TITLE} | {PLUGIN_NAME} + + + + + + + +
+ Login: {USERNAME}
+
+ +
+ +
+ {CONTENT}
- +

MCServer is using {MEM}MB of memory, with {NUMCHUNKS} chunks loaded.

Web Design by Tiger

+
+ diff --git a/MCServer/webadmin/template.lua b/MCServer/webadmin/template.lua index 84a50b055..1b2f18246 100644 --- a/MCServer/webadmin/template.lua +++ b/MCServer/webadmin/template.lua @@ -23,30 +23,11 @@ end function GetDefaultPage() local PM = cRoot:Get():GetPluginManager() - local SubTitle = "Current Game" + local SubTitle = "Home" local Content = "" - Content = Content .. "

Server Name:

" - Content = Content .. "

" .. cRoot:Get():GetServer():GetServerID() .. "

" + Content = Content .. "

Home Home Home

    I have no idea what this content should do.
" - Content = Content .. "

Plugins:

    " - local AllPlugins = PM:GetAllPlugins() - for key,value in pairs(AllPlugins) do - if( value ~= nil and value ~= false ) then - Content = Content .. "
  • " .. key .. " V." .. value:GetVersion() .. "
  • " - end - end - - Content = Content .. "
" - Content = Content .. "

Players:

    " - - local AddPlayerToTable = function( Player ) - Content = Content .. "
  • " .. Player:GetName() .. "
  • " - end - cRoot:Get():ForEachPlayer( AddPlayerToTable ) - - Content = Content .. "

"; - return Content, SubTitle end @@ -83,20 +64,47 @@ function ShowPage(WebAdmin, TemplateRequest) Output([[ - - -]] .. Title .. [[ - - + ]] .. Title .. [[ + + + + + -
-
- MCServer -
- + ]]) -- cgit v1.2.3