summaryrefslogtreecommitdiffhomepage
path: root/module
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-26 17:55:16 +0000
committerSteven Barth <steven@midlink.org>2008-04-26 17:55:16 +0000
commit035a193353b9ad86621b6b1fa183ccb1e0bd9e3d (patch)
tree65aa5da0b59bc65fa4343bf586b46bceddff754f /module
parent22b1721823d705c7318d1eebafdfcdaead3025da (diff)
* Makefile fixes ;-)
* Removed obsolete Haserl patch * Added Client-Splash configuration page
Diffstat (limited to 'module')
-rw-r--r--module/admin-core/src/model/cbi/admin_network/splash.lua27
-rw-r--r--module/admin-core/src/model/menu/00admin.lua4
2 files changed, 31 insertions, 0 deletions
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 000000000..497d394ee
--- /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 3a6ee1d6a..42c185937 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