View file dportal_0.2/dforum/inci.php

File size: 1.16Kb
<?
@include "$dir_razd/dan.php";
include 'dan.php';

 print"<img src=\"$dir_razd/forum.png\" alt=\".\"/> 
 <a href=\"$dir_razd/razdely.php?ver=$ver&amp;pas=$pas&amp;login=$login\">Форум: </a><small><br/>";

 $kpt=0;
 
$arnte=@file("$dir_razd/ntem");
foreach ($arnte as $key => $value){
if($kpt<3){
$arntop=explode("<br/>", $value);
$arntop[1]=trim($arntop[1]);
$artdan=@file("$dir_razd/$perfix$arntop[1]/$arntop[0]");
if($ver!="html"){ $artdan= str_replace("$", "$$", $artdan);}

$namear=explode("<br/>", $artdan[0]);

$ss = @file("$dir_razd/$perfix$arntop[1]/$arntop[0]");
$strok = sizeof($ss);
$strok=$strok-1;

$temdp=explode("<br/>", $artdan[1]);
$temdk=explode("<br/>", $artdan[$strok]);
$kotv=$strok-1;

if($temdp[0]==""){$temdp[0]="-$temdp[1]-";}
if($temdk[0]==""){$temdk[0]="-$temdk[1]-";}

$temdp[2]=date("d.m, H:i", $temdp[2]);
$temdk[2]=date("d.m, H:i", $temdk[2]);

if($namear[0]!=""){
if($namear[1]!="vs"){print" <img src=\"pik/bez.GIF\" alt=\"8)\"/> ";}
print"<a href=\"$dir_razd/topic.php?ver=$ver&amp;pas=$pas&amp;login=$login&amp;r=$arntop[1]&amp;t=$arntop[0]\">$namear[0]</a>
 [$kotv] [$temdk[0] ($temdk[2])]<br/>"; $kpt++;}

}
}
  
  print"</small><hr/>";



?>