<%# 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 if uci:get("functionlist","functionlist","SUPPORT_BUSINESS_SERIES") == "1" then ICON_LOGO = "/Netgear_business_logo.png" bundle_settings = "3" 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. %>

"> <% if uci:get("functionlist","functionlist","SUPPORT_BUSINESS_SERIES") == "1" then%> <% end %>
<%=modelname%> - <%=description%> <% if uci:get('functionlist','functionlist','SUPPORT_BUSINESS_SERIES') == '1' then %>
<%:Firmware Version : %>V<%=firmwareVersion%> <% end %>


<% else %> <% end %>
<% if uci:get('functionlist','functionlist','SUPPORT_BUSINESS_SERIES') == '1' then %>
<%if bundle_settings ~= "3" then%> <% end %>


<%:Management Mode%>
<%:NETGEAR Insight Mode%> <%:Standalone Mode%>
<%if bundle_settings == "0" or bundle_settings == "3" then%> <% end %> <% if uci:get("functionlist","functionlist","SUPPORT_BUSINESS_SERIES") == "1" then%> <% if uci:get("functionlist","functionlist","SUPPORT_BUSINESS_SERIES") == "1" then%> <% else %> <% end %> <% 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)%>
<%:Terms of Use%>
<%:This device must be professionally installed. It is the installer’s responsibility to follow local country regulations including operations within legal frequency channels, output power and DFS requirements. Vendor or Reseller or Distributor is not responsible for illegal wireless operations. Please see Device’s Terms and Conditions for more details.%>
By checking this box, I accept NETGEAR’s Terms and Conditions and acknowledge that I have read the Privacy NoticeBy checking this box, I accept NETGEAR’s Terms and Conditions and acknowledge that I have read the Privacy Notice
<% end %>