projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb1c368
)
applications/luci-splash: fix redirections and form targets
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 19 Feb 2009 21:31:33 +0000
(21:31 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 19 Feb 2009 21:31:33 +0000
(21:31 +0000)
applications/luci-splash/luasrc/controller/splash/splash.lua
patch
|
blob
|
history
applications/luci-splash/luasrc/view/splash/splash.htm
patch
|
blob
|
history
applications/luci-splash/luasrc/view/splash_splash/splash.htm
patch
|
blob
|
history
diff --git
a/applications/luci-splash/luasrc/controller/splash/splash.lua
b/applications/luci-splash/luasrc/controller/splash/splash.lua
index
b046ff4
..
5731efc
100644
(file)
--- a/
applications/luci-splash/luasrc/controller/splash/splash.lua
+++ b/
applications/luci-splash/luasrc/controller/splash/splash.lua
@@
-4,8
+4,8
@@
function index()
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
entry({"admin", "services", "splash"}, cbi("splash/splash"), "Client-Splash")
node("splash").target = call("action_dispatch")
- node("splash", "
splash", "
activate").target = call("action_activate")
- node("splash", "splash"
, "splash"
).target = template("splash_splash/splash")
+ node("splash", "activate").target = call("action_activate")
+ node("splash", "splash").target = template("splash_splash/splash")
end
function action_dispatch()
end
function action_dispatch()
@@
-14,7
+14,7
@@
function action_dispatch()
if #mac > 0 and ( status == "whitelisted" or status == "lease" ) then
luci.http.redirect(luci.dispatcher.build_url())
else
if #mac > 0 and ( status == "whitelisted" or status == "lease" ) then
luci.http.redirect(luci.dispatcher.build_url())
else
- luci.http.redirect(luci.dispatcher.build_url("splash", "splash"
, "splash"
))
+ luci.http.redirect(luci.dispatcher.build_url("splash", "splash"))
end
end
end
end
diff --git
a/applications/luci-splash/luasrc/view/splash/splash.htm
b/applications/luci-splash/luasrc/view/splash/splash.htm
index
659d4f0
..
3fcf02b
100644
(file)
--- a/
applications/luci-splash/luasrc/view/splash/splash.htm
+++ b/
applications/luci-splash/luasrc/view/splash/splash.htm
@@
-42,6
+42,6
@@
Wenn Du unsere Idee gut findest, kannst Du uns unterstützen:
</p>
<p>
</p>
<p>
-Mit einem Klick auf <em><%:accept%></em> kannst du für <%=c.leasetime%> Stunden
+Mit einem Klick auf <em><%:accept
Accept
%></em> kannst du für <%=c.leasetime%> Stunden
über unser Netz das Internet verwenden. Dann wirst du erneut aufgefordet, diese Bedingungen zu akzeptieren.
über unser Netz das Internet verwenden. Dann wirst du erneut aufgefordet, diese Bedingungen zu akzeptieren.
-</p>
\ No newline at end of file
+</p>
diff --git
a/applications/luci-splash/luasrc/view/splash_splash/splash.htm
b/applications/luci-splash/luasrc/view/splash_splash/splash.htm
index
39640eb
..
413efbe
100644
(file)
--- a/
applications/luci-splash/luasrc/view/splash_splash/splash.htm
+++ b/
applications/luci-splash/luasrc/view/splash_splash/splash.htm
@@
-14,8
+14,8
@@
$Id$
-%>
<%+header%>
<%+splash/splash%>
-%>
<%+header%>
<%+splash/splash%>
-<form method="get" action="<%=controller%>/splash/
splash/
activate">
- <input type="submit" value="<%:decline%>" />
- <input type="submit" name="accept" value="<%:accept%>" />
+<form method="get" action="<%=controller%>/splash/activate">
+ <input type="submit" value="<%:decline
Decline
%>" />
+ <input type="submit" name="accept" value="<%:accept
Accept
%>" />
</form>
</form>
-<%+footer%>
\ No newline at end of file
+<%+footer%>