= 64) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "layouts" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "SSLVPNPortalLayout") -- if any rows to delete if (rows) then errorFlag, statusCode = sslvpn.deleteLayouts (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) elseif (ButtonType and ButtonType == "default") then configRowId = RowId errorFlag, statusCode = sslvpn.setDefault (configRowId) if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) else local remoteMgmtStatus = db.getAttribute ("accessMgmt", "accessMgmt._ROWID_", "0", "accessMgmtEnable") local buttonDisable = "" ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - Portal Layouts
 
Portal Layouts
 
IPv6
IPv4
 
 
$| statusMessage |$
List of Layouts
32) then bannerMessage = string.sub (bannerMessage, 1, 32) .. "..." end end local wanModeConfig = db.getRow("WanMode", "_ROWID_", "1") local LogIfName = "WAN1" if (wanModeConfig ~= nil) then if (wanModeConfig["WanMode.Wanmode"] == "0" or wanModeConfig["WanMode.Wanmode"] == "2") then LogIfName = wanModeConfig["WanMode.DedicatedLogicalIfName"] end end if (LogIfName == nil) then LogIfName = "WAN1" end local wanconf = db.getRowWhere ("ipAddressTable","LogicalIfName='" .. LogIfName .. "' and addressFamily=2") local wanip = "0.0.0.0" if (wanconf ~= nil) then wanip = wanconf["ipAddressTable.ipAddress"] or '' end local protalURL = "https://" .. wanip .. "/portal/" .. row["SSLVPNPortalLayout.PortalLayoutName"] local protalURLTitle = "" local sslPortalName = "" local portalName = row["SSLVPNPortalLayout.PortalLayoutName"] local displayUrl = protalURL local len = #portalName if(len > 32) then sslPortalName = row["SSLVPNPortalLayout.PortalLayoutName"] protalURLTitle = "https://" .. wanip .. "/portal/" .. row["SSLVPNPortalLayout.PortalLayoutName"] portalName = string.sub(portalName,1,16) .. "..." displayUrl = "https://" .. wanip .. "/portal/" .. portalName end ?>
  Layout Name Description Use Count Portal URL (IPv4) Action
$| portalName .. def |$ $|bannerMessage|$ $| row["SSLVPNPortalLayout.UseCount"] or '' |$ $| displayUrl |$
* Default Portal Layout
List of Layouts
32) then bannerMessage = string.sub (bannerMessage, 1, 32) .. "..." end end local wanModeConfig = db.getRow("WanMode", "_ROWID_", "1") local LogIfName = "WAN1" if (wanModeConfig ~= nil) then if (wanModeConfig["WanMode.Wanmode"] == "0" or wanModeConfig["WanMode.Wanmode"] == "2") then LogIfName = wanModeConfig["WanMode.DedicatedLogicalIfName"] end end if (LogIfName == nil) then LogIfName = "WAN1" end local wanconf = db.getRowWhere ("ipAddressTable","LogicalIfName='" .. LogIfName .. "' and addressFamily=2") local wanip = "0.0.0.0" if (wanconf ~= nil) then wanip = wanconf["ipAddressTable.ipAddress"] or '' end -- Ipv6 local wanconfIPv6 = db.getRowWhere ("ipAddressTable","LogicalIfName='" .. LogIfName .. "' and addressFamily=10") local wanipIPv6 = "0000::00" if (wanconfIPv6 ~= nil) then wanipIPv6 = wanconfIPv6["ipAddressTable.ipAddress"] or '' end local protalURL = "https://" .. wanip .. "/portal/" .. row["SSLVPNPortalLayout.PortalLayoutName"] local protalURLIPv6 = "https://[" .. wanipIPv6 .. "]/portal/" .. row["SSLVPNPortalLayout.PortalLayoutName"] local protalURLTitle = "" local sslPortalName = "" local portalName = row["SSLVPNPortalLayout.PortalLayoutName"] local displayUrl = protalURL local displayUrlIPv6 = protalURLIPv6 protalURLTitleIPv6 = "" local len = #portalName if(len > 32) then sslPortalName = row["SSLVPNPortalLayout.PortalLayoutName"] protalURLTitle = "https://" .. wanip .. "/portal/" .. row["SSLVPNPortalLayout.PortalLayoutName"] protalURLTitleIPv6 = "https://[" .. wanipIPv6 .. "]/portal/" .. row["SSLVPNPortalLayout.PortalLayoutName"] portalName = string.sub(portalName,1,16) .. "..." displayUrl = "https://" .. wanip .. "/portal/" .. portalName displayUrlIPv6 = "https://[" .. wanipIPv6 .. "]/portal/" .. portalName end ?>
  Layout Name Description Use Count Portal URL (IPv6) Action
$| portalName .. def |$ $|bannerMessage|$ $| row["SSLVPNPortalLayout.UseCount"] or '' |$ $| displayUrlIPv6 |$
* Default Portal Layout