1 -- ToDo: Translate, Add descriptions and help texts
2 require("luci.model.uci")
4 m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]])
6 s = m:section(NamedSection, "general", "core", "Allgemein")
7 s:option(Value, "leasetime", "Freigabezeit", "h")
9 s:option(Value, "limit_up", "Upload-Limitierung", "Kilobit/s - limitiert die Upload-Geschwindigkeit von Clients")
10 s:option(Value, "limit_down", "Download-Limitierung", "Kilobit/s - limitiert die Download-Geschwindigkeit von Clients")
12 s:option(DummyValue, "_tmp", "",
13 "Bandbreitenlimitierung für Clients wird aktiviert wenn sowohl Up- als auch " ..
14 "Download-Geschwindigkeit angegeben werden. Auf 0 setzen um die Limitierung zu deaktivieren. " ..
15 "Clients in der Whitelist werden nicht limitiert.")
17 s = m:section(TypedSection, "iface", "Schnittstellen")
18 s.template = "cbi/tblsection"
22 local uci = luci.model.uci.cursor()
24 zone = s:option(ListValue, "zone", "Firewallzone")
25 uci:foreach("firewall", "zone",
27 zone:value(section.name)
30 iface = s:option(ListValue, "network", "Netzwerk")
31 uci:foreach("network", "interface",
33 if section[".name"] ~= "loopback" then
34 iface:value(section[".name"])
38 uci:foreach("network", "alias",
40 iface:value(section[".name"])
43 s = m:section(TypedSection, "whitelist", "Automatische Freigabe")
44 s.template = "cbi/tblsection"
47 s:option(Value, "mac", "MAC-Adresse")
49 s = m:section(TypedSection, "blacklist", "Automatische Sperrung")
50 s.template = "cbi/tblsection"
53 s:option(Value, "mac", "MAC-Adresse")