2008-04-26 17:55:16 +00:00
|
|
|
-- ToDo: Translate, Add descriptions and help texts
|
2008-05-25 17:00:30 +00:00
|
|
|
require("luci.model.uci")
|
2008-04-26 17:55:16 +00:00
|
|
|
|
|
|
|
m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]])
|
|
|
|
|
2008-04-26 21:29:14 +00:00
|
|
|
s = m:section(NamedSection, "general", "core", "Allgemein")
|
|
|
|
s:option(Value, "leasetime", "Freigabezeit", "h")
|
|
|
|
|
2008-04-26 17:55:16 +00:00
|
|
|
s = m:section(TypedSection, "iface", "Schnittstellen")
|
2008-07-25 22:15:18 +00:00
|
|
|
s.template = "cbi/tblsection"
|
2008-04-26 17:55:16 +00:00
|
|
|
s.addremove = true
|
|
|
|
s.anonymous = true
|
|
|
|
|
2008-08-07 20:21:38 +00:00
|
|
|
zone = s:option(ListValue, "zone", "Firewallzone")
|
2008-08-05 12:58:20 +00:00
|
|
|
luci.model.uci.foreach("firewall", "zone",
|
2008-06-05 19:16:38 +00:00
|
|
|
function (section)
|
2008-08-07 20:21:38 +00:00
|
|
|
zone:value(section.name)
|
2008-06-05 19:16:38 +00:00
|
|
|
end)
|
2008-08-05 12:58:20 +00:00
|
|
|
|
2008-08-07 20:21:38 +00:00
|
|
|
iface = s:option(ListValue, "network", "Netzwerk")
|
|
|
|
luci.model.uci.foreach("network", "interface",
|
|
|
|
function (section)
|
|
|
|
if section[".name"] ~= "loopback" then
|
|
|
|
iface:value(section[".name"])
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
|
|
|
|
luci.model.uci.foreach("network", "alias",
|
|
|
|
function (section)
|
|
|
|
iface:value(section[".name"])
|
|
|
|
end)
|
2008-04-26 17:55:16 +00:00
|
|
|
|
|
|
|
s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
|
2008-07-25 22:15:18 +00:00
|
|
|
s.template = "cbi/tblsection"
|
2008-04-26 17:55:16 +00:00
|
|
|
s.addremove = true
|
|
|
|
s.anonymous = true
|
|
|
|
s:option(Value, "mac", "MAC-Adresse")
|
|
|
|
|
|
|
|
s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
|
2008-07-25 22:15:18 +00:00
|
|
|
s.template = "cbi/tblsection"
|
2008-04-26 17:55:16 +00:00
|
|
|
s.addremove = true
|
|
|
|
s.anonymous = true
|
|
|
|
s:option(Value, "mac", "MAC-Adresse")
|
|
|
|
|
|
|
|
return m
|