= tonumber (maxLimitVal)) then statusCode = "Can't add configuration to this table. Maximum limit reached." errorFlag = "ERROR" NextPage = "sslvpn_client" else errorFlag, statusCode = sslvpn.sslClientRouteConfig (inputTable, "-1", "add") end end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then -- if any rows to delete local rowTbl = {} rowTbl[1] = RowId errorFlag, statusCode = sslvpn.sslClientRouteConfig (rowTbl, "-1", "delete") -- 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 configRow = db.getRow("SSLVPNClientConf","_ROWID_", "1") if(configRow == nil) then configRow = db.getDefaults(true, "SSLVPNClientConf") end local remoteMgmtStatus = db.getAttribute ("accessMgmt", "accessMgmt._ROWID_", "0", "accessMgmtEnable") ?>