<% local msg = {} if _SESSION["logined"] ~= nil then local domain = _POST["domain"] local index = _POST["index"] local result if domain ~= nil then result = c_DeleteListener(domain, index) if result == 0 then c_AddAdminLog("administrator '".._SESSION["admin"].."' deleted domain listener ["..unescape(domain).."]",ADMIN_LOG_OK) else c_AddAdminLog("administrator '".._SESSION["admin"].."' deleted domain listener failed. error code:"..result.." ["..unescape(domain).."]",ADMIN_LOG_ERROR) end rawset(msg, "code", result) print(json.encode(msg)) end else rawset(msg, "code", -1) rawset(msg, "error", "not logged in") print(json.encode(msg)) end %>