<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008-2012 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id: sysauth.htm 8327 2012-03-04 15:03:05Z jow $ -%> <% local uci = require "luci.model.uci".cursor() local ntm = require "luci.model.network" local laninfo = luci.model.uci.cursor():get_all("network", "lan") ntm.init(uci) local mediaPath = luci.sys.exec("uci get luci.main.mediaurlbase") local t = "web_NTGR" local trim = luci.util.trim local ip = luci.http.getenv("REMOTE_ADDR") mediaPath = luci.util.split(mediaPath, "/") if t == trim(mediaPath[3]) then %> <% local firmwareVersion_sha = luci.util.trim(luci.util.exec("cat /etc/version | grep build")) local firmwareVersion = luci.util.trim(luci.util.exec("cat /etc/version | grep Firmware |awk '{printf $4}'")) local ICON_LOGO = uci:get('functionlist','vendorlist','ICON_LOGO') or "/Netgear_logo.png" local BANNER_LOGO = uci:get('functionlist','vendorlist','BANNER_LOGO') or "/banner_logo.png" local PRODUCT_LOGO = "/product_logo.png" local COPYRIGHT = tostring(uci:get('functionlist','vendorlist','COPYRIGHT')or "EnGenius") COPYRIGHT = string.gsub(COPYRIGHT,"__SPACE__"," ") local modelname = uci:get("sysProductInfo","model","modelName") local description = uci:get("sysProductInfo","model","description") local bundle_sn = luci.util.trim(luci.util.exec("setconfig -g 39")) local bundle_settings = "0" if bundle_sn == "000000001" then bundle_settings = "1" elseif bundle_sn == "000000002" then bundle_settings = "2" end local apcontroller_enable = uci:get("apcontroller","capwap","enable") local opmode = uci:get("wireless","wifi1","opmode") local devicename = uci:get_first("system","system","SystemName") local mgmt_ssid = uci:get("wireless","wifi0_mgmt","ssid") if uci:get("functionlist","functionlist","SUPPORT_MD5_PASSWORD") == "1" then %> <%end%> <%=striptags(luci.sys.hostname())%>

<%:Management Mode: Choose whether to manage the AirBridge device in NETGEAR Insight Mode or in Standalone Mode.%>
<%:NETGEAR Insight Mode: Manage the device through the Insight app or Insight Cloud portal.%>
<%:Standalone Mode: Manage as a standalone device through the local browser interface using the IP address.%>

<%:* Enter a name with 1 to 15 alphanumeric characters, including hyphens but no other special characters. The name must start and end with alphanumeric characters.%>
<%:* No symbols are allowed except for the hyphen (-).%>
<%:* Spaces are not allowed.%>
<%:* Must contain at least one alphabetic character.%>

<%:Password must be of minimum of 8 characters length and maximum of 32, must contain at least one uppercase letter, one lowercase letter, and one number. Allowed symbols are !@#$%^&*()%>

<%:A combination of up to 32 alphanumeric and special characters. %>

">
<%=modelname%> - <%=description%>




<%:Management Mode%>
<%:NETGEAR Insight Mode%> <%:Standalone Mode%>
<%if bundle_settings == "0" then%> <% end %>
<%:Country/Region%>
<%:Time Zone%>
<%:DHCP Client%>
 <%:Enable%>    <%:Disable%>
<%:IP Address%>
<%:IP Subnet Mask%>
<%:Default Gateway%>
<%:DNS Server%>
<%:AirBridge Name%>
<%:AP Login New Password%>*
<%:Confirm New Password%>*
<%:Operation mode%>
<%:SSID%>*
<%:Authentication%>
<%:Passphrase%>*
<%:(* 8-63 chars)%>
<%:Management SSID%>
<%:Management WPA2 Passphrase%>*
<%:(* 8-63 chars)%>
<% end %>