Mercurial > hg > batmud > maputils
changeset 1019:3be41c04262c
Sync.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 20 Jun 2010 12:18:13 +0000 |
parents | 5c2bd0ac3118 |
children | 3d6286f6d226 |
files | www/config.inc.php www/index.php www/info.php www/latest.php www/loc.php www/quests.php www/ss.php www/urchin.inc.php |
diffstat | 8 files changed, 15 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/www/config.inc.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/config.inc.php Sun Jun 20 12:18:13 2010 +0000 @@ -25,7 +25,10 @@ <link href="<? echo $pageCSS ?>" rel="stylesheet" type="text/css" /> <meta name="keywords" content="batmud,map,laenor,lucentium,rothikgen,desolathya,furnachia,mud,mush,mmorpg,mmo,massively,multiplayer,online,network,game,ggr,pupunen"/> <link rel="shortcut icon" href="/maps/favicon.ico" type="image/x-icon" /> - <? echo $extra ?> + <? + echo $extra; + require "urchin.inc.php"; + ?> </head> <body> <!-- ============================================= -->
--- a/www/index.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/index.php Sun Jun 20 12:18:13 2010 +0000 @@ -188,9 +188,5 @@ <p> <b>-- <a href="<? echo fingerURL('ggr'); ?>">Ggr Pupunen</a>, master of carrots.</b> </p> -<? -// Google Analytics -require "urchin.inc.php"; -?> </body> </html>
--- a/www/info.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/info.php Sun Jun 20 12:18:13 2010 +0000 @@ -128,9 +128,6 @@ } else { echo "<p><b>No wizards known!</b></p>\n"; } - -// Google Analytics -require "urchin.inc.php"; ?> </body> </html>
--- a/www/latest.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/latest.php Sun Jun 20 12:18:13 2010 +0000 @@ -114,9 +114,6 @@ } else { echo "<p><b>No locations known!</b></p>\n"; } - -// Google Analytics -require "urchin.inc.php"; ?> </body> </html>
--- a/www/loc.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/loc.php Sun Jun 20 12:18:13 2010 +0000 @@ -319,9 +319,6 @@ } else { echo "<p><b>No locations known!</b></p>\n"; } - -// Google Analytics -require "urchin.inc.php"; ?> </body> </html>
--- a/www/quests.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/quests.php Sun Jun 20 12:18:13 2010 +0000 @@ -131,9 +131,6 @@ echo "<p><b>No area quests known!</b></p>\n"; } echo "</td></tr></table>\n"; - -// Google Analytics -require "urchin.inc.php"; ?> </body> </html>
--- a/www/ss.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/ss.php Sun Jun 20 12:18:13 2010 +0000 @@ -64,9 +64,6 @@ } else { echo "<p><b>No societies known!</b></p>\n"; } - -// Google Analytics -require "urchin.inc.php"; ?> </body> </html>
--- a/www/urchin.inc.php Sun Jun 20 12:15:20 2010 +0000 +++ b/www/urchin.inc.php Sun Jun 20 12:18:13 2010 +0000 @@ -1,9 +1,13 @@ <script type="text/javascript"> -var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); -document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-1985738-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> -<script type="text/javascript"> -try { -var pageTracker = _gat._getTracker("UA-1985738-1"); -pageTracker._trackPageview(); -} catch(err) {}</script>