Файл: public_html/user/info/wap.php
Строк: 134
<?
/*
=======================================
Dcms-Social
Автор: Искатель
---------------------------------------
Этот скрипт распостроняется по лицензии
движка Dcms-Social.
При использовании указывать ссылку на
оф. сайт http://dcms-social.ru
---------------------------------------
Контакты
ICQ: 587863132
http://dcms-social.ru
=======================================
*/
/*------------------------статус форма-----------------------*/
if (isset($user) && isset($_GET['status']))
{
if ($user['id'] == $ank['id'])
{
echo '<div class="main">Статус [512 символов]</div>';
echo '<form action="/info.php?id=' . $ank['id'] . '" method="post">';
echo "$tPanel<textarea type="text" style='' name="status" value=""/></textarea><br /> ";
echo "<input class="submit" style='' type="submit" value="Установить" />";
echo " <a href='/info.php?id=$ank[id]'>Отмена</a><br />";
echo "</form>";
include_once 'sys/inc/tfoot.php';
exit;
}
}
/*-----------------------------------------------------------*/
if ($ank['group_access']>1)echo "<div class='err'>$ank[group_name]</div>";
?>
<div class="basis__content mcont" id="mcont"> <div class="basisProfile pcont fit_box">
<div class="owner_panel profile_panel"><?
echo avatar_p($ank['id'], true, 128, false);
?>
<div class="pp_cont">
<h2 class="op_header"><?
echo group($ank['id']) . " $ank[nick] ";
echo medal($ank['id']) . " " . online($ank['id']) . " ";
?>
</h2>
<div class="pp_last_activity ">
</div>
<div class="pp_status">
<?
if (isset($user) && isset($_GET['like']) && $user['id']!=$ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]' AND `id_user` = '$user[id]' LIMIT 1"),0)==0){
mysql_query("INSERT INTO `status_like` (`id_user`, `id_status`) values('$user[id]', '$status[id]')");
}
if ($status['id'] || $ank['id'] == $user['id'])
{
if ($status['id'])
{
echo output_text($status['msg']) . ' <font style="font-size:11px; color:gray;">' . vremja($status['time']) . '</font>';
if ($ank['id']==$user['id'])echo " <a href='?id=$ank[id]&status'><img src='/style/icons/edit.gif' alt='*'> Add</a>";
echo '<br />';
}
else if ($ank['id']==$user['id'])
{
echo "Ваш статус [<a href='?id=$ank[id]&status'><img src='/style/icons/edit.gif' alt='*'> ред</a>]";
}
// Если статус установлен
if ($status['id'])
{
$l=mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]'"),0);if (isset($user) && $user['id']!=$ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]' AND `id_user` = '$user[id]' LIMIT 1"),0)==0)
{
}
else if(isset($user) && $user['id']!=$ank['id'])
{
}
else
{
}
}
}
?>
</div>
</div>
<?
if (isset($user) && $ank['id']!=$user['id']){
?>
<div class="op_block">
<table class="row_table">
<tr>
<td class="row_table_column" width="50%">
<?
echo "<a class='button wide_button' href='/mail.php?id=$ank[id]'>Личное сообщение</a> ";
?>
</td>
<td class="row_table_last_column" width="50%">
<?
if ($frend_new==0 && $frend==0){
echo "<a class='button wide_button' href='/user/frends/create.php?add=".$ank['id']."'>Добавить в друзья</a>";
}elseif ($frend_new==1){
echo "<a class='button wide_button' href='/user/frends/create.php?otm=$ank[id]'>Отменить заявку</a>";
}elseif ($frend==2){
echo "<a class='button wide_button' href='/user/frends/create.php?del=$ank[id]'>Удалить из друзей</a>";
} ?>
</td>
</tr>
</table>
</div>
<?
}
?>
</div>
</div>
</div>
<?
if (isset($user) && $ank['id']!=$user['id']){
?>
<h4 class="slim_header">Действие</h4>
<?
echo" <a href='/user/money/translate.php?id=$ank[id]' class='pm_item'>Перевести деньги </a>";
echo" <a href='/user/gift/categories.php?id=$ank[id]' class='pm_item'>Сделать подарок </a>";
}
?>
<h4 class="slim_header">Другое</h4>
<?
/*
========================================
Подарки
========================================
*/
$k_p = mysql_result(mysql_query("SELECT COUNT(id) FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1'"),0);
$width = ($webbrowser == 'web' ? '60' : '45'); // Размер подарков при выводе в браузер
if ($k_p > 0)
{
$q = mysql_query("SELECT id,id_gift,status FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1' ORDER BY `id` DESC LIMIT 5");
echo '<div class="nav2">';
while ($post = mysql_fetch_assoc($q))
{
$gift = mysql_fetch_assoc(mysql_query("SELECT id FROM `gift_list` WHERE `id` = '$post[id_gift]' LIMIT 1"));
echo '<a href="/user/gift/gift.php?id=' . $post['id'] . '"><img src="/sys/gift/' . $gift['id'] . '.png" style="max-width:' . $width . 'px;" alt="Подарок" /></a> ';
}
echo '</div>';
echo '<div class="nav2">';
echo '→ <a href="/user/gift/index.php?id=' . $ank['id'] . '">Все подарки</a> (' . $k_p . ')';
echo '</div>';
}
/*
========================================
Анкета
========================================
*/
echo" <a href='/user/info/anketa.php?id=$ank[id]' class='pm_item'>Инфоррмация </a>";
if (isset($user) && $user['id']==$ank['id'])
{
echo" <a href='/user/info/edit.php' class='pm_item'>Изменить </a>";
}
/*
========================================
Друзья
========================================
*/
$k_fr = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` WHERE `user` = '$ank[id]' AND `i` = '1'"), 0);
$res = mysql_query("select `frend` from `frends` WHERE `user` = '$ank[id]' AND `i` = '1'");
echo" <a href='/user/frends/index.php?id=$ank[id]' class='pm_item'>Друзья <em class='pm_counter'>$k_fr</em> </a>";
/*
========================================
Фото
========================================
*/
$k_photo = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"),0);
echo" <a href='/foto/$ank[id]/' class='pm_item'>Фотогоафии <em class='pm_counter'>$k_photo</em> </a>";
/*
========================================
Файлы
========================================
*/
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[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` = '$ank[id]' AND `osn` = '1' LIMIT 1"));
echo "<a class='pm_item' href='/user/personalfiles/$ank[id]/$dir_osn[id]/'>Документы <em class='pm_counter'> ";
echo "" . mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` > '1'"),0) . "/" . mysql_result(mysql_query("SELECT COUNT(*) FROM `obmennik_files` WHERE `id_user` = '$ank[id]'"),0) . "</em> </a>";
/*
========================================
Музыка
========================================
*/
$k_music=mysql_result(mysql_query("SELECT COUNT(*) FROM `user_music` WHERE `id_user` = '$ank[id]'"),0);
echo "<a class='pm_item' href='/user/music/index.php?id=$ank[id]'>Музыка ";
echo " <em class='pm_counter'> " . $k_music . "</em></a> ";
/*
========================================
Дневники
========================================
*/
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id_user` = '".$ank['id']."'"),0);
echo "<a class='pm_item' href='/plugins/notes/user.php?id=$ank[id]'>Дневники <em class='pm_counter'> $kol_dnev</em></a>";
?>
<h4 class="slim_header">Стена</h4>
<?
include_once H.'user/stena/index.php';
/*
========================================
The End
========================================
*/
?>