setStpMins)) then statusMessage = "Enable not allowed since time schedule is InActive" skipEnable = "1" end end end if( skipEnable == "0" ) then errorFlag, statusCode = dot11.VAP_enable(rows, true) end end if( skipEnable == "1" ) then web.goToPage(NextPage, true, true) else -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) end elseif (ButtonType and ButtonType == "disable") then local field, splitted, rows = web.cgiSearch(cgi, "dot11VAP") -- if any rows to disable if (rows) then for k,v in pairs(rows) do local row = db.getRow("dot11VAP", "dot11VAP._ROWID_", v) vapName = row["dot11VAP.vapName"] strCmd = string.format (cmd, 1, vapName) stpCmd = string.format (cmd, 0, vapName) strHr = db.getAttribute("crontab", "command", strCmd, "hour") if( strHr ) then strMin = db.getAttribute("crontab", "command", strCmd, "minute") stpHr = db.getAttribute("crontab", "command", stpCmd, "hour") stpMin = db.getAttribute("crontab", "command", stpCmd, "minute") curHr = tonumber(os.date("%H")) curMin = tonumber(os.date("%M")) curMins = (curHr*60) + curMin setStrMins = (strHr*60) + strMin setStpMins = (stpHr*60) + stpMin if ( (curMins > setStrMins) and (curMins < setStpMins)) then statusMessage = "Disable not allowed since time schedule is Active" skipDisable = "1" end end end if( skipDisable == "0" ) then errorFlag, statusCode = dot11.VAP_enable(rows, false) end end if( skipDisable == "1" ) then web.goToPage(NextPage, true, true) else -- 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) end elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "dot11VAP") -- if any rows to delete if (rows) then errorFlag, statusCode = dot11.VAP_delete(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 ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - Access Ponits
 
Access Point
 
 
 
$| statusMessage|$
List Of Available Access Points
10) then dot11VapName = row["dot11VAP.vapName"] row["dot11VAP.vapName"] = string.sub(row["dot11VAP.vapName"],1,10) .. "..." end ?> 15) then dot11Ssid = profileConfig["dot11Profile.ssid"] profileConfig["dot11Profile.ssid"] = string.sub(profileConfig["dot11Profile.ssid"],1,15) .. "..." end ?> 10) then dot11ProfileName = row["dot11VAP.profileName"] row["dot11VAP.profileName"] = string.sub(row["dot11VAP.profileName"],1,10) .. "..." end ?>
  Status Virtual AP SSID Broadcast Profile Name VLAN Active Time Start Time Stop Time Action ACL Status
$| web.getArgsFromIndex(row["dot11VAP.vapEnabled"], "Disabled", "Enabled") |$ $| row["dot11VAP.vapName"] or '' |$ $| profileConfig["dot11Profile.ssid"] or '' |$ $| row["dot11VAP.profileName"] or '' |$ $|vlanName|$ $| activeTime |$ $| startTime |$ $| stopTime |$