uniqueID(); $token .= $cryptography->uniqueID(); $token .= $cryptography->uniqueID(); $token .= $cryptography->uniqueID(); $_SESSION['uuid'] = $token; } else { $token = $_SESSION['uuid']; } function logs($filename) { $tmp = ''; if(file_exists($filename)) { if(filesize($filename) >0) { $file = fopen($filename,'rt'); $logfile = fread($file,filesize($filename)); if(strlen($logfile)>1) { $logfile = htmlspecialchars($logfile,ENT_QUOTES,'UTF-8'); echo '
Last 200 unique visitors
'; $log = explode("\n",$logfile); $log = array_unique($log); $c = count($log); if($c > 200) { $c = 200; } for($i=0;$i<$c;$i++) { if(!empty($log[$i])) { $tmp .= ''. htmlspecialchars($log[$i],ENT_QUOTES,'UTF-8').'
'.PHP_EOL; } } } else { $tmp .= 'Logfile is empty. No-one visisted, start promoting it!'; } } else { $tmp .= 'Logfile is empty. No-one visisted, start promoting it!'; } } return $tmp; } ?>

Shop log.