From bf350d225c82d83448eb4ede7ab2023f7d303638 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 27 Apr 2008 11:16:31 +0000 Subject: [PATCH] * Fixed broken commit again --- module/admin-core/src/controller/splash/splash.lua | 15 ++++++++++++++ module/admin-core/src/view/splash/splash.htm | 23 ++++++++++++++++++++++ module/admin-core/src/view/splash_splash/index.htm | 2 ++ .../admin-core/src/view/splash_splash/splash.htm | 6 ++++++ 4 files changed, 46 insertions(+) create mode 100644 module/admin-core/src/controller/splash/splash.lua create mode 100644 module/admin-core/src/view/splash/splash.htm create mode 100644 module/admin-core/src/view/splash_splash/index.htm create mode 100644 module/admin-core/src/view/splash_splash/splash.htm diff --git a/module/admin-core/src/controller/splash/splash.lua b/module/admin-core/src/controller/splash/splash.lua new file mode 100644 index 000000000..7aec62d33 --- /dev/null +++ b/module/admin-core/src/controller/splash/splash.lua @@ -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 \ No newline at end of file diff --git a/module/admin-core/src/view/splash/splash.htm b/module/admin-core/src/view/splash/splash.htm new file mode 100644 index 000000000..2cae0cdf9 --- /dev/null +++ b/module/admin-core/src/view/splash/splash.htm @@ -0,0 +1,23 @@ +Du bist jetzt mit dem freien Funknetz +<%~freifunk.community.name%> +verbunden. Wir sind ein experimentelles Gemeinschaftsnetzwerk, aber kein Internetanbieter. + +
+ +Ein Zugang ins Internet 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: + + +

+Wenn Du unsere Idee gut findest, kannst Du mitmachen bzw. uns unterstützen: +

+

\ No newline at end of file diff --git a/module/admin-core/src/view/splash_splash/index.htm b/module/admin-core/src/view/splash_splash/index.htm new file mode 100644 index 000000000..75aa02658 --- /dev/null +++ b/module/admin-core/src/view/splash_splash/index.htm @@ -0,0 +1,2 @@ +<%+header%> +<%+footer%> \ No newline at end of file diff --git a/module/admin-core/src/view/splash_splash/splash.htm b/module/admin-core/src/view/splash_splash/splash.htm new file mode 100644 index 000000000..fee61e027 --- /dev/null +++ b/module/admin-core/src/view/splash_splash/splash.htm @@ -0,0 +1,6 @@ +<%+header%> +<%+splash/splash%> +
+ +
+<%+footer%> \ No newline at end of file -- 2.11.0