include_once '../../sys/inc/start.php'; include_once '../../sys/inc/compress.php'; include_once '../../sys/inc/sess.php'; include_once '../../sys/inc/home.php'; include_once '../../sys/inc/settings.php'; include_once '../../sys/inc/db_connect.php'; include_once '../../sys/inc/ipua.php'; include_once '../../sys/inc/fnc.php'; include_once '../../sys/inc/user.php'; only_reg(); $width = ($webbrowser == 'web' ? '90' : '90'); if (isset($_GET['id']))$ank['id'] = my_esc($_GET['id']); else $ank['id'] = $user['id']; $ank = get_user($ank['id']); if(!$ank || $ank['id'] == 0){ header("Location: /index.php?".SID); exit; } $black =mysql_fetch_assoc(mysql_query("SELECT * FROM `user_black` WHERE `id_user` = '".$ank['id']."' AND `id_black` = '".$user['id']."' AND (`time`='0' OR `time`>'$time' ) AND `razdel` LIKE '%info%' LIMIT 1")); if($black){header('location:/user/blacklist/?func=ban&id='.$ank['id']);exit;} $set['title'] = 'Подарки ' . $ank['nick']; include_once '../../sys/inc/thead.php'; title(); aut(); //////////////////////Если в бане.......................... if ((!isset($user) || $user['group_access'] == 0) && mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `razdel` = 'all' AND `id_user` = '".$ank['id']."' AND (`time` > '$time' OR `navsegda` = '1')"), 0) != 0) { ///////////////////////////////////////////////////////// $_SESSION['err']='Пользователь заблокирован!'; header('location:/');exit; } ////////////////////////////////////////////////////////////////// $post = mysql_fetch_assoc(PDO("SELECT * FROM `gifts_user` WHERE `id_user` = '$ank[id]' LIMIT 1")); $k_post = mysql_result(PDO("SELECT COUNT(*) FROM `gifts_user` WHERE `id_user` = '$ank[id]'" . ($ank['id'] != $user['id'] ? " AND `status` = '1' " : "") . ""),0); echo '