"); statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or '' end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "pbc") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then errorFlag, statusCode = -1, "ADMIN_REQD" NextPage = "wps" statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) else local prog = db.getAttribute("environment", "name", "WPS_PBC_PROGRAM", "value") local status = "" if (prog ~= nil) then status = os.execute (prog) end statusMessage = db.getAttribute("stringsMap", "stringId", "STATUS_OK", LANGUAGE) or '' end web.goToPage(NextPage, true, true) else configRow = db.getRow ("dot11WPS", "_ROWID_", "1") statusRow = db.getRow ("dot11WPSSessStatus", "_ROWID_", "1") if (configRow == nil) then configRow = {} end if (statusRow == nil) then statusRow = {} end sesStatus = "N\/A" sesState = "0" if (statusRow["dot11WPSSessStatus.sessionStatus"] ~= nil and statusRow["dot11WPSSessStatus.sessionStatus"] == "1") then sesState = "1" sesStatus = statusRow["dot11WPSSessStatus.sessionMsg"] or '' if (spUrlStr == "1") then if (sesStatus == "Enabling WPS..") then statusMessage = "" else statusMessage = sesStatus end spUrlStr = "" end end ?>
Helpful Hints...
$| helpfullHints or '' |$
|