<% local msg = {} if _SESSION["logined"] ~= nil then local domain = _GET["domain"] or _POST["domain"] local data = {} local password_option = {} local connect_option = {} rawset(password_option, "len", c_GetOptionInt(domain,DOPTION_PASSWORD_LEN_INT)) rawset(password_option, "number", c_GetOptionInt(domain,DOPTION_INC_NUMBER_INT) == 1) rawset(password_option, "lowcase", c_GetOptionInt(domain,DOPTION_INC_LOWERCASE_INT) == 1) rawset(password_option, "uppercase", c_GetOptionInt(domain,DOPTION_INC_UPPERCASE_INT) == 1) rawset(password_option, "nonalpha", c_GetOptionInt(domain,DOPTION_INC_NONALPHANUMERIC_INT) == 1) rawset(connect_option, "command_timeout", c_GetOptionInt(domain,DOPTION_COMMAND_TIMEOUT_INT)) rawset(connect_option, "transfer_timeout", c_GetOptionInt(domain,DOPTION_TRANSFER_TIMEOUT_INT)) rawset(data, "password_option", password_option) rawset(data, "connect_option", connect_option) rawset(msg, "code", 0) rawset(msg, "data", data) else rawset(msg, "code", -1) rawset(msg, "error", "not logged in") end print(json.encode(msg)) %>