<% if _SESSION["logined"] ~= nil then local domain = _POST["domain"] local user = _POST["user"] local oldname = _POST["oldname"] local resetstat = _POST["resetstat"] or nil if user ~= nil then user = json.decode(user) if oldname ~= user.username then c_DeleteUser(domain,oldname) else if resetstat ~= nil then c_ResetUserStatistic(domain,user.username) end end AddUser(domain,user) end end %>