Content Filtering<\/a> to configure Approved URLs" opFlag = false end if (ButtonType and ButtonType == "add") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "approvedUrls" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else configRowId = "-1" end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "approvedUrls" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else local field, splitted, rows = web.cgiSearch(cgi, "TrustedDomains") if (rows and rows["1"]) then configRowId = rows["1"] else NextPage = "approvedUrls" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "TrustedDomains") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.deleteDomains (rows) end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) else ?>
Helpful Hints...
$| helpfullHints or '' |$
|