@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ?> |
| 38 | 38 | </div> |
| 39 | 39 | <?php |
| 40 | - if (!isset($year) || (isset($year) && $year == '') && !isset($month) || (isset($month) && $month == '')) { |
|
| 40 | + if (!isset($year) || (isset($year) && $year == '') && !isset($month) || (isset($month) && $month == '')) { |
|
| 41 | 41 | ?> |
| 42 | 42 | <div class="sub-menu sub-menu-container"> |
| 43 | 43 | <ul class="nav"> |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | </ul> |
| 96 | 96 | </li> |
| 97 | 97 | <?php |
| 98 | - if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) { |
|
| 98 | + if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) { |
|
| 99 | 99 | ?> |
| 100 | 100 | <li class="dropdown"> |
| 101 | 101 | <a class="dropdown-toggle <?php if(strtolower($current_page) == "statistics-fatalities-year" || strtolower($current_page) == "statistics-fatalities-month"){ print 'active'; } ?>" data-toggle="dropdown" href="#"> |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | </ul> |
| 108 | 108 | </li> |
| 109 | 109 | <?php |
| 110 | - } |
|
| 110 | + } |
|
| 111 | 111 | ?> |
| 112 | 112 | <?php |
| 113 | 113 | } elseif ($type == 'marine' || $type == 'tracker') { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | </ul> |
| 128 | 128 | </div> |
| 129 | 129 | <?php |
| 130 | - } else { |
|
| 130 | + } else { |
|
| 131 | 131 | ?> |
| 132 | 132 | <div class="sub-menu sub-menu-container"> |
| 133 | 133 | <ul class="nav"> |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | </li> |
| 190 | 190 | --> |
| 191 | 191 | <?php |
| 192 | - if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) { |
|
| 192 | + if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) { |
|
| 193 | 193 | ?> |
| 194 | 194 | <!-- |
| 195 | 195 | <li class="dropdown"> |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | </li> |
| 204 | 204 | --> |
| 205 | 205 | <?php |
| 206 | - } |
|
| 206 | + } |
|
| 207 | 207 | ?> |
| 208 | 208 | <?php |
| 209 | 209 | } elseif ($type == 'marine' || $type == 'tracker') { |
@@ -224,5 +224,5 @@ discard block |
||
| 224 | 224 | </ul> |
| 225 | 225 | </div> |
| 226 | 226 | <?php |
| 227 | - } |
|
| 227 | + } |
|
| 228 | 228 | ?> |
| 229 | 229 | \ No newline at end of file |
@@ -40,15 +40,15 @@ |
||
| 40 | 40 | //print '<div><span>'._("Country").'</span>'.$spotter_item['country'].'</div>'; |
| 41 | 41 | print '<div><span>'._("Coordinates").'</span>'.round($spotter_item['latitude'],3).', '.round($spotter_item['longitude'],3).'</div>'; |
| 42 | 42 | if ($spotter_item['atc_range'] > 0) { |
| 43 | - print '<div><span>'._("Range").'</span>'; |
|
| 44 | - print $spotter_item['atc_range']; |
|
| 45 | - print '</div>'; |
|
| 43 | + print '<div><span>'._("Range").'</span>'; |
|
| 44 | + print $spotter_item['atc_range']; |
|
| 45 | + print '</div>'; |
|
| 46 | 46 | } |
| 47 | 47 | print '</div>'; |
| 48 | 48 | if ($spotter_item['info'] != '') { |
| 49 | - print '<div class="notamtext"><span>'._("Info").'</span>'; |
|
| 50 | - print $spotter_item['info']; |
|
| 51 | - print '</div>'; |
|
| 49 | + print '<div class="notamtext"><span>'._("Info").'</span>'; |
|
| 50 | + print $spotter_item['info']; |
|
| 51 | + print '</div>'; |
|
| 52 | 52 | } |
| 53 | 53 | print '</div>'; |
| 54 | 54 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | date_default_timezone_set('UTC'); |
| 25 | 25 | //waypoint plotting |
| 26 | 26 | $output .= '{"type": "Feature",'; |
| 27 | - $output .= '"properties": {'; |
|
| 27 | + $output .= '"properties": {'; |
|
| 28 | 28 | $output .= '"ref": "'.$spotter_item['atc_id'].'",'; |
| 29 | 29 | $output .= '"ident": "'.$spotter_item['ident'].'",'; |
| 30 | 30 | $output .= '"frequency": "'.$spotter_item['frequency'].'",'; |
@@ -50,18 +50,18 @@ discard block |
||
| 50 | 50 | } else { |
| 51 | 51 | $output .= '"icon": "images/atc.png"'; |
| 52 | 52 | } |
| 53 | - $output .= '},'; |
|
| 54 | - $output .= '"geometry": {'; |
|
| 53 | + $output .= '},'; |
|
| 54 | + $output .= '"geometry": {'; |
|
| 55 | 55 | $output .= '"type": "Point",'; |
| 56 | 56 | $output .= '"coordinates": ['; |
| 57 | - $output .= $spotter_item['longitude'].', '.$spotter_item['latitude']; |
|
| 57 | + $output .= $spotter_item['longitude'].', '.$spotter_item['latitude']; |
|
| 58 | 58 | $output .= ']'; |
| 59 | - $output .= '}'; |
|
| 59 | + $output .= '}'; |
|
| 60 | 60 | $output .= '},'; |
| 61 | 61 | $radius = $spotter_item['atc_range']*100; |
| 62 | 62 | if ($radius > 0) { |
| 63 | 63 | $output .= '{"type": "Feature",'; |
| 64 | - $output .= '"properties": {'; |
|
| 64 | + $output .= '"properties": {'; |
|
| 65 | 65 | $output .= '"ref": "'.$spotter_item['atc_id'].'",'; |
| 66 | 66 | $output .= '"ident": "'.$spotter_item['ident'].'",'; |
| 67 | 67 | $output .= '"frequency": "'.$spotter_item['frequency'].'",'; |
@@ -87,13 +87,13 @@ discard block |
||
| 87 | 87 | } else { |
| 88 | 88 | $output .= '"atccolor": "#888219"'; |
| 89 | 89 | } |
| 90 | - $output .= '},'; |
|
| 91 | - $output .= '"geometry": {'; |
|
| 90 | + $output .= '},'; |
|
| 91 | + $output .= '"geometry": {'; |
|
| 92 | 92 | $output .= '"type": "Point",'; |
| 93 | 93 | $output .= '"coordinates": ['; |
| 94 | - $output .= $spotter_item['longitude'].', '.$spotter_item['latitude']; |
|
| 94 | + $output .= $spotter_item['longitude'].', '.$spotter_item['latitude']; |
|
| 95 | 95 | $output .= ']'; |
| 96 | - $output .= '}'; |
|
| 96 | + $output .= '}'; |
|
| 97 | 97 | $output .= '},'; |
| 98 | 98 | } |
| 99 | 99 | } |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | print '<th class="arrival"><span class="nomobile">'._("Going to").'</span><span class="mobile">'._("To").'</span></th>'; |
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | - if ($type == 'aircraft') { |
|
| 280 | + if ($type == 'aircraft') { |
|
| 281 | 281 | if ((isset($globalUsePilot) && $globalUsePilot) || (!isset($globalUsePilot) && ((isset($globalVA) && $globalVA) || (isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalVAM) && $globalVAM) || (isset($globalphpVMS) && $globalphpVMS)))) { |
| 282 | 282 | print '<th class="pilot"><span class="nomobile">'._("Pilot name").'</span><span class="mobile">'._("Pilot").'</span></a></th>'; |
| 283 | 283 | } |
@@ -579,7 +579,7 @@ discard block |
||
| 579 | 579 | } elseif(strtolower($current_page) != "currently" && strtolower($current_page) != "upcoming" && strtolower($current_page) != "acars-latest" && strtolower($current_page) != "acars-archive" && strtolower($current_page) != "accident-latest" && strtolower($current_page) != "incident-latest" && strtolower($current_page) != "accident-detailed" && strtolower($current_page) != "incident-detailed"){ |
| 580 | 580 | if ($type == 'aircraft') { |
| 581 | 581 | if (!isset($spotter_item['squawk']) || $spotter_item['squawk'] == 0) { |
| 582 | - $spotter_item['squawk'] = '-'; |
|
| 582 | + $spotter_item['squawk'] = '-'; |
|
| 583 | 583 | } |
| 584 | 584 | if ($spotter_item['image_thumbnail'] != "") |
| 585 | 585 | { |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | print '</td>'."\n"; |
| 619 | 619 | } else { |
| 620 | 620 | print '<td class="aircraft_thumbnail">'."\n"; |
| 621 | - // print '<a href="'.$globalURL.'/flightid/'.$spotter_item['spotter_id'].'"><img src="'.$globalURL.'/images/placeholder_thumb.png" alt="Click to see more information about this flight" title="Click to see more information about this flight" width="100px" /></a>'; |
|
| 621 | + // print '<a href="'.$globalURL.'/flightid/'.$spotter_item['spotter_id'].'"><img src="'.$globalURL.'/images/placeholder_thumb.png" alt="Click to see more information about this flight" title="Click to see more information about this flight" width="100px" /></a>'; |
|
| 622 | 622 | //} |
| 623 | 623 | if (!isset($spotter_item['airline_name']) && !isset($spotter_item['aircraft_name'])) { |
| 624 | 624 | print '<a href="'.$globalURL.'/flightid/'.$spotter_item['spotter_id'].'"><img src="'.$globalURL.'/images/placeholder_thumb.png" class="img-rounded" data-toggle="popover" title="'.$spotter_item['registration'].' - '.$spotter_item['aircraft_type'].' - '._("Not available").'" alt="'.$spotter_item['registration'].' - '.$spotter_item['aircraft_type'].' - '._("Not available").'" data-content="'._("Registration:").' '.$spotter_item['registration'].'<br />'._("Aircraft:").' '._("Not available").' ('.$spotter_item['aircraft_type'].')<br />'._("Airline:").' '._("Not available").'<br />'._("Squawk:").' '.$spotter_item['squawk'].'" data-html="true" width="100px" /></a>'."\n"; |
@@ -78,10 +78,10 @@ discard block |
||
| 78 | 78 | print '<div class="details">'; |
| 79 | 79 | print '<div><span>'._("Altitude").'</span>'; |
| 80 | 80 | if (isset($globalGroundAltitude) && $globalGroundAltitude) { |
| 81 | - try { |
|
| 81 | + try { |
|
| 82 | 82 | $groundAltitude = $Elevation->getElevation($spotter_item['latitude'],$spotter_item['longitude']); |
| 83 | - } catch(Exception $e) { |
|
| 84 | - } |
|
| 83 | + } catch(Exception $e) { |
|
| 84 | + } |
|
| 85 | 85 | } |
| 86 | 86 | if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
| 87 | 87 | print $spotter_item['altitude'].' feet (FL'.$spotter_item['altitude'].')'; |
@@ -89,14 +89,14 @@ discard block |
||
| 89 | 89 | print round($spotter_item['altitude']*0.3048).' m (FL'.round($spotter_item['altitude']/100).')'; |
| 90 | 90 | } |
| 91 | 91 | if (isset($groundAltitude) && $groundAltitude < $spotter_item['altitude']*0.3048) { |
| 92 | - print '<br>'; |
|
| 93 | - print '<span>'._("Ground Altitude").'</span>'; |
|
| 94 | - if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
| 92 | + print '<br>'; |
|
| 93 | + print '<span>'._("Ground Altitude").'</span>'; |
|
| 94 | + if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
| 95 | 95 | print round($groundAltitude*3.28084).' feet'; |
| 96 | - } else { |
|
| 96 | + } else { |
|
| 97 | 97 | print round($groundAltitude).' m'; |
| 98 | - } |
|
| 99 | - print '</i>'; |
|
| 98 | + } |
|
| 99 | + print '</i>'; |
|
| 100 | 100 | } |
| 101 | 101 | print '</div>'; |
| 102 | 102 | print '<div><span>'._("Speed").'</span>'; |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | try { |
| 6 | 6 | $GeoidHeight = new GeoidHeight(); |
| 7 | 7 | } catch (Exception $e) { |
| 8 | - echo $e; |
|
| 8 | + echo $e; |
|
| 9 | 9 | } |
| 10 | 10 | $title = _("Geoid Height Calculator"); |
| 11 | 11 | require_once('header.php'); |
@@ -10,10 +10,10 @@ |
||
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * Get SQL query part for filter used |
|
| 14 | - * @param Array $filter the filter |
|
| 15 | - * @return Array the SQL part |
|
| 16 | - */ |
|
| 13 | + * Get SQL query part for filter used |
|
| 14 | + * @param Array $filter the filter |
|
| 15 | + * @return Array the SQL part |
|
| 16 | + */ |
|
| 17 | 17 | public function getFilter($filter = array(),$where = false,$and = false) { |
| 18 | 18 | global $globalFilter, $globalStatsFilters, $globalFilterName; |
| 19 | 19 | if (is_array($globalStatsFilters) && isset($globalStatsFilters[$globalFilterName])) { |
@@ -7,35 +7,35 @@ discard block |
||
| 7 | 7 | public $db; |
| 8 | 8 | |
| 9 | 9 | protected $texts = Array( |
| 10 | - 'MI' => 'Shallow', |
|
| 11 | - 'PR' => 'Partial', |
|
| 12 | - 'BC' => 'Low drifting', |
|
| 13 | - 'BL' => 'Blowing', |
|
| 14 | - 'SH' => 'Showers', |
|
| 15 | - 'TS' => 'Thunderstorm', |
|
| 16 | - 'FZ' => 'Freezing', |
|
| 17 | - 'DZ' => 'Drizzle', |
|
| 18 | - 'RA' => 'Rain', |
|
| 19 | - 'SN' => 'Snow', |
|
| 20 | - 'SG' => 'Snow Grains', |
|
| 21 | - 'IC' => 'Ice crystals', |
|
| 22 | - 'PL' => 'Ice pellets', |
|
| 23 | - 'GR' => 'Hail', |
|
| 24 | - 'GS' => 'Small hail', |
|
| 25 | - 'UP' => 'Unknown', |
|
| 26 | - 'BR' => 'Mist', |
|
| 27 | - 'FG' => 'Fog', |
|
| 28 | - 'FU' => 'Smoke', |
|
| 29 | - 'VA' => 'Volcanic ash', |
|
| 30 | - 'DU' => 'Widespread dust', |
|
| 31 | - 'SA' => 'Sand', |
|
| 32 | - 'HZ' => 'Haze', |
|
| 33 | - 'PY' => 'Spray', |
|
| 34 | - 'PO' => 'Well developed dust / sand whirls', |
|
| 35 | - 'SQ' => 'Squalls', |
|
| 36 | - 'FC' => 'Funnel clouds inc tornadoes or waterspouts', |
|
| 37 | - 'SS' => 'Sandstorm', |
|
| 38 | - 'DS' => 'Duststorm' |
|
| 10 | + 'MI' => 'Shallow', |
|
| 11 | + 'PR' => 'Partial', |
|
| 12 | + 'BC' => 'Low drifting', |
|
| 13 | + 'BL' => 'Blowing', |
|
| 14 | + 'SH' => 'Showers', |
|
| 15 | + 'TS' => 'Thunderstorm', |
|
| 16 | + 'FZ' => 'Freezing', |
|
| 17 | + 'DZ' => 'Drizzle', |
|
| 18 | + 'RA' => 'Rain', |
|
| 19 | + 'SN' => 'Snow', |
|
| 20 | + 'SG' => 'Snow Grains', |
|
| 21 | + 'IC' => 'Ice crystals', |
|
| 22 | + 'PL' => 'Ice pellets', |
|
| 23 | + 'GR' => 'Hail', |
|
| 24 | + 'GS' => 'Small hail', |
|
| 25 | + 'UP' => 'Unknown', |
|
| 26 | + 'BR' => 'Mist', |
|
| 27 | + 'FG' => 'Fog', |
|
| 28 | + 'FU' => 'Smoke', |
|
| 29 | + 'VA' => 'Volcanic ash', |
|
| 30 | + 'DU' => 'Widespread dust', |
|
| 31 | + 'SA' => 'Sand', |
|
| 32 | + 'HZ' => 'Haze', |
|
| 33 | + 'PY' => 'Spray', |
|
| 34 | + 'PO' => 'Well developed dust / sand whirls', |
|
| 35 | + 'SQ' => 'Squalls', |
|
| 36 | + 'FC' => 'Funnel clouds inc tornadoes or waterspouts', |
|
| 37 | + 'SS' => 'Sandstorm', |
|
| 38 | + 'DS' => 'Duststorm' |
|
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | public function __construct($dbc = null) { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | $result['QNH_format'] = $matches[1] == 'Q' ? 'hPa' : 'inHg'; |
| 154 | 154 | */ |
| 155 | 155 | } |
| 156 | - /* |
|
| 156 | + /* |
|
| 157 | 157 | // Wind Direction |
| 158 | 158 | if (preg_match('#^([0-9]{3})V([0-9]{3})$#', $piece, $matches)) { |
| 159 | 159 | $result['wind_direction'] = $matches[1]; |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $result['speed_variable'] = $matches[1]; |
| 165 | 165 | } |
| 166 | 166 | */ |
| 167 | - // Visibility |
|
| 167 | + // Visibility |
|
| 168 | 168 | if (preg_match('#^([0-9]{4})|(([0-9]{1,4})SM)$#', $piece, $matches)) { |
| 169 | 169 | if (isset($matches[3]) && strlen($matches[3]) > 0) { |
| 170 | 170 | $result['visibility'] = (float)$matches[3] * 1609.34; |
@@ -222,9 +222,9 @@ discard block |
||
| 222 | 222 | else $range = array('exact' => (float)$matches[2], 'unit' => 'M'); |
| 223 | 223 | if (isset($matches[3])) { |
| 224 | 224 | $range = Array( |
| 225 | - 'from' => (float)$matches[2], |
|
| 226 | - 'to' => (float)$matches[4], |
|
| 227 | - 'unit' => $matches[5] ? 'FT' : 'M' |
|
| 225 | + 'from' => (float)$matches[2], |
|
| 226 | + 'to' => (float)$matches[4], |
|
| 227 | + 'unit' => $matches[5] ? 'FT' : 'M' |
|
| 228 | 228 | ); |
| 229 | 229 | } |
| 230 | 230 | $result['RVR'] = $matches[1]; |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | return $result; |
| 260 | - } |
|
| 260 | + } |
|
| 261 | 261 | |
| 262 | 262 | public function getMETAR($icao) { |
| 263 | 263 | global $globalMETARcycle, $globalDBdriver; |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | require_once('require/class.Stats.php'); |
| 5 | 5 | require_once('require/class.Language.php'); |
| 6 | 6 | if (!isset($_GET['airport'])) { |
| 7 | - header('Location: '.$globalURL.'/airport'); |
|
| 8 | - die(); |
|
| 7 | + header('Location: '.$globalURL.'/airport'); |
|
| 8 | + die(); |
|
| 9 | 9 | } |
| 10 | 10 | $airport = filter_input(INPUT_GET,'airport',FILTER_SANITIZE_STRING); |
| 11 | 11 | $Spotter = new Spotter(); |