Файл: user/bookmark/index.php
Строк: 60
<?php
require_once '../../sys/inc/start.php';
require_once '../../sys/inc/compress.php';
require_once '../../sys/inc/sess.php';
require_once '../../sys/inc/settings.php';
require_once '../../sys/inc/db_connect.php';
require_once '../../sys/inc/ipua.php';
require_once '../../sys/inc/fnc.php';
require_once '../../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 = get_user($ank['id']);
if (!$ank) {
header("Location: /index.php?" . SID);
exit;
}
$set['title'] = 'Закладки ' . $ank['nick'];
require_once '../../sys/inc/thead.php';
err();
aut();
$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);
$forum = mysql_result(mysql_query("SELECT COUNT(id_user) FROM `forum_zakl` WHERE `id_user` = '" . $ank['id'] . "'"), 0);
echo "<div class = 'blok'>Интересные страницы</div>";
echo "<a href = '/user/bookmark/users.php?id=$ank[id]'>";
echo "<div class = 'razd'><img src = '/style/icons/user.png' /> Люди ";
echo "<span class = 'count'>";
echo "$users";
echo "</span></div></a>";
echo "<a href = '/user/bookmark/foto.php?id=$ank[id]'>";
echo "<div class = 'razd'><img src = '/style/icons/photo.png' /> Фотографии ";
echo "<span class = 'count'>";
echo "$foto";
echo "</span></div></a>";
echo "<a href = '/user/bookmark/forum.php?id=$ank[id]'>";
echo "<div class = 'razd'><img src = '/style/icons/pencil.png' /> Форум ";
echo "<span class = 'count'>";
echo "$forum";
echo "</span></div></a>";
require_once '../../sys/inc/tfoot.php';