# see if they are a valid pilot: preg_match('/^([A-Za-z]*)(\d*)/', $_GET['pilot'], $matches); $code = $matches[1]; $pilotid = intval($matches[2]) - Config::Get('PILOTID_OFFSET'); }*/ $pilotid = PilotData::parsePilotID($_GET['pilot']); $route = SchedulesData::getLatestBid($pilotid); $date = date('Y:m:d'); # Get load counts if ($route->flighttype == 'H') { $maxpax = $route->maxpax; } else { if ($route->flighttype == 'C') { $maxcargo = FinanceData::GetLoadCount($route->aircraftid, 'C'); } else { $maxpax = FinanceData::GetLoadCount($route->aircraftid, 'P'); } } //$starttime = echo "OK\n{$route->depicao}\n{$route->arricao}\n\n{$route->flightlevel}\n{$route->aircraft}\n\n\n{$route->code}{$route->flightnum}\n{$route->registration}\n{$route->code}\n{$route->route}\n\n\n{$maxpax}\n{$maxcargo}"; break; # # Position Update # # # Position Update # case 'status': Debug::log('STATUS UPDATE', 'fsacars'); Debug::log(print_r($_GET, true), 'fsacars'); if ($_GET['detailph'] == '') {