|
@@ 988-993 (lines=6) @@
|
| 985 |
|
foreach ($alldata as $number) { |
| 986 |
|
$this->addStatAirline($number['airline_icao'],$number['airline_count'],$number['airline_name']); |
| 987 |
|
} |
| 988 |
|
if ($Connection->tableExists('countries')) { |
| 989 |
|
$alldata = $Spotter->countAllFlightOverCountries(false,$monthsSinceLastYear); |
| 990 |
|
foreach ($alldata as $number) { |
| 991 |
|
$this->addStatCountry($number['flight_country_iso2'],$number['flight_country_iso3'],$number['flight_country'],$number['flight_count']); |
| 992 |
|
} |
| 993 |
|
} |
| 994 |
|
$alldata = $Spotter->countAllOwners(false,$monthsSinceLastYear); |
| 995 |
|
foreach ($alldata as $number) { |
| 996 |
|
$this->addStatOwner($number['owner_name'],$number['owner_count']); |
|
@@ 1051-1056 (lines=6) @@
|
| 1048 |
|
foreach ($alldata as $number) { |
| 1049 |
|
$this->addStatOwner($number['owner_name'],$number['owner_count']); |
| 1050 |
|
} |
| 1051 |
|
if ($Connection->tableExists('countries')) { |
| 1052 |
|
$alldata = $Spotter->countAllFlightOverCountries(false,$globalArchiveMonths); |
| 1053 |
|
foreach ($alldata as $number) { |
| 1054 |
|
$this->addStatCountry($number['flight_country_iso2'],$number['flight_country_iso3'],$number['flight_country'],$number['flight_count']); |
| 1055 |
|
} |
| 1056 |
|
} |
| 1057 |
|
$alldata = $Spotter->countAllPilots(false,$globalArchiveMonths); |
| 1058 |
|
foreach ($alldata as $number) { |
| 1059 |
|
$this->addStatPilot($number['pilot_id'],$number['pilot_count']); |
|
@@ 1211-1217 (lines=7) @@
|
| 1208 |
|
foreach ($alldata as $number) { |
| 1209 |
|
$this->addStatArrivalAirports($number['airport_arrival_icao'],$number['airport_arrival_name'],$number['airport_arrival_city'],$number['airport_arrival_country'],$number['airport_arrival_icao_count']); |
| 1210 |
|
} |
| 1211 |
|
if ($Connection->tableExists('countries')) { |
| 1212 |
|
$SpotterArchive = new SpotterArchive(); |
| 1213 |
|
$alldata = $SpotterArchive->countAllFlightOverCountries(false,0,$last_update_day); |
| 1214 |
|
foreach ($alldata as $number) { |
| 1215 |
|
$this->addStatCountry($number['flight_country_iso2'],$number['flight_country_iso3'],$number['flight_country'],$number['flight_count']); |
| 1216 |
|
} |
| 1217 |
|
} |
| 1218 |
|
|
| 1219 |
|
|
| 1220 |
|
// Add by month using getstat if month finish... |