<% local msg = {} if _SESSION["logined"] ~= nil then local data = {} rawset(data, "admin_domainadmin", _SESSION["admin_domainadmin"] or "") rawset(data, "admin_domainlist", _SESSION["admin_domainlist"] or "") rawset(data, "admin_readonly", _SESSION["admin_readonly"] or "") rawset(msg, "code", 0) rawset(msg, "data", data) else rawset(msg, "code", -1) rawset(msg, "error", "not logged in") end print(json.encode(msg)) %>