summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/src/controller/controller.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-11 10:29:45 +0000
committerSteven Barth <steven@midlink.org>2008-05-11 10:29:45 +0000
commit045d9c1942146eb971609b637029911e4802a2e9 (patch)
tree8dac5aa0687fbc50bd68c566f37155ad2c1d2a7a /applications/luci-splash/src/controller/controller.lua
parentcce73ddb4d2371710ec9683c76b9b6a3fb932079 (diff)
* DHCP-Splash fixes #1
Diffstat (limited to 'applications/luci-splash/src/controller/controller.lua')
-rw-r--r--applications/luci-splash/src/controller/controller.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/applications/luci-splash/src/controller/controller.lua b/applications/luci-splash/src/controller/controller.lua
deleted file mode 100644
index 62088be52d..0000000000
--- a/applications/luci-splash/src/controller/controller.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-module("ffluci.controller.splash.splash", package.seeall)
-
-function action_activate()
- local mac = ffluci.sys.net.ip4mac(ffluci.http.env.REMOTE_ADDR)
- if mac and ffluci.http.formvalue("accept") then
- os.execute("luci-splash add "..mac.." >/dev/null 2>&1")
- ffluci.http.redirect(ffluci.model.uci.get("freifunk", "community", "homepage"))
- else
- ffluci.http.redirect(ffluci.dispatcher.build_url())
- end
-end
-
-function action_accepted()
- ffluci.http.redirect(ffluci.dispatcher.build_url())
-end
-
-function action_unknown()
- ffluci.http.redirect(ffluci.dispatcher.build_url())
-end \ No newline at end of file