<%# Rosy is a theme for LuCI. It is based on luci-theme-bootstrap luci-theme-rosy Copyright 2018 Rosy Song Copyright 2018 Yan Lan Shen Have a bug? Please create an issue here on GitHub! https://github.com/rosywrt/luci-theme-rosy/issues luci-theme-bootstrap: Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Copyright 2012 David Menting Licensed to the public under the Apache License 2.0 -%> <% local sys = require "luci.sys" local util = require "luci.util" local http = require "luci.http" local disp = require "luci.dispatcher" local boardinfo = util.ubus("system", "board") local node = disp.context.dispatched local pcall, dofile, _G = pcall, dofile, _G local disturl,supporturl,bugurl,homeurl if pcall(dofile, "/etc/openwrt_release") then if _G.DISTRIB_HOME_URL and _G.DISTRIB_HOME_URL:match("https?://.*") then homeurl = _G.DISTRIB_HOME_URL else homeurl = "http://www.Lantronix.com" end if _G.DISTRIB_SUPRT_URL and _G.DISTRIB_SUPRT_URL:match("https?://.*") then suprturl = _G.DISTRIB_SUPRT_URL else suprturl = "http://www.Lantronix.com" end if _G.DISTRIB_MANF_URL and _G.DISTRIB_MANF_URL:match("https?://.*") then manfurl = _G.DISTRIB_MANF_URL else manfurl = "http://www.Lantronix.com" end if _G.DISTRIB_BUG_URL and _G.DISTRIB_BUG_URL:match("https?://.*") then bugurl = _G.DISTRIB_BUG_URL else bugurl = "http://www.Lantronix.com" end end -%> <%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI - LuCI"> - LuCI"> <% if node and node.css then %> <% end -%> <% if css then %> <% end -%> ">
<%=boardinfo.hostname or "?"%>
<%=luci.dispatcher.context.authuser %> <%:Help ?%>
Loading...
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>

<%:No password set!%>

<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>

<% if disp.lookup("admin/system/admin") then %> <% end %>
<%- end -%>