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'; ini_set('display_errors','Off'); if (isset($user))$ank['id'] = $user['id']; if (isset($_GET['id']))$ank['id'] = my_esc($_GET['id']); $ank = get_user($ank['id']); if ($ank['id'] == 0) { header("Location: /index.php?" . SID);exit; exit; } $black =mysql_fetch_assoc(mysql_query("SELECT * FROM `user_black` WHERE `id_user` = '".$ank['id']."' AND `id_black` = '".$user['id']."' AND `razdel` LIKE '%info%' AND (`time`='0' OR `time`>'$time' ) LIMIT 1")); if($black){header('location:/user/blacklist/?func=ban&id='.$ank['id']);exit;} if (isset($user) && isset($_GET['delete']) && $user['id'] == $ank['id']) { PDO("DELETE FROM `forum_zakl` WHERE `id_them` = '" . my_esc($_GET['delete']) . "' AND `id_user` = '$user[id]' LIMIT 1"); mysql_query("OPTIMIZE TABLE `forum_zakl`"); $_SESSION['message'] = 'Закладка удалена'; header("Location: ?page=" . my_esc($_GET['page']) . "" . SID);exit; exit; } if( !$ank ){ header("Location: /index.php?".SID); exit; } $set['title'] = 'Закладки - Форум'; 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; } ////////////////////////////////////////////////////////////////// echo '