|
@@ 516-522 (lines=7) @@
|
| 513 |
|
if ($spotter_item['departure_airport'] != 'NA') { |
| 514 |
|
require_once(dirname(__FILE__).'/require/class.Spotter.php'); |
| 515 |
|
$Spotter = new Spotter(); |
| 516 |
|
if (isset($spotter_item['last_latitude']) && $spotter_item['last_latitude'] != '' && isset($spotter_item['last_longitude']) && $spotter_item['last_longitude'] != '') { |
| 517 |
|
$latitude = $spotter_item['last_latitude']; |
| 518 |
|
$longitude = $spotter_item['last_longitude']; |
| 519 |
|
} else { |
| 520 |
|
$latitude = $spotter_item['latitude']; |
| 521 |
|
$longitude = $spotter_item['longitude']; |
| 522 |
|
} |
| 523 |
|
$distance = $Spotter->getAirportDistance($spotter_item['departure_airport'],$latitude,$longitude); |
| 524 |
|
if ($distance != '') { |
| 525 |
|
if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
@@ 581-587 (lines=7) @@
|
| 578 |
|
print '<br /><span class="airport_time">'.$arrival_airport_time.'</span>'."\n"; |
| 579 |
|
} |
| 580 |
|
if (!isset($spotter_item['real_arrival_airport']) && $spotter_item['arrival_airport'] != 'NA') { |
| 581 |
|
if (isset($spotter_item['last_latitude']) && $spotter_item['last_latitude'] != '' && isset($spotter_item['last_longitude']) && $spotter_item['last_longitude'] != '') { |
| 582 |
|
$latitude = $spotter_item['last_latitude']; |
| 583 |
|
$longitude = $spotter_item['last_longitude']; |
| 584 |
|
} else { |
| 585 |
|
$latitude = $spotter_item['latitude']; |
| 586 |
|
$longitude = $spotter_item['longitude']; |
| 587 |
|
} |
| 588 |
|
$distance = $Spotter->getAirportDistance($spotter_item['arrival_airport'],$latitude,$longitude); |
| 589 |
|
if ($distance != '') { |
| 590 |
|
if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |