2007-08-21, 06:35 PM
hi all,
actually i try to put à php script in the footer of a test forum, but i can't.
I try to modify it in the admin cp and the footer template modification
the script is:
and when i put it got the error below:
someone know how can i do about it ?
Thanks
actually i try to put à php script in the footer of a test forum, but i can't.
I try to modify it in the admin cp and the footer template modification
the script is:
<?php
// ---------------------------
// Début du code SpyWords
//
$url = "http://spy5.spywords.com/?" .
"sid=11136" . "&type=1&" .
"url=" . urlencode($_SERVER['REQUEST_URI']) . "&" .
"agent=" . urlencode($_SERVER["HTTP_USER_AGENT"]) . "&" .
"ip=" . $_SERVER["REMOTE_ADDR"] . "&" .
"code=" . $_SERVER["REDIRECT_STATUS"];
if (!eregi($_SERVER["HTTP_HOST"],$_SERVER["HTTP_REFERER"])){
$url .= "&ref=" . urlencode($_SERVER["HTTP_REFERER"]);
}
//Transmission des infos pour analyse du moteur
$Shandle = @fsockopen("spy5.spywords.com", 80, $errno, $errstr, 3);
if($Shandle){
@readfile($url);
fclose($Shandle);
}
//
// Fin du code SpyWords
// ---------------------------
?>
and when i put it got the error below:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/web2/web/global.php(349) : eval()'d code on line 1
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web2/web/global.php(349) : eval()'d code:1) in /var/www/web2/web/inc/functions.php on line 78
someone know how can i do about it ?
Thanks