= tonumber (maxLimitVal)) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "sslvpn_policies" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "display") then web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "SSLVPNPolicyChk") -- if any rows to delete if (rows) then errorFlag, statusCode = sslvpn.deletePolicy(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) else if (cgi["SSLPolicyName"] ~= nil) then policyType = cgi["SSLPolicyName"] SSLPolicyName = policyType ownerName = cgi["SSLVPNPolicy.PolicyOwnerName"] if(policyType == "global") then ownerName = "global" end else SSLPolicyName = "global" ownerName = "global" end local remoteMgmtStatus = db.getAttribute ("accessMgmt", "accessMgmt._ROWID_", "0", "accessMgmtEnable") ?>