diff --git a/analytics.inc b/analytics.inc index 0dd96387..b497e223 100644 --- a/analytics.inc +++ b/analytics.inc @@ -1,13 +1,3 @@ diff --git a/offensive/index.php b/offensive/index.php index 0eb50b0c..2674a77b 100644 --- a/offensive/index.php +++ b/offensive/index.php @@ -110,9 +110,9 @@ function query_string($remove = null, $prefix = "") { if(function_exists('head')) { head(); } + JS::add("/offensive/js/analytics.js"); CSS::emit(); JS::emit(); - include_once("analytics.inc"); ?> diff --git a/offensive/js/analytics.js b/offensive/js/analytics.js new file mode 100644 index 00000000..6c1ab880 --- /dev/null +++ b/offensive/js/analytics.js @@ -0,0 +1,9 @@ +var _gaq = _gaq || []; +_gaq.push(['_setAccount', 'UA-432885-4']); +_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); +})(); \ No newline at end of file diff --git a/offensive/pages/pic.php b/offensive/pages/pic.php index 187bd29a..5b7d9d07 100755 --- a/offensive/pages/pic.php +++ b/offensive/pages/pic.php @@ -81,20 +81,6 @@ function getFileSize( $fpath ) { --> - - +