diff --git a/COMPILING b/COMPILING index 9e29cee31..f8bdb298e 100644 --- a/COMPILING +++ b/COMPILING @@ -1,6 +1,7 @@ -COMPILING -========= - -To compile MCServer on *nix, you need a GNUmake-compatible make that reads GNUmakefile. -Run "make" to build a debug version (slow, but gives more info on crash) -Run "make release=1" to build a release version (fast, less info on crash) \ No newline at end of file +COMPILING +========= + +To compile MCServer on *nix, you need a GNUmake-compatible make that reads GNUmakefile. +Run "make" to build a debug version (slow, but gives more info on crash) +Run "make release=1" to build a release version (fast, less info on crash) +Add addm32=1 to compile in 32-bit mode on 64-bit systems. 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 .. "
" .. cRoot:Get():GetServer():GetServerID() .. "
" + + Content = Content .. "