@@ -5,23 +5,23 @@ discard block |
||
5 | 5 | $marine = false; |
6 | 6 | $usecoord = false; |
7 | 7 | if (isset($_GET['tracker'])) { |
8 | - $tracker = true; |
|
8 | + $tracker = true; |
|
9 | 9 | } |
10 | 10 | if (isset($_GET['marine'])) { |
11 | - $marine = true; |
|
11 | + $marine = true; |
|
12 | 12 | } |
13 | 13 | if ($tracker) { |
14 | - require_once('require/class.Tracker.php'); |
|
15 | - require_once('require/class.TrackerLive.php'); |
|
16 | - require_once('require/class.TrackerArchive.php'); |
|
14 | + require_once('require/class.Tracker.php'); |
|
15 | + require_once('require/class.TrackerLive.php'); |
|
16 | + require_once('require/class.TrackerArchive.php'); |
|
17 | 17 | } elseif ($marine) { |
18 | - require_once('require/class.Marine.php'); |
|
19 | - require_once('require/class.MarineLive.php'); |
|
20 | - require_once('require/class.MarineArchive.php'); |
|
18 | + require_once('require/class.Marine.php'); |
|
19 | + require_once('require/class.MarineLive.php'); |
|
20 | + require_once('require/class.MarineArchive.php'); |
|
21 | 21 | } else { |
22 | - require_once('require/class.Spotter.php'); |
|
23 | - require_once('require/class.SpotterLive.php'); |
|
24 | - require_once('require/class.SpotterArchive.php'); |
|
22 | + require_once('require/class.Spotter.php'); |
|
23 | + require_once('require/class.SpotterLive.php'); |
|
24 | + require_once('require/class.SpotterArchive.php'); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | $begintime = microtime(true); |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | $Common = new Common(); |
42 | 42 | |
43 | 43 | if (isset($_GET['download'])) { |
44 | - if ($_GET['download'] == "true") |
|
45 | - { |
|
44 | + if ($_GET['download'] == "true") |
|
45 | + { |
|
46 | 46 | header('Content-disposition: attachment; filename="flightairmap.json"'); |
47 | - } |
|
47 | + } |
|
48 | 48 | } |
49 | 49 | header('Content-Type: text/javascript'); |
50 | 50 | |
@@ -497,17 +497,17 @@ discard block |
||
497 | 497 | if ($history == '' && isset($_COOKIE['history'])) $history = $_COOKIE['history']; |
498 | 498 | |
499 | 499 | if ( |
500 | - (isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true') |
|
501 | - || ((isset($globalMapHistory) && $globalMapHistory) || $allhistory) |
|
500 | + (isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true') |
|
501 | + || ((isset($globalMapHistory) && $globalMapHistory) || $allhistory) |
|
502 | 502 | // || (isset($history) && $history != '' && $history != 'NA' && ($history == $spotter_item['ident'] || $history == $spotter_item['flightaware_id'])) |
503 | 503 | // || (isset($history) && $history != '' && $history != 'NA' && $history == $spotter_item['ident']) |
504 | - || (isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['flightaware_id']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['flightaware_id'])) |
|
505 | - || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['flightaware_id']) && $_GET['flightaware_id'] == $spotter_item['flightaware_id']) |
|
506 | - || (isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['fammarine_id']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['fammarine_id'])) |
|
507 | - || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['fammarine_id']) && $_GET['fammarine_id'] == $spotter_item['fammarine_id']) |
|
508 | - || (isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['famtrackid']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['famtrackid'])) |
|
509 | - || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['famtrackid']) && $_GET['famtrackid'] == $spotter_item['famtrackid']) |
|
510 | - ) { |
|
504 | + || (isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['flightaware_id']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['flightaware_id'])) |
|
505 | + || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['flightaware_id']) && $_GET['flightaware_id'] == $spotter_item['flightaware_id']) |
|
506 | + || (isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['fammarine_id']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['fammarine_id'])) |
|
507 | + || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['fammarine_id']) && $_GET['fammarine_id'] == $spotter_item['fammarine_id']) |
|
508 | + || (isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['famtrackid']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['famtrackid'])) |
|
509 | + || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['famtrackid']) && $_GET['famtrackid'] == $spotter_item['famtrackid']) |
|
510 | + ) { |
|
511 | 511 | if ($tracker) { |
512 | 512 | if ($from_archive || $globalArchive) { |
513 | 513 | $spotter_history_array = $TrackerArchive->getAllArchiveTrackerDataById($spotter_item['famtrackid']); |
@@ -596,65 +596,65 @@ discard block |
||
596 | 596 | } |
597 | 597 | |
598 | 598 | if (((isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['flightaware_id']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['flightaware_id'])) |
599 | - || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['flightaware_id']) && $_GET['flightaware_id'] == $spotter_item['flightaware_id'])) |
|
600 | - && (isset($spotter_item['departure_airport']) |
|
601 | - && $spotter_item['departure_airport'] != 'NA' |
|
602 | - && isset($spotter_item['arrival_airport']) |
|
603 | - && $spotter_item['arrival_airport'] != 'NA' |
|
604 | - && ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == "true") |
|
605 | - || (isset($globalMapRoute) && $globalMapRoute)))) { |
|
606 | - if ($compress) $output_air = '{"type": "Feature","properties": {"c": "'.$spotter_item['ident'].'","t": "route"},"geometry": {"type": "LineString","coordinates": ['; |
|
607 | - else $output_air = '{"type": "Feature","properties": {"callsign": "'.$spotter_item['ident'].'","type": "route"},"geometry": {"type": "LineString","coordinates": ['; |
|
608 | - if (isset($spotter_item['departure_airport_latitude'])) { |
|
599 | + || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['flightaware_id']) && $_GET['flightaware_id'] == $spotter_item['flightaware_id'])) |
|
600 | + && (isset($spotter_item['departure_airport']) |
|
601 | + && $spotter_item['departure_airport'] != 'NA' |
|
602 | + && isset($spotter_item['arrival_airport']) |
|
603 | + && $spotter_item['arrival_airport'] != 'NA' |
|
604 | + && ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == "true") |
|
605 | + || (isset($globalMapRoute) && $globalMapRoute)))) { |
|
606 | + if ($compress) $output_air = '{"type": "Feature","properties": {"c": "'.$spotter_item['ident'].'","t": "route"},"geometry": {"type": "LineString","coordinates": ['; |
|
607 | + else $output_air = '{"type": "Feature","properties": {"callsign": "'.$spotter_item['ident'].'","type": "route"},"geometry": {"type": "LineString","coordinates": ['; |
|
608 | + if (isset($spotter_item['departure_airport_latitude'])) { |
|
609 | 609 | $output_air .= '['.$spotter_item['departure_airport_longitude'].','.$spotter_item['departure_airport_latitude'].'],'; |
610 | - } elseif (isset($spotter_item['departure_airport']) && $spotter_item['departure_airport'] != 'NA') { |
|
610 | + } elseif (isset($spotter_item['departure_airport']) && $spotter_item['departure_airport'] != 'NA') { |
|
611 | 611 | $dairport = $Spotter->getAllAirportInfo($spotter_item['departure_airport']); |
612 | 612 | if (isset($dairport[0]['latitude'])) { |
613 | - $output_air .= '['.$dairport[0]['longitude'].','.$dairport[0]['latitude'].'],'; |
|
613 | + $output_air .= '['.$dairport[0]['longitude'].','.$dairport[0]['latitude'].'],'; |
|
614 | 614 | } |
615 | - } |
|
616 | - if (isset($spotter_item['arrival_airport_latitude'])) { |
|
615 | + } |
|
616 | + if (isset($spotter_item['arrival_airport_latitude'])) { |
|
617 | 617 | $output_air .= '['.$spotter_item['arrival_airport_longitude'].','.$spotter_item['arrival_airport_latitude'].'],'; |
618 | - } elseif (isset($spotter_item['arrival_airport']) && $spotter_item['arrival_airport'] != 'NA') { |
|
618 | + } elseif (isset($spotter_item['arrival_airport']) && $spotter_item['arrival_airport'] != 'NA') { |
|
619 | 619 | $aairport = $Spotter->getAllAirportInfo($spotter_item['arrival_airport']); |
620 | 620 | if (isset($aairport[0]['latitude'])) { |
621 | - $output_air .= '['.$aairport[0]['longitude'].','.$aairport[0]['latitude'].'],'; |
|
621 | + $output_air .= '['.$aairport[0]['longitude'].','.$aairport[0]['latitude'].'],'; |
|
622 | 622 | } |
623 | - } |
|
624 | - $output_air = substr($output_air, 0, -1); |
|
625 | - $output_air .= ']}},'; |
|
626 | - $output .= $output_air; |
|
627 | - unset($output_air); |
|
623 | + } |
|
624 | + $output_air = substr($output_air, 0, -1); |
|
625 | + $output_air .= ']}},'; |
|
626 | + $output .= $output_air; |
|
627 | + unset($output_air); |
|
628 | 628 | } |
629 | 629 | |
630 | 630 | //if (isset($history) && $history != '' && $history == $spotter_item['ident'] && isset($spotter_item['departure_airport']) && $spotter_item['departure_airport'] != 'NA' && isset($spotter_item['arrival_airport']) && $spotter_item['arrival_airport'] != 'NA' && ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == "true") || (!isset($_COOKIE['MapRoute']) && (!isset($globalMapRoute) || (isset($globalMapRoute) && $globalMapRoute))))) { |
631 | 631 | //if (isset($history) && $history != '' && $history == $spotter_item['ident'] && isset($spotter_item['arrival_airport']) && $spotter_item['arrival_airport'] != 'NA' && ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == "true") || (!isset($_COOKIE['MapRoute']) && (!isset($globalMapRoute) || (isset($globalMapRoute) && $globalMapRoute))))) { |
632 | 632 | if (((isset($history) && $history != '' && $history != 'NA' && isset($spotter_item['flightaware_id']) && str_replace('-','',$history) == str_replace('-','',$spotter_item['flightaware_id'])) |
633 | - || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['flightaware_id']) && $_GET['flightaware_id'] == $spotter_item['flightaware_id'])) |
|
634 | - && (isset($spotter_item['arrival_airport']) |
|
635 | - && $spotter_item['arrival_airport'] != 'NA' |
|
636 | - && ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == "true") |
|
637 | - || (!isset($_COOKIE['MapRemainaingRoute']) && (!isset($globalMapRemainingRoute) |
|
638 | - || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)))))) { |
|
639 | - $havedata = false; |
|
640 | - if ($compress) $output_dest = '{"type": "Feature","properties": {"c": "'.$spotter_item['ident'].'","t": "routedest"},"geometry": {"type": "LineString","coordinates": ['; |
|
641 | - else $output_dest = '{"type": "Feature","properties": {"callsign": "'.$spotter_item['ident'].'","type": "routedest"},"geometry": {"type": "LineString","coordinates": ['; |
|
642 | - $output_dest .= '['.$spotter_item['longitude'].','.$spotter_item['latitude'].'],'; |
|
633 | + || (isset($history) && $history == '' && isset($spotter_item['flightaware_id']) && isset($_GET['flightaware_id']) && $_GET['flightaware_id'] == $spotter_item['flightaware_id'])) |
|
634 | + && (isset($spotter_item['arrival_airport']) |
|
635 | + && $spotter_item['arrival_airport'] != 'NA' |
|
636 | + && ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == "true") |
|
637 | + || (!isset($_COOKIE['MapRemainaingRoute']) && (!isset($globalMapRemainingRoute) |
|
638 | + || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)))))) { |
|
639 | + $havedata = false; |
|
640 | + if ($compress) $output_dest = '{"type": "Feature","properties": {"c": "'.$spotter_item['ident'].'","t": "routedest"},"geometry": {"type": "LineString","coordinates": ['; |
|
641 | + else $output_dest = '{"type": "Feature","properties": {"callsign": "'.$spotter_item['ident'].'","type": "routedest"},"geometry": {"type": "LineString","coordinates": ['; |
|
642 | + $output_dest .= '['.$spotter_item['longitude'].','.$spotter_item['latitude'].'],'; |
|
643 | 643 | |
644 | - if (isset($spotter_item['arrival_airport_latitude'])) { |
|
644 | + if (isset($spotter_item['arrival_airport_latitude'])) { |
|
645 | 645 | $output_dest .= '['.$spotter_item['arrival_airport_longitude'].','.$spotter_item['arrival_airport_latitude'].']'; |
646 | 646 | $havedata = true; |
647 | - } elseif (isset($spotter_item['arrival_airport']) && $spotter_item['arrival_airport'] != 'NA') { |
|
647 | + } elseif (isset($spotter_item['arrival_airport']) && $spotter_item['arrival_airport'] != 'NA') { |
|
648 | 648 | $aairport = $Spotter->getAllAirportInfo($spotter_item['arrival_airport']); |
649 | 649 | if (isset($aairport[0]['latitude'])) { |
650 | - $output_dest .= '['.$aairport[0]['longitude'].','.$aairport[0]['latitude'].']'; |
|
651 | - $havedata = true; |
|
650 | + $output_dest .= '['.$aairport[0]['longitude'].','.$aairport[0]['latitude'].']'; |
|
651 | + $havedata = true; |
|
652 | 652 | } |
653 | - } |
|
654 | - //$output_dest = substr($output_dest, 0, -1); |
|
655 | - $output_dest .= ']}},'; |
|
656 | - if ($havedata) $output .= $output_dest; |
|
657 | - unset($output_dest); |
|
653 | + } |
|
654 | + //$output_dest = substr($output_dest, 0, -1); |
|
655 | + $output_dest .= ']}},'; |
|
656 | + if ($havedata) $output .= $output_dest; |
|
657 | + unset($output_dest); |
|
658 | 658 | } |
659 | 659 | } |
660 | 660 | $output = substr($output, 0, -1); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | <?php }; if (isset($globalTracker) && $globalTracker) { ?><td><div id="ibxtracker"><h4><?php echo _("Trackers Detected"); ?></h4><br /><i class="fa fa-spinner fa-pulse fa-fw"></i></div></td><?php } ?> |
41 | 41 | </tr></table></div> |
42 | 42 | <?php |
43 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
43 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
44 | 44 | |
45 | 45 | ?> |
46 | 46 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php"></script> |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
61 | 61 | <?php |
62 | 62 | } |
63 | - } |
|
63 | + } |
|
64 | 64 | ?> |
65 | 65 | <div id="dialog" title="<?php echo _("Session has timed-out"); ?>"> |
66 | 66 | <p><?php echo _("In order to save data consumption web page times out after 30 minutes. Close this dialog to continue."); ?></p> |
@@ -74,34 +74,34 @@ discard block |
||
74 | 74 | <li><a href="#" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
75 | 75 | <li><a href="#" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
76 | 76 | <?php |
77 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
77 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
78 | 78 | if (isset($globalArchive) && $globalArchive == TRUE) { |
79 | 79 | ?> |
80 | 80 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
81 | 81 | <?php |
82 | 82 | } |
83 | - } |
|
83 | + } |
|
84 | 84 | ?> |
85 | 85 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
86 | 86 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
87 | 87 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
88 | 88 | <?php |
89 | - if (isset($globalMap3D) && $globalMap3D) { |
|
89 | + if (isset($globalMap3D) && $globalMap3D) { |
|
90 | 90 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
91 | 91 | ?> |
92 | 92 | <li><a href="#" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
93 | 93 | <?php |
94 | - } else { |
|
95 | - if (isset($globalMapSatellites) && $globalMapSatellites) { |
|
94 | + } else { |
|
95 | + if (isset($globalMapSatellites) && $globalMapSatellites) { |
|
96 | 96 | ?> |
97 | 97 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
98 | 98 | <?php |
99 | - } |
|
99 | + } |
|
100 | 100 | ?> |
101 | 101 | <li><a href="#" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
102 | 102 | <?php |
103 | 103 | } |
104 | - } |
|
104 | + } |
|
105 | 105 | ?> |
106 | 106 | </ul> |
107 | 107 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | ?> |
176 | 176 | </div> |
177 | 177 | <?php |
178 | - if (isset($globalArchive) && $globalArchive == TRUE) { |
|
178 | + if (isset($globalArchive) && $globalArchive == TRUE) { |
|
179 | 179 | ?> |
180 | 180 | <div class="sidebar-pane" id="archive"> |
181 | 181 | <h1 class="sidebar-header"><?php echo _("Playback"); ?> <i>Bêta</i><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | </form> |
236 | 236 | </div> |
237 | 237 | <?php |
238 | - } |
|
238 | + } |
|
239 | 239 | ?> |
240 | 240 | <div class="sidebar-pane" id="settings"> |
241 | 241 | <h1 class="sidebar-header"><?php echo _("Settings"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -246,56 +246,56 @@ discard block |
||
246 | 246 | <?php |
247 | 247 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
248 | 248 | else $MapType = $_COOKIE['MapType']; |
249 | - ?> |
|
249 | + ?> |
|
250 | 250 | <?php |
251 | 251 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
252 | - ?> |
|
252 | + ?> |
|
253 | 253 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
254 | 254 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
255 | 255 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
256 | 256 | <?php |
257 | 257 | } |
258 | - ?> |
|
258 | + ?> |
|
259 | 259 | <?php |
260 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
261 | - ?> |
|
260 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
261 | + ?> |
|
262 | 262 | <?php |
263 | - if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
264 | - ?> |
|
263 | + if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
264 | + ?> |
|
265 | 265 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
266 | 266 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
267 | 267 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
268 | 268 | <?php |
269 | - } |
|
270 | - ?> |
|
269 | + } |
|
270 | + ?> |
|
271 | 271 | <?php |
272 | - if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
273 | - ?> |
|
272 | + if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
273 | + ?> |
|
274 | 274 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
275 | 275 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
276 | 276 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
277 | 277 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
278 | 278 | <?php |
279 | - } |
|
280 | - ?> |
|
279 | + } |
|
280 | + ?> |
|
281 | 281 | <?php |
282 | - if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
283 | - ?> |
|
282 | + if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
283 | + ?> |
|
284 | 284 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
285 | 285 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
286 | 286 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
287 | 287 | <?php |
288 | - } |
|
289 | - ?> |
|
288 | + } |
|
289 | + ?> |
|
290 | 290 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
291 | 291 | <?php |
292 | 292 | } |
293 | - ?> |
|
293 | + ?> |
|
294 | 294 | <?php |
295 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
295 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
296 | 296 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
297 | 297 | else $MapBoxId = $_COOKIE['MapTypeId']; |
298 | - ?> |
|
298 | + ?> |
|
299 | 299 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
300 | 300 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
301 | 301 | <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
@@ -309,13 +309,13 @@ discard block |
||
309 | 309 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
310 | 310 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
311 | 311 | <?php |
312 | - } |
|
313 | - ?> |
|
312 | + } |
|
313 | + ?> |
|
314 | 314 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
315 | 315 | </select> |
316 | 316 | </li> |
317 | 317 | <?php |
318 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
318 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
319 | 319 | ?> |
320 | 320 | <li><?php echo _("Type of Terrain:"); ?> |
321 | 321 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -325,10 +325,10 @@ discard block |
||
325 | 325 | </select> |
326 | 326 | </li> |
327 | 327 | <?php |
328 | - } |
|
328 | + } |
|
329 | 329 | ?> |
330 | 330 | <?php |
331 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
331 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
332 | 332 | ?> |
333 | 333 | |
334 | 334 | <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') print 'checked'; ?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
@@ -337,75 +337,75 @@ discard block |
||
337 | 337 | <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || !isset($_COOKIE['MapRemainingRoute']) || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) print 'checked'; ?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
338 | 338 | <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) print 'checked'; ?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
339 | 339 | <?php |
340 | - } |
|
340 | + } |
|
341 | 341 | ?> |
342 | 342 | <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true') print 'checked'; ?> ><?php echo _("Display airports on map"); ?></label></div></li> |
343 | 343 | <?php |
344 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
344 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
345 | 345 | ?> |
346 | 346 | <li><div class="checkbox"><label><input type="checkbox" name="displayminimap" value="1" onclick="clickDisplayMinimap(this)" <?php if (!isset($_COOKIE['displayminimap']) || (isset($_COOKIE['displayminimap']) && $_COOKIE['displayminimap'] == 'true')) print 'checked'; ?> ><?php echo _("Show mini-map"); ?></label></div></li> |
347 | 347 | <?php |
348 | - } |
|
349 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
348 | + } |
|
349 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
350 | 350 | ?> |
351 | 351 | <li><div class="checkbox"><label><input type="checkbox" name="displaysanta" value="1" onclick="clickSanta(this)"><i class="fa fa-snowflake-o" aria-hidden="true"></i> <?php echo _("Show Santa Claus now"); ?> <i class="fa fa-snowflake-o" aria-hidden="true"></i></label></div></li> |
352 | 352 | <?php |
353 | - } |
|
353 | + } |
|
354 | 354 | ?> |
355 | 355 | |
356 | 356 | <?php |
357 | 357 | if (function_exists('array_column')) { |
358 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
359 | - ?> |
|
358 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
359 | + ?> |
|
360 | 360 | <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) print 'checked'; ?> ><?php echo _("Display polar on map"); ?></label></div></li> |
361 | 361 | <?php |
362 | - } |
|
362 | + } |
|
363 | 363 | } elseif (isset($globalSources)) { |
364 | - $dispolar = false; |
|
365 | - foreach ($globalSources as $testsource) { |
|
366 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
367 | - } |
|
368 | - if ($dispolar) { |
|
369 | - ?> |
|
364 | + $dispolar = false; |
|
365 | + foreach ($globalSources as $testsource) { |
|
366 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
367 | + } |
|
368 | + if ($dispolar) { |
|
369 | + ?> |
|
370 | 370 | <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) print 'checked'; ?> ><?php echo _("Display polar on map"); ?></label></div></li> |
371 | 371 | <?php |
372 | - } |
|
373 | - } |
|
374 | - ?> |
|
372 | + } |
|
373 | + } |
|
374 | + ?> |
|
375 | 375 | <?php |
376 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
376 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
377 | 377 | ?> |
378 | 378 | |
379 | 379 | <?php |
380 | 380 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
381 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
382 | - ?> |
|
381 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
382 | + ?> |
|
383 | 383 | <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') print 'checked'; ?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
384 | 384 | <?php |
385 | 385 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
386 | - ?> |
|
386 | + ?> |
|
387 | 387 | <li><?php echo _("Aircraft icon color:"); ?> |
388 | 388 | <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print '1a3151'; ?>"> |
389 | 389 | </li> |
390 | 390 | <?php |
391 | 391 | } |
392 | - } |
|
393 | - } |
|
394 | - ?> |
|
392 | + } |
|
393 | + } |
|
394 | + ?> |
|
395 | 395 | <?php |
396 | 396 | if (isset($globalMarine) && $globalMarine === TRUE) { |
397 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
398 | - ?> |
|
397 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
398 | + ?> |
|
399 | 399 | <li><?php echo _("Marine icon color:"); ?> |
400 | 400 | <input type="color" name="marinecolor" id="html5colorpicker" onchange="iconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) print $_COOKIE['MarineIconColor']; elseif (isset($globalMarineIconColor)) print $globalMarineIconColor; else print '1a3151'; ?>"> |
401 | 401 | </li> |
402 | 402 | <?php |
403 | - } |
|
404 | - } |
|
405 | - ?> |
|
403 | + } |
|
404 | + } |
|
405 | + ?> |
|
406 | 406 | <?php |
407 | 407 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
408 | - ?> |
|
408 | + ?> |
|
409 | 409 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
410 | 410 | <div class="range"> |
411 | 411 | <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?>"> |
@@ -414,9 +414,9 @@ discard block |
||
414 | 414 | </li> |
415 | 415 | <?php |
416 | 416 | } |
417 | - ?> |
|
417 | + ?> |
|
418 | 418 | <?php |
419 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
419 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
420 | 420 | ?> |
421 | 421 | <?php |
422 | 422 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | </li> |
438 | 438 | <?php |
439 | 439 | } |
440 | - } |
|
440 | + } |
|
441 | 441 | ?> |
442 | 442 | <li><?php echo _("Distance unit:"); ?> |
443 | 443 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -470,19 +470,19 @@ discard block |
||
470 | 470 | <ul> |
471 | 471 | <?php |
472 | 472 | if (!isset($globalAircraft) || $globalAircraft) { |
473 | - ?> |
|
473 | + ?> |
|
474 | 474 | <?php |
475 | 475 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
476 | - ?> |
|
476 | + ?> |
|
477 | 477 | <?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['ShowVATSIM']) && $_COOKIE['ShowVATSIM'] == 'true') || !isset($_COOKIE['ShowVATSIM'])) print 'checked'; ?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
478 | 478 | <?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['ShowIVAO']) && $_COOKIE['ShowIVAO'] == 'true') || !isset($_COOKIE['ShowIVAO'])) print 'checked'; ?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
479 | 479 | <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['ShowVMS']) && $_COOKIE['ShowVMS'] == 'true') || !isset($_COOKIE['ShowVMS'])) print 'checked'; ?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
480 | 480 | <?php |
481 | 481 | } |
482 | - ?> |
|
482 | + ?> |
|
483 | 483 | <?php |
484 | 484 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
485 | - ?> |
|
485 | + ?> |
|
486 | 486 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
487 | 487 | <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['ShowSBS1']) && $_COOKIE['ShowSBS1'] == 'true') || !isset($_COOKIE['ShowSBS1'])) print 'checked'; ?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
488 | 488 | <?php } ?> |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | <?php } ?> |
492 | 492 | <?php |
493 | 493 | } |
494 | - ?> |
|
494 | + ?> |
|
495 | 495 | <li><?php echo _("Display airlines:"); ?> |
496 | 496 | <br/> |
497 | 497 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -511,14 +511,14 @@ discard block |
||
511 | 511 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
512 | 512 | } |
513 | 513 | } |
514 | - ?> |
|
514 | + ?> |
|
515 | 515 | </select> |
516 | 516 | </li> |
517 | 517 | <?php |
518 | 518 | $Spotter = new Spotter(); |
519 | 519 | $allalliancenames = $Spotter->getAllAllianceNames(); |
520 | 520 | if (!empty($allalliancenames)) { |
521 | - ?> |
|
521 | + ?> |
|
522 | 522 | <li><?php echo _("Display alliance:"); ?> |
523 | 523 | <br/> |
524 | 524 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -532,18 +532,18 @@ discard block |
||
532 | 532 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
533 | 533 | } |
534 | 534 | } |
535 | - ?> |
|
535 | + ?> |
|
536 | 536 | </select> |
537 | 537 | </li> |
538 | 538 | <?php |
539 | 539 | } |
540 | - ?> |
|
540 | + ?> |
|
541 | 541 | <?php |
542 | 542 | } |
543 | - ?> |
|
543 | + ?> |
|
544 | 544 | <?php |
545 | 545 | if (isset($globalAPRS) && $globalAPRS) { |
546 | - ?> |
|
546 | + ?> |
|
547 | 547 | <li><?php echo _("Display APRS sources name:"); ?> |
548 | 548 | <select class="selectpicker" multiple onchange="sources(this);"> |
549 | 549 | <?php |
@@ -555,18 +555,18 @@ discard block |
||
555 | 555 | echo '<option value="'.$source['source_name'].'">'.$source['source_name'].'</option>'; |
556 | 556 | } |
557 | 557 | } |
558 | - ?> |
|
558 | + ?> |
|
559 | 559 | </select> |
560 | 560 | </li> |
561 | 561 | <?php |
562 | 562 | } |
563 | - ?> |
|
563 | + ?> |
|
564 | 564 | <?php |
565 | 565 | if (!isset($globalAircraft) && $globalAircraft) { |
566 | - ?> |
|
566 | + ?> |
|
567 | 567 | <?php |
568 | 568 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
569 | - ?> |
|
569 | + ?> |
|
570 | 570 | <li><?php echo _("Display airlines of type:"); ?><br/> |
571 | 571 | <select class="selectpicker" onchange="airlinestype(this);"> |
572 | 572 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -577,14 +577,14 @@ discard block |
||
577 | 577 | </li> |
578 | 578 | <?php |
579 | 579 | } |
580 | - ?> |
|
580 | + ?> |
|
581 | 581 | <li> |
582 | 582 | <?php echo _("Display flight with ident:"); ?> |
583 | 583 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
584 | 584 | </li> |
585 | 585 | <?php |
586 | 586 | } |
587 | - ?> |
|
587 | + ?> |
|
588 | 588 | </ul> |
589 | 589 | </form> |
590 | 590 | <form method="post"> |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | </form> |
594 | 594 | </div> |
595 | 595 | <?php |
596 | - if (isset($globalMapSatellites) && $globalMapSatellites && isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
596 | + if (isset($globalMapSatellites) && $globalMapSatellites && isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
597 | 597 | ?> |
598 | 598 | <div class="sidebar-pane" id="satellites"> |
599 | 599 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -633,14 +633,14 @@ discard block |
||
633 | 633 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
634 | 634 | } |
635 | 635 | } |
636 | - ?> |
|
636 | + ?> |
|
637 | 637 | </select> |
638 | 638 | </li> |
639 | 639 | </ul> |
640 | 640 | </form> |
641 | 641 | </div> |
642 | 642 | <?php |
643 | - } |
|
643 | + } |
|
644 | 644 | ?> |
645 | 645 | </div> |
646 | 646 | </div> |