Не пашет к сожалению пишет, вот что:
Warning: fopen(file.txt) [function.fopen]: failed to open stream: No such file or directory in c:\AppServ\www\ReadMe\bannedstat.php on line 9
Warning: filesize() [function.filesize]: stat failed for file.txt in c:\AppServ\www\ReadMe\bannedstat.php on line 10
Warning: fread(): supplied argument is not a valid stream resource in c:\AppServ\www\ReadMe\bannedstat.php on line 10
Warning: fclose(): supplied argument is not a valid stream resource in c:\AppServ\www\ReadMe\bannedstat.php on line 11
Список банов пуст
Но в принципе уже не надо т.к. Лоак сделал вот код но ед проблемма с шрифтами...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title</title>
</head>
<body bgcolor=000000 text="#FFFFFF">
<br>
<div align="center">
<?php
$table = "<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td>IP</td>
<td></td>
<td></td>
<td></td>
</tr>";
$file = file("путь к файлу");
foreach($file as $line){
if (strpos($line, "=baned!")){
list($ip, $line) = explode("=", $line);
list($a1, $date, $time, $a2, $motive) = explode(" ", $line);
$table .="<tr><td>$ip</td><td>$date</td><td>$time</td><td>$motive</td></tr>";
}
}
$table .= "</table>";
echo $table;
?>
</div>
</body>
</html>