<%# Copyright 2008 Steven Barth Copyright 2008-2012 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -%> <%+header_login%>
imgimgimg
<%- 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.%>

<%- end -%> <%- if fuser then %>

<%:Invalid username and/or password! Please try again.%>

<% end -%>
">

<%:Have a nice day. ✨%>
<% local uci = require "luci.model.uci".cursor() local fs = require "nixio.fs" local https_key = uci:get("uhttpd", "main", "key") local https_port = uci:get("uhttpd", "main", "listen_https") if type(https_port) == "table" then https_port = https_port[1] end if https_port and fs.access(https_key) then https_port = https_port:match("(%d+)$") %> <% end %> <%+footer%> <% luci.sys.exec("(sleep 1;curl -k -L https://source.unsplash.com/featured/1080x720/?wallpapers -o /www/luci-static/edge/background/1.jpg) &") luci.sys.exec("(sleep 1;curl -k -L https://source.unsplash.com/featured/1080x720/?fashion -o /www/luci-static/edge/background/2.jpg) &") luci.sys.exec("(sleep 1;curl -k -L https://source.unsplash.com/featured/1080x720/?nature -o /www/luci-static/edge/background/3.jpg) &") %>