<% local msg = {} if _SESSION["logined"] ~= nil then rawset(msg, "code", 0) local admins = {} for _,user in pairs(c_GetAdminList()) do if type(user) == "table" then local admin = {} rawset(admin,"username",user["username"]) if c_IsReadonlyAdmin() == false then rawset(admin,"lastlogin",user["lastlogin"]) rawset(admin,"lastip",user["lastip"]) rawset(admin,"loginlist",user["loginlist"]) end table.insert(admins,admin) end end rawset(msg, "data", admins) print(json.encode(msg)) else rawset(msg, "code", -1) rawset(msg, "error", "not logged in") print(json.encode(msg)) end %>