<% local msg = {} if _SESSION["logined"] ~= nil then local domain = _GET["domain"] or _POST["domain"] local accessway = c_AccessDataWay(domain) local totalrecords = 0 local totalpages = 0 if accessway == 2 or accessway == 3 then totalrecords,totalpages = c_GetGroupPageCount(domain) end local data = {} data["accessway"] = accessway data["totalrecords"] = totalrecords data["totalpages"] = totalpages rawset(msg, "code", 0) rawset(msg, "data", data) print(json.encode(msg)) else rawset(msg, "code", -1) rawset(msg, "error", "not logged in") print(json.encode(msg)) end %>