Файл: user/bookmark/index.php
Строк: 58
<?php
/* Мод "Закладки"
* Версия v0.0.3
* Дата последнего редактирования 27.04.2015
* Двиг DCMS Special
* Модифицировал densnet
* Файл index.php
* Описание: Категории закладок
*/
require_once '../../sys/inc/start.php';
require_once H . 'sys/inc/compress.php';
require_once H . 'sys/inc/sess.php';
require_once H . 'sys/inc/settings.php';
require_once H . 'sys/inc/db_connect.php';
require_once H . 'sys/inc/ipua.php';
require_once H . 'sys/inc/fnc.php';
require_once H . 'sys/inc/user.php';
if (isset($user)) {
$ank['id'] = $user['id'];
}
if (isset($_GET['id'])) {
$ank['id'] = intval($_GET['id']);
}
if ($ank['id'] == 0) {
header("Location: /index.php?" . SID);
exit;
}
$ank = user::get_user($ank['id']);
if (!$ank) {
header("Location: /index.php?" . SID);
exit;
}
$set['title'] = 'Закладки ' . $ank['nick'];
require_once H . 'sys/inc/thead.php';
title();
aut();
err();
#Навигация
//echo "<div class = 'comm'><a href = '/index.php'>Главная</a> > <a href = '/info.php?id=$ank[id]'>$ank[nick]</a> > <a href = '?'><b>Закладки</b></a></div>";
$users = mysql_result(mysql_query("SELECT COUNT(id_user) FROM `bookmark_user` WHERE `id_user` = '" . $ank['id'] . "'"), 0);
$foto = mysql_result(mysql_query("SELECT COUNT(id_user) FROM `bookmark_foto` WHERE `id_user` = '" . $ank['id'] . "'"), 0);
echo "<div class = 'comm'><center><b>Интересные страницы</b></center></div>";
#Люди
echo "<div class = 'comm'>";
echo "<span style = 'float:right' id = 'hides'><small>$users</small></span>";
echo "<a href = 'users.php?id=$ank[id]'>" . img('useru.png', '') . " Люди</a>";
echo "</div>";
#Фото
echo "<div class = 'comm'>";
echo "<span style = 'float:right' id = 'hides'><small>$foto</small></span>";
echo "<a href = 'foto.php?id=$ank[id]'>" . img('photoru.png', '') . " Фотографии</a>";
echo "</div>";
require_once H . 'sys/inc/tfoot.php';