2013-05-02, 04:45 PM
I am hoping that someone might be able to help me with this.
This is a code that I need to put some where in my site and I know that I can not put it in the templates the way it is or even a core file.
So could some one show me the changes and tell me where to put it template or core?
There is JavaScript That I could use and would be easier but I do not want to use it if I do not have to.
This is where I got this bit of code
http://www.tracewatch.com/doc/code
This is a code that I need to put some where in my site and I know that I can not put it in the templates the way it is or even a core file.
So could some one show me the changes and tell me where to put it template or core?
There is JavaScript That I could use and would be easier but I do not want to use it if I do not have to.
This is where I got this bit of code
http://www.tracewatch.com/doc/code
<?php
$_SERVER[ 'DOCUMENT_ROOT' ] = str_replace('\\','/',substr(
str_replace('\\', '\', $_SERVER['PATH_TRANSLATED']),
0, 0-strlen($_SERVER['PHP_SELF'])));
include_once $_SERVER[ 'DOCUMENT_ROOT' ].'/twatch/api/LogRequest.php';
twatchLogRequest();
?>