<% global $REQUEST_URI; function calclocal1 () { setlocale ("LC_TIME", "de_DE"); $curt = strftime ("%D-%R"); return $curt; } function calclocal () { setlocale ("LC_TIME", "de_DE"); $curt = strftime ("%D:%R"); return $curt; } if (isset($ueli)) { // cookie bereits drinnen $ficdest=fopen("bb/uelis.dat", "a"); fputs($ficdest, "\n$ueli:".calclocal().":$REMOTE_ADDR"); fclose($ficdest); } else { // neuer besucher $fp = fopen("bb/uelis.num",'r'); $num = fgets ($fp, 255); fclose($fp); $num++; setcookie("ueli", $num,time()+3600*24*150, "/"); $fp = fopen("bb/uelis.num",'w'); fputs ($fp, $num); fclose($fp); $ficdest=fopen("bb/uelis.dat", "a"); fputs($ficdest, "\n${num}+:".calclocal().":$REMOTE_ADDR:"); fclose($ficdest); } if (isset($ueli)) { // cookie bereits drinnen $ficdest=fopen("bb/tracking.dat", "a"); fputs($ficdest, "\n${ueli}+:".calclocal1().":".$REQUEST_URI); fclose($ficdest); } else { $ficdest=fopen("bb/tracking.dat", "a"); fputs($ficdest, "\n${num}+:".calclocal1().":".$REQUEST_URI); fclose($ficdest); } %>