<% if _SESSION["logined"] ~= nil then local domain = _POST["domain"] local user = _POST["user"] if user ~= nil then user = json.decode(user) local result = c_UserExist(domain,user.username) if result == true then print("0") 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 end %>