From dac97826f7d0c9b9135c1a08c4d5f16b61494bd1 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 26 Aug 2015 10:58:51 +0200 Subject: Renamed output directory to Server --- .../GenerateSelfSignedHTTPSCertUsingOpenssl.cmd | 12 - .../GenerateSelfSignedHTTPSCertUsingOpenssl.sh | 10 - MCServer/webadmin/files/background.gif | Bin 57 -> 0 bytes MCServer/webadmin/files/favicon.ico | Bin 32038 -> 0 bytes MCServer/webadmin/files/guest.html | 18 - MCServer/webadmin/files/header.png | Bin 221 -> 0 bytes MCServer/webadmin/files/home.gif | Bin 1026 -> 0 bytes MCServer/webadmin/files/loading.gif | Bin 7364 -> 0 bytes MCServer/webadmin/files/log_out.png | Bin 995 -> 0 bytes MCServer/webadmin/files/login.css | 219 ----------- MCServer/webadmin/files/login.gif | Bin 586 -> 0 bytes MCServer/webadmin/files/logo.png | Bin 3315 -> 0 bytes MCServer/webadmin/files/logo_login.png | Bin 18057 -> 0 bytes MCServer/webadmin/files/mc-logo.png | Bin 66137 -> 0 bytes MCServer/webadmin/files/pmfolder.gif | Bin 995 -> 0 bytes MCServer/webadmin/files/style.css | 427 --------------------- MCServer/webadmin/files/sub_pmfolder.gif | Bin 1022 -> 0 bytes MCServer/webadmin/files/tcat.png | Bin 183 -> 0 bytes MCServer/webadmin/files/thead.png | Bin 132 -> 0 bytes MCServer/webadmin/login_template.html | 69 ---- MCServer/webadmin/template.html | 140 ------- MCServer/webadmin/template.lua | 200 ---------- 22 files changed, 1095 deletions(-) delete mode 100644 MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd delete mode 100755 MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.sh delete mode 100644 MCServer/webadmin/files/background.gif delete mode 100644 MCServer/webadmin/files/favicon.ico delete mode 100644 MCServer/webadmin/files/guest.html delete mode 100644 MCServer/webadmin/files/header.png delete mode 100644 MCServer/webadmin/files/home.gif delete mode 100644 MCServer/webadmin/files/loading.gif delete mode 100644 MCServer/webadmin/files/log_out.png delete mode 100644 MCServer/webadmin/files/login.css delete mode 100644 MCServer/webadmin/files/login.gif delete mode 100644 MCServer/webadmin/files/logo.png delete mode 100644 MCServer/webadmin/files/logo_login.png delete mode 100644 MCServer/webadmin/files/mc-logo.png delete mode 100644 MCServer/webadmin/files/pmfolder.gif delete mode 100644 MCServer/webadmin/files/style.css delete mode 100644 MCServer/webadmin/files/sub_pmfolder.gif delete mode 100644 MCServer/webadmin/files/tcat.png delete mode 100644 MCServer/webadmin/files/thead.png delete mode 100644 MCServer/webadmin/login_template.html delete mode 100644 MCServer/webadmin/template.html delete mode 100644 MCServer/webadmin/template.lua (limited to 'MCServer/webadmin') diff --git a/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd b/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd deleted file mode 100644 index 7022ef12a..000000000 --- a/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd +++ /dev/null @@ -1,12 +0,0 @@ -@echo off -echo This script generates the certificate and private key for the https webadmin -echo Note that the generated certificate is self-signed, and therefore not trusted by browsers -echo Note that this script requires openssl to be installed and in PATH -echo. -echo When OpenSSL asks you for Common Name, you need to enter the fully qualified domain name of the server, that is, e. g. gallery.xoft.cz -echo. -echo If OpenSSL fails with an error, "WARNING: can't open config file: /usr/local/ssl/openssl.cnf", you need to run this script as an administrator -echo. - -openssl req -x509 -newkey rsa:2048 -keyout httpskey.pem -out httpscert.crt -days 3650 -nodes -pause diff --git a/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.sh b/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.sh deleted file mode 100755 index 5cf1237c8..000000000 --- a/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -echo "This script generates the certificate and private key for the https webadmin" -echo "Note that the generated certificate is self-signed, and therefore not trusted by browsers" -echo "Note that this script requires openssl to be installed and in PATH" -echo "" -echo "When OpenSSL asks you for Common Name, you need to enter the fully qualified domain name of the server, that is, e. g. gallery.xoft.cz" -echo "" - -openssl req -x509 -newkey rsa:2048 -keyout httpskey.pem -out httpscert.crt -days 3650 -nodes diff --git a/MCServer/webadmin/files/background.gif b/MCServer/webadmin/files/background.gif deleted file mode 100644 index cab9bed56..000000000 Binary files a/MCServer/webadmin/files/background.gif and /dev/null differ diff --git a/MCServer/webadmin/files/favicon.ico b/MCServer/webadmin/files/favicon.ico deleted file mode 100644 index ea4bde926..000000000 Binary files a/MCServer/webadmin/files/favicon.ico and /dev/null differ diff --git a/MCServer/webadmin/files/guest.html b/MCServer/webadmin/files/guest.html deleted file mode 100644 index 4f965b75c..000000000 --- a/MCServer/webadmin/files/guest.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Guest Information - - - -

