summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkeye <postfach@martinmichel.info>2011-03-05 23:32:21 (GMT)
committerDarkeye <postfach@martinmichel.info>2011-03-05 23:32:21 (GMT)
commitc95dd20107ab288d1e18d02417e7e7d81d0d3186 (patch)
tree4a33a40b43d1f0155c8e5fccadd8f45f7bbf608c
parent9f3b5d7b2cf54110ba840d1a6ada6474dfb64e1a (diff)
Add Splash Help Chat
-rwxr-xr-xfiles/sbin/splash_sync9
-rw-r--r--files/www/splash.html9
2 files changed, 15 insertions, 3 deletions
diff --git a/files/sbin/splash_sync b/files/sbin/splash_sync
index b8cd219..52a37b7 100755
--- a/files/sbin/splash_sync
+++ b/files/sbin/splash_sync
@@ -33,13 +33,16 @@ iptables -t nat -X ffj_splash
iptables -t nat -N ffj_splash
iptables -t nat -I zone_mesh_prerouting 1 -p tcp -j ffj_splash
config_foreach splash_check user
+#DNS Whitelisting
+iptables -t nat -A ffj_splash --destination-port 53 -j ACCEPT
#Jabber Whitelisting
iptables -t nat -A ffj_splash --destination-port 5222 -j ACCEPT
iptables -t nat -A ffj_splash --destination-port 5223 -j ACCEPT
#Freifunk-Jena Whitelisting
-iptables -t nat -A ffj_splash -d freifunk-jena -j ACCEPT
-iptables -t nat -A ffj_splash -d www.freifunk-jena -j ACCEPT
-
+iptables -t nat -A ffj_splash -d freifunk-jena.de -j ACCEPT
+iptables -t nat -A ffj_splash -d www.freifunk-jena.de -j ACCEPT
+#Jappix Whitelisting
+iptables -t nat -A ffj_splash -d static.jappix.com -j ACCEPT
iptables -t nat -A ffj_splash -p tcp -j DNAT --to $myip:80
diff --git a/files/www/splash.html b/files/www/splash.html
index b6abfc2..eb3af30 100644
--- a/files/www/splash.html
+++ b/files/www/splash.html
@@ -7,6 +7,15 @@
xml:lang="en" lang="en">
<head>
+<script type="text/javascript" src="https://static.jappix.com/php/get.php?l=de&amp;t=js&amp;g=mini.xml&amp;f=jquery.js"></script>
+
+<script type="text/javascript">
+ jQuery(document).ready(function() {
+ MINI_GROUPCHATS = ["support@chat.freifunk-jena.de"];
+ launchMini(false, true, "anonymous.jappix.com");
+ });
+</script>
+
<title>Freifunk Jena</title>
<link rel="stylesheet" type="text/css" href="/ffj.css" />
contact: Jan Huwald // Impressum