Файл: vk.com_vhllam/sys/inc/umenu.php
Строк: 84
<?
echo "<div class='post_1'>";
echo "<font color='green'><b>Настройки :</b></font></a> |";
echo "<a href='/user/tape/settings.php'> Ленты</a> | ";
echo "<a href='/user/discussions/settings.php'> Обсуждения</a> |";
echo "<a href='/user/notification/settings.php'> Уведомления</a> |";
echo "<a href='/user/info/settings.privacy.php' > Приватности</a> |";
echo "<a href='/user/info/secure.php' > Пароля</a>";
echo "</div>";
echo "<div class='ot'>n";
echo "<img src='/style/icons/search.gif' alt='' /> <b>Поиск Города:</b><br/>n";
echo "Название города или его часть:<br /><form method="post" action="/city.php?act=search">n";
echo "<input type="text" name="citys" maxlength="16" value="" />n";
echo "<input type="submit" value="Поиск" /></br>n";
echo "".city($user['id'])." <a href="/city.php">Изменить</a></div>n";
echo"</form>n";
echo "<div class='xhata'>n";
echo "<a href='/info.php'>Моя страничка</a> | <a href='/user/info/edit.php'>Изменить</a>n";
echo "</br>";
echo "<hr>";
echo "<a href='/user/info/anketa.php'>Моя анкета</a> | <a href='/avatar.php'>Мой аватар</a>n";
echo "</br>";
/*
========================================
Фото
========================================
*/
echo "<hr>";
echo "<a href='/foto/$user[id]/'>Мои фотографии</a> ";
echo "[" . mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$user[id]'"),0) . "]</br>";
/*
========================================
Файлы
========================================
*/
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$user[id]' AND `osn` = '1'"), 0)==0)
{
mysql_query("INSERT INTO `user_files` (`id_user`, `name`, `osn`) values('$ank[id]', 'Файлы', '1')");
}
$dir_osn = mysql_fetch_assoc(mysql_query("SELECT * FROM `user_files` WHERE `id_user` = '$user[id]' AND `osn` = '1' LIMIT 1"));
echo "<hr>";
echo "<a href='/user/personalfiles/$user[id]/$dir_osn[id]/'>Личные файлы</a> ";
echo "[" . mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$user[id]' AND `osn` > '1'"),0) . "/" . mysql_result(mysql_query("SELECT COUNT(*) FROM `obmennik_files` WHERE `id_user` = '$user[id]'"),0) . "]</br>";
/*
========================================
Друзья
========================================
*/
$k_f = mysql_result(mysql_query("SELECT COUNT(id) FROM `frends_new` WHERE `to` = '$user[id]' LIMIT 1"), 0);
$k_fr = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` WHERE `user` = '$user[id]' AND `i` = '1'"), 0);
$res = mysql_query("select `frend` from `frends` WHERE `user` = '$user[id]' AND `i` = '1'");
echo "<hr>";
echo '<a href="/user/frends/?id='.$user['id'].'">Мои друзья</a> ['.$k_fr.'</b>/';$i =0;
while ($k_fr = mysql_fetch_array($res)){
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$k_fr[frend]' && `date_last` > '".(time()-600)."'"),0) != 0) $i++;
}
echo "<span style='color:green'><a href='/user/frends/online.php?id=".$user['id']."'>$i</a></span>]</br>";
echo "<hr>";
echo "<a href='/konts.php'>Мои контакты</a> [".mysql_result(mysql_query("SELECT COUNT(*) FROM `users_konts` WHERE `id_user` = '$user[id]' AND (`type` = 'common' OR `type` = 'favorite')"), 0)."]</br>n";
/*
========================================
Дневники
========================================
*/
echo "<hr>";
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id_user` = '".$user['id']."'"),0);
echo "<a href='/plugins/notes/add.php?id=$user[id]'>Создать дневник</a> [$kol_dnev]</br>n";
echo "<hr>";
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `status` WHERE `id_user` = '".$user['id']."'"),0);
echo "<a href='info.php?id=$user[id]&status'>Создать статус</a> [$kol_dnev]</br>n";
echo "<hr>";
echo "<a href='/user/info/edit.php?set=sp'>Симейное положение</a></br>n";
echo "<hr>";
echo "<a href='/user/info/settings.php'>Общие настройки</a></br>n";
echo "<hr>";
echo "<a href='/mails'>Мои конференции</a></br>n";
echo "<hr>";
echo "<a href='/user/admin.user.php'><font color='red'>Администрация</font></a></div>n";
if ($set['web']==false){
echo "<div class='cont'>";
echo "- <a href='/exit.php'>Выход из под $user[nick]</a><br />n";
echo "</div>";}
?>