Fix
authorRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 05:07:56 +0000 (05:07 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 05:07:56 +0000 (05:07 +0000)
inc/js/js-uberwach.php
templates/de/html/uberwach/uberwach_snippet.tpl

index e85f11e28464f61e5c590686e3b36cdd77507cb7..70ba75ba3e2161efaaa467890603dcf7026e6511 100644 (file)
@@ -43,8 +43,11 @@ if (!defined('__SECURITY')) {
        return;
 }
 
+// Detect remote address
+$content['REMOTE_ADDR'] = detectRemoteAddr();
+
 // Simply load the JavaScript here
-loadTemplate('js_uberwach');
+loadTemplate('js_uberwach', false, $content);
 
 // [EOF]
 ?>
index fc08e3a29ed92faace02507d17544a3d94d1f42a..a0d348c573f55e24dbed886c70ad55bddcfc388f 100644 (file)
@@ -1,7 +1,7 @@
 <!-- Einbauanleitung: http://www.uberwach.de/code-snippet.html -->
 <!-- start uberwach code :: do not change :: v2.2.2 -->
 <script type="text/javascript">/* <![CDATA[ */
-au_ip='$REMOTE_ADDR';
+au_ip='$content[REMOTE_ADDR]';
 /* ]]> */</script>
 <script type="text/javascript" src="{?URL?}/js.php?js=uberwach{%version=uberwach%}"></script>
 <noscript><a href="http://www.uberwach.de/" rel="external" target="_blank" title="Aktion: Ueberwach!"><img src="http://www.uberwach.de/wanze.gif" alt="Aktion UBERWACH!" width="80" height="15" border="0" /></a></noscript>