|
@@ 2936-2943 (lines=8) @@
|
| 2933 |
|
$timeelapsed = microtime(true); |
| 2934 |
|
$registration = $this->getAircraftRegistrationBymodeS($ModeS); |
| 2935 |
|
if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftRegistrationBymodes : '.round(microtime(true)-$timeelapsed,2).'s'."\n"; |
| 2936 |
|
} else { |
| 2937 |
|
$myhex = explode('-',$flightaware_id); |
| 2938 |
|
if (count($myhex) > 0) { |
| 2939 |
|
$timeelapsed = microtime(true); |
| 2940 |
|
$registration = $this->getAircraftRegistrationBymodeS($myhex[0]); |
| 2941 |
|
if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftRegistrationBymodes : '.round(microtime(true)-$timeelapsed,2).'s'."\n"; |
| 2942 |
|
} |
| 2943 |
|
} |
| 2944 |
|
} |
| 2945 |
|
} |
| 2946 |
|
|
|
@@ 3175-3179 (lines=5) @@
|
| 3172 |
|
$airline_icao = $airline_array[0]['icao']; |
| 3173 |
|
$airline_country = $airline_array[0]['country']; |
| 3174 |
|
$airline_type = $airline_array[0]['type']; |
| 3175 |
|
if ($airline_type == '') { |
| 3176 |
|
$timeelapsed = microtime(true); |
| 3177 |
|
$airline_type = $this->getAircraftTypeBymodeS($ModeS); |
| 3178 |
|
if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftTypeBymodes : '.round(microtime(true)-$timeelapsed,2).'s'."\n"; |
| 3179 |
|
} |
| 3180 |
|
if ($airline_type == null) $airline_type = ''; |
| 3181 |
|
$aircraft_type = $aircraft_array[0]['type']; |
| 3182 |
|
$aircraft_manufacturer = $aircraft_array[0]['manufacturer']; |