From 365d80765d3f08c457b0a373c395c8e1940e44be Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 25 May 2008 17:00:30 +0000 Subject: Renamed FFLuCI to LuCI, ffluci to luci and Freifunk Lua Configuration Interface to Lua Configuration Interface --- applications/luci-splash/src/controller/splash/splash.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'applications/luci-splash/src/controller/splash/splash.lua') 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 -- cgit v1.2.3