@@ -3,8 +3,8 @@ |
||
| 3 | 3 | require_once('require/class.Spotter.php'); |
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | if (!isset($_GET['country'])) { |
| 6 | - header('Location: '.$globalURL.'/country'); |
|
| 7 | - die(); |
|
| 6 | + header('Location: '.$globalURL.'/country'); |
|
| 7 | + die(); |
|
| 8 | 8 | } |
| 9 | 9 | $Spotter = new Spotter(); |
| 10 | 10 | $country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING))); |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | require_once('require/class.Spotter.php'); |
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | if (!isset($_GET['country'])) { |
| 6 | - header('Location: '.$globalURL.'/country'); |
|
| 7 | - die(); |
|
| 6 | + header('Location: '.$globalURL.'/country'); |
|
| 7 | + die(); |
|
| 8 | 8 | } |
| 9 | 9 | $Spotter = new Spotter(); |
| 10 | 10 | |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | |
| 6 | 6 | if (!isset($_GET['aircraft_type'])) { |
| 7 | - header('Location: '.$globalURL.'/aircraft'); |
|
| 8 | - die(); |
|
| 7 | + header('Location: '.$globalURL.'/aircraft'); |
|
| 8 | + die(); |
|
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | $aircraft_type = filter_input(INPUT_GET,'aircraft_type',FILTER_SANITIZE_STRING); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | print '<h2>'._("Most Common Arrival Airports").'</h2>'; |
| 55 | 55 | print '<p>'.sprintf(_("The statistic below shows all arrival airports of flights from <strong>%s (%s)</strong>."),$spotter_array[0]['aircraft_name'],$spotter_array[0]['aircraft_type']).'</p>'; |
| 56 | 56 | $airport_airport_array = $Spotter->countAllArrivalAirportsByAircraft($aircraft_type); |
| 57 | - ?> |
|
| 57 | + ?> |
|
| 58 | 58 | <script type="text/javascript" src="https://www.google.com/jsapi"></script> |
| 59 | 59 | <script> |
| 60 | 60 | google.load("visualization", "1", {packages:["geochart"]}); |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | require_once('require/class.Spotter.php'); |
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | if (!isset($_GET['ident'])) { |
| 6 | - header('Location: '.$globalURL.'/ident'); |
|
| 7 | - die(); |
|
| 6 | + header('Location: '.$globalURL.'/ident'); |
|
| 7 | + die(); |
|
| 8 | 8 | } |
| 9 | 9 | $Spotter = new Spotter(); |
| 10 | 10 | $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | require_once('require/class.Spotter.php'); |
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | if (!isset($_GET['country'])) { |
| 6 | - header('Location: '.$globalURL.'/country'); |
|
| 7 | - die(); |
|
| 6 | + header('Location: '.$globalURL.'/country'); |
|
| 7 | + die(); |
|
| 8 | 8 | } |
| 9 | 9 | $Spotter = new Spotter(); |
| 10 | 10 | $country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING))); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | function drawChart() { |
| 62 | 62 | var data = google.visualization.arrayToDataTable([ |
| 63 | 63 | ["'._("Country").'", "'._("# of times").'"], '; |
| 64 | - $country_data = ''; |
|
| 64 | + $country_data = ''; |
|
| 65 | 65 | foreach($airline_array as $airline_item) |
| 66 | 66 | { |
| 67 | 67 | $country_data .= '[ "'.$airline_item['airline_country'].'",'.$airline_item['airline_country_count'].'],'; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | date_default_timezone_set('UTC'); |
| 26 | 26 | //waypoint plotting |
| 27 | 27 | $output .= '{"type": "Feature",'; |
| 28 | - $output .= '"properties": {'; |
|
| 28 | + $output .= '"properties": {'; |
|
| 29 | 29 | $output .= '"ident": "'.$spotter_item['ident'].'",'; |
| 30 | 30 | $output .= '"frequency": "'.$spotter_item['frequency'].'",'; |
| 31 | 31 | $radius = $spotter_item['atc_range']*100; |
@@ -34,13 +34,13 @@ discard block |
||
| 34 | 34 | $output .= '"ivao_name": "'.$spotter_item['ivao_name'].'",'; |
| 35 | 35 | $output .= '"info": "'.$spotter_item['info'].'",'; |
| 36 | 36 | $output .= '"type": "'.$spotter_item['type'].'"'; |
| 37 | - $output .= '},'; |
|
| 38 | - $output .= '"geometry": {'; |
|
| 37 | + $output .= '},'; |
|
| 38 | + $output .= '"geometry": {'; |
|
| 39 | 39 | $output .= '"type": "Point",'; |
| 40 | 40 | $output .= '"coordinates": ['; |
| 41 | - $output .= $spotter_item['longitude'].', '.$spotter_item['latitude']; |
|
| 41 | + $output .= $spotter_item['longitude'].', '.$spotter_item['latitude']; |
|
| 42 | 42 | $output .= ']'; |
| 43 | - $output .= '}'; |
|
| 43 | + $output .= '}'; |
|
| 44 | 44 | $output .= '},'; |
| 45 | 45 | } |
| 46 | 46 | $output = substr($output, 0, -1); |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | require_once('require/class.Spotter.php'); |
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | if (!isset($_GET['ident'])) { |
| 6 | - header('Location: '.$globalURL.'/ident'); |
|
| 7 | - die(); |
|
| 6 | + header('Location: '.$globalURL.'/ident'); |
|
| 7 | + die(); |
|
| 8 | 8 | } |
| 9 | 9 | $Spotter = new Spotter(); |
| 10 | 10 | $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | require_once('require/class.Spotter.php'); |
| 4 | 4 | require_once('require/class.Language.php'); |
| 5 | 5 | if (!isset($_GET['country'])) { |
| 6 | - header('Location: '.$globalURL.'/country'); |
|
| 7 | - die(); |
|
| 6 | + header('Location: '.$globalURL.'/country'); |
|
| 7 | + die(); |
|
| 8 | 8 | } |
| 9 | 9 | $Spotter = new Spotter(); |
| 10 | 10 | $country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING))); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | include('country-sub-menu.php'); |
| 52 | 52 | print '<div class="column">'; |
| 53 | 53 | print '<h2>'._("Most Common Arrival Airports by Country").'</h2>'; |
| 54 | - print '<p>'.sprintf(_("The statistic below shows all arrival airports by Country of origin of flights of airports & airlines from <strong>%s</strong>."),$country).'</p>'; |
|
| 54 | + print '<p>'.sprintf(_("The statistic below shows all arrival airports by Country of origin of flights of airports & airlines from <strong>%s</strong>."),$country).'</p>'; |
|
| 55 | 55 | |
| 56 | 56 | $airport_country_array = $Spotter->countAllArrivalAirportCountriesByCountry($country); |
| 57 | 57 | print '<script type="text/javascript" src="https://www.google.com/jsapi"></script>'; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | function drawChart() { |
| 63 | 63 | var data = google.visualization.arrayToDataTable([ |
| 64 | 64 | ["'._("Country").'", "'._("# of times").'"], '; |
| 65 | - $country_data = ''; |
|
| 65 | + $country_data = ''; |
|
| 66 | 66 | foreach($airport_country_array as $airport_item) |
| 67 | 67 | { |
| 68 | 68 | $country_data .= '[ "'.$airport_item['arrival_airport_country'].'",'.$airport_item['airport_arrival_country_count'].'],'; |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | <footer class="container"> |
| 4 | 4 | <?php |
| 5 | - if (isset($sql_time)) { |
|
| 5 | + if (isset($sql_time)) { |
|
| 6 | 6 | ?> |
| 7 | 7 | <i><?php echo _("Page generated in").' '.round($sql_time+$page_time,2); ?>s (<?php print round($page_time,2); ?>ms PHP - <?php print round($sql_time,2); ?>ms SQL)</i> |
| 8 | 8 | <br /> |
| 9 | 9 | <?php |
| 10 | - } |
|
| 10 | + } |
|
| 11 | 11 | ?> |
| 12 | 12 | <span>Developed in Barrie by <a href="http://www.mariotrunz.com" target="_blank">Mario Trunz</a> & at <a href="http://www.zugaina.com" target="_blank">Zugaina</a> by Ycarus</span> - <span><a href="<?php if (isset($globalURL)) print $globalURL; ?>/about#source">Source & Credits</a></span> - <span><a href="https://github.com/Ysurac/FlightAirMap/issues" target="_blank">Report any issues</a></span> |
| 13 | 13 | </footer> |