From 22dafeac576319a2d2ac6d8f8b3f202b8c60087a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 6 Jun 2009 09:08:41 +0000 Subject: [PATCH] luci-0.8: freifunk: add public splash status page --- modules/freifunk/luasrc/controller/freifunk/freifunk.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua index 9769ea08b..35b338305 100644 --- a/modules/freifunk/luasrc/controller/freifunk/freifunk.lua +++ b/modules/freifunk/luasrc/controller/freifunk/freifunk.lua @@ -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 -- 2.25.1