From: Jo-Philipp Wich Date: Sat, 6 Jun 2009 09:08:41 +0000 (+0000) Subject: luci-0.8: freifunk: add public splash status page X-Git-Tag: 0.8.8~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=22dafeac576319a2d2ac6d8f8b3f202b8c60087a;p=oweals%2Fluci.git luci-0.8: freifunk: add public splash status page --- 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