luci-0.8: freifunk: add public splash status page
This commit is contained in:
parent
1a75b5f103
commit
22dafeac57
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,9 @@ function index()
|
|||
entry({"freifunk", "status.json"}, call("jsonstatus"))
|
||||
entry({"freifunk", "status", "zeroes"}, call("zeroes"), "Testdownload")
|
||||
|
||||
-- XXX: security violation
|
||||
entry({"freifunk", "status", "splash"}, call("splash_status"), "Client-Splash").setuser = "root"
|
||||
|
||||
assign({"freifunk", "olsr"}, {"admin", "status", "olsr"}, "OLSR", 30)
|
||||
|
||||
if luci.fs.access("/etc/config/luci_statistics") then
|
||||
|
@ -210,3 +213,7 @@ function jsonstatus()
|
|||
http.prepare_content("application/json")
|
||||
ltn12.pump.all(json.Encoder(root):source(), http.write)
|
||||
end
|
||||
|
||||
function splash_status()
|
||||
luci.template.render("admin_status/splash", { is_admin = false })
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue