Content Filtering<\/a> to Configure Blocked Keywords" opFlag = false end if (ButtonType and ButtonType == "add") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "blockedKeywords" 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 = "blockedKeywords" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else local field, splitted, rows = web.cgiSearch(cgi, "BlockSites") if (rows and rows["1"]) then configRowId = rows["1"] else NextPage = "blockedKeywords" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "enable") then local field, splitted, rows = web.cgiSearch(cgi, "BlockSites") -- if any rows to enable if (rows) then errorFlag, statusCode = fwView.modifyKeywordStatus (rows, "enable") 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) elseif (ButtonType and ButtonType == "disable") then local field, splitted, rows = web.cgiSearch(cgi, "BlockSites") -- if any rows to disable if (rows) then errorFlag, statusCode = fwView.modifyKeywordStatus (rows, "disable") 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) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "BlockSites") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.deleteKeywords (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 ?> $|COMPANY_NAME|$ : $|APP_NAME|$
$| statusMessage |$
Blocked KEYWORDSLogout
$| initialDescription or '' |$
 
Blocked Keywords
Status Blocked Keyword
$| web.getArgsFromIndex(row["BlockSites.Status"], "Disabled", "Enabled") |$ $| row["BlockSites.KeywordToBlock"] |$
Helpful Hints...
$| helpfullHints or '' |$