2013-07-28 20:37:59 -04:00
|
|
|
-- Use a table for fast concatenation of strings
|
|
|
|
local SiteContent = {}
|
|
|
|
function Output(String)
|
|
|
|
table.insert(SiteContent, String)
|
|
|
|
end
|
|
|
|
|
2013-08-06 13:28:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-28 20:37:59 -04:00
|
|
|
function GetTableSize(Table)
|
|
|
|
local Size = 0
|
|
|
|
for key,value in pairs(Table) do
|
|
|
|
Size = Size + 1
|
|
|
|
end
|
|
|
|
return Size
|
|
|
|
end
|
|
|
|
|
2013-08-06 13:28:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-28 20:37:59 -04:00
|
|
|
function GetDefaultPage()
|
|
|
|
local PM = cRoot:Get():GetPluginManager()
|
|
|
|
|
|
|
|
local SubTitle = "Current Game"
|
|
|
|
local Content = ""
|
|
|
|
|
|
|
|
Content = Content .. "<h4>Server Name:</h4>"
|
|
|
|
Content = Content .. "<p>" .. cRoot:Get():GetServer():GetServerID() .. "</p>"
|
|
|
|
|
|
|
|
Content = Content .. "<h4>Plugins:</h4><ul>"
|
|
|
|
local AllPlugins = PM:GetAllPlugins()
|
|
|
|
for key,value in pairs(AllPlugins) do
|
|
|
|
if( value ~= nil and value ~= false ) then
|
|
|
|
Content = Content .. "<li>" .. key .. " V." .. value:GetVersion() .. "</li>"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Content = Content .. "</ul>"
|
|
|
|
Content = Content .. "<h4>Players:</h4><ul>"
|
|
|
|
|
|
|
|
local AddPlayerToTable = function( Player )
|
|
|
|
Content = Content .. "<li>" .. Player:GetName() .. "</li>"
|
|
|
|
end
|
|
|
|
cRoot:Get():ForEachPlayer( AddPlayerToTable )
|
|
|
|
|
|
|
|
Content = Content .. "</ul><br>";
|
|
|
|
|
|
|
|
return Content, SubTitle
|
|
|
|
end
|
|
|
|
|
2013-08-06 13:28:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-28 20:37:59 -04:00
|
|
|
function ShowPage(WebAdmin, TemplateRequest)
|
|
|
|
SiteContent = {}
|
|
|
|
local BaseURL = WebAdmin:GetBaseURL(TemplateRequest.Request.Path)
|
|
|
|
local Title = "MCServer"
|
2013-08-06 13:28:09 -04:00
|
|
|
local MemoryUsage = cWebAdmin:GetMemoryUsage()
|
2013-07-28 20:37:59 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
Output([[
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<link rel="icon" href="data:application/octet-stream;base64,AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAQQAAAAAAgIDBRghJ5o5TlumCg0QCQAAAAABAgIEAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAgAAAAMAAAAACQwPMxsnL88jMz3/S2d6/0xoetcaIig6AAAAAAEBAQMBAQEDAAAAAAAAAAAAAAAAAQEBAwAAAAAEAwMEFhwhgRomMPwfLTj/IC86/DJHWPxKaH3/TGN0/jk+QYgEBgcFAAAAAAEBAgMAAAAAAAAAAgAAAAAKDRAuHSMpzB8rNP8dKTP8FiIp/QkXGv8sSEr/QV1u/UhnefxWdIb/P1dm0BIYHDEAAAAAAAEB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Skn/FjQ0/xQ/O/8aMDf/TVhi/0ljdvxYe5D/R2NyvgAAAAAAAAACAAAAAQAAAAANFRzGEh0m/x0uN/wKHRn/Bg4T/wMUEv8JJyH/Dy0p/wYjH/8IJB//Gjsz/xQyK/8TNDD/DjMu/z96a/8veG3/J3Fg/zd8b/8oa1//FExD/yhjVv8aWEb/ImRa/xhXTv86SUz/QlNl/Uhmff9bfpPWAAAAAAAAAAAAAAAAAQIDAxEaI9wSIyj/CBYW/QYWE/8HGRr/CSsi/wosI/8RMSz/ES4o/wwtKP8QMy7/Cisn/w8uKv8YNzD/Pod9/zB/df82e3L/Mnho/yduWP8ueW3/N3Zq/ypyZf8nbV3/IFxT/xE4Of8zT1z+Mldc/ztRY+kHCwwNAAAAAAAAAAABBQUSER0d7wwcGP8IIxv+CSId/wsgHP8
|
|
|
|
<title>]] .. Title .. [[</title>
|
|
|
|
|
|
|
|
<style type="text/css" media="screen">
|
|
|
|
|
|
|
|
/* reset CSS */
|
|
|
|
|
|
|
|
html, body, div, span, applet, object, iframe,
|
|
|
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
|
|
|
a, abbr, acronym, address, big, cite, code,
|
|
|
|
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
|
|
|
small, strike, strong, sub, sup, tt, var,
|
|
|
|
b, u, i, center,
|
|
|
|
dl, dt, dd, ol, ul, li,
|
|
|
|
fieldset, form, label, legend,
|
|
|
|
table, caption, tbody, tfoot, thead, tr, th, td {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
font-size: 100%;
|
|
|
|
vertical-align: baseline;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
ol, ul {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
blockquote, q {
|
|
|
|
quotes: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remember to define focus styles! */
|
|
|
|
:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remove textarea resize at Safari */
|
|
|
|
textarea {
|
|
|
|
resize: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* remember to highlight inserts somehow! */
|
|
|
|
ins {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
del {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* tables still need 'cellspacing="0"' in the markup */
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
Origional from http://www.perspectived.com/
|
|
|
|
Modified by Ben Phelps
|
|
|
|
Made for FakeTruth - MCServer
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Basic ---------------------------------------- */
|
|
|
|
|
|
|
|
.clear { clear: both; }
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: white;
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
|
|
font-size: 12px;
|
|
|
|
color: #646464;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#wrapper {
|
|
|
|
text-align: left;
|
|
|
|
width: 930px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Logo ---------------------------------------- */
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin: 15px 0 10px 5px;
|
|
|
|
width: 180px;
|
|
|
|
height: 36px;
|
|
|
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAkCAMAAAAXdeBDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuVQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs7OzAAAAAAAAoqKiAAAAvLy8AAA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tXGspvjnLOGh0N460RcELQQkcn15/AnAFxCHbvPqPUSE9xedKyBDHPpqBm1blXc/5lKwfkRSOIbBNwQ8vQEW8x+uexaWtqEb2z2jLxSaadjb/vJWLAUCLnRtlye4bQ7CYPK7Slb+ayrMhfUqt1Ss/PeLlv17RvFVqsisEcQqx2C7+FyqfwmJXqcp2ke9oi8YGl4tSkgSAM6Fph799KcU7SSkLEgJxoSGYYVW3v5MZqIAFN8I65qqvu6RLUQLcgx4r9ukO0n7X5lsr04w0fu9on1CI5VDY4F/fN5DAnRriq3u2pMLrTm5XKVBjcvvDoPTCO8uJSePzr+3YFlp5ztNDUEjuO6pXP4rtAaDp/rI5ETBKn5MRbDl2zyifUMrDFrFgdoeTuHQyrkz4hCcEcF29PMz4lXKlVAk8r3fXHtzey8rw+8JzTtsW5POH++9dkV7twM1ehtlH/w4K6duqteWLCgphiyyJeUd7cMAkDwK0AQ9D5psAuhN5NxpfMQ9jY/y07gsK6ucSSubL1UKWYttJ5UuBY5kruA4BWjf7IOXqxRaoLPJgK5Dh36j0Mo6EJjBEo9on9AifiQeG8BSLbSA7wbou7HHvYcsSUh
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 a {
|
|
|
|
display: block;
|
|
|
|
width: 225px;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 span { display: none; }
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: #646464;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Container ---------------------------------------- */
|
|
|
|
|
|
|
|
#containerHolder {
|
|
|
|
background: #eee;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#container {
|
|
|
|
background: #fff url(data:image/gif;base64,R0lGODlhtAABAIAAAN3d3f///yH5BAAAAAAALAAAAAC0AAEAAAIMjI+py+0Po5y0WgYKADs%3D) repeat-y left top;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
width: 918px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#connectHolder {
|
|
|
|
background: #eee;
|
|
|
|
padding: 5px;
|
|
|
|
margin-bottom:8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#connect {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
background-color: #fff;
|
|
|
|
padding:5px;
|
|
|
|
width: 908px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pics {
|
|
|
|
height: 375px;
|
|
|
|
width: 600px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pics img {
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
background-color: #eee;
|
|
|
|
width: 600px;
|
|
|
|
height: 375px;
|
|
|
|
margin-left: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Login -------------------------------------- */
|
|
|
|
|
|
|
|
#loginLogo {
|
|
|
|
margin: 0 auto;
|
|
|
|
margin-top:100px;
|
|
|
|
width: 180px;
|
|
|
|
height: 36px;
|
|
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAkCAMAAAAXdeBDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuVQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs7OzAAAAAAAAoqKiAAAAvLy8AAAAlZWVtbW1j4+Pra2tiYmJp6enAAAAhISEoaGhAAAAgICAm5ube3t7lZWVd3d3kZGRc3NzjIyMbGxsg4ODgICAeHh43NzcdXV1cnJyy8vLWVlZbGxswcHB09PTvLy8uLi4tLS0sLCwvLy8uLi4tbW1oaGhnp6era2tm5ubqqqq39/f29vblZWV09PT4ODgz8/P3NzckZGRxcXF0tLSwsLCzs7Oy8vLyMjIt7e3vLy85ubm7u7u3d3d5+fn2tra5OTk19fX1dXV3t7e29vb2dnZ1tbW0dHRv7+/8PDw7u7u6+vr8fHx5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rTm5XKVBjcvvDoPTCO8uJSePzr+3YFlp5ztNDUEjuO6pXP4rtAaDp/rI5ETBKn5MRbDl2zyifUMrDFrFgdoeTuHQyrkz4hCcEcF29PMz4lXKlVAk8r3fXHtzey8rw+8JzTtsW5POH++9dkV7twM1ehtlH/w4K6duqteWLCgphiyyJeUd7cMAkDwK0AQ9D5psAuhN5NxpfMQ9jY/y07gsK6ucSSubL1UKWYttJ5UuBY5kruA4BWjf7IOXqxRaoLPJgK5Dh36j0Mo6EJjBEo9on9AifiQeG8BSLbSA7wbou7HHv
|
|
|
|
}
|
|
|
|
|
|
|
|
#loginHolder {
|
|
|
|
background: #eee;
|
|
|
|
padding: 5px;
|
|
|
|
width: 310px;
|
|
|
|
margin: 0 auto;
|
|
|
|
height: 90px;
|
|
|
|
margin-top:20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#login {
|
|
|
|
padding:10px;
|
|
|
|
width: 288px;
|
|
|
|
height: 68px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
background:#fff;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Sidebar ---------------------------------------- */
|
|
|
|
|
|
|
|
#sidebar {
|
|
|
|
width: 179px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar .sideNav { width: 179px; }
|
|
|
|
|
|
|
|
#sidebar .sideNav li { border-bottom: 1px solid #ddd; width: 179px; }
|
|
|
|
|
|
|
|
#sidebar .sideNav li a {
|
|
|
|
display: block;
|
|
|
|
color: #646464;
|
|
|
|
background: #f6f6f6;
|
|
|
|
text-decoration: none;
|
|
|
|
height: 29px;
|
|
|
|
line-height: 29px;
|
|
|
|
padding: 0 19px;
|
|
|
|
width: 141px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar .sideNav li a:hover { background: #fdfcf6; }
|
|
|
|
|
|
|
|
#sidebar .sideNav li a.active, #sidebar .sideNav li a.active:hover {
|
|
|
|
background: #f0f7fa;
|
|
|
|
color: #c66653;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Breadcrumb ---------------------------------------- */
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
width: 718px;
|
|
|
|
float: right;
|
|
|
|
color: #646464;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 20px 0 0 0;
|
|
|
|
padding: 0 0 10px 0;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 a {
|
|
|
|
color: #646464;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 a.active { color: #c66653; }
|
|
|
|
|
|
|
|
h2 a:hover { text-decoration: underline; }
|
|
|
|
|
|
|
|
/* Content ---------------------------------------- */
|
|
|
|
|
|
|
|
#main {
|
|
|
|
width: 700px;
|
|
|
|
float: right;
|
|
|
|
padding: 0 19px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main p {
|
|
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #5494af;
|
|
|
|
padding: 0 0 0 10px;
|
|
|
|
margin: 20px 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
padding: 0 0 0 10px;
|
|
|
|
margin: 20px 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main ul {
|
|
|
|
padding: 0 0 0 10px;
|
|
|
|
list-style-type: circle;
|
|
|
|
list-style-position: inside;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main table {
|
|
|
|
border-top: 1px solid #ddd;
|
|
|
|
width: 700px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main table tr th {
|
|
|
|
text-align: left;
|
|
|
|
background: #f6f6f6;
|
|
|
|
padding: 0px 20px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main table tr td {
|
|
|
|
background: #f6f6f6;
|
|
|
|
padding: 0px 20px;
|
|
|
|
height: 29px;
|
|
|
|
line-height: 29px;
|
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main table tr.odd td {
|
|
|
|
background: #fbfbfb;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main table tr:hover td { background: #fdfcf6; }
|
|
|
|
|
|
|
|
#main table .action {
|
|
|
|
text-align: right;
|
|
|
|
padding: 0 20px 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main table tr .action a { margin: 0 0 0 10px; text-decoration: none; color: #9b9b9b; }
|
|
|
|
#main table tr:hover .action .edit { color: #c5a059; }
|
|
|
|
#main table tr:hover .action .delete { color: #a02b2b; }
|
|
|
|
#main table tr:hover .action .view { color: #55a34a; }
|
|
|
|
|
|
|
|
#main table tr:hover .action a:hover { text-decoration: underline; }
|
|
|
|
|
|
|
|
fieldset {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
padding: 19px;
|
|
|
|
margin: 0 0 20px 0;
|
|
|
|
background: #fbfbfb;
|
|
|
|
}
|
|
|
|
|
|
|
|
form p { margin: 0 0 14px 0; float: left; width: 100%; }
|
|
|
|
|
|
|
|
label {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 0 7px 0;
|
|
|
|
line-height: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Footer ---------------------------------------- */
|
|
|
|
|
|
|
|
#footer {
|
|
|
|
margin: 10px 0 30px 0;
|
|
|
|
font-size: 11px;
|
|
|
|
line-height: 11px;
|
|
|
|
color: #9B9B9B;
|
|
|
|
padding: 0 0 0 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footer a { color: #9B9B9B; }
|
|
|
|
|
|
|
|
#footer a:hover { text-decoration: none; }
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="wrapper">
|
|
|
|
<!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
|
|
|
|
<h1>
|
|
|
|
<a href="]] .. BaseURL .. [["><span>MCServer</span></a>
|
|
|
|
</h1>
|
|
|
|
<div id="containerHolder">
|
|
|
|
<div id="container">
|
|
|
|
<div id="sidebar">
|
|
|
|
<ul class="sideNav">
|
|
|
|
]])
|
2013-08-06 13:28:09 -04:00
|
|
|
|
2013-07-28 20:37:59 -04:00
|
|
|
|
|
|
|
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("<li>"..PluginWebTitle.."</li>");
|
|
|
|
|
|
|
|
for webname,prettyname in pairs(TabNames) do
|
|
|
|
Output("<li><a href='" .. BaseURL .. PluginWebTitle .. "/" .. webname .. "'>" .. prettyname .. "</a></li>")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-08-06 13:28:09 -04:00
|
|
|
|
2013-07-28 20:37:59 -04:00
|
|
|
|
|
|
|
Output([[
|
|
|
|
</ul>
|
|
|
|
<!-- // .sideNav -->
|
|
|
|
</div>
|
|
|
|
<!-- // #sidebar -->
|
|
|
|
<!-- h2 stays for breadcrumbs -->
|
|
|
|
<h2>Welcome ]] .. TemplateRequest.Request.Username .. [[</h2>
|
|
|
|
<div id="main">
|
|
|
|
<h3>]] .. SubTitle .. [[</h3>
|
|
|
|
]] .. PageContent .. [[
|
|
|
|
</div>
|
|
|
|
<!-- // #main -->
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- // #container -->
|
|
|
|
</div>
|
|
|
|
<!-- // #containerHolder -->
|
|
|
|
|
|
|
|
<p id="footer">MCServer is using: ]] .. MemoryUsage .. [[MB of memory; Current chunk count: ]] .. NumChunks .. [[ </p>
|
|
|
|
</div>
|
|
|
|
<!-- // #wrapper -->
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
]])
|
|
|
|
|
|
|
|
return table.concat(SiteContent)
|
|
|
|
end
|