applications/luci-splash: Always allow clients to connect to the community homepage...
[project/luci.git] / applications / luci-splash / luasrc / model / cbi / splash / splash.lua
index 0e3e6ed..206ef70 100644 (file)
@@ -9,7 +9,6 @@ You may obtain a copy of the License at
 ]]--
 
 require("luci.model.uci")
-luci.i18n.loadc("splash")
 
 m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentification system for wireless mesh networks."))
 
@@ -17,6 +16,8 @@ s = m:section(NamedSection, "general", "core", translate("General"))
 s.addremove = false
 
 s:option(Value, "leasetime", translate("Clearance time"), translate("Clients that have accepted the splash are allowed to use the network for that many hours."))
+local redir = s:option(Value, "redirect_url", translate("Redirect target"), translate("Clients are redirected to this page after they have accepted the splash. If this is left empty they are redirected to the page they had requested."))
+redir.rmempty = true
 
 s:option(Value, "limit_up", translate("Upload limit"), translate("Clients upload speed is limited to this value (kbyte/s)"))
 s:option(Value, "limit_down", translate("Download limit"), translate("Clients download speed is limited to this value (kbyte/s)"))
@@ -58,7 +59,7 @@ uci:foreach("network", "alias",
 
 
 s = m:section(TypedSection, "whitelist", translate("Whitelist"),
-       translate("MAC addresses of whitelisted clients. These do not need to accept the splash and and are not bandwidth limited."))
+       translate("MAC addresses of whitelisted clients. These do not need to accept the splash and are not bandwidth limited."))
 
 s.template = "cbi/tblsection"
 s.addremove = true
@@ -75,7 +76,7 @@ s.anonymous = true
 s:option(Value, "mac", translate ("MAC Address"))
 
 s = m:section(TypedSection, "subnet", translate("Allowed hosts/subnets"),
-       translate("Hosts and Networks that are listed here are excluded from splashing, i.e. they are always allowed."))
+       translate("Destination hosts and networks that are excluded from splashing, i.e. they are always allowed."))
 
 s.template = "cbi/tblsection"
 s.addremove = true