if (checklogin()) { die; } $playerinfo = $sql_manager->playerinfo($user_ship_id, ""); //Your Ship $othership = $sql_manager->playerinfo($ship_id, ""); //Target Ship bigtitle(); if ($othership['sector'] != $playerinfo['sector']) { echo "The <font color='#FFFFFF'>" . $othership['ship_name'] . "</font> is no longer in sector " . $playerinfo['sector'] . "<br/>"; } else { $_SESSION['ship_selected'] = $ship_id; echo "You see the <font color=white>" . $othership['ship_name'] . "</font>, owned by <font color=white>" . $othership['character_name'] . "</font>.<br/><br/>"; echo "You can perform the following actions:<br/><br/>"; echo "<a href=scan.php?ship_id={$ship_id}>Scan</a><br/>"; if ($sql_manager->team_id($ship_id) == 0) { echo "<a href=attack.php?ship_id=" . $ship_id . ">Attack</a><br/>"; } else { if ($sql_manager->team_id($ship_id) != $sql_manager->team_id($user_ship_id)) { echo "<a href=attack.php?ship_id=" . $ship_id . ">Attack</a><br/>"; } } echo "<a href=hack.php>Hack</a><br/>"; echo "<a href=mailto.php?to={$ship_id}>Send Message</a><br/>"; } echo "<br/>"; TEXT_GOTOMAIN(); ?> </div></div> <?php include "footer.php";
TEXT_GOTOMAIN(); include "footer.php"; die; } #DOES THE ZONE ALLOW WARP EDITING?# $zone_information = $sql_manager->zone_information($playerinfo['sector'], 'allow_warpedit'); if ($zone_information['allow_warpedit'] == 'N') { echo "Using a Warp Editor in this sector is not permitted.<br/><br/>"; TEXT_GOTOMAIN(); include "footer.php"; die; } #ARE YOU THE OWNER OF THIS SECTOR?# if ($zone_information['allow_warpedit'] == 'L') { $zoneowner_info = $sql_manager->zone_owner_information($zone_information['zone_id']); $zoneteam = $sql_manager->team_id($zoneowner_info['owner']); if ($zoneowner_info['owner'] != $playerinfo['ship_id']) { if ($zoneteam['team'] != $playerinfo['team'] || $playerinfo['team'] == 0) { echo "Using a Warp Editor in this sector is not permitted.<br/><br/>"; TEXT_GOTOMAIN(); include "footer.php"; die; } } } /*Play has turns and has warp editors, check to see if the user is trying to do somthing.*/ if (array_key_exists('editor', $_POST) == true) { $editor_active = $_POST['editor']; } $target_sector = NULL; if (array_key_exists('target_sector', $_POST) == true) {