File size: 2.43Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include 'head.php';
include 'config.php';
$mes = @implode("",@file("rek/$razd=$prazd=$tem.mes")); ///// открываем счетчик с количеством сообщений
if ($nmes=="") {$nmes=1;}
$nf=1; $st=$nmes;
while($nf <= 3)
{
$text = @file("rek/$razd=$prazd=$tem=$nmes.TEXT"); /////////// выводим ссылки на деректории
$test=$text;
$udata = explode("::",$text[0]);
$uz= $udata[0];
$time= $udata[2];
$tr= $udata[1];
if ($test != "") { print"
<p class=\"p2\"><a href=\"prof2.php?uz=$uz&mest=mes&razd=$razd&prazd=$prazd&tem=$tem&nmes=$st&log=$log&par=$par\"><font color=\"blue\">$uz</font></a> <small>[$time]</small>:<br/> $tr<br/></p>";
$nf=$nf+1;}
$nmes=$nmes+1;
if ($nmes>$mes) {$nf=4;}
};
$kon=$mes-2;
$nazad=$nmes-6;
if ($nmes<=$mes) {print"<p class=\"p2\"><a href=\"mes2.php?razd=$razd&prazd=$prazd&tem=$tem&nmes=$nmes&log=$log&par=$par\"><font color=\"blue\">[$sktext[13]]</font></a>|<a href=\"mes2.php?razd=$razd&prazd=$prazd&tem=$tem&nmes=$kon&log=$log&par=$par\"><font color=\"blue\">[$sktext[19]]</font></a></p>";}
if ($nmes>4) {print"
<p class=\"p2\"><a href=\"mes2.php?razd=$razd&prazd=$prazd&tem=$tem&nmes=$nazad&log=$log&par=$par\"><font color=\"blue\">[$sktext[20]]</font></a>|<a href=\"mes2.php?razd=$razd&prazd=$prazd&tem=$tem&nmes=1&log=$log&par=$par\"><font color=\"blue\">[$sktext[21]]</font></a></p>";}
$privat = @implode("",@file("profil/$log.shp"));
$privat=trim($privat);
print"<p class=\"p2\">
<img src=\"st/8.gif\" alt =\"+\"/>
<a href=\"otvet.php?razd=$razd&prazd=$prazd&tem=$tem&log=$log&par=$par\"><font color=\"blue\">[$sktext[18]]</font></a></p>";
if($log!="") {print"
<p class=\"p2\">
<img src=\"st/67.gif\" alt =\"+\"/>
<a href=\"profil.php?mest=mes&razd=$razd&prazd=$prazd&tem=$tem&nmes=$nmes&log=$log&par=$par\"><font color=\"blue\">[$log]</font></a></p>";} else {print"<p class=\"p2\">
<img src=\"st/48.gif\" alt =\"+\"/>
<a href=\"vxod.php?mest=mes&razd=$razd&prazd=$prazd&tem=$tem&nmes=$nmes\"><font color=\"blue\">[$sktext[1]]</font></a></p>";}
print"<p class=\"p2\">
<img src=\"st/44.gif\" alt =\"+\"/>
<a href=\"tem2.php?log=$log&par=$par&razd=$razd&prazd=$prazd\"><font color=\"blue\">[$sktext[17]]</font></a></p>";
include 'foot.php';
?>