Recent errors

0) { $fh = fopen($file,'r'); if ($size < 1024*50) { $size = 1024*50; } fseek($fh, $size - 1024*50); $lines = array(); while (!feof($fh)) { $lines[] = fgets($fh); } array_shift($lines); // Could be incomplete $lines = array_reverse($lines); $lines = array_slice($lines, 0, 10); $i = 0; foreach ($lines as $line) { if (preg_match('/^\[(.*?)\] \[(.*?)\]( \[client (.*?)\])? (.*)$/', $line, $matches)) { echo ''; $i = 1 - $i; } } fclose($fh); } else { echo ''; } ?>
Time Type Client Message
'.$matches[1].''.$matches[2].''.$matches[4].''.$matches[5].'
No errors