<% if _SESSION["logined"] ~= nil then local stop = _POST["stop"] if stop ~= nil then c_StopServer() c_AddAdminLog("administrator '".._SESSION["admin"].."' stopped the server.",ADMIN_LOG_OK) else c_StartServer() c_AddAdminLog("administrator '".._SESSION["admin"].."' started the server.",ADMIN_LOG_OK) end for _,domain in pairs(c_GetDomainList()) do local online = tostring(c_IsDomainOnline(domain)) rawset(_SESSION,"online_"..domain,online) end SessionModule.save(_SESSION_ID) end %>