File size: 666B
<?
$ss = @file("$rek/mod.rum");
$strok = sizeof($ss);
if($ns==""){$ns=0;}
$rps=0;
while($rps<$kss){
$text=@file("$rek/mod.rum");
$text=explode(":||:",$text[$ns]);
$tip=trim($text[0]);
$nik=trim($text[1]);
$komy=trim($text[2]);
$time=date("H:i s", $text[3]);
$sob=trim($text[4]);
if($sob!=""){ if($tip!="pr" || $login==$komy || $login==$nik){print"<b>$nik</b> <small>[$time] </small>: ";
if($komy!=""){
if($tip=="pr"){print"<small>(шепчет) </small>";}
if($komy==$login){
print"<b>$komy, </b>";} else {print"$komy, ";}}
print"$sob<br/>"; $rps=$rps+1;
}}
$ns=$ns+1;
if($ns>=$strok){$rps=$kss+1;}
}
?>