% local ver = require("xiaoqiang.XQVersion").webVersion local wifiUtil = require("xiaoqiang.util.XQWifiUtil") local fun = require("xiaoqiang.common.XQFunction") local XQLanWanUtil = require("xiaoqiang.util.XQLanWanUtil") local sys = require("xiaoqiang.util.XQSysUtil") if sys.getInitInfo() then luci.http.redirect(luci.dispatcher.build_url("web", "home")) end local wifiInfo = wifiUtil.getAllWifiInfo() local ssid = "" local wanType = 2 local AutoWanType = XQLanWanUtil.getAutoWanType() if AutoWanType then wanType = AutoWanType end if wifiInfo[1] then ssid = wifiInfo[1]['ssid'] end local remote_addr = luci.http.getenv("REMOTE_ADDR") local mac = luci.sys.net.ip4mac(remote_addr) local lanType = wifiUtil.getDeviceWifiIndex(mac) %> <%include ("web/inc/head")%>