WAN Mode Page to configure this page." end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) if (RowId == "-1") then errorFlag, statusCode = fwView.firewallRules6Config(inputTable, "-1", "add") else errorFlag, statusCode = fwView.firewallRules6Config(inputTable, RowId, "edit") end -- save db if no error if (errorFlag == "OK") then db.save() local cacheResetProgram = db.getAttribute("environment", "name", "HW_CACHE_RESET", "value") util.appendDebugOut("Exec: " .. os.execute(cacheResetProgram)); end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) else local tabHeadding = "" -- for error if (errorFlag ~= "OK") then configRowId = RowId end -- for Add if (configRowId == "-1") then tabHeadding = "Add DMZ WAN Inbound Service" configRow = db.getDefaults(true, "FirewallRules6") -- for edit else tabHeadding = "Edit DMZ WAN Inbound Service" configRow = db.getRow("FirewallRules6", "_ROWID_", configRowId) end ?>