} $tpl->compile('content'); } navigation($gcount, $online_friends['cnt'], $config['home_url'] . 'friends/online/' . $get_user_id . '/page/'); } else { msgbox('', $lang['no_requests_online'], 'info_2'); } } else { $user_speedbar = $lang['error']; msgbox('', $lang['no_notes'], 'info'); } break; //################### Загрузка друзей в окне для выбора СП ###################// //################### Загрузка друзей в окне для выбора СП ###################// case "box": NoAjaxQuery(); $user_id = $user_info['user_id']; if ($_POST['page'] > 0) { $page = intval($_POST['page']); } else { $page = 1; } $gcount = 18; $limit_page = ($page - 1) * $gcount; if ($_POST['user_sex'] == 1) { $sql_usSex = 2; } elseif ($_POST['user_sex'] == 2) { $sql_usSex = 1; } else { $sql_usSex = false; }
function Hacking() { global $ajax, $lang; if ($ajax) { NoAjaxQuery(); echo <<<HTML <script type="text/javascript"> document.title = '{$lang['error']}'; document.getElementById('speedbar').innerHTML = '{$lang['error']}'; document.getElementById('page').innerHTML = '{$lang['no_notes']}'; </script> HTML; die; } else { return header('Location: /index.php?go=none'); } }