Файл: mob-lave.ru/user/profile/ank_info.php
Строк: 180
<?php
require_once '../../core/set.php';
if (isset($user))$ank['id']=$user['id']; //
if(isset($_GET['u']))
$ank['id'] = check($_GET['u']);
$ank=get_user($ank['id']); //
if(!$ank){header("Location: /index.php?");exit;}
if ($ank['id']==3){
header('Location: /index.php');
}
$set['title'] = 'Анкета '.$ank['login'];
require_once H.'core/head.php';
require_once H.'core/panel.php';
echo '<div class="navig">'.$home. $z. $set['title'].'</div>';
if($ank['close'] == '1' && $user['id'] != $ank['id'] && $user['level'] == 0){
echo '<div class="err">'.$ank['login'].' закрыл свой профиль от всех кроме друзей!</div>';
echo '<div class="mess">Тест</div>';
require_once H.'core/foot.php';
exit();
}
if($ank['close'] == '2' && $user['id'] != $ank['id'] && $user['level'] == 0){
echo '<div class="err">'.$ank['login'].' закрыл свой профиль от всех!</div>';
require_once H.'core/foot.php';
exit();
}
$us_ban = mysql_fetch_assoc(mysql_query("SELECT * FROM `$system[perfix]_ban` WHERE `id_user` = '$ank[id]' LIMIT 1"));
if($us_ban['razban_time'] > $time['time'] or $us_ban['navsegda'] == 1) $err = 'Пользователь заблокирован за наружение правил';
err();
echo '<div class="top_group"><table width="100%" cellspacing="0" cellpadding="0">
<tr class="auts">
<td class="top_menu_act" style="border-radius: 8px 0px 0px 8px"><a href="/?login='.$ank['login'].'"><center>Профиль</center></a></td>
<td class="top_menu"><center>Анкета</center></td>
<td class="top_menu_act" style="border-radius: 0px 8px 8px 0px"><a href="/user/profile/statistic.php?u='.$ank['id'].'"><center>Статистика</center></a></td>
</tr>
</table></div>';
$user_ank = mysql_fetch_assoc(mysql_query("SELECT * FROM `$system[perfix]_user_ank` WHERE `id_user` = '$ank[id]'"));
$dol = mysql_fetch_assoc(mysql_query("SELECT * FROM `$system[perfix]_user_group` WHERE `level` = '$ank[level]' && `id` = '$ank[us_prava]'"));
echo '<div class="mess"><table><tr><td>';
echo avatar($ank['id'], false, 100);
echo '</td>';
if(isset($user['id']) && $user['id'] == $ank['id']) echo '<td><div id="dark" class="icon-pencil"></div> <a href="ank_edit.php">Редактировать</a></td>';
echo '</tr></table></div>';
echo '<div class="razdel">Основное</div>';
echo '<div class="mess">';
echo '<font color="green">Ник на сайте:</font>'.$ank['login'].' - <font color="green">ID</font> '.$ank['id'].'<br />';
echo '<font color="green">Должность на сайте: </font>'.htmlspecialchars($dol['name']).'<br />';
echo '<font color="green">Дата регистрации:</font> '.vremja($ank['regtime']).'<br />';
if($user_ank['name'] != NULL) echo '<font color="green">Имя в реале:</font> '.htmlspecialchars($user_ank['name']).'<br />';
if($user_ank['d_r'] != 0 && $user_ank['m_r'] != 0 && $user_ank['g_r'] != 0) echo '<font color="green">Дата рождения:</font> '.num($user_ank['d_r']).' '.num($user_ank['m_r']).' '.num($user_ank['g_r']).'г<br />';
if($user_ank['o_sebe'] != NULL) echo '<font color="green">О себе:</font> '.text($user_ank['o_sebe']).'<br />';
echo '</div>';
echo '<div class="razdel">Увличения</div>';
echo '<div class="mess">';
if($user_ank['interes'] == NULL && $user_ank['music'] == NULL && $user_ank['book'] == NULL && $user_ank['prof'] == NULL){
echo 'Не заполнено =(';
}else{
if($user_ank['interes'] != NULL) echo '<font color="green">Интересы:</font> '.text($user_ank['interes']).'<br />';
if($user_ank['music'] != NULL) echo '<font color="green">любимая музыка:</font> '.text($user_ank['music']).'<br />';
if($user_ank['book'] != NULL) echo '<font color="green">Любимые книги:</font> '.text($user_ank['book']).'<br />';
if($user_ank['prof'] != NULL) echo '<font color="green">Профессия:</font> '.text($user_ank['prof']).'<br />';
}
echo '</div>';
echo '<div class="razdel">Типаж</div>';
echo '<div class="mess">';
if($user_ank['glaza'] == NULL && $user_ank['volosi'] == NULL && $user_ank['harakter'] == NULL){
echo 'Не заполнено =(';
}else{
if($user_ank['glaza'] != NULL) echo '<font color="green">Цвет глаз:</font> '.htmlspecialchars($user_ank['glaza']).'<br />';
if($user_ank['volosi'] != NULL) echo '<font color="green">Цвет волос:</font> '.htmlspecialchars($user_ank['volosi']).'<br />';
if($user_ank['harakter'] != NULL) echo '<font color="green">Характер:</font> '.htmlspecialchars($user_ank['harakter']).'<br />';
}
echo '</div>';
echo '<div class="razdel">Знакомства</div>';
echo '<div class="mess">';
if($user_ank['sex'] == NULL && $user_ank['sem_pol'] == NULL && $user_ank['o_partn'] == NULL){
echo 'Не заполнено =(';
}else{
if($user_ank['sex'] != NULL) echo '<font color="green">Ориентация:</font> '.htmlspecialchars($user_ank['sex']).'<br />';
if($user_ank['sem_pol'] != NULL) echo '<font color="green">Семейное положение:</font> '.htmlspecialchars($user_ank['sem_pol']).'<br />';
if($user_ank['o_partn'] != NULL) echo '<font color="green">О партнере:</font> '.text($user_ank['o_partn']).'<br />';
}
echo '</div>';
echo '<div class="razdel">Связь</div>';
echo '<div class="mess">';
if($user_ank['isq'] != NULL) echo '<font color="green">ICQ:</font> '.num($user_ank['isq']).'<br />';
if($user_ank['skipe'] != NULL) echo '<font color="green">Skipe:</font> '.htmlspecialchars($user_ank['skipe']).'<br />';
echo '</div>';
echo '<div class="navig">'.$home. $z. $set['title'].'</div>';
require_once H.'core/foot.php';
?>