Размер файла: 1.51Kb
<?php
// автор скрипта - Arab
// icq - 9988817 сайт: http://bola.net.ru
include_once "includ/functions.php";
include_once "includ/login.php";
include_once "includ/setting.php";
include_once "includ/online.php";
include_once "../css/red/index.php";
echo'<title>Последние темы</title>';
echo'<center><b><div class=agr>Последние темы</div></b></center></div><div class=bgr>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
echo''.check($hello).' '.check($login).'<br>';} else { echo''.check($hello).' '.check($guestname).'<br>'; }
$dir=opendir("$maindir/forum/data/forum");
while($file=readdir($dir)){
if(($file != ".") && ($file != "..")){
$file = str_replace(".tem","",$file);
$file = str_replace("last.dat","",$file);
///////
$lastm = file("$maindir/forum/data/forum/$file");
$countm = count($lastm);
$countm=$countm-1;
$text = @file("$maindir/forum/data/forum/$file");
$udata = explode("|",$text[$countm]);
#################################
$data = date("j.n.y");
if($udata[6]==$data){ $udata[6]="Сегодня"; }
if($udata[3]){
echo'<br>» <b><a href="index.php?messages&tem='.$udata[0].'&id='.$udata[4].'">'.$udata[3].'</a></b> - <a href="other/anketa.php?user='.$udata[2].'">'.$udata[2].'</a> ('.$udata[5].'/'.$udata[6].')';
}}}
closedir ($dir);
echo'<br>------<br><a href="index.php?'.SID.'">В форум</a></div>';
include_once "../css/red/foot.php";
?>