View file forum/mes.php

File size: 2.57Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);         
header("Content-type:text/vnd.wap.wml;charset=utf-8");   

include 'config.php'; 

print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
	<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
	<wml><card id=\"mas\" title=\"$zag\"><p>";
							

$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 "<a href=\"prof.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/>"; 
	$nf=$nf+1;}
	$nmes=$nmes+1;
	if ($nmes>$mes) {$nf=4;}
};
$kon=$mes-2;
$nazad=$nmes-6;
if ($nmes<=$mes) {print"<a href=\"mes.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=\"mes.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>";}
print"<br/>";
if ($nmes>4) {print"<a href=\"mes.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=\"mes.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>";}

$privat = @implode("",@file("profil/$log.shp"));  
$privat=trim($privat);
print"<br/>
<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>";


print "<br/>---<br/>";
if($log!="") {print"
<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>";} else {print"
<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>";}	
print"<br/>---<br/>
<img src=\"st/44.gif\" alt =\"+\"/>
<a href=\"tem.php?log=$log&amp;par=$par&amp;razd=$razd&amp;prazd=$prazd\"><font color=\"blue\">[$sktext[17]]</font></a>";


print "</p></card></wml>";

?>