<?php
$w_path = $_SERVER['PHP_SELF'];
$whost = @$_SERVER['HTTP_HOST'];
$wpath = str_replace("/app/model", "", dirname($w_path));
$prestyle = "style='margin:0px;font-family: Arial; font-size: 11px; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;'";
$codespace="<pre $prestyle>&lt;!-- /* Logaholic Web Analytics Code */ --&gt;
&lt;script type=\"text/javascript\"&gt; 
var lwa = {id:\"$profile->tablename\", server:\"$whost$wpath\"};
(function(lwa, a) {
  lwa.action = a; lwa.server = document.location.protocol + \"//\" + lwa.server + \"/\"; 
  var lwas = document.createElement('script'); lwas.type = 'text/javascript'; lwas.async = 1;
  lwas.src = lwa.server + \"lwa2.js\";
  var l = document.getElementsByTagName('script')[0];
  l.parentNode.insertBefore(lwas, l);
})(lwa, 'trackPage');
&lt;/script&gt;
</pre>";

//js tracking for hybrid logs + cookie
$codespace2 = str_replace(", server", ", trackermode:2, server", $codespace);
?>
