summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-06 19:28:09 +0200
committermadmaxoft <github@xoft.cz>2013-08-06 19:28:09 +0200
commitc55fabb5ad34ec57760b90ea11960f7f426990db (patch)
treeeaa53bca6eff7fca7d4547b46860222d9580af9c /MCServer
parentFixed compilation in ManualBindings (diff)
downloadcuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.tar
cuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.tar.gz
cuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.tar.bz2
cuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.tar.lz
cuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.tar.xz
cuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.tar.zst
cuberite-c55fabb5ad34ec57760b90ea11960f7f426990db.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/webadmin/template.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/MCServer/webadmin/template.lua b/MCServer/webadmin/template.lua
index f508ad5aa..1ab1aab88 100644
--- a/MCServer/webadmin/template.lua
+++ b/MCServer/webadmin/template.lua
@@ -4,6 +4,10 @@ function Output(String)
table.insert(SiteContent, String)
end
+
+
+
+
function GetTableSize(Table)
local Size = 0
for key,value in pairs(Table) do
@@ -12,6 +16,10 @@ function GetTableSize(Table)
return Size
end
+
+
+
+
function GetDefaultPage()
local PM = cRoot:Get():GetPluginManager()
@@ -42,11 +50,15 @@ function GetDefaultPage()
return Content, SubTitle
end
+
+
+
+
function ShowPage(WebAdmin, TemplateRequest)
SiteContent = {}
local BaseURL = WebAdmin:GetBaseURL(TemplateRequest.Request.Path)
local Title = "MCServer"
- local MemoryUsage = WebAdmin:GetMemoryUsage()
+ local MemoryUsage = cWebAdmin:GetMemoryUsage()
local NumChunks = cRoot:Get():GetTotalChunkCount()
local PluginPage = WebAdmin:GetPage(TemplateRequest.Request)
local PageContent = PluginPage.Content
@@ -408,6 +420,7 @@ function ShowPage(WebAdmin, TemplateRequest)
<div id="sidebar">
<ul class="sideNav">
]])
+
local AllPlugins = WebAdmin:GetPlugins()
for key,value in pairs(AllPlugins) do
@@ -421,6 +434,7 @@ function ShowPage(WebAdmin, TemplateRequest)
end
end
end
+
Output([[
</ul>