<%# Copyright 2008 Steven Barth Copyright 2008-2012 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -%> <%+header_login%> <% local util = require "luci.util" local boardinfo = util.ubus("system", "board") %> <%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> <% local bing = string.gsub(luci.sys.exec("content=`wget --no-check-certificate -q -O - 'http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US'`;echo $content"), "\n", "") %> <% 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%>