View file forum/tem2.php

File size: 2.06Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);        
 
include 'head.php';
include 'config.php';

							

$mes = @implode("",@file("rek/$razd=$prazd.tem"));     ///// открываем счетчик с количеством тем

if ($ntem=="") {$ntem=$mes;}
$nf=1;  $st=$ntem;
while($nf <= 7)
   {

	$sort = @implode("",@file("rek/$razd=$prazd=$ntem.sort"));  
	if($sort!=""){$sntem=trim($sort);
	$text = @file("rek/$razd=$prazd=$sntem.kt");       /////////// выводим ссылки на деректории 
	$test=$text; 
	$udata = explode(":||:",$text[0]);
	$tem= trim($udata[1]); 
	$naz= trim($udata[2]); 
	$time= trim($udata[3]);
	$puz= trim($udata[4]);
	if ($test != "")  { 
	$nmes = @implode("",@file("rek/$razd=$prazd=$tem.mes"));
	$nmes=trim($nmes);
	print"<p class=\"p2\">
<img src=\"st/10.gif\" alt =\"+\"/>
<a href=\"mes2.php?tem=$tem&amp;log=$log&amp;par=$par&amp;razd=$razd&amp;prazd=$prazd\"><font color=\"blue\">$naz</font></a> <small>[$time]</small><font color=\"995777\"> $puz</font> ($nmes)<br/></p>"; 
	$nf=$nf+1;}}
	$ntem=$ntem-1;
	if ($ntem<0) {$nf=8;}
};

if($ntem>0) {print"
<a href=\"tem2.php?razd=$razd&amp;prazd=$prazd&amp;ntem=$ntem&amp;log=$log&amp;par=$par\"><font color=\"blue\">[$sktext[13]]</font></a><br/>";}

$privat = @implode("",@file("profil/$log.shp"));  
$privat=trim($privat);
print"<p class=\"p2\">
<img src=\"st/4.gif\" alt =\"+\"/>
<a href=\"ntem.php?razd=$razd&amp;prazd=$prazd&amp;log=$log&amp;par=$par\"><font color=\"blue\">[$sktext[16]]</font></a></p>";

if($log!="") {print"
<p class=\"p2\">
<img src=\"st/67.gif\" alt =\"+\"/>
<a href=\"profil.php?mest=tem&amp;razd=$razd&amp;prazd=$prazd&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=tem&amp;razd=$razd&amp;prazd=$prazd&amp;tem=$tem\"><font color=\"blue\">[$sktext[1]]</font></a></p>";}	
print"
<p class=\"p2\">
<img src=\"st/44.gif\" alt =\"+\"/>
<a href=\"prazd2.php?log=$log&amp;par=$par&amp;razd=$razd\"><font color=\"blue\">[$sktext[15]]</font></a></p>";

include 'foot.php';
?>