Файл: vsime.com/user/inc/act_index.php
Строк: 251
<?php
if (isset($_GET['id'])) {
$ank = profile(intval($_GET['id']));
if ($ank['id'] == 0) {
$title .= ' - Ошибка!';
ex_head();
$error[] = 'Пользователь не найден.';
show_errors();
ex_foot();
}
} else {
if_user('is_reg');
$ank = $user;
}
if (isset($user) && $user['id'] == $ank['id'])$title = 'Моя страница';
else $title = $ank['nick'];
ex_head();
echo "<style>
.avatar:hover {
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Для Firefox */
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Для Safari и Chrome */
box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Параметры тени */
}
.border {border-left: 1px solid #B3B3B3;border-right: 1px solid #B3B3B3;}
</style>";
echo "<div class='border'>n";
echo "<div class='b_switcher'><table width='100%'><tbody><tr><td><span class='active_item'>Профиль</span></td><td><a href='/statistics/?id=$ank[id]' class='blue_link'>Статистика</a></td></tr></tbody></table></div>";
echo '</div>';
echo "<div class='list'><span class='right'>Последний клик (<font color=red>".vremja($ank['date_last'])."</font>)</span>n";
echo profile_icon($ank['id']).profile_nick($ank['id']).profile_medal($ank['id']);
echo '</div>';
if ($ank['anketa']['hello']!=NULL || isset($moderate_site) || $ank['id']==$user['id']) {
echo '<div class=list>';
echo "<div class='hello'>n";
echo "<img src='/css/css_elements/hello_bg.png' style='position: absolute; top:-15px; left:3px;'>n";
if ($ank['id']==$user['id'] && isset($user)) {
echo "<span class='right'><a href='?act=hello&id=$ank[id]'>$config[code_edit]</a></span>n";
}
if ($ank['anketa']['hello']!=NULL) {
echo output_text($ank['anketa']['hello'], $ank['id'], array('quote' => 0, 'fon' => '0', 'url' => 0))."n";
} else {
if ($ank['id'] != $user['id'])echo "<span class='grey'>Я ВСиме</span>n";
else echo "<span class='grey'>Я ВСиме !</span>n";
}
echo "</div>n";
}
echo '</div>';
echo '<div class=list>';
$fobian = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `decor` WHERE `user_id` = '".$ank['id']."'"));
if (isset($fobian['user_id']) AND $fobian['pet_id'] >= 1) {
$ost = $realtime - $fobian['time'];
if ($ost > 604800) mysqli_query($dbi, "UPDATE `decor` SET `pet_id` = '0', `time` = '0' WHERE `user_id` = '".$ank['id']."'");
echo '<span style="float: right;">';
echo '<img src="/decor/img/' . $fobian['pet_id'] . '.png" alt="" border="0"/>';
echo '</span>';
}
show_avatar_page($ank['id'], 'big', 1, 1);
echo "</div></div>n";
Echo '<div class=list>';
echo "<div class='clear'></div>n";
echo "<div>";
$query = mysqli_query($dbi, "SELECT * FROM `gifts` WHERE `id_user` = '$ank[id]' ORDER BY `id` DESC LIMIT 4");
$count = mysqli_result("SELECT COUNT(*) FROM `gifts` WHERE `id_user` = '$ank[id]'");
while($post=mysqli_fetch_array($query))
{
$gift = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `gift` WHERE `id` = '$post[id_gift]'"));
echo "<a href='/gifts/?act=gift&id=$post[id]'><img src='/i/gifts/$gift[image]' class='gift' height='".($config['web']==false?30:50)."' height='".($config['web']==false?30:50)."' /></a>";
}
if ($count > 4) echo " <a href='/gifts/?id=$ank[id]'style='margin-left: 4px;text-decoration: none;'><span style='font-size:25px;text-decoration:none;vertical-align:bottom;'><font color=green>»</font></span></a>";
echo "</div>";
echo "</div>n";
echo "<div class='main_menu'><a href='/anketa/?id=$ank[id]'><img src='/i/site/anketa.png' /> Анкета</a></div>n";
echo "<div class='main_menu'><a href='/guestbook/?id=$ank[id]'><img src='/i/site/guestbook.png' /> Гостевая ";
include(H."guestbook/count_user.php");
echo "</a></div>n";
echo "<div class='main_menu'><a href='/diary/?act=user&id=$ank[id]'><img src='/i/site/diary.png' /> Дневник ";
include(H."diary/count_user.php");
echo "</a></div>n";
echo "<div class=list><a href='/comm/?act=user&id=$ank[id]'><img src='/i/site/comm.png' /> Сообщества ";
include(H."comm/count_user.php");
echo "</a></div>n";
echo "<div class='menu_user'><a href='/fotos/?act=user&id=$ank[id]'><img src='/i/site/fotos.png' /> Фото ";
include(H."fotos/count_user.php");
echo "</a></div>n";
echo "<div class=menu_user><a href='/files/?act=user&id=$ank[id]'><img src='/i/site/files.png' /> Файлы ";
include(H."files/count_user.php");
echo "</a></div>n";
if ($ank['id'] == $user['id'])
{
echo "<div class='main_menu'><a href='/my_games/'><img src='/i/site/games.png' /> Игры ";
include(H."my_games/count_user.php");
echo "</a></div>n";
echo "<div class='main_menu'><a href='/blacklist/?act=user&id=$ank[id]'><img src='/i/site/blist.png' /> Черный список ";
include(H."blacklist/count_user.php");
echo "</a></div>n";
}
echo "<div class='main_menu'><a href='/friends/?act=user&id=$ank[id]'><img src='/i/site/friends.png' /> Друзья ";
include(H."friends/count_user.php");
echo "</a></div>n";
echo "<div class=list><a href='/readers/?act=user&id=$ank[id]'><img src='/i/site/readers.png' /> Подписчики ";
include(H."readers/count_user.php");
echo "</a></div>n";
echo "<div class='main_menu'><a href='/gifts/?act=user&id=$ank[id]'><img src='/i/site/gift.png' /> Подарки ";
include(H."gifts/count_user.php");
echo "</a>n";
echo "<br/><a href='/awards/?act=user&id=$ank[id]'><img src='/i/site/awards.png' /> Награды ";
include(H."awards/count_user.php");
echo "</a>n";
echo "<br/><a href='/actions/?act=user&id=$ank[id]'><img src='/i/site/action_user.png' /> Действия ";
include(H."actions/count_user.php");
echo "</a></div>n";
if (isset($user) && $user['id']!=$ank['id'])
{
echo "<div class='foot rotate_s'>
<a href='/mail/?act=new_message&id=$ank[id]' class='rotate_link action_MaNew' title='Написать сообщение'><span></span></a>n";
echo "<a href='/gifts/?act=send&id=$ank[id]' class='rotate_link action_GiftS' title='Сделать подарок'><span></span></a>n";
if (!is_friend($user['id'], $ank['id']) && !is_friend($user['id'], $ank['id'], 1))
{
echo "<a href='/friends/?act=add&id=$ank[id]' class='rotate_link action_FrAdd' title='Предложить дружбу'><span></span></a>n";
} elseif(is_friend($user['id'], $ank['id'], 1)) {
$row = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `friends` WHERE `id_user` = '$user[id]' AND `id_ank` = '$ank[id]' AND `ok` = '0'"));
} else {
}
echo '</div>';
if (isset($moderate_site))echo "<div class='menu'><a href='$config[moderate_dir]?act=user&id=$ank[id]'><img src='/i/site/settings.png' /> Управление пользователем</a></div>n";
}
if ($user['id']==$ank['id'] && isset($user))
{
echo "<div class='list'><a href='/settings'><img src='/i/site/settings.png' /> Мои настройки</a></div><div class=list>n";
echo "<a href='/shop'><img src='/i/site/shop.png' /> Дополнительные услуги</a></div>n";
}
if (isset($user) && $user['id'] == 1)
{
echo "<div class='list'>n";
echo "<span class='list_a'>IP:</span> <span class='list_n'>$ank[ip]</span><br />n";
echo "<span class='list_a'>Браузер:</span> <span class='list_n'>$ank[ua]</span><br />n";
echo "</div>n";
}
if (isset($user) && $user['id'] == 2)
{
echo "<div class='list'>n";
echo "<span class='list_a'>IP:</span> <span class='list_n'>$ank[ip]</span><br />n";
echo "<span class='list_a'>Браузер:</span> <span class='list_n'>$ank[ua]</span><br />n";
//echo "</div>n";
}
ex_foot();
?>