WAN Mode Page to configure this page." end if (ButtonType and ButtonType == "addIPv6") then configRowId = "-1" if(cgi["hdCount"] ~= nil) then local hdCount = cgi["hdCount"] if(tonumber(hdCount) >= 50) then statusMessage = "Can't add configuration to this table. Maximum limit reached." statusMessage1 = "Can't add configuration to this table. Maximum limit reached." NextPage = "lan_dmz_rules_v6" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "addinIPv6") then configRowId = "-1" if(cgi["hdInCount"] ~= nil) then local hdCount = cgi["hdInCount"] if(tonumber(hdCount) >= 50) then statusMessage = "Can't add configuration to this table. Maximum limit reached." statusMessage1 = "Can't add configuration to this table. Maximum limit reached." NextPage = "lan_dmz_rules_v6" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "editIPv6") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "editinIPv6") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "deleteIPv6" or ButtonType == "deleteinIPv6")) then local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") if(ButtonType == "deleteIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") elseif(ButtonType == "deleteinIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices_IPv6") end -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules6 (rows, "delete") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "enableIPv6" or ButtonType == "enableinIPv6")) then local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") if(ButtonType == "enableIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") elseif(ButtonType == "enableinIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices_IPv6") end -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules6 (rows, "enable") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "disableIPv6" or ButtonType == "disableinIPv6")) then local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") if(ButtonType == "disableIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") elseif(ButtonType == "disableinIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices_IPv6") end -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules6 (rows, "disable") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "moveUpIPv6" or ButtonType == "moveUpinIPv6")) then --local inputTable = web.cgiToLuaTable(cgi) local rowId = RowId -- if any rows to delete if (ButtonType == "moveUpIPv6") then errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveUp", "SECURE_PUBLIC") else errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveUp", "PUBLIC_SECURE") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "moveDownIPv6" or ButtonType == "moveDowninIPv6")) then --local inputTable = web.cgiToLuaTable(cgi) local rowId = RowId -- if any rows to delete if (ButtonType == "moveDownIPv6") then errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveDown", "SECURE_PUBLIC") else errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveDown", "PUBLIC_SECURE") end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) else ?>