<% local ver = require("xiaoqiang.XQVersion").webVersion local XQSysUtil = require "xiaoqiang.util.XQSysUtil" if not XQSysUtil.getInitInfo() then luci.http.redirect(luci.dispatcher.build_url("web", "init","guidetoapp")) end local XQFunction = require("xiaoqiang.common.XQFunction") local XQTopology = require("xiaoqiang.module.XQTopology") local httpHost = luci.http.getenv("HTTP_HOST") if string.find(httpHost, "miwifi.com") then local topo = XQTopology.topologicalGraph() local leafs = topo["leafs"] if leafs and #leafs > 0 then luci.http.redirect(luci.dispatcher.build_url("web", "topo")) end end local router_name = XQFunction.getRouterName() local isBinded = (XQSysUtil.getPassportBindInfo() and 'true') or 'false' local logType = 1 if logtype then logType = tonumber(logtype) or 1 end local remote_addr = luci.http.getenv("REMOTE_ADDR") local mac = luci.sys.net.ip4mac(remote_addr) local hardware = string.lower( XQSysUtil.getHardware() ) local color = XQSysUtil.getColor() local routerSrc = resource.."/web/img/topograph/".."router_"..hardware.."_".. color..".png" local lang = XQSysUtil.getLang() %> <%include("web/inc/head")%> <%:小米路由器%>
<%include("web/inc/footermini")%>
<%include("web/inc/g.js")%>