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