Файл: new_themes.php
Строк: 10
<?
$title='Последние темы';
include_once 'system/head.php';
echo'<div class="head"><b><a href="forum">Форум</a> / '.$title.'</b></div>';
$sex = mysql_query ("select * from `themes` ORDER BY `id` DESC LIMIT $set[p_str]");
$total = mysql_result(mysql_query("select count(*) from `themes`"),0);
if($total>0){
while ($fex = mysql_fetch_array ($sex)){ $avtor = mysql_fetch_array(mysql_query('SELECT * FROM `user` WHERE `id`='.$fex[author_id].'')); echo'<div class="menu"> <a href="/forum/theme.php?id='.protect($fex['id']).'">'.smiles(bb_code(substr($fex['name'], 0, 200))).'</a><br> От кого : <a href="profile'.$avtor['id'].'">'.$avtor['login'].'</a></div>'; }
}else{echo'<div class="menu">Тем еще нет</div>';}
include_once 'system/foot.php';
?>