<% if _SESSION["logined"] ~= nil then local domain = _POST["domain"] local group = _POST["group"] local oldname = _POST["oldname"] local resetstat = _POST["resetstat"] or nil if group ~= nil then group = json.decode(group) if oldname ~= group.groupname then c_DeleteGroup(domain,oldname) else if resetstat ~= nil then c_ResetGroupStatistic(domain,group.groupname) end end AddGroup(domain,group) end end %>