| @@ -29,7 +29,7 @@ discard block | ||
| 29 | 29 | <?php | 
| 30 | 30 | if (isset($_GET['q'])) | 
| 31 | 31 |  { | 
| 32 | - $spotter_array = $Spotter->searchSpotterData($_GET['q'],"","","","","","","","","","","","","","","","","","0,10","",""); | |
| 32 | + $spotter_array = $Spotter->searchSpotterData($_GET['q'], "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "0,10", "", ""); | |
| 33 | 33 |  } else { | 
| 34 | 34 |  	$spotter_array = $Spotter->getLatestSpotterData("0,10", ""); | 
| 35 | 35 | } | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | print '<div class="table-responsive">'; | 
| 38 | 38 | print '<table id="table-tv">'; | 
| 39 | 39 | print '<tbody>'; | 
| 40 | -foreach($spotter_array as $spotter_item) | |
| 40 | +foreach ($spotter_array as $spotter_item) | |
| 41 | 41 |  { | 
| 42 | 42 |  	if (isset($globalTimezone)) { | 
| 43 | 43 | date_default_timezone_set($globalTimezone); | 
| @@ -7,8 +7,8 @@ discard block | ||
| 7 | 7 | die(); | 
| 8 | 8 | } | 
| 9 | 9 | $Spotter = new Spotter(); | 
| 10 | -$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING))); | |
| 11 | -$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); | |
| 10 | +$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET, 'country', FILTER_SANITIZE_STRING))); | |
| 11 | +$sort = filter_input(INPUT_GET, 'sort', FILTER_SANITIZE_STRING); | |
| 12 | 12 |  if (isset($_GET['sort'])) { | 
| 13 | 13 | $spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort); | 
| 14 | 14 |  } else { | 
| @@ -17,16 +17,16 @@ discard block | ||
| 17 | 17 | |
| 18 | 18 | if (!empty($spotter_array)) | 
| 19 | 19 |  { | 
| 20 | -	$title = sprintf(_("Most Common Aircraft Manufacturer from %s"),$country); | |
| 20 | +	$title = sprintf(_("Most Common Aircraft Manufacturer from %s"), $country); | |
| 21 | 21 |  	require_once('header.php'); | 
| 22 | 22 | print '<div class="select-item">'; | 
| 23 | 23 | print '<form action="'.$globalURL.'/country" method="post">'; | 
| 24 | 24 | print '<select name="country" class="selectpicker" data-live-search="true">'; | 
| 25 | 25 | print '<option></option>'; | 
| 26 | 26 | $all_countries = $Spotter->getAllCountries(); | 
| 27 | - foreach($all_countries as $all_country) | |
| 27 | + foreach ($all_countries as $all_country) | |
| 28 | 28 |  	{ | 
| 29 | - if($country == $all_country['country']) | |
| 29 | + if ($country == $all_country['country']) | |
| 30 | 30 |  		{ | 
| 31 | 31 |  			print '<option value="'.strtolower(str_replace(" ", "-", $all_country['country'])).'" selected="selected">'.$all_country['country'].'</option>'; | 
| 32 | 32 |  		} else { | 
| @@ -41,7 +41,7 @@ discard block | ||
| 41 | 41 | if ($_GET['country'] != "NA") | 
| 42 | 42 |  	{ | 
| 43 | 43 | print '<div class="info column">'; | 
| 44 | -		print '<h1>'.sprintf(_("Airports & Airlines from %s"),$country).'</h1>'; | |
| 44 | +		print '<h1>'.sprintf(_("Airports & Airlines from %s"), $country).'</h1>'; | |
| 45 | 45 | print '</div>'; | 
| 46 | 46 |  	} else { | 
| 47 | 47 |  		print '<div class="alert alert-warning">'._("This special country profile shows all flights that do <u>not</u> have a country of a airline or departure/arrival airport associated with them.").'</div>'; | 
| @@ -50,7 +50,7 @@ discard block | ||
| 50 | 50 |  	include('country-sub-menu.php'); | 
| 51 | 51 | print '<div class="column">'; | 
| 52 | 52 |  	print '<h2>'._("Most Common Aircraft Manufacturer").'</h2>'; | 
| 53 | -	print '<p>'.sprintf(_("The statistic below shows the most common Aircraft Manufacturer of airlines or departure/arrival airports from <strong>%s</strong>."),$country).'</p>'; | |
| 53 | +	print '<p>'.sprintf(_("The statistic below shows the most common Aircraft Manufacturer of airlines or departure/arrival airports from <strong>%s</strong>."), $country).'</p>'; | |
| 54 | 54 | $manufacturers_array = $Spotter->countAllAircraftManufacturerByCountry($country); | 
| 55 | 55 | if (!empty($manufacturers_array)) | 
| 56 | 56 |  	{ | 
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | print '</thead>'; | 
| 64 | 64 | print '<tbody>'; | 
| 65 | 65 | $i = 1; | 
| 66 | - foreach($manufacturers_array as $manufacturer_item) | |
| 66 | + foreach ($manufacturers_array as $manufacturer_item) | |
| 67 | 67 |  		{ | 
| 68 | 68 | print '<tr>'; | 
| 69 | 69 | print '<td><strong>'.$i.'</strong></td>'; | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | |
| 9 | 9 | $page_url = $globalURL.'/acars-latest'; | 
| 10 | 10 | |
| 11 | -if(!isset($_GET['limit'])) | |
| 11 | +if (!isset($_GET['limit'])) | |
| 12 | 12 |  { | 
| 13 | 13 | $limit_start = 0; | 
| 14 | 14 | $limit_end = 25; | 
| @@ -6,14 +6,14 @@ discard block | ||
| 6 | 6 | |
| 7 | 7 |  if (isset($_GET['start_date'])) { | 
| 8 | 8 | //for the date manipulation into the query | 
| 9 | -        if($_GET['start_date'] != "" && $_GET['end_date'] != ""){ | |
| 9 | +        if ($_GET['start_date'] != "" && $_GET['end_date'] != "") { | |
| 10 | 10 | $start_date = $_GET['start_date'].":00"; | 
| 11 | 11 | $end_date = $_GET['end_date'].":00"; | 
| 12 | 12 | $sql_date = $start_date.",".$end_date; | 
| 13 | -        } else if($_GET['start_date'] != ""){ | |
| 13 | +        } else if ($_GET['start_date'] != "") { | |
| 14 | 14 | $start_date = $_GET['start_date'].":00"; | 
| 15 | 15 | $sql_date = $start_date; | 
| 16 | -        } else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){ | |
| 16 | +        } else if ($_GET['start_date'] == "" && $_GET['end_date'] != "") { | |
| 17 | 17 |                  $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date'].":00"; | 
| 18 | 18 | $sql_date = $end_date; | 
| 19 | 19 | } else $sql_date = ''; | 
| @@ -21,21 +21,21 @@ discard block | ||
| 21 | 21 | |
| 22 | 22 |  if (isset($_GET['highest_altitude'])) { | 
| 23 | 23 | //for altitude manipulation | 
| 24 | -        if($_GET['highest_altitude'] != "" && $_GET['lowest_altitude'] != ""){ | |
| 24 | +        if ($_GET['highest_altitude'] != "" && $_GET['lowest_altitude'] != "") { | |
| 25 | 25 | $end_altitude = $_GET['highest_altitude']; | 
| 26 | 26 | $start_altitude = $_GET['lowest_altitude']; | 
| 27 | 27 | $sql_altitude = $start_altitude.",".$end_altitude; | 
| 28 | -        } else if($_GET['highest_altitude'] != ""){ | |
| 28 | +        } else if ($_GET['highest_altitude'] != "") { | |
| 29 | 29 | $end_altitude = $_GET['highest_altitude']; | 
| 30 | 30 | $sql_altitude = $end_altitude; | 
| 31 | -        } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){ | |
| 31 | +        } else if ($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != "") { | |
| 32 | 32 | $start_altitude = $_GET['lowest_altitude'].",60000"; | 
| 33 | 33 | $sql_altitude = $start_altitude; | 
| 34 | 34 | } else $sql_altitude = ''; | 
| 35 | 35 | } else $sql_altitude = ''; | 
| 36 | 36 | |
| 37 | 37 | //calculuation for the pagination | 
| 38 | -if(!isset($_GET['limit'])) | |
| 38 | +if (!isset($_GET['limit'])) | |
| 39 | 39 |  { | 
| 40 | 40 | if (!isset($_GET['number_results'])) | 
| 41 | 41 |          { | 
| @@ -43,14 +43,14 @@ discard block | ||
| 43 | 43 | $limit_end = 25; | 
| 44 | 44 | $absolute_difference = 25; | 
| 45 | 45 |          } else { | 
| 46 | -                if ($_GET['number_results'] > 1000){ | |
| 46 | +                if ($_GET['number_results'] > 1000) { | |
| 47 | 47 | $_GET['number_results'] = 1000; | 
| 48 | 48 | } | 
| 49 | 49 | $limit_start = 0; | 
| 50 | 50 | $limit_end = $_GET['number_results']; | 
| 51 | 51 | $absolute_difference = $_GET['number_results']; | 
| 52 | 52 | } | 
| 53 | -}  else { | |
| 53 | +} else { | |
| 54 | 54 |          $limit_explode = explode(",", $_GET['limit']); | 
| 55 | 55 | $limit_start = $limit_explode[0]; | 
| 56 | 56 | $limit_end = $limit_explode[1]; | 
| @@ -70,30 +70,30 @@ discard block | ||
| 70 | 70 | if (isset($_GET['sort'])) $sort = $_GET['sort']; | 
| 71 | 71 | else $sort = ''; | 
| 72 | 72 | |
| 73 | -$q = filter_input(INPUT_GET,'q',FILTER_SANITIZE_STRING); | |
| 74 | -$registration = filter_input(INPUT_GET,'registratrion',FILTER_SANITIZE_STRING); | |
| 75 | -$aircraft = filter_input(INPUT_GET,'aircraft',FILTER_SANITIZE_STRING); | |
| 76 | -$manufacturer = filter_input(INPUT_GET,'manufacturer',FILTER_SANITIZE_STRING); | |
| 77 | -$highlights = filter_input(INPUT_GET,'highlights',FILTER_SANITIZE_STRING); | |
| 78 | -$airline = filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING); | |
| 79 | -$airline_country = filter_input(INPUT_GET,'airline_country',FILTER_SANITIZE_STRING); | |
| 80 | -$airline_type = filter_input(INPUT_GET,'airline_type',FILTER_SANITIZE_STRING); | |
| 81 | -$airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); | |
| 82 | -$airport_country = filter_input(INPUT_GET,'airport_country',FILTER_SANITIZE_STRING); | |
| 83 | -$callsign = filter_input(INPUT_GET,'callsign',FILTER_SANITIZE_STRING); | |
| 84 | -$pilot_id = filter_input(INPUT_GET,'pilot_id',FILTER_SANITIZE_STRING); | |
| 85 | -$pilot_name = filter_input(INPUT_GET,'pilot_name',FILTER_SANITIZE_STRING); | |
| 86 | -$owner = filter_input(INPUT_GET,'owner',FILTER_SANITIZE_STRING); | |
| 87 | -$departure_airport_route = filter_input(INPUT_GET,'departure_airport_route',FILTER_SANITIZE_STRING); | |
| 88 | -$arrival_airport_route = filter_input(INPUT_GET,'arrival_airport_route',FILTER_SANITIZE_STRING); | |
| 89 | -$spotter_array = $Spotter->searchSpotterData($q,$registration,$aircraft,strtolower(str_replace("-", " ", $manufacturer)),$highlights,$airline,$airline_country,$airline_type,$airport,$airport_country,$callsign,$departure_airport_route,$arrival_airport_route,$owner,$pilot_id,$pilot_name,$sql_altitude,$sql_date,$limit_start.",".$absolute_difference,$sort,''); | |
| 73 | +$q = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING); | |
| 74 | +$registration = filter_input(INPUT_GET, 'registratrion', FILTER_SANITIZE_STRING); | |
| 75 | +$aircraft = filter_input(INPUT_GET, 'aircraft', FILTER_SANITIZE_STRING); | |
| 76 | +$manufacturer = filter_input(INPUT_GET, 'manufacturer', FILTER_SANITIZE_STRING); | |
| 77 | +$highlights = filter_input(INPUT_GET, 'highlights', FILTER_SANITIZE_STRING); | |
| 78 | +$airline = filter_input(INPUT_GET, 'airline', FILTER_SANITIZE_STRING); | |
| 79 | +$airline_country = filter_input(INPUT_GET, 'airline_country', FILTER_SANITIZE_STRING); | |
| 80 | +$airline_type = filter_input(INPUT_GET, 'airline_type', FILTER_SANITIZE_STRING); | |
| 81 | +$airport = filter_input(INPUT_GET, 'airport', FILTER_SANITIZE_STRING); | |
| 82 | +$airport_country = filter_input(INPUT_GET, 'airport_country', FILTER_SANITIZE_STRING); | |
| 83 | +$callsign = filter_input(INPUT_GET, 'callsign', FILTER_SANITIZE_STRING); | |
| 84 | +$pilot_id = filter_input(INPUT_GET, 'pilot_id', FILTER_SANITIZE_STRING); | |
| 85 | +$pilot_name = filter_input(INPUT_GET, 'pilot_name', FILTER_SANITIZE_STRING); | |
| 86 | +$owner = filter_input(INPUT_GET, 'owner', FILTER_SANITIZE_STRING); | |
| 87 | +$departure_airport_route = filter_input(INPUT_GET, 'departure_airport_route', FILTER_SANITIZE_STRING); | |
| 88 | +$arrival_airport_route = filter_input(INPUT_GET, 'arrival_airport_route', FILTER_SANITIZE_STRING); | |
| 89 | +$spotter_array = $Spotter->searchSpotterData($q, $registration, $aircraft, strtolower(str_replace("-", " ", $manufacturer)), $highlights, $airline, $airline_country, $airline_type, $airport, $airport_country, $callsign, $departure_airport_route, $arrival_airport_route, $owner, $pilot_id, $pilot_name, $sql_altitude, $sql_date, $limit_start.",".$absolute_difference, $sort, ''); | |
| 90 | 90 | |
| 91 | 91 | |
| 92 | 92 | $output = "id,ident,registration,aircraft_icao,aircraft_name,aircraft_manufacturer,airline,airline_icao,airline_iata,airline_country,airline_callsign,airline_type,departure_airport_city,departure_airport_country,departure_airport_iata,departure_airport_icao,departure_airport_latitude,departure_airport_longitude,departure_airport_altitude,arrival_airport_city,arrival_airport_country,arrival_airport_iata,arrival_airport_icao,arrival_airport_latitude,arrival_airport_longitude,arrival_airport_altitude,latitude,longitude,altitude,ground_speed,heading,heading_name,waypoints,date\n"; | 
| 93 | 93 | |
| 94 | 94 | if (!empty($spotter_array)) | 
| 95 | 95 |  { | 
| 96 | - foreach($spotter_array as $spotter_item) | |
| 96 | + foreach ($spotter_array as $spotter_item) | |
| 97 | 97 |    { | 
| 98 | 98 | |
| 99 | 99 | $output .= $spotter_item['spotter_id'].','; | 
| @@ -5,14 +5,14 @@ discard block | ||
| 5 | 5 | $Spotter = new Spotter(); | 
| 6 | 6 |  if (isset($_GET['start_date'])) { | 
| 7 | 7 | //for the date manipulation into the query | 
| 8 | -        if($_GET['start_date'] != "" && $_GET['end_date'] != ""){ | |
| 8 | +        if ($_GET['start_date'] != "" && $_GET['end_date'] != "") { | |
| 9 | 9 | $start_date = $_GET['start_date'].":00"; | 
| 10 | 10 | $end_date = $_GET['end_date'].":00"; | 
| 11 | 11 | $sql_date = $start_date.",".$end_date; | 
| 12 | -        } else if($_GET['start_date'] != ""){ | |
| 12 | +        } else if ($_GET['start_date'] != "") { | |
| 13 | 13 | $start_date = $_GET['start_date'].":00"; | 
| 14 | 14 | $sql_date = $start_date; | 
| 15 | -        } else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){ | |
| 15 | +        } else if ($_GET['start_date'] == "" && $_GET['end_date'] != "") { | |
| 16 | 16 |                  $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date'].":00"; | 
| 17 | 17 | $sql_date = $end_date; | 
| 18 | 18 | } else $sql_date = ''; | 
| @@ -20,21 +20,21 @@ discard block | ||
| 20 | 20 | |
| 21 | 21 |  if (isset($_GET['highest_altitude'])) { | 
| 22 | 22 | //for altitude manipulation | 
| 23 | -        if($_GET['highest_altitude'] != "" && $_GET['lowest_altitude'] != ""){ | |
| 23 | +        if ($_GET['highest_altitude'] != "" && $_GET['lowest_altitude'] != "") { | |
| 24 | 24 | $end_altitude = $_GET['highest_altitude']; | 
| 25 | 25 | $start_altitude = $_GET['lowest_altitude']; | 
| 26 | 26 | $sql_altitude = $start_altitude.",".$end_altitude; | 
| 27 | -        } else if($_GET['highest_altitude'] != ""){ | |
| 27 | +        } else if ($_GET['highest_altitude'] != "") { | |
| 28 | 28 | $end_altitude = $_GET['highest_altitude']; | 
| 29 | 29 | $sql_altitude = $end_altitude; | 
| 30 | -        } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){ | |
| 30 | +        } else if ($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != "") { | |
| 31 | 31 | $start_altitude = $_GET['lowest_altitude'].",60000"; | 
| 32 | 32 | $sql_altitude = $start_altitude; | 
| 33 | 33 | } else $sql_altitude = ''; | 
| 34 | 34 | } else $sql_altitude = ''; | 
| 35 | 35 | |
| 36 | 36 | //calculuation for the pagination | 
| 37 | -if(!isset($_GET['limit'])) | |
| 37 | +if (!isset($_GET['limit'])) | |
| 38 | 38 |  { | 
| 39 | 39 | if (!isset($_GET['number_results'])) | 
| 40 | 40 |          { | 
| @@ -42,14 +42,14 @@ discard block | ||
| 42 | 42 | $limit_end = 25; | 
| 43 | 43 | $absolute_difference = 25; | 
| 44 | 44 |          } else { | 
| 45 | -                if ($_GET['number_results'] > 1000){ | |
| 45 | +                if ($_GET['number_results'] > 1000) { | |
| 46 | 46 | $_GET['number_results'] = 1000; | 
| 47 | 47 | } | 
| 48 | 48 | $limit_start = 0; | 
| 49 | 49 | $limit_end = $_GET['number_results']; | 
| 50 | 50 | $absolute_difference = $_GET['number_results']; | 
| 51 | 51 | } | 
| 52 | -}  else { | |
| 52 | +} else { | |
| 53 | 53 |          $limit_explode = explode(",", $_GET['limit']); | 
| 54 | 54 | $limit_start = $limit_explode[0]; | 
| 55 | 55 | $limit_end = $limit_explode[1]; | 
| @@ -69,23 +69,23 @@ discard block | ||
| 69 | 69 | |
| 70 | 70 | if (isset($_GET['sort'])) $sort = $_GET['sort']; | 
| 71 | 71 | else $sort = ''; | 
| 72 | -$q = filter_input(INPUT_GET,'q',FILTER_SANITIZE_STRING); | |
| 73 | -$registration = filter_input(INPUT_GET,'registratrion',FILTER_SANITIZE_STRING); | |
| 74 | -$aircraft = filter_input(INPUT_GET,'aircraft',FILTER_SANITIZE_STRING); | |
| 75 | -$manufacturer = filter_input(INPUT_GET,'manufacturer',FILTER_SANITIZE_STRING); | |
| 76 | -$highlights = filter_input(INPUT_GET,'highlights',FILTER_SANITIZE_STRING); | |
| 77 | -$airline = filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING); | |
| 78 | -$airline_country = filter_input(INPUT_GET,'airline_country',FILTER_SANITIZE_STRING); | |
| 79 | -$airline_type = filter_input(INPUT_GET,'airline_type',FILTER_SANITIZE_STRING); | |
| 80 | -$airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); | |
| 81 | -$airport_country = filter_input(INPUT_GET,'airport_country',FILTER_SANITIZE_STRING); | |
| 82 | -$callsign = filter_input(INPUT_GET,'callsign',FILTER_SANITIZE_STRING); | |
| 83 | -$owner = filter_input(INPUT_GET,'owner',FILTER_SANITIZE_STRING); | |
| 84 | -$pilot_id = filter_input(INPUT_GET,'pilot_id',FILTER_SANITIZE_STRING); | |
| 85 | -$pilot_name = filter_input(INPUT_GET,'pilot_name',FILTER_SANITIZE_STRING); | |
| 86 | -$departure_airport_route = filter_input(INPUT_GET,'departure_airport_route',FILTER_SANITIZE_STRING); | |
| 87 | -$arrival_airport_route = filter_input(INPUT_GET,'arrival_airport_route',FILTER_SANITIZE_STRING); | |
| 88 | -$spotter_array = $Spotter->searchSpotterData($q,$registration,$aircraft,strtolower(str_replace("-", " ", $manufacturer)),$highlights,$airline,$airline_country,$airline_type,$airport,$airport_country,$callsign,$departure_airport_route,$arrival_airport_route,$owner,$pilot_id,$pilot_name,$sql_altitude,$sql_date,$limit_start.",".$absolute_difference,$sort,''); | |
| 72 | +$q = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING); | |
| 73 | +$registration = filter_input(INPUT_GET, 'registratrion', FILTER_SANITIZE_STRING); | |
| 74 | +$aircraft = filter_input(INPUT_GET, 'aircraft', FILTER_SANITIZE_STRING); | |
| 75 | +$manufacturer = filter_input(INPUT_GET, 'manufacturer', FILTER_SANITIZE_STRING); | |
| 76 | +$highlights = filter_input(INPUT_GET, 'highlights', FILTER_SANITIZE_STRING); | |
| 77 | +$airline = filter_input(INPUT_GET, 'airline', FILTER_SANITIZE_STRING); | |
| 78 | +$airline_country = filter_input(INPUT_GET, 'airline_country', FILTER_SANITIZE_STRING); | |
| 79 | +$airline_type = filter_input(INPUT_GET, 'airline_type', FILTER_SANITIZE_STRING); | |
| 80 | +$airport = filter_input(INPUT_GET, 'airport', FILTER_SANITIZE_STRING); | |
| 81 | +$airport_country = filter_input(INPUT_GET, 'airport_country', FILTER_SANITIZE_STRING); | |
| 82 | +$callsign = filter_input(INPUT_GET, 'callsign', FILTER_SANITIZE_STRING); | |
| 83 | +$owner = filter_input(INPUT_GET, 'owner', FILTER_SANITIZE_STRING); | |
| 84 | +$pilot_id = filter_input(INPUT_GET, 'pilot_id', FILTER_SANITIZE_STRING); | |
| 85 | +$pilot_name = filter_input(INPUT_GET, 'pilot_name', FILTER_SANITIZE_STRING); | |
| 86 | +$departure_airport_route = filter_input(INPUT_GET, 'departure_airport_route', FILTER_SANITIZE_STRING); | |
| 87 | +$arrival_airport_route = filter_input(INPUT_GET, 'arrival_airport_route', FILTER_SANITIZE_STRING); | |
| 88 | +$spotter_array = $Spotter->searchSpotterData($q, $registration, $aircraft, strtolower(str_replace("-", " ", $manufacturer)), $highlights, $airline, $airline_country, $airline_type, $airport, $airport_country, $callsign, $departure_airport_route, $arrival_airport_route, $owner, $pilot_id, $pilot_name, $sql_altitude, $sql_date, $limit_start.",".$absolute_difference, $sort, ''); | |
| 89 | 89 | |
| 90 | 90 | |
| 91 | 91 | $output = '<?xml version="1.0" encoding="UTF-8"?>'; | 
| @@ -115,7 +115,7 @@ discard block | ||
| 115 | 115 | |
| 116 | 116 | if (!empty($spotter_array)) | 
| 117 | 117 |  	  {	   | 
| 118 | - foreach($spotter_array as $spotter_item) | |
| 118 | + foreach ($spotter_array as $spotter_item) | |
| 119 | 119 |  	    { | 
| 120 | 120 | |
| 121 | 121 | |
| @@ -132,7 +132,7 @@ discard block | ||
| 132 | 132 | |
| 133 | 133 | foreach ($waypoint_pieces as $waypoint_coordinate) | 
| 134 | 134 |  							{ | 
| 135 | - $output .= $waypoint_coordinate[1].','.$waypoint_coordinate[0].','.$altitude.' '; | |
| 135 | + $output .= $waypoint_coordinate[1].','.$waypoint_coordinate[0].','.$altitude.' '; | |
| 136 | 136 | |
| 137 | 137 | } | 
| 138 | 138 | $output .= '</coordinates>'; | 
| @@ -178,7 +178,7 @@ discard block | ||
| 178 | 178 | $output .= ' ]]></description>'; | 
| 179 | 179 | $output .= '<styleUrl>#departureAirport</styleUrl>'; | 
| 180 | 180 | $output .= '<Point>'; | 
| 181 | - $output .= '<coordinates>'.$spotter_item['departure_airport_longitude'].', '.$spotter_item['departure_airport_latitude'].', '.$spotter_item['departure_airport_altitude'].'</coordinates>'; | |
| 181 | + $output .= '<coordinates>'.$spotter_item['departure_airport_longitude'].', '.$spotter_item['departure_airport_latitude'].', '.$spotter_item['departure_airport_altitude'].'</coordinates>'; | |
| 182 | 182 | $output .= '<altitudeMode>absolute</altitudeMode>'; | 
| 183 | 183 | $output .= '</Point>'; | 
| 184 | 184 | $output .= '</Placemark>'; | 
| @@ -220,7 +220,7 @@ discard block | ||
| 220 | 220 | $output .= ' ]]></description>'; | 
| 221 | 221 | $output .= '<styleUrl>#arrivalAirport</styleUrl>'; | 
| 222 | 222 | $output .= '<Point>'; | 
| 223 | - $output .= '<coordinates>'.$spotter_item['arrival_airport_longitude'].', '.$spotter_item['arrival_airport_latitude'].', '.$spotter_item['arrival_airport_altitude'].'</coordinates>'; | |
| 223 | + $output .= '<coordinates>'.$spotter_item['arrival_airport_longitude'].', '.$spotter_item['arrival_airport_latitude'].', '.$spotter_item['arrival_airport_altitude'].'</coordinates>'; | |
| 224 | 224 | $output .= '<altitudeMode>absolute</altitudeMode>'; | 
| 225 | 225 | $output .= '</Point>'; | 
| 226 | 226 | $output .= '</Placemark>'; | 
| @@ -267,7 +267,7 @@ discard block | ||
| 267 | 267 | $output .= ' ]]></description>'; | 
| 268 | 268 | $output .= '<styleUrl>#aircraft_'.$spotter_item['spotter_id'].'</styleUrl>'; | 
| 269 | 269 | $output .= '<Point>'; | 
| 270 | - $output .= '<coordinates>'.$spotter_item['longitude'].', '.$spotter_item['latitude'].', '.$altitude.'</coordinates>'; | |
| 270 | + $output .= '<coordinates>'.$spotter_item['longitude'].', '.$spotter_item['latitude'].', '.$altitude.'</coordinates>'; | |
| 271 | 271 | $output .= '<altitudeMode>absolute</altitudeMode>'; | 
| 272 | 272 | $output .= '</Point>'; | 
| 273 | 273 | $output .= '</Placemark>'; | 
| @@ -5,14 +5,14 @@ discard block | ||
| 5 | 5 | $Spotter = new Spotter(); | 
| 6 | 6 |  if (isset($_GET['start_date'])) { | 
| 7 | 7 | //for the date manipulation into the query | 
| 8 | -        if($_GET['start_date'] != "" && $_GET['end_date'] != ""){ | |
| 8 | +        if ($_GET['start_date'] != "" && $_GET['end_date'] != "") { | |
| 9 | 9 | $start_date = $_GET['start_date'].":00"; | 
| 10 | 10 | $end_date = $_GET['end_date'].":00"; | 
| 11 | 11 | $sql_date = $start_date.",".$end_date; | 
| 12 | -        } else if($_GET['start_date'] != ""){ | |
| 12 | +        } else if ($_GET['start_date'] != "") { | |
| 13 | 13 | $start_date = $_GET['start_date'].":00"; | 
| 14 | 14 | $sql_date = $start_date; | 
| 15 | -        } else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){ | |
| 15 | +        } else if ($_GET['start_date'] == "" && $_GET['end_date'] != "") { | |
| 16 | 16 |                  $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date'].":00"; | 
| 17 | 17 | $sql_date = $end_date; | 
| 18 | 18 | } else $sql_date = ''; | 
| @@ -20,21 +20,21 @@ discard block | ||
| 20 | 20 | |
| 21 | 21 |  if (isset($_GET['highest_altitude'])) { | 
| 22 | 22 | //for altitude manipulation | 
| 23 | -        if($_GET['highest_altitude'] != "" && $_GET['lowest_altitude'] != ""){ | |
| 23 | +        if ($_GET['highest_altitude'] != "" && $_GET['lowest_altitude'] != "") { | |
| 24 | 24 | $end_altitude = $_GET['highest_altitude']; | 
| 25 | 25 | $start_altitude = $_GET['lowest_altitude']; | 
| 26 | 26 | $sql_altitude = $start_altitude.",".$end_altitude; | 
| 27 | -        } else if($_GET['highest_altitude'] != ""){ | |
| 27 | +        } else if ($_GET['highest_altitude'] != "") { | |
| 28 | 28 | $end_altitude = $_GET['highest_altitude']; | 
| 29 | 29 | $sql_altitude = $end_altitude; | 
| 30 | -        } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){ | |
| 30 | +        } else if ($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != "") { | |
| 31 | 31 | $start_altitude = $_GET['lowest_altitude'].",60000"; | 
| 32 | 32 | $sql_altitude = $start_altitude; | 
| 33 | 33 | } else $sql_altitude = ''; | 
| 34 | 34 | } else $sql_altitude = ''; | 
| 35 | 35 | |
| 36 | 36 | //calculuation for the pagination | 
| 37 | -if(!isset($_GET['limit'])) | |
| 37 | +if (!isset($_GET['limit'])) | |
| 38 | 38 |  { | 
| 39 | 39 | if (!isset($_GET['number_results'])) | 
| 40 | 40 |          { | 
| @@ -42,14 +42,14 @@ discard block | ||
| 42 | 42 | $limit_end = 25; | 
| 43 | 43 | $absolute_difference = 25; | 
| 44 | 44 |          } else { | 
| 45 | -                if ($_GET['number_results'] > 1000){ | |
| 45 | +                if ($_GET['number_results'] > 1000) { | |
| 46 | 46 | $_GET['number_results'] = 1000; | 
| 47 | 47 | } | 
| 48 | 48 | $limit_start = 0; | 
| 49 | 49 | $limit_end = $_GET['number_results']; | 
| 50 | 50 | $absolute_difference = $_GET['number_results']; | 
| 51 | 51 | } | 
| 52 | -}  else { | |
| 52 | +} else { | |
| 53 | 53 |          $limit_explode = explode(",", $_GET['limit']); | 
| 54 | 54 | $limit_start = $limit_explode[0]; | 
| 55 | 55 | $limit_end = $limit_explode[1]; | 
| @@ -72,23 +72,23 @@ discard block | ||
| 72 | 72 | |
| 73 | 73 | if (isset($_GET['sort'])) $sort = $_GET['sort']; | 
| 74 | 74 | else $sort = ''; | 
| 75 | -$q = filter_input(INPUT_GET,'q',FILTER_SANITIZE_STRING); | |
| 76 | -$registration = filter_input(INPUT_GET,'registratrion',FILTER_SANITIZE_STRING); | |
| 77 | -$aircraft = filter_input(INPUT_GET,'aircraft',FILTER_SANITIZE_STRING); | |
| 78 | -$manufacturer = filter_input(INPUT_GET,'manufacturer',FILTER_SANITIZE_STRING); | |
| 79 | -$highlights = filter_input(INPUT_GET,'highlights',FILTER_SANITIZE_STRING); | |
| 80 | -$airline = filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING); | |
| 81 | -$airline_country = filter_input(INPUT_GET,'airline_country',FILTER_SANITIZE_STRING); | |
| 82 | -$airline_type = filter_input(INPUT_GET,'airline_type',FILTER_SANITIZE_STRING); | |
| 83 | -$airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); | |
| 84 | -$airport_country = filter_input(INPUT_GET,'airport_country',FILTER_SANITIZE_STRING); | |
| 85 | -$callsign = filter_input(INPUT_GET,'callsign',FILTER_SANITIZE_STRING); | |
| 86 | -$owner = filter_input(INPUT_GET,'owner',FILTER_SANITIZE_STRING); | |
| 87 | -$pilot_id = filter_input(INPUT_GET,'pilot_id',FILTER_SANITIZE_STRING); | |
| 88 | -$pilot_name = filter_input(INPUT_GET,'pilot_name',FILTER_SANITIZE_STRING); | |
| 89 | -$departure_airport_route = filter_input(INPUT_GET,'departure_airport_route',FILTER_SANITIZE_STRING); | |
| 90 | -$arrival_airport_route = filter_input(INPUT_GET,'arrival_airport_route',FILTER_SANITIZE_STRING); | |
| 91 | -$spotter_array = $Spotter->searchSpotterData($q,$registration,$aircraft,strtolower(str_replace("-", " ", $manufacturer)),$highlights,$airline,$airline_country,$airline_type,$airport,$airport_country,$callsign,$departure_airport_route,$arrival_airport_route,$owner,$pilot_id,$pilot_name,$sql_altitude,$sql_date,$limit_start.",".$absolute_difference,$sort,''); | |
| 75 | +$q = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING); | |
| 76 | +$registration = filter_input(INPUT_GET, 'registratrion', FILTER_SANITIZE_STRING); | |
| 77 | +$aircraft = filter_input(INPUT_GET, 'aircraft', FILTER_SANITIZE_STRING); | |
| 78 | +$manufacturer = filter_input(INPUT_GET, 'manufacturer', FILTER_SANITIZE_STRING); | |
| 79 | +$highlights = filter_input(INPUT_GET, 'highlights', FILTER_SANITIZE_STRING); | |
| 80 | +$airline = filter_input(INPUT_GET, 'airline', FILTER_SANITIZE_STRING); | |
| 81 | +$airline_country = filter_input(INPUT_GET, 'airline_country', FILTER_SANITIZE_STRING); | |
| 82 | +$airline_type = filter_input(INPUT_GET, 'airline_type', FILTER_SANITIZE_STRING); | |
| 83 | +$airport = filter_input(INPUT_GET, 'airport', FILTER_SANITIZE_STRING); | |
| 84 | +$airport_country = filter_input(INPUT_GET, 'airport_country', FILTER_SANITIZE_STRING); | |
| 85 | +$callsign = filter_input(INPUT_GET, 'callsign', FILTER_SANITIZE_STRING); | |
| 86 | +$owner = filter_input(INPUT_GET, 'owner', FILTER_SANITIZE_STRING); | |
| 87 | +$pilot_id = filter_input(INPUT_GET, 'pilot_id', FILTER_SANITIZE_STRING); | |
| 88 | +$pilot_name = filter_input(INPUT_GET, 'pilot_name', FILTER_SANITIZE_STRING); | |
| 89 | +$departure_airport_route = filter_input(INPUT_GET, 'departure_airport_route', FILTER_SANITIZE_STRING); | |
| 90 | +$arrival_airport_route = filter_input(INPUT_GET, 'arrival_airport_route', FILTER_SANITIZE_STRING); | |
| 91 | +$spotter_array = $Spotter->searchSpotterData($q, $registration, $aircraft, strtolower(str_replace("-", " ", $manufacturer)), $highlights, $airline, $airline_country, $airline_type, $airport, $airport_country, $callsign, $departure_airport_route, $arrival_airport_route, $owner, $pilot_id, $pilot_name, $sql_altitude, $sql_date, $limit_start.",".$absolute_difference, $sort, ''); | |
| 92 | 92 | |
| 93 | 93 | print '<?xml version="1.0" encoding="UTF-8" ?>'; | 
| 94 | 94 | print '<rss xmlns:flightairmap="http://'.$_SERVER['HTTP_HOST'].''.htmlentities($_SERVER['REQUEST_URI']).'" version="2.0">'; | 
| @@ -102,7 +102,7 @@ discard block | ||
| 102 | 102 | |
| 103 | 103 | if (!empty($spotter_array)) | 
| 104 | 104 |    { | 
| 105 | - foreach($spotter_array as $spotter_item) | |
| 105 | + foreach ($spotter_array as $spotter_item) | |
| 106 | 106 |      { | 
| 107 | 107 | |
| 108 | 108 | |
| @@ -7,8 +7,8 @@ discard block | ||
| 7 | 7 | die(); | 
| 8 | 8 | } | 
| 9 | 9 | $Spotter = new Spotter(); | 
| 10 | -$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING))); | |
| 11 | -$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); | |
| 10 | +$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET, 'country', FILTER_SANITIZE_STRING))); | |
| 11 | +$sort = filter_input(INPUT_GET, 'sort', FILTER_SANITIZE_STRING); | |
| 12 | 12 | |
| 13 | 13 |  if (isset($_GET['sort'])) { | 
| 14 | 14 | $spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort); | 
| @@ -18,16 +18,16 @@ discard block | ||
| 18 | 18 | |
| 19 | 19 | if (!empty($spotter_array)) | 
| 20 | 20 |  { | 
| 21 | -	$title = sprintf(_("Most Common Routes from %s"),$country); | |
| 21 | +	$title = sprintf(_("Most Common Routes from %s"), $country); | |
| 22 | 22 |  	require_once('header.php'); | 
| 23 | 23 | print '<div class="select-item">'; | 
| 24 | 24 | print '<form action="'.$globalURL.'/country" method="post">'; | 
| 25 | 25 | print '<select name="country" class="selectpicker" data-live-search="true">'; | 
| 26 | 26 | print '<option></option>'; | 
| 27 | 27 | $all_countries = $Spotter->getAllCountries(); | 
| 28 | - foreach($all_countries as $all_country) | |
| 28 | + foreach ($all_countries as $all_country) | |
| 29 | 29 |  	{ | 
| 30 | - if($country == $all_country['country']) | |
| 30 | + if ($country == $all_country['country']) | |
| 31 | 31 |  		{ | 
| 32 | 32 |  			print '<option value="'.strtolower(str_replace(" ", "-", $all_country['country'])).'" selected="selected">'.$all_country['country'].'</option>'; | 
| 33 | 33 |  		} else { | 
| @@ -42,7 +42,7 @@ discard block | ||
| 42 | 42 | if ($_GET['country'] != "NA") | 
| 43 | 43 |  	{ | 
| 44 | 44 | print '<div class="info column">'; | 
| 45 | -		print '<h1>'.sprintf(_("Airports & Airlines from %s"),$country).'</h1>'; | |
| 45 | +		print '<h1>'.sprintf(_("Airports & Airlines from %s"), $country).'</h1>'; | |
| 46 | 46 | print '</div>'; | 
| 47 | 47 |  	} else { | 
| 48 | 48 |  		print '<div class="alert alert-warning">'._("This special country profile shows all flights that do <u>not</u> have a country of a airline or departure/arrival airport associated with them.").'</div>'; | 
| @@ -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 Routes").'</h2>'; | 
| 54 | -	print '<p>'.sprintf(_("The statistic below shows the most common routes of airports & airlines from <strong>%s</strong>."),$country).'</p>'; | |
| 54 | +	print '<p>'.sprintf(_("The statistic below shows the most common routes of airports & airlines from <strong>%s</strong>."), $country).'</p>'; | |
| 55 | 55 | $route_array = $Spotter->countAllRoutesByCountry($country); | 
| 56 | 56 | if (!empty($route_array)) | 
| 57 | 57 |  	{ | 
| @@ -66,7 +66,7 @@ discard block | ||
| 66 | 66 | print '</thead>'; | 
| 67 | 67 | print '<tbody>'; | 
| 68 | 68 | $i = 1; | 
| 69 | - foreach($route_array as $route_item) | |
| 69 | + foreach ($route_array as $route_item) | |
| 70 | 70 |  		{ | 
| 71 | 71 | print '<tr>'; | 
| 72 | 72 | print '<td><strong>'.$i.'</strong></td>'; | 
| @@ -9,12 +9,12 @@ discard block | ||
| 9 | 9 | $Spotter = new Spotter(); | 
| 10 | 10 | |
| 11 | 11 |  $country = ucwords(str_replace("-", " ", $_GET['country'])); | 
| 12 | -$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); | |
| 12 | +$sort = filter_input(INPUT_GET, 'sort', FILTER_SANITIZE_STRING); | |
| 13 | 13 | $spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort); | 
| 14 | 14 | |
| 15 | 15 | if (!empty($spotter_array)) | 
| 16 | 16 |  { | 
| 17 | -	$title = sprintf(_("Most Common Aircraft from %s"),$country); | |
| 17 | +	$title = sprintf(_("Most Common Aircraft from %s"), $country); | |
| 18 | 18 | |
| 19 | 19 |  	require_once('header.php'); | 
| 20 | 20 | print '<div class="select-item">'; | 
| @@ -22,9 +22,9 @@ discard block | ||
| 22 | 22 | print '<select name="country" class="selectpicker" data-live-search="true">'; | 
| 23 | 23 | print '<option></option>'; | 
| 24 | 24 | $all_countries = $Spotter->getAllCountries(); | 
| 25 | - foreach($all_countries as $all_country) | |
| 25 | + foreach ($all_countries as $all_country) | |
| 26 | 26 |  	{ | 
| 27 | - if($country == $all_country['country']) | |
| 27 | + if ($country == $all_country['country']) | |
| 28 | 28 |  		{ | 
| 29 | 29 |  			print '<option value="'.strtolower(str_replace(" ", "-", $all_country['country'])).'" selected="selected">'.$all_country['country'].'</option>'; | 
| 30 | 30 |  		} else { | 
| @@ -39,7 +39,7 @@ discard block | ||
| 39 | 39 | if ($_GET['country'] != "NA") | 
| 40 | 40 |  	{ | 
| 41 | 41 | print '<div class="info column">'; | 
| 42 | -		print '<h1>'.sprintf(_("Airports & Airlines from %s"),$country).'</h1>'; | |
| 42 | +		print '<h1>'.sprintf(_("Airports & Airlines from %s"), $country).'</h1>'; | |
| 43 | 43 | print '</div>'; | 
| 44 | 44 |  	} else { | 
| 45 | 45 |  		print '<div class="alert alert-warning">'._("This special country profile shows all flights that do <u>not</u> have a country of a airline or departure/arrival airport associated with them.").'</div>'; | 
| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 |  	include('country-sub-menu.php'); | 
| 49 | 49 | print '<div class="column">'; | 
| 50 | 50 |  	print '<h2>'._("Most Common Aircraft").'</h2>'; | 
| 51 | -	print '<p>'.sprintf(_("The statistic below shows the most common aircrafts of flights from <strong>%s</strong>."),$country).'</p>'; | |
| 51 | +	print '<p>'.sprintf(_("The statistic below shows the most common aircrafts of flights from <strong>%s</strong>."), $country).'</p>'; | |
| 52 | 52 | |
| 53 | 53 | $aircraft_array = $Spotter->countAllAircraftTypesByCountry($country); | 
| 54 | 54 | if (!empty($aircraft_array)) | 
| @@ -62,7 +62,7 @@ discard block | ||
| 62 | 62 | print '</thead>'; | 
| 63 | 63 | print '<tbody>'; | 
| 64 | 64 | $i = 1; | 
| 65 | - foreach($aircraft_array as $aircraft_item) | |
| 65 | + foreach ($aircraft_array as $aircraft_item) | |
| 66 | 66 |  		{ | 
| 67 | 67 | print '<tr>'; | 
| 68 | 68 | print '<td><strong>'.$i.'</strong></td>'; | 
| @@ -3,17 +3,17 @@ discard block | ||
| 3 | 3 |  require_once('require/class.Spotter.php'); | 
| 4 | 4 |  require_once('require/class.Language.php'); | 
| 5 | 5 | |
| 6 | -if (!isset($_GET['registration'])){ | |
| 6 | +if (!isset($_GET['registration'])) { | |
| 7 | 7 |  	header('Location: '.$globalURL.''); | 
| 8 | 8 |  } else { | 
| 9 | 9 | $Spotter = new Spotter(); | 
| 10 | 10 | //calculuation for the pagination | 
| 11 | - if(!isset($_GET['limit'])) | |
| 11 | + if (!isset($_GET['limit'])) | |
| 12 | 12 |  	{ | 
| 13 | 13 | $limit_start = 0; | 
| 14 | 14 | $limit_end = 25; | 
| 15 | 15 | $absolute_difference = 25; | 
| 16 | -	}  else { | |
| 16 | +	} else { | |
| 17 | 17 |  		$limit_explode = explode(",", $_GET['limit']); | 
| 18 | 18 | $limit_start = $limit_explode[0]; | 
| 19 | 19 | $limit_end = $limit_explode[1]; | 
| @@ -26,8 +26,8 @@ discard block | ||
| 26 | 26 | $limit_next = $limit_end + $absolute_difference; | 
| 27 | 27 | $limit_previous_1 = $limit_start - $absolute_difference; | 
| 28 | 28 | $limit_previous_2 = $limit_end - $absolute_difference; | 
| 29 | - $registration = filter_input(INPUT_GET,'registration',FILTER_SANITIZE_STRING); | |
| 30 | - $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); | |
| 29 | + $registration = filter_input(INPUT_GET, 'registration', FILTER_SANITIZE_STRING); | |
| 30 | + $sort = filter_input(INPUT_GET, 'sort', FILTER_SANITIZE_STRING); | |
| 31 | 31 | |
| 32 | 32 | $page_url = $globalURL.'/registration/'.$registration; | 
| 33 | 33 | |
| @@ -40,7 +40,7 @@ discard block | ||
| 40 | 40 | |
| 41 | 41 | if (!empty($spotter_array)) | 
| 42 | 42 |  	{ | 
| 43 | -		$title = sprintf(_("Detailed View of aircraft with registration %s"),$registration); | |
| 43 | +		$title = sprintf(_("Detailed View of aircraft with registration %s"), $registration); | |
| 44 | 44 |  		require_once('header.php'); | 
| 45 | 45 | print '<div class="info column">'; | 
| 46 | 46 |  		print '<h1>'.$registration.' - '.$aircraft_array[0]['aircraft_name'].' ('.$aircraft_array[0]['aircraft_icao'].')</h1>'; | 
| @@ -51,7 +51,7 @@ discard block | ||
| 51 | 51 | |
| 52 | 52 |  		include('registration-sub-menu.php'); | 
| 53 | 53 | print '<div class="table column">'; | 
| 54 | -		print '<p>'.sprintf(_("The table below shows the detailed information of all flights of aircraft with the registration <strong>%s</strong>."),$registration).'</p>'; | |
| 54 | +		print '<p>'.sprintf(_("The table below shows the detailed information of all flights of aircraft with the registration <strong>%s</strong>."), $registration).'</p>'; | |
| 55 | 55 | |
| 56 | 56 |  		include('table-output.php'); | 
| 57 | 57 | print '<div class="pagination">'; |