} exit; } if ($call['money'] > 0 and $call['money'] > $player['GP']) { echo '<script>location.replace("act.php?errror=arcomage_player_money")</script>'; if (function_exists("save_debug")) { save_debug(); } exit; } list($last_active1, $host1) = mysql_fetch_array(myquery("SELECT last_active,host FROM game_users_active WHERE user_id='{$user_id}'")); list($last_active2, $host2) = mysql_fetch_array(myquery("SELECT last_active,host FROM game_users_active WHERE user_id='{$arcomage_arco_id}'")); $online_range = time() - PHPRPG_SESSION_EXPIRY; if ($player['delay_reason'] != 2 and $player['delay_reason'] != 3 and $player['delay_reason'] != 4 and $player['delay_reason'] != 5 and $player['delay_reason'] != 6 and $player['delay_reason'] != 13 and $last_active2 > $online_range and $player['boy'] == 0 and $host1 != $host2) { myquery("DELETE FROM arcomage_call WHERE user_id='{$arcomage_arco_id}'"); arcomage_user($char, $player, $call['money']); echo '<script>location.replace("arcomage.php")</script>'; } else { echo '<script>location.replace("act.php?errror")</script>'; if (function_exists("save_debug")) { save_debug(); } exit; } } } $zayavka = '<br /><br />Подать заявку на игру в Две Башни<br /><form action="" method=post> <table border=0 cellspacing=0 cellpadding=0><tr><td>Таймаут:</td> <td> <select name=arcomage_timeout> <option value=3>3 мин.</option>
} break; case 'arcomage': $id = (int) $_GET['id']; $result = myquery("SELECT view_active_users.*,game_users_func.func_id \n\t\t\tFROM view_active_users,game_users_func\n\t\t\tWHERE view_active_users.user_id={$id} \n\t\t\tAND view_active_users.user_id=game_users_func.user_id\n\t\t\tAND view_active_users.user_id<>" . $char['user_id'] . " \n\t\t\tAND view_active_users.user_id IN (SELECT user_id FROM game_users_map WHERE map_xpos='" . $char['map_xpos'] . "' and map_ypos='" . $char['map_ypos'] . "' and map_name='" . $char['map_name'] . "') "); if (!mysql_num_rows($result)) { if (function_exists("save_debug")) { save_debug(); } exit; } $player = mysql_fetch_array($result); list($last_active1, $host1) = mysql_fetch_array(myquery("SELECT last_active,host FROM game_users_active WHERE user_id='{$user_id}'")); list($last_active2, $host2) = mysql_fetch_array(myquery("SELECT last_active,host FROM game_users_active WHERE user_id='{$id}'")); if ($host1 != $host2 and $player['func_id'] == '5' or domain_name == 'localhost') { arcomage_user($char, $player, 0); } $loc = "act.php?errror="; echo '<script>location.replace("' . $loc . '");</script>'; if ($_SERVER['REMOTE_ADDR'] == debug_ip) { show_debug(); } if (function_exists("save_debug")) { save_debug(); } exit; break; } if (isset($_GET['error'])) { $loc = "act.php?errror=" . $_GET['error'] . ""; } else {