######################################################################################### $ERRORS->Check('/index.php?page=teleporter'); #################################################################### ## The actual unstuck script begins here //load the character module $CORE->load_ServerModule('character'); $CORE->load_ServerModule('commands'); $CORE->load_CoreModule('purchaseLog'); //prepare the log $logs = new purchaseLog(); //prepare the commands class $command = new server_Commands(); //prepare the character handler $chars = new server_Character(); //setup the maps data class $MD = new MapsData(); //setup the map points data class $MP = new MapPoints(); //start logging $logs->add('TELEPORTER', 'Starting log session. Teleporting player: ' . $charName . ', to point: ' . $pointId . ', selected realm: ' . $RealmId . '.', 'pending'); //connect to the database if ($chars->setRealm($RealmId)) { ################################################ #### check if the character is valid ###### //get some character data $charData = $chars->getCharacterData(false, $charName, array('guid', 'level')); //find the map key by pointId $mapKey = $MD->ResolveMapByPoint($pointId); //get the map data $mapData = $MD->get($mapKey); if (!$chars->isMyCharacter(false, $charName)) {
<td height="17"> </td> <td><input name="txtMatricula" id="txtMatricula" class="inputs" type="text" width="10%"/></td> <td><input name="txtFuel" id="txtFuel" class="inputs" type="text" width="10%"/></td> <td><input name="txtPilotName" id="txtPilotName" class="inputs" type="text" width="80%"/></td> <td><input name="txtCoPilotName" id="txtCoPilotName" class="inputs" type="text" width="80%"/></td> <td> </td> </tr> </table> <?php require_once dirname(__FILE__) . "/PlanParser.php"; require_once dirname(__FILE__) . "/maps/MapsData.php"; $endPoint = $_GET['point']; $parser = new PlanParser($endPoint); $route = $parser->getRoute(); $mapsData = new MapsData($endPoint); $bearingsDistances = $mapsData->getBearingsDistances(); ?> <table class="tableOne" width="100%" border="1" cellpadding="0" cellspacing="1" > <tr> <th width="30%">Field</th> <th width="20%">R/W</th> <th width="10%">Unicom</th> <th width="10%">Radio</th> <th width="10%">Approach</th> <th width="10%">Tower</th> <th width="10%">Ground</th> </tr> <?php foreach ($parser->getAirports() as $number => $row) {
<?php if (!defined('init_ajax')) { header('HTTP/1.0 404 not found'); exit; } $key = isset($_GET['key']) ? $_GET['key'] : false; //setup the maps data class $MD = new MapsData(); //get the map data $data = $MD->get($key); //free memory unset($MD); //print the doc type echo '<?xml version="1.0" encoding="UTF-8"?>'; //check if that key is valid if (!$data) { echo '<error>The map key is invalid.</error>'; } else { echo ' <info> <name>', $data['name'], '</name> <minLevel>', $data['minLevel'], '</minLevel> <maxLevel>', $data['maxLevel'], '</maxLevel> <type>', $data['type'], '</type> <zone>', $data['mapId'], '</zone> <points count="', count($data['points']), '">'; //check if we got some points if (count($data['points']) > 0) { foreach ($data['points'] as $point) { echo '<point styleTop="', $point['top'], '" styleLeft="', $point['left'], '" pointId="', $point['pointId'], '"></point>';