View file forum/mes2.php

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&amp;mest=mes&amp;razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;nmes=$st&amp;log=$log&amp;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&amp;prazd=$prazd&amp;tem=$tem&amp;nmes=$nmes&amp;log=$log&amp;par=$par\"><font color=\"blue\">[$sktext[13]]</font></a>|<a href=\"mes2.php?razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;nmes=$kon&amp;log=$log&amp;par=$par\"><font color=\"blue\">[$sktext[19]]</font></a></p>";}

if ($nmes>4) {print"
<p class=\"p2\"><a href=\"mes2.php?razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;nmes=$nazad&amp;log=$log&amp;par=$par\"><font color=\"blue\">[$sktext[20]]</font></a>|<a href=\"mes2.php?razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;nmes=1&amp;log=$log&amp;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&amp;prazd=$prazd&amp;tem=$tem&amp;log=$log&amp;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&amp;razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;nmes=$nmes&amp;log=$log&amp;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&amp;razd=$razd&amp;prazd=$prazd&amp;tem=$tem&amp;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&amp;par=$par&amp;razd=$razd&amp;prazd=$prazd\"><font color=\"blue\">[$sktext[17]]</font></a></p>";


include 'foot.php';
?>