WAN Mode Page to configure this page." end local maxLimitVal = db.getAttribute ("environment", "name", "STATIC_ROUTES", "value") or '128' if ( ButtonType and ButtonType == "edit") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "routing" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else configRowId = RowId end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "add") then configRowId = "-1" if(cgi["hdCount"] ~= nil) then local hdCount = cgi["hdCount"] if(tonumber(hdCount) >= tonumber (maxLimitVal)) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "static_routing_Ipv6" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "route6") -- if any rows to delete if (rows) then errorFlag, statusMessage = iproute.deleteIpv6Route(rows) end -- save db if no error if (errorFlag == "OK") then db.save() end web.goToPage(NextPage, true, true) else ?>