Вход Регистрация
Файл: backup/user/fav.php
Строк: 34
<?
require_once('../core/start.php');
if(!
func::user_inf($id'id')){
header('location: /');
die();
}
$title 'Избранные темы '.func::user_inf($id'login');
require_once(
root.'core/header.php');
echo 
'<div class="wizart">'.$title.'</div>';
func::head_menu();
$total core::$dbs->querySingle("SELECT COUNT(id) from `forum_fav` WHERE `user_id` = ?",array($id));
if(
$total==0){
func::error('Тем нет!');
}
func::nav($total,$num);
$array core::$dbs->query("SELECT * FROM `forum_fav` WHERE `user_id` = ? ORDER BY `id` DESC LIMIT $start,$num",array($id));
while(
$arr $array -> fetch()){
$them core::$dbs->queryFetch("SELECT * FROM `forum_theme` WHERE `id` = ? LIMIT 1",array($arr['id_t']));
if(
$them['type'] == 0){
$type '<img src="/icons/them.png" alt=""/>';
}elseif(
$them['type'] == 1){
$type '<img src="/icons/them_closed.png" alt=""/>';
}
echo 
'<div class="main">';
echo 
$type.' <a href="/plugin/topic/'.$them['id'].'"><b>'.$them['name'].'</b></a> <span class="count">('.core::$dbs->querySingle("SELECT COUNT(id) from `forum_msg` WHERE `id_t` = ?",array($them['id'])).')</span><br/>';
echo 
mb_substr($them['text'],0,25).'...('.func::times($them['time']).')';
echo 
'</div>';
}
func::navig('?id='.$id.'&');
func::footer_menu();
require_once(
root.'core/footer.php');
?>
Онлайн: 2
Реклама