diff --git a/MCServer/webadmin/template.lua b/MCServer/webadmin/template.lua
new file mode 100644
index 000000000..f508ad5aa
--- /dev/null
+++ b/MCServer/webadmin/template.lua
@@ -0,0 +1,453 @@
+-- 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 .. "
Server Name:
"
+ Content = Content .. "
" .. cRoot:Get():GetServer():GetServerID() .. "
"
+
+ 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 .. "
+ ]])
+
+ 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("
"..PluginWebTitle.."
");
+
+ for webname,prettyname in pairs(TabNames) do
+ Output("