WAN Mode Page to configure this page." else if(dmzPort == 'LAN') then statusMessage = "Please Enable the IPv6 DMZ to configure this page." end end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) if(inputTable["radvd.raFlags"] ~= nil) then if(inputTable["radvd.raFlags"] == "Managed") then inputTable["radvd.AdvManagedFlag"] = "1" inputTable["radvd.AdvOtherConfigFlag"] = "0" else inputTable["radvd.AdvManagedFlag"] = "0" inputTable["radvd.AdvOtherConfigFlag"] = "1" end end errorFlag, statusCode = radvd.profileConfig(inputTable, "2", "edit") 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 == "add") then configRowId = "-1" web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then if (ACCESS_LEVEL ~= 0) then NextPage = "radvd_config_dmz" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else configRowId = RowId end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "radvdDMZPrefixPool") -- if any rows to delete if (rows) then errorFlag, statusCode = radvdPrefix.deleteDMZProfiles (rows) 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 configRow = db.getRow("radvd", "_ROWID_", "2") if(configRow["radvd.AdvManagedFlag"] == "1") then configRow["radvd.raFlags"] = "Managed" else configRow["radvd.raFlags"] = "Other" end ?>
Advertisement Prefixes |