- Hello! Welcome to the MCServer WebAdmin. -

-

- This is a default message, edit files/guest.html to add your own custom message. -

- - - diff --git a/MCServer/webadmin/files/header.png b/MCServer/webadmin/files/header.png deleted file mode 100644 index 97b067715..000000000 Binary files a/MCServer/webadmin/files/header.png and /dev/null differ diff --git a/MCServer/webadmin/files/home.gif b/MCServer/webadmin/files/home.gif deleted file mode 100644 index b10e0bed7..000000000 Binary files a/MCServer/webadmin/files/home.gif and /dev/null differ diff --git a/MCServer/webadmin/files/loading.gif b/MCServer/webadmin/files/loading.gif deleted file mode 100644 index b8d06f669..000000000 Binary files a/MCServer/webadmin/files/loading.gif and /dev/null differ diff --git a/MCServer/webadmin/files/log_out.png b/MCServer/webadmin/files/log_out.png deleted file mode 100644 index 63232417a..000000000 Binary files a/MCServer/webadmin/files/log_out.png and /dev/null differ diff --git a/MCServer/webadmin/files/login.css b/MCServer/webadmin/files/login.css deleted file mode 100644 index 5d87da4c5..000000000 --- a/MCServer/webadmin/files/login.css +++ /dev/null @@ -1,219 +0,0 @@ -/* Copyright Justin S and MCServer Team, licensed under CC-BY-SA 3.0 */ -* { - margin: 0; -} - -body { - font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; - -webkit-font-smoothing: antialiased; - background: #fff url(header.png) repeat-x top left; - width: 100%; - min-width: 100%; - overflow: hidden; -} - -a:link { - color: #555; - text-decoration: none; -} - -a:visited { - color: #444; - text-decoration: none; -} - -a:hover, a:active { - color: #000; - text-decoration: underline; -} - -img { - border: none; -} - -h1 { - color: #069; -} - -.row1 { - border-bottom: 1px solid #000; - height: 100px; - max-height: 100px; -} - -.row2 { - margin: 0 auto; - text-align: center; - vertical-align: middle; -} - -.contention { - color: #000; - text-align: left; - line-height: 1.4; - margin: 0; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - font-size: 13px; -} - -button { - background: #fff; - color: #000; - border: 1px solid #ccc; - padding: 3px; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; - margin: -3px 0; -} - -button:hover { - border-top-color: #28597a; - background: #28597a; - color: #ccc; -} - -button:active { - border-top-color: #1b435e; - background: #1b435e; -} - -.push10 { - padding-bottom: 75px; -} - -#panel .upper { - background: #dcdbdc url(tcat.png) repeat-x; - border-top: 1px solid #fff; - border-bottom: 1px solid #bbb; - padding: 7px; -} - -#footer { - z-index: 99999; -} - -#footer ul.menu { - margin: 0; - padding: 0; - list-style: none; -} - -#footer ul.menu li { - margin: 0 5px; - display: inline; -} - -#footer .upper { - background: #dcdbdc url(tcat.png) repeat-x; - border-top: 1px solid #bbb; - padding: 6px; - overflow: hidden; - font-size: 12px; -} - -#footer .upper ul.bottom_links { - float: left; - margin: 3px 0 0 -5px; -} - -#footer .lower { - background: #a1a2a2 url(thead.png) top left repeat-x; - color: #fff; - border-top: 1px solid #ccc; - border-bottom: 1px solid #ddd; - overflow: hidden; - padding: 8px; - font-size: 11px; -} - -#footer .lower a:link, #footer .lower a:visited { - color: #fff; - font-weight: 700; -} - -#footer .lower a:hover, #footer .lower a:active { - color: #fff; - font-weight: 700; -} - -#footer .lower #current_time { - float: right; - padding-right: 6px; -} - -.wrapper { - width: 85%; - min-width: 970px; - max-width: 1500px; - margin: auto; -} - -#footer { - position: fixed; - left: 0; - bottom: 0; - height: 60px; - width: 100%; - background: #999; - border-top: 1px #000 solid; -} - -* html #footer { - position: absolute; - top: expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px'); -} - -tr td.trow2:first-child { - border-left: 0; -} - -tr td.trow2:last-child { - border-right: 0; -} - -.tborder { - -moz-border-radius: 7px; - -webkit-border-radius: 7px; - border-radius: 7px; -} - -.thead, .rounded_top { - -moz-border-radius-topleft: 6px; - -moz-border-radius-topright: 6px; - -webkit-border-top-left-radius: 6px; - -webkit-border-top-right-radius: 6px; - border-top-left-radius: 6px; - border-top-right-radius: 6px; -} - -table { - color: #000; - font-size: 13px; -} - -.tborder { - background: #fff; - width: 100%; - margin: auto; - border: 1px solid #ccc; - padding: 1px; -} - -.thead { - background: #a1a2a2 url(thead.png) top left repeat-x; - color: #fff; - border-bottom: 1px solid #8e8f8f; - padding: 8px; -} - -.trow2 { - background: #efefef; - border: 1px solid; - border-color: #fff #ddd #ddd #fff; -} - -.padtopp { - padding-top: 25px; -} diff --git a/MCServer/webadmin/files/login.gif b/MCServer/webadmin/files/login.gif deleted file mode 100644 index ce2cb6fc0..000000000 Binary files a/MCServer/webadmin/files/login.gif and /dev/null differ diff --git a/MCServer/webadmin/files/logo.png b/MCServer/webadmin/files/logo.png deleted file mode 100644 index 50733e824..000000000 Binary files a/MCServer/webadmin/files/logo.png and /dev/null differ diff --git a/MCServer/webadmin/files/logo_login.png b/MCServer/webadmin/files/logo_login.png deleted file mode 100644 index d2155f928..000000000 Binary files a/MCServer/webadmin/files/logo_login.png and /dev/null differ diff --git a/MCServer/webadmin/files/mc-logo.png b/MCServer/webadmin/files/mc-logo.png deleted file mode 100644 index 9a77a490f..000000000 Binary files a/MCServer/webadmin/files/mc-logo.png and /dev/null differ diff --git a/MCServer/webadmin/files/pmfolder.gif b/MCServer/webadmin/files/pmfolder.gif deleted file mode 100644 index 3fc68fdcb..000000000 Binary files a/MCServer/webadmin/files/pmfolder.gif and /dev/null differ diff --git a/MCServer/webadmin/files/style.css b/MCServer/webadmin/files/style.css deleted file mode 100644 index 7c0671970..000000000 --- a/MCServer/webadmin/files/style.css +++ /dev/null @@ -1,427 +0,0 @@ -/* Copyright Justin S and MCServer Team, licensed under CC-BY-SA 3.0 */ -* { - margin: 0; -} - -body { - font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; - -webkit-font-smoothing: antialiased; - background: #fff; - width: 100%; - min-width: 100%; - height:100%; - min-height:100%; - overflow-y: scroll; - overflow-x: hidden; -} - -a:link { - color: #555; - text-decoration: none; -} - -a:visited { - color: #444; - text-decoration: none; -} - -a:hover, a:active { - color: #000; - text-decoration: underline; -} - -img { - border: none; -} - -h1 { - color: #069; - text-shadow: 2px 2px #000; -} - -.row1 { - border-bottom: 1px #000 solid; - height: 100px; - max-height: 100px; - background: #fff url(header.png) repeat-x top left; -} - -.row2 { - margin: 0 auto; - text-align: center; - vertical-align: middle; - margin-top: 25px; - margin-bottom: 25px; -} - -.contention { - color: #000; - text-align: left; - line-height: 1.4; - margin: 0; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - font-size: 13px; - margin-bottom:75px; -} - -.push25 { -} - -#panel ul.menu { - margin: 0; - padding: 0; - list-style: none; -} - -#panel ul.menu li { - margin: 0 5px; - display: inline; -} - -#panel ul.menu li a { - padding-left: 20px; - background-repeat: no-repeat; - background-position: left center; -} - -#panel .upper ul.top_links { - float: right; - font-weight: 700; -} - -#panel .upper { - background: #dcdbdc url(tcat.png) repeat-x; - border-top: 1px solid #fff; - border-bottom: 1px solid #bbb; - padding: 7px; -} - -#footer ul.menu { - margin: 0; - padding: 0; - list-style: none; -} - -#footer ul.menu li { - margin: 0 5px; - display: inline; -} - -#footer .upper { - background: #dcdbdc url(tcat.png) repeat-x; - border-top: 1px solid #bbb; - padding: 6px; - overflow: hidden; - font-size: 12px; -} - -#footer .upper ul.bottom_links { - float: left; - margin: 3px 0 0 -5px; -} - -#footer .lower { - background: #a1a2a2 url(thead.png) top left repeat-x; - color: #fff; - border-top: 1px solid #ccc; - border-bottom: 1px solid #ddd; - overflow: hidden; - padding: 8px; - font-size: 11px; -} - -#footer .lower a:link,#footer .lower a:visited { - color: #fff; - font-weight: 700; -} - -#footer .lower a:hover,#footer .lower a:active { - color: #fff; - font-weight: 700; -} - -#footer .lower #current_time { - float: right; - padding-right: 6px; -} - -.wrapper { - width: 85%; - min-width: 970px; - max-width: 1500px; - margin: auto; -} - -#footer { - position: fixed; - left:0; - bottom:0; - height: 61px; - width: 100%; - background: #999; - border-top: 1px #000 solid; - border-bottom: 1px #000 solid; -} - -* html #footer { - position: absolute; - top: expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px'); -} - -tr td.trow1:first-child, tr td.trow2:first-child { - border-left: 0; -} - -tr td.trow1:last-child, tr td.trow2:last-child { - border-right: 0; -} - -.tborder { - -moz-border-radius: 7px; - -webkit-border-radius: 7px; - border-radius: 7px; -} - -.thead { - -moz-border-radius-topleft: 6px; - -moz-border-radius-topright: 6px; - -webkit-border-top-left-radius: 6px; - -webkit-border-top-right-radius: 6px; - border-top-left-radius: 6px; - border-top-right-radius: 6px; -} - -table { - color: #000; - font-size: 13px; -} - -.tborder { - background: #fff; - width: 100%; - margin: auto; - border: 1px solid #ccc; - padding: 1px; -} - -.thead { - background: #a1a2a2 url(thead.png) top left repeat-x; - color: #fff; - border-bottom: 1px solid #8e8f8f; - padding: 8px; -} - -.tcat { - background: #dcdbdc url(tcat.png) repeat-x; - color: #fff; - border-bottom: 1px solid #bbb; - padding: 6px; - font-size: 12px; -} - -.trow1 { - background: #f5f5f5; - border: 1px solid; - border-color: #fff #ddd #ddd #fff; -} - -.trow2 { - background: #efefef; - border: 1px solid; - border-color: #fff #ddd #ddd #fff; - padding: 15px; - box-sizing: border-box; - -moz-box-sizing: border-box; -} - -table { - color: #000; - font-size: 13px; - text-align: left; -} - -.tborder { - background: #fff; - width: 100%; - margin: auto; - border: 1px solid #ccc; - padding: 1px; -} - -.thead { - background: #a1a2a2 url(thead.png) top left repeat-x; - color: #fff; - border-bottom: 1px solid #8e8f8f; - padding: 8px; -} - -.tcat { - background: #dcdbdc url(tcat.png) repeat-x; - color: #fff; - border-bottom: 1px solid #bbb; - padding: 6px; - font-size: 12px; -} - -.trow1 { - background: #f5f5f5; - border: 1px solid; - border-color: #fff #ddd #ddd #fff; -} - -.trow2 { - background: #efefef; - border: 1px solid; - border-color: #fff #ddd #ddd #fff; -} - -.smalltext { - font-size: 11px; -} - -textarea { - background: #fff; - color: #000; - border: 1px solid #ccc; - padding: 2px; - line-height: 1.4; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - font-size: 13px; -} - -select { - background: #fff; - padding: 3px; - border: 1px solid #ccc; - font-family: Tahoma,Verdana,Arial,Sans-Serif; -} - -.usercp_nav_item { - display: block; - padding: 1px 0 1px 23px; -} - -.usercp_nav_pmfolder { - background: url(pmfolder.gif) no-repeat left center; -} - -.usercp_nav_sub_pmfolder { - padding-left: 40px; - background: url(sub_pmfolder.gif) no-repeat left center; -} - -.usercp_nav_home { - background: url(home.gif) no-repeat left center; -} - -.pagehead { - top: 0; - left: 0; - width: 100%; -} - -table { - width: 100%; -} - -table th { - border-bottom: 1px solid rgba(0,0,0,0.12); - padding: 5px; - text-align: left; -} - -table tr:nth-child(odd) { - background-color: rgba(0,0,0,0.015); -} - -p { - margin: 4px 0; - padding: 4px 3px; -} - -a { - text-decoration: none; - color: #000; - -webkit-transition: color .1s linear; - -moz-transition: color .1s linear; - transition: color .1s linear; -} - -a:hover { - color: #888; -} - -input[type="text"] { - background: #fff; - color: #000; - border: 1px solid #ccc; - padding: 2px; - line-height: 1.4; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - font-size: 13px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; -} - -input[type="text"]:hover { - background-color: #E5E4E2; -} - -input[type="text"]:focus { - background-color: #E5E4E2; -} - -hr { - border: none; - height: 1px; - background-color: rgba(0,0,0,0.12); -} - -h4 { - padding-bottom: 10px; - margin-bottom: 12px; - border-bottom: 1px solid rgba(0,0,0,0.12); -} - -#ChatDiv { - margin-bottom: 10px; -} - -#ChatMessage { - width: 92%; - margin-right: 5px; - box-sizing: border-box; - -moz-box-sizing: border-box; -} - -input[type="submit"] { - padding: 3px; - padding-left: 5px; - padding-right: 5px; - cursor: pointer; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; - background: #f5f5f5; - border: 1px solid #ccc; -} - -input[type="submit"]:hover { - background-color: #E5E4E2; -} - -button:disabled,input:disabled { - padding: 3px; - padding-left: 5px; - padding-right: 5px; - cursor: pointer; - font-family: Tahoma,Verdana,Arial,Sans-Serif; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; - border: none!important; - color: #fff!important; - background-color: #ccc!important; -} diff --git a/MCServer/webadmin/files/sub_pmfolder.gif b/MCServer/webadmin/files/sub_pmfolder.gif deleted file mode 100644 index 3d0d6e627..000000000 Binary files a/MCServer/webadmin/files/sub_pmfolder.gif and /dev/null differ diff --git a/MCServer/webadmin/files/tcat.png b/MCServer/webadmin/files/tcat.png deleted file mode 100644 index eb64eb3d6..000000000 Binary files a/MCServer/webadmin/files/tcat.png and /dev/null differ diff --git a/MCServer/webadmin/files/thead.png b/MCServer/webadmin/files/thead.png deleted file mode 100644 index 81aa04bac..000000000 Binary files a/MCServer/webadmin/files/thead.png and /dev/null differ diff --git a/MCServer/webadmin/login_template.html b/MCServer/webadmin/login_template.html deleted file mode 100644 index fb6f21b52..000000000 --- a/MCServer/webadmin/login_template.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - Cuberite WebAdmin - Login - - - - - -
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- - - - - - - - - -
-
MCServer WebAdmin
-
-
- -
-
-
-
-
- - - diff --git a/MCServer/webadmin/template.html b/MCServer/webadmin/template.html deleted file mode 100644 index b0864e35d..000000000 --- a/MCServer/webadmin/template.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - {TITLE} | {PLUGIN_NAME} - - - - - - -
- - Login: {USERNAME} - -
-
- -
- -
- {CONTENT} -
-
-

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

-

Web Design by

-
-
- - diff --git a/MCServer/webadmin/template.lua b/MCServer/webadmin/template.lua deleted file mode 100644 index 5b3ecf152..000000000 --- a/MCServer/webadmin/template.lua +++ /dev/null @@ -1,200 +0,0 @@ --- Use a table for fast concatenation of strings -local SiteContent = {} -function Output(String) - table.insert(SiteContent, String) -end - - - - - -function GetTableSize(Table) - local Size = 0 - for key,value in pairs(Table) do - Size = Size + 1 - end - return Size -end - - - - - -function GetDefaultPage() - local PM = cRoot:Get():GetPluginManager() - - local SubTitle = "Current Game" - local Content = "" - - Content = Content .. "

Plugins:

" - Content = Content .. "

Players:


"; - - return Content, SubTitle -end - - - - - -function ShowPage(WebAdmin, TemplateRequest) - SiteContent = {} - local BaseURL = WebAdmin:GetBaseURL(TemplateRequest.Request.Path) - local Title = "Cuberite WebAdmin" - local NumPlayers = cRoot:Get():GetServer():GetNumPlayers() - local MemoryUsageKiB = cRoot:GetPhysicalRAMUsage() - local NumChunks = cRoot:Get():GetTotalChunkCount() - local PluginPage = WebAdmin:GetPage(TemplateRequest.Request) - local PageContent = PluginPage.Content - local SubTitle = PluginPage.PluginName - if (PluginPage.TabName ~= "") then - SubTitle = PluginPage.PluginName .. " - " .. PluginPage.TabName - end - if (PageContent == "") then - PageContent, SubTitle = GetDefaultPage() - end - - local reqParamsClass = "" - - for key,value in pairs(TemplateRequest.Request.Params) do - reqParamsClass = reqParamsClass .. " param-" .. string.lower(string.gsub(key, "[^a-zA-Z0-9]+", "-") .. "-" .. string.gsub(value, "[^a-zA-Z0-9]+", "-")) - end - - if (string.gsub(reqParamsClass, "%s", "") == "") then - reqParamsClass = " no-param" - end - - Output([[ - - - - ]] .. Title .. [[ - - - - - -
- -
-
- - - - - - - -
- - - - - - - - - - - - - - - - - -
Menu
Home
Server Management
- ]]) - - - local AllPlugins = WebAdmin:GetPlugins() - for key,value in pairs(AllPlugins) do - local PluginWebTitle = value:GetWebTitle() - local TabNames = value:GetTabNames() - if (GetTableSize(TabNames) > 0) then - Output("\n"); - - for webname,prettyname in pairs(TabNames) do - Output("\n") - end - - Output("
\n"); - end - end - - - Output([[ -
-
- - - - - - - - - -
]] .. SubTitle .. [[
]] .. PageContent .. [[
-
-
-
- -
- - -]]) - - return table.concat(SiteContent) -end -- cgit v1.2.3