session_start(); if (!isset($_SESSION['uid'])) { header('Location: index.php'); die(); } include('config.php'); include('functions.php'); if ($_POST['oauth'] && $_POST['bnid']) { $bn = mysql_fetch_array(mysql_query('SELECT `id`, `pass` FROM `bank` WHERE `id` = "' . (int)$_POST['bnid'] . '" AND `owner` = "' . $user['id'] . '" LIMIT 1')); if (isset($bn['id'])) { if ($bn['pass'] == md5($_POST['passwords'])) { setcookie('inder', $bn['id'], time() + 60 * 60 * 24 * 7, '', GAMEDOMAIN); $banks['id'] = $bn['id']; echo 'Успешная авторизация ...'; } else { echo 'Неверный пароль ...'; } } else { echo 'Счёт не найден ...'; } } if ($_GET['destruct'] && $_GET['id'] == $user['id']) { setcookie('inder', '', time() + 60 * 60 * 24 * 7, '', GAMEDOMAIN); $banks['id'] = null; header('Location: /relikt.php'); echo 'Работа со счётом завершена ...'; } if (isset($_GET['use'])) { if ($_GET['use'] == 1) { include('magic/usability_vip/invisible.php'); } elseif ($_GET['use'] == 2) { include('magic/usability_vip/devastate.php'); } elseif ($_GET['use'] == 3) { include('magic/usability_vip/defence.php'); } elseif ($_GET['use'] == 4) { include('magic/usability_vip/attack.php'); } elseif ($_GET['use'] == 5) { include('magic/usability_vip/attack_blood.php'); } elseif ($_GET['use'] == 6) { include('magic/usability_vip/sleep.php'); } elseif ($_GET['use'] == 7) { include('magic/usability_vip/travmoff.php'); } elseif ($_GET['use'] == 8) { include('magic/usability_vip/no_attack.php'); } elseif ($_GET['use'] == 9) { include('magic/usability_vip/un_sleep.php'); } elseif ($_GET['use'] == 10) { include('magic/usability_vip/pers_blood.php'); } } if (isset($_GET['used'])) { if ($_GET['used'] == 1) { include('magic/usability_user/sleep15.php'); } elseif ($_GET['used'] == 2) { include('magic/usability_user/sleep30.php'); } elseif ($_GET['used'] == 3) { include('magic/usability_user/close_battle.php'); } elseif ($_GET['used'] == 4) { include('magic/usability_user/heal20.php'); } elseif ($_GET['used'] == 5) { include('magic/usability_user/heal35.php'); } elseif ($_GET['used'] == 6) { include('magic/usability_user/heal50.php'); } elseif ($_GET['used'] == 7) { include('magic/usability_user/travmoff.php'); } elseif ($_GET['used'] == 8) { include('magic/usability_user/attack.php'); } elseif ($_GET['used'] == 9) { include('magic/usability_user/attack_blood.php'); } elseif ($_GET['used'] == 11) { include('magic/usability_user/note.php'); } elseif ($_GET['used'] == 12) { include('magic/usability_user/open_battle.php'); } elseif ($_GET['used'] == 13) { include('magic/usability_user/reamdeath.php'); } elseif ($_GET['used'] == 14) { include('magic/usability_user/clone.php'); } elseif ($_GET['used'] == 15) { include('magic/usability_user/unclone.php'); } } if (isset($_GET['useds'])) { if ($_GET['useds'] == 1) { include('magic/usability_klan/sleep15.php'); } elseif ($_GET['useds'] == 2) { include('magic/usability_klan/sleep30.php'); } elseif ($_GET['useds'] == 3) { include('magic/usability_klan/close_battle.php'); } elseif ($_GET['useds'] == 4) { include('magic/usability_klan/heal20.php'); } elseif ($_GET['useds'] == 5) { include('magic/usability_klan/heal35.php'); } elseif ($_GET['useds'] == 6) { include('magic/usability_klan/heal50.php'); } elseif ($_GET['useds'] == 7) { include('magic/usability_klan/travmoff.php'); } elseif ($_GET['useds'] == 8) { include('magic/usability_klan/attack.php'); } elseif ($_GET['useds'] == 9) { include('magic/usability_klan/attack_blood.php'); } elseif ($_GET['useds'] == 11) { include('magic/usability_klan/note.php'); } elseif ($_GET['useds'] == 12) { include('magic/usability_klan/open_battle.php'); } elseif ($_GET['useds'] == 13) { include('magic/usability_klan/reamdeath.php'); } elseif ($_GET['useds'] == 14) { include('magic/usability_klan/clone.php'); } elseif ($_GET['useds'] == 15) { include('magic/usability_klan/unclone.php'); } } function show_byu($type) { global $user; $r = ''; $type = $type + 20; if ($user['klan'] != '') { $clan = mysql_fetch_array(mysql_query('SELECT `id`, `glava` FROM `clans` WHERE `id` = "' . $user['klan'] . '" LIMIT 1')); if ($clan['glava'] == $user['id']) { $r = '
'; } else { $r = ''; } } else { $r = ''; } return $r; } $is_ = mysql_fetch_array(mysql_query('SELECT `id` FROM `abils_user` WHERE `uid` = "' . $user['id'] . '" LIMIT 1')); if (!isset($is_['id'])) { mysql_query('INSERT INTO `abils_user` (`uid`) VALUES ("' . $user['id'] . '")'); } $is_ = mysql_fetch_array(mysql_query('SELECT `id` FROM `abils_vip` WHERE `uid` = "' . $user['id'] . '" LIMIT 1')); if (!isset($is_['id'])) { mysql_query('INSERT INTO `abils_vip` (`uid`) VALUES ("' . $user['id'] . '")'); } if ($user['klan'] != '') { $is_ = mysql_fetch_array(mysql_query('SELECT `id` FROM `abils_klan` WHERE `klan` = "' . $user['klan'] . '" LIMIT 1')); if (!isset($is_['id'])) { mysql_query('INSERT INTO `abils_klan` (`klan`) VALUES ("' . $user['klan'] . '")'); } } ?>