summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-25 17:00:30 +0000
committerSteven Barth <steven@midlink.org>2008-05-25 17:00:30 +0000
commit365d80765d3f08c457b0a373c395c8e1940e44be (patch)
tree480def5c83ea3df918179e26019cc93e585eda78 /applications/luci-splash/src
parentc6c50b3ec60b284107f459e5923c146d515afd2a (diff)
Renamed FFLuCI to LuCI, ffluci to luci and Freifunk Lua Configuration Interface to Lua Configuration Interface
Diffstat (limited to 'applications/luci-splash/src')
-rw-r--r--applications/luci-splash/src/controller/splash/splash.lua14
-rw-r--r--applications/luci-splash/src/model/cbi/splash/splash.lua4
2 files changed, 9 insertions, 9 deletions
diff --git a/applications/luci-splash/src/controller/splash/splash.lua b/applications/luci-splash/src/controller/splash/splash.lua
index 7d837cd34d..544f1e89ea 100644
--- a/applications/luci-splash/src/controller/splash/splash.lua
+++ b/applications/luci-splash/src/controller/splash/splash.lua
@@ -1,4 +1,4 @@
-module("ffluci.controller.splash.splash", package.seeall)
+module("luci.controller.splash.splash", package.seeall)
function index()
local page = node("admin", "services", "splash")
@@ -12,19 +12,19 @@ function index()
end
function action_activate()
- local mac = ffluci.sys.net.ip4mac(ffluci.http.env.REMOTE_ADDR)
- if mac and ffluci.http.formvalue("accept") then
+ local mac = luci.sys.net.ip4mac(luci.http.env.REMOTE_ADDR)
+ if mac and luci.http.formvalue("accept") then
os.execute("luci-splash add "..mac.." >/dev/null 2>&1")
- ffluci.http.redirect(ffluci.model.uci.get("freifunk", "community", "homepage"))
+ luci.http.redirect(luci.model.uci.get("freifunk", "community", "homepage"))
else
- ffluci.http.redirect(ffluci.dispatcher.build_url())
+ luci.http.redirect(luci.dispatcher.build_url())
end
end
function action_allowed()
- ffluci.http.redirect(ffluci.dispatcher.build_url())
+ luci.http.redirect(luci.dispatcher.build_url())
end
function action_unknown()
- ffluci.http.redirect(ffluci.dispatcher.build_url())
+ luci.http.redirect(luci.dispatcher.build_url())
end \ No newline at end of file
diff --git a/applications/luci-splash/src/model/cbi/splash/splash.lua b/applications/luci-splash/src/model/cbi/splash/splash.lua
index fe4d2c3ee8..6050ac8a06 100644
--- a/applications/luci-splash/src/model/cbi/splash/splash.lua
+++ b/applications/luci-splash/src/model/cbi/splash/splash.lua
@@ -1,5 +1,5 @@
-- ToDo: Translate, Add descriptions and help texts
-require("ffluci.model.uci")
+require("luci.model.uci")
m = Map("luci_splash", "Client-Splash", [[Client-Splash ist das Freifunk Hotspot-Authentifizierungs-System.]])
@@ -11,7 +11,7 @@ s.addremove = true
s.anonymous = true
iface = s:option(ListValue, "network", "Schnittstelle")
-for k, v in pairs(ffluci.model.uci.sections("network")) do
+for k, v in pairs(luci.model.uci.sections("network")) do
if v[".type"] == "interface" and k ~= "loopback" then
iface:value(k)
end