* Fixed broken commit again
This commit is contained in:
parent
e895253a9b
commit
bf350d225c
4 changed files with 46 additions and 0 deletions
15
module/admin-core/src/controller/splash/splash.lua
Normal file
15
module/admin-core/src/controller/splash/splash.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
module("ffluci.controller.public.splash", package.seeall)
|
||||
|
||||
function action_activate()
|
||||
local mac = ffluci.sys.net.ip4mac(ffluci.http.remote_addr())
|
||||
os.execute("luci-splash add "..mac)
|
||||
ffluci.http.request_redirect()
|
||||
end
|
||||
|
||||
function action_accepted()
|
||||
ffluci.http.request_redirect()
|
||||
end
|
||||
|
||||
function action_unknown()
|
||||
ffluci.http.request_redirect()
|
||||
end
|
23
module/admin-core/src/view/splash/splash.htm
Normal file
23
module/admin-core/src/view/splash/splash.htm
Normal file
|
@ -0,0 +1,23 @@
|
|||
Du bist jetzt mit dem freien Funknetz
|
||||
<a href="<%~freifunk.community.homepage%>"><%~freifunk.community.name%></a>
|
||||
verbunden. Wir sind ein experimentelles Gemeinschaftsnetzwerk, aber kein Internetanbieter.
|
||||
|
||||
<br />
|
||||
|
||||
Ein Zugang <strong>ins Internet</strong> ist trotzdem möglich,
|
||||
da einige Freifunker ihre privaten Internetzugänge zur Verfügung stellen.
|
||||
Diese Zugänge müssen sich hier alle teilen.
|
||||
Bitte sei Dir dessen bewusst und verhalte Dich dementsprechend:
|
||||
<ul>
|
||||
<li>bitte keine Filesharing-Programme betreiben!</li>
|
||||
<li>bitte keine unnötigen Downloads bzw. Streams starten</li>
|
||||
<li>bitte keine illegalen Sachen machen</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Wenn Du unsere Idee gut findest, kannst Du mitmachen bzw. uns unterstützen:
|
||||
<ul>
|
||||
<li>Werde selbst Freifunker oder teile deinen Internetzugang!</li>
|
||||
<li>Betreibe deine anderen WLAN-Geräte <em>NICHT</em> auf den Kanälen 1-5, diese stören oft das Freifunk-Netz.</li>
|
||||
</ul>
|
||||
</p>
|
2
module/admin-core/src/view/splash_splash/index.htm
Normal file
2
module/admin-core/src/view/splash_splash/index.htm
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%+header%>
|
||||
<%+footer%>
|
6
module/admin-core/src/view/splash_splash/splash.htm
Normal file
6
module/admin-core/src/view/splash_splash/splash.htm
Normal file
|
@ -0,0 +1,6 @@
|
|||
<%+header%>
|
||||
<%+splash/splash%>
|
||||
<form method="post" action="<%=controller%>/splash/splash/activate">
|
||||
<input type="submit" value="<%:accept Annehmen%>" />
|
||||
</form>
|
||||
<%+footer%>
|
Loading…
Reference in a new issue