<% if _SESSION["logined"] ~= nil then local domain = _POST["domain"] local user = _POST["user"] if user ~= nil then user = json.decode(user) local result, bADuser = c_UserExist(domain,user.username) if result == true then if bADuser == true then print("4") else print("0") end else user.username = string.gsub(user.username,"%[","") user.username = string.gsub(user.username,"%]","") AddUser(domain,user) if c_UserExist(domain,user.username) == true then print("1") else print("2") end end end else print("-1") end %>