From 035a193353b9ad86621b6b1fa183ccb1e0bd9e3d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 26 Apr 2008 17:55:16 +0000 Subject: * Makefile fixes ;-) * Removed obsolete Haserl patch * Added Client-Splash configuration page --- .../src/model/cbi/admin_network/splash.lua | 27 ++++++++++++++++++++++ module/admin-core/src/model/menu/00admin.lua | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 module/admin-core/src/model/cbi/admin_network/splash.lua (limited to 'module/admin-core/src') diff --git a/module/admin-core/src/model/cbi/admin_network/splash.lua b/module/admin-core/src/model/cbi/admin_network/splash.lua new file mode 100644 index 0000000000..497d394ee2 --- /dev/null +++ b/module/admin-core/src/model/cbi/admin_network/splash.lua @@ -0,0 +1,27 @@ +-- ToDo: Translate, Add descriptions and help texts +require("ffluci.model.uci") + +m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]]) + +s = m:section(TypedSection, "iface", "Schnittstellen") +s.addremove = true +s.anonymous = true + +iface = s:option(ListValue, "network", "Schnittstelle") +for k, v in pairs(ffluci.model.uci.show("network").network) do + if v[".type"] == "interface" and k ~= "loopback" then + iface:value(k) + end +end + +s = m:section(TypedSection, "whitelist", "Automatische Freigabe") +s.addremove = true +s.anonymous = true +s:option(Value, "mac", "MAC-Adresse") + +s = m:section(TypedSection, "blacklist", "Automatische Sperrung") +s.addremove = true +s.anonymous = true +s:option(Value, "mac", "MAC-Adresse") + +return m \ No newline at end of file diff --git a/module/admin-core/src/model/menu/00admin.lua b/module/admin-core/src/model/menu/00admin.lua index 3a6ee1d6aa..42c185937d 100644 --- a/module/admin-core/src/model/menu/00admin.lua +++ b/module/admin-core/src/model/menu/00admin.lua @@ -28,6 +28,10 @@ act("routes", "Statische Routen") act("portfw", "Portweiterleitung") act("firewall", "Firewall") +if isfile("/etc/config/luci_splash") then + act("splash", "Client-Splash") +end + if isfile("/etc/config/qos") then act("qos", "Quality of Service") end -- cgit v1.2.3