Размер файла: 2.18Kb
<?php
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
require_once"../template/db.php";
include_once"fnc.php";
echo "<img src='".$config_home."/images/img/partners.gif' alt=''>Новые темы<br><br>\n";
$flt = $sitetime-60*60*24*7;
$tops = mysql_query("SELECT * FROM `theme` WHERE `time` >= '$flt' ORDER BY `id` DESC LIMIT 10");
if(mysql_num_rows($tops) != '0'){
while($top = mysql_fetch_array($tops)){
echo "<div>\n";
if($top[locked] == '1'){echo "<img src='".$config_home."/forum/img/zt.gif' alt=''> ";
}else{
if($top[status] == '0'){echo "<img src='".$config_home."/forum/img/t.gif' alt=''> ";}
elseif($top[status] == '1'){echo "<img src='".$config_home."/forum/img/bt.gif' alt=''> ";}}
echo "<a href='".$config_home."/forum/posts/".$top['id']."'><b>".$top['name']."</b></a><br>";
$date = file(BASEDIR."local/profil/$top[author].prof");
$filename = "".BASEDIR."local/profil/$top[author].prof";
if (file_exists($filename)) {
$date = explode(":||:",$date[0]);
echo "Создал: <a href='../pages/anketa.php?uz=".$top['author']."'>";
if ($date[65]) {echo "".$date['65']."</a><br>";
}else{echo "".$top['author']."</a><br>";}
}else{echo "Создал: ".$top['author']."<br>";}
echo "Кратко: ".$top['description']." <br>\n";
echo "Последний: ";
$ldate = file(BASEDIR."local/profil/$theme[last].prof");
$ldate = explode(":||:",$ldate[0]);
if ($ldate[65]) {echo "".$ldate['65']." ";
}else{echo "".$top['last']." ";}
echo "(".date_fixed($top['time']).")<hr></div>\n";
}}else{ echo "<br> <img src='../images/img/close.gif' alt=''> Темы еще не созданны!<br><hr>\n";}
echo ": <a href='".$config_home."/forum/'>К форумам</a><br>";
echo ":: <a href='".$config_home."'>На главную</a>";
include_once"../themes/$config_themes/foot.php";
?>