diff options
author | madmaxoft <github@xoft.cz> | 2013-08-07 15:46:43 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-07 15:46:43 +0200 |
commit | 3d027a8928ee423ee6a475637752bd50a5f0d44c (patch) | |
tree | 82c6993605326422e188410dda8b897a28ce16ef /MCServer/webadmin | |
parent | Merge pull request #47 from tonibm19/master (diff) | |
parent | Debuggers plugin: added the "/spidey" command. (diff) | |
download | cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.gz cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.bz2 cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.lz cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.xz cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.zst cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.zip |
Diffstat (limited to 'MCServer/webadmin')
-rw-r--r-- | MCServer/webadmin/template.lua | 16 |
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> |