$maxlength) $text = substr($text,1,$maxlength); $text = strtr($text,"(){}[]#*+!~^><;$&=|,", "xxxxxxxxxxxxxxxxxxxx"); } function eintragen($from, &$logentry) { $fnam = sprintf("/srv/www/vhosts/phenomedia.com/subdomains/redirect/httpdocs/redirdata_amazon-partnernet-home.%s.txt",date("Y.m")); $tfile=@fopen($fnam,"a+"); setlocale (LC_TIME, 'en_US'); $etime = time(); $logentry = $from . ";" . $etime . ";" . strftime ("%d/%b/%Y:%H:%M:%S +0100", $etime) . ";" . getenv("HTTP_REFERER") . ";" . getenv("REMOTE_ADDR") . "\n"; fwrite($tfile, $logentry); fclose($tfile); } make_data_safe($from,200); eintragen($from,$logentry); header("Location: http://www.amazon.de/exec/obidos/redirect-home?tag=phenomediaag-21&site=home"); ?>