Мои избранные посты
0) {
$APPLICATION->AddChainItem("Вопросы и ответы", "/q/");
$APPLICATION->AddChainItem("Моё избранное");
$APPLICATION->SetTitle("Мои избранные посты");
require("include/fav.php");
} elseif($path_arr[1] == 'profile' && $qtuser['id'] > 0) {
$APPLICATION->AddChainItem("Вопросы и ответы", "/q/");
$APPLICATION->AddChainItem("Мой профиль");
$APPLICATION->SetTitle("Настройки моего профиля");
require("include/profile.php");
} elseif($path_arr[1] == 'my' && $qtuser['id'] > 0) {
$APPLICATION->AddChainItem("Вопросы и ответы", "/q/");
$APPLICATION->AddChainItem("Мои посты");
$APPLICATION->SetTitle("Мои посты");
require("include/my.php");
} elseif($path_arr[1] != '') {
$thread = $db->query("select * from qt_themes where url = ?", array($path_arr[1]), "rowassoc");
if($thread) {
if(!in_array($thread['id'], $_SESSION['iviewedthread'])) {
$_SESSION['iviewedthread'][] = $thread['id'];
qt_thread_counter_up($thread['id']);
}
$thread['author'] = get_qt_thread_author($thread);
$thread['added_formatted'] = date("H:i d.m.Y", strtotime($thread['added']));
$thread['likes'] = qt_get_likes_count(1, $thread['id']);
$thread['current_user_like'] = qt_check_my_vote(1, $thread['id'], $qtuser);
$thread['current_user_fav'] = qt_check_my_fav($thread['id'], $qtuser);
$comments = get_qt_comments($thread['id'], $qtuser);
$APPLICATION->AddChainItem("Вопросы и ответы", "/q/");
$APPLICATION->AddChainItem($thread['title']);
require("include/thread.php");
} else {
CHTTP::SetStatus(404);
$GLOBALS['APPLICATION']->RestartBuffer();
define('SITE_TEMPLATE_ID', "v2sex");
if(file_exists($_SERVER['DOCUMENT_ROOT'].'/404.php'))
include_once($_SERVER['DOCUMENT_ROOT'].'/404.php');
}
} else {
$APPLICATION->AddChainItem("Вопросы и ответы");
$APPLICATION->SetTitle("Популярное сегодня");
require("include/main.php");
}
require("include/modal.php");
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");
Про «это» интересно
{{#arr}}
{{/arr}}