@@ -516,8 +516,8 @@ discard block |
||
516 | 516 | } |
517 | 517 | } |
518 | 518 | <?php |
519 | - } else { |
|
520 | - ?> |
|
519 | + } else { |
|
520 | + ?> |
|
521 | 521 | if (map.getZoom() > 7) { |
522 | 522 | var style = { |
523 | 523 | "color": "#1a3151", |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | layer_marine_data.addLayer(layer); |
537 | 537 | } |
538 | 538 | <?php |
539 | - } |
|
539 | + } |
|
540 | 540 | ?> |
541 | 541 | } |
542 | 542 | } |
@@ -575,8 +575,8 @@ discard block |
||
575 | 575 | } |
576 | 576 | } |
577 | 577 | <?php |
578 | - } else { |
|
579 | - ?> |
|
578 | + } else { |
|
579 | + ?> |
|
580 | 580 | if (map.getZoom() > 7) { |
581 | 581 | var style = { |
582 | 582 | "color": "#1a3151", |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | layer_tracker_data.addLayer(layer); |
596 | 596 | } |
597 | 597 | <?php |
598 | - } |
|
598 | + } |
|
599 | 599 | ?> |
600 | 600 | } |
601 | 601 | } |
@@ -740,11 +740,11 @@ discard block |
||
740 | 740 | $( document ).ready(function() { |
741 | 741 | map.on('moveend', function() { |
742 | 742 | <?php |
743 | - if (isset($globalMapUseBbox) && $globalMapUseBbox && (!isset($archive) || $archive === false)) { |
|
743 | + if (isset($globalMapUseBbox) && $globalMapUseBbox && (!isset($archive) || $archive === false)) { |
|
744 | 744 | ?> |
745 | 745 | getLiveTrackerData(1); |
746 | 746 | <?php |
747 | - } |
|
747 | + } |
|
748 | 748 | ?> |
749 | 749 | }); |
750 | 750 |
@@ -98,21 +98,21 @@ discard block |
||
98 | 98 | var entityid = entity.id; |
99 | 99 | var lastupdateentity = entity.properties.valueOf('lastupdate')._lastupdate._value; |
100 | 100 | <?php |
101 | - if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
101 | + if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
102 | 102 | ?> |
103 | 103 | if (lastupdateentity != lastupdatetracker) { |
104 | 104 | viewer.dataSources.get(dsn).entities.remove(entity); |
105 | 105 | czmldstracker.entities.removeById(entityid); |
106 | 106 | } |
107 | 107 | <?php |
108 | - } else { |
|
108 | + } else { |
|
109 | 109 | ?> |
110 | 110 | if (parseInt(lastupdateentity) < Math.floor(Date.now()-<?php if (isset($globalMapRefresh)) print $globalMapRefresh*2000; else print '60000'; ?>)) { |
111 | 111 | viewer.dataSources.get(dsn).entities.remove(entity); |
112 | 112 | czmldstracker.entities.removeById(entityid); |
113 | 113 | } |
114 | 114 | <?php |
115 | - } |
|
115 | + } |
|
116 | 116 | ?> |
117 | 117 | } |
118 | 118 | } |
@@ -145,15 +145,15 @@ discard block |
||
145 | 145 | function updateTrackerData() { |
146 | 146 | lastupdatetracker = Date.now(); |
147 | 147 | <?php |
148 | - if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
148 | + if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
149 | 149 | ?> |
150 | 150 | var livetrackerdata = czmldstracker.process('<?php print $globalURL; ?>/live-czml.php?tracker&coord='+bbox()+'&update=' + lastupdatetracker); |
151 | 151 | <?php |
152 | - } else { |
|
152 | + } else { |
|
153 | 153 | ?> |
154 | 154 | var livetrackerdata = czmldstracker.process('<?php print $globalURL; ?>/live-czml.php?tracker&update=' + lastupdatetracker); |
155 | 155 | <?php |
156 | - } |
|
156 | + } |
|
157 | 157 | ?> |
158 | 158 | livetrackerdata.then(function (data) { |
159 | 159 | displayTrackerData(data); |
@@ -209,13 +209,13 @@ discard block |
||
209 | 209 | }, Cesium.ScreenSpaceEventType.LEFT_CLICK); |
210 | 210 | camera.moveEnd.addEventListener(function() { |
211 | 211 | <?php |
212 | - if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
212 | + if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
213 | 213 | ?> |
214 | 214 | if (typeof archive == 'undefined' || archive == false) { |
215 | 215 | updateTrackerData(); |
216 | 216 | } |
217 | 217 | <?php |
218 | - } |
|
218 | + } |
|
219 | 219 | ?> |
220 | 220 | }); |
221 | 221 |
@@ -289,8 +289,8 @@ discard block |
||
289 | 289 | var entityid = entity.id; |
290 | 290 | var lastupdateentity = entity.properties.lastupdate; |
291 | 291 | <?php |
292 | - if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
293 | - // Remove flights not in latest CZML |
|
292 | + if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
293 | + // Remove flights not in latest CZML |
|
294 | 294 | ?> |
295 | 295 | if (lastupdateentity != lastupdate) { |
296 | 296 | console.log('Remove...'); |
@@ -298,14 +298,14 @@ discard block |
||
298 | 298 | czmlds.entities.removeById(entityid); |
299 | 299 | } |
300 | 300 | <?php |
301 | - } else { |
|
301 | + } else { |
|
302 | 302 | ?> |
303 | 303 | if (parseInt(lastupdateentity) < Math.floor(Date.now()-<?php if (isset($globalMapRefresh)) print $globalMapRefresh*2000; else print '60000'; ?>)) { |
304 | 304 | viewer.dataSources.get(dsn).entities.remove(entity); |
305 | 305 | czmlds.entities.removeById(entityid); |
306 | 306 | } |
307 | 307 | <?php |
308 | - } |
|
308 | + } |
|
309 | 309 | ?> |
310 | 310 | } |
311 | 311 | } |
@@ -762,12 +762,12 @@ discard block |
||
762 | 762 | } |
763 | 763 | |
764 | 764 | <?php |
765 | - if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM)) { |
|
765 | + if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM)) { |
|
766 | 766 | ?> |
767 | 767 | update_atcLayer(); |
768 | 768 | setInterval(function(){update_atcLayer()},<?php if (isset($globalMapRefresh)) print $globalMapRefresh*1000*2; else print '60000'; ?>); |
769 | 769 | <?php |
770 | - } |
|
770 | + } |
|
771 | 771 | ?> |
772 | 772 | |
773 | 773 | function iconColor(color) { |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | }; |
386 | 386 | |
387 | 387 | <?php |
388 | - if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) { |
|
388 | + if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) { |
|
389 | 389 | ?> |
390 | 390 | function tskPopup (feature, layer) { |
391 | 391 | var output = ''; |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | }; |
421 | 421 | update_tsk(); |
422 | 422 | <?php |
423 | - } |
|
423 | + } |
|
424 | 424 | ?> |
425 | 425 | map.on('moveend', function() { |
426 | 426 | if (map.hasLayer(locationsLayer) == true) { |
@@ -434,10 +434,10 @@ discard block |
||
434 | 434 | setInterval(function(){if (noTimeout) { map.removeLayer(locationsLayer); update_locationsLayer();} },<?php if (isset($globalMapRefresh)) print $globalMapRefresh*1000*2; else print '60000'; ?>); |
435 | 435 | } |
436 | 436 | <?php |
437 | - // Add support for custom json via $globalMapJson |
|
438 | - if (isset($globalMapJson) && is_array($globalMapJson)) { |
|
437 | + // Add support for custom json via $globalMapJson |
|
438 | + if (isset($globalMapJson) && is_array($globalMapJson)) { |
|
439 | 439 | foreach ($globalMapJson as $json) { |
440 | - if (isset($json['url'])) { |
|
440 | + if (isset($json['url'])) { |
|
441 | 441 | ?> |
442 | 442 | update_genLayer('<?php print $json['url']; ?>'); |
443 | 443 | <?php |
@@ -446,9 +446,9 @@ discard block |
||
446 | 446 | setInterval(function(){if (noTimeout) update_genLayer('<?php print $json['url']; ?>')}, <?php print $json['refresh']; ?>); |
447 | 447 | <?php |
448 | 448 | } |
449 | - } |
|
449 | + } |
|
450 | + } |
|
450 | 451 | } |
451 | - } |
|
452 | 452 | |
453 | 453 | ?> |
454 | 454 | //adds the bootstrap tooltip to the map icons |
@@ -10,10 +10,10 @@ discard block |
||
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, $globalDBdriver; |
19 | 19 | $filters = array(); |
@@ -159,11 +159,11 @@ discard block |
||
159 | 159 | |
160 | 160 | |
161 | 161 | /** |
162 | - * Gets all the spotter information based on a particular callsign |
|
163 | - * |
|
164 | - * @return Array the spotter information |
|
165 | - * |
|
166 | - */ |
|
162 | + * Gets all the spotter information based on a particular callsign |
|
163 | + * |
|
164 | + * @return Array the spotter information |
|
165 | + * |
|
166 | + */ |
|
167 | 167 | public function getLastArchiveSpotterDataByIdent($ident) { |
168 | 168 | $Spotter = new Spotter($this->db); |
169 | 169 | date_default_timezone_set('UTC'); |
@@ -179,11 +179,11 @@ discard block |
||
179 | 179 | |
180 | 180 | |
181 | 181 | /** |
182 | - * Gets last the spotter information based on a particular id |
|
183 | - * |
|
184 | - * @return Array the spotter information |
|
185 | - * |
|
186 | - */ |
|
182 | + * Gets last the spotter information based on a particular id |
|
183 | + * |
|
184 | + * @return Array the spotter information |
|
185 | + * |
|
186 | + */ |
|
187 | 187 | public function getLastArchiveSpotterDataById($id) { |
188 | 188 | $Spotter = new Spotter($this->db); |
189 | 189 | date_default_timezone_set('UTC'); |
@@ -209,11 +209,11 @@ discard block |
||
209 | 209 | } |
210 | 210 | |
211 | 211 | /** |
212 | - * Gets all the spotter information based on a particular id |
|
213 | - * |
|
214 | - * @return Array the spotter information |
|
215 | - * |
|
216 | - */ |
|
212 | + * Gets all the spotter information based on a particular id |
|
213 | + * |
|
214 | + * @return Array the spotter information |
|
215 | + * |
|
216 | + */ |
|
217 | 217 | public function getAllArchiveSpotterDataById($id) { |
218 | 218 | date_default_timezone_set('UTC'); |
219 | 219 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -234,11 +234,11 @@ discard block |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | /** |
237 | - * Gets coordinate & time spotter information based on a particular id |
|
238 | - * |
|
239 | - * @return Array the spotter information |
|
240 | - * |
|
241 | - */ |
|
237 | + * Gets coordinate & time spotter information based on a particular id |
|
238 | + * |
|
239 | + * @return Array the spotter information |
|
240 | + * |
|
241 | + */ |
|
242 | 242 | public function getCoordArchiveSpotterDataById($id) { |
243 | 243 | date_default_timezone_set('UTC'); |
244 | 244 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -255,11 +255,11 @@ discard block |
||
255 | 255 | } |
256 | 256 | |
257 | 257 | /** |
258 | - * Gets coordinate & time spotter information based on a particular id |
|
259 | - * |
|
260 | - * @return Array the spotter information |
|
261 | - * |
|
262 | - */ |
|
258 | + * Gets coordinate & time spotter information based on a particular id |
|
259 | + * |
|
260 | + * @return Array the spotter information |
|
261 | + * |
|
262 | + */ |
|
263 | 263 | public function getCoordArchiveSpotterDataByIdDate($id,$begindate,$enddate) { |
264 | 264 | date_default_timezone_set('UTC'); |
265 | 265 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -277,11 +277,11 @@ discard block |
||
277 | 277 | |
278 | 278 | |
279 | 279 | /** |
280 | - * Gets altitude information based on a particular callsign |
|
281 | - * |
|
282 | - * @return Array the spotter information |
|
283 | - * |
|
284 | - */ |
|
280 | + * Gets altitude information based on a particular callsign |
|
281 | + * |
|
282 | + * @return Array the spotter information |
|
283 | + * |
|
284 | + */ |
|
285 | 285 | public function getAltitudeArchiveSpotterDataByIdent($ident) { |
286 | 286 | |
287 | 287 | date_default_timezone_set('UTC'); |
@@ -302,11 +302,11 @@ discard block |
||
302 | 302 | } |
303 | 303 | |
304 | 304 | /** |
305 | - * Gets altitude information based on a particular id |
|
306 | - * |
|
307 | - * @return Array the spotter information |
|
308 | - * |
|
309 | - */ |
|
305 | + * Gets altitude information based on a particular id |
|
306 | + * |
|
307 | + * @return Array the spotter information |
|
308 | + * |
|
309 | + */ |
|
310 | 310 | public function getAltitudeArchiveSpotterDataById($id) { |
311 | 311 | |
312 | 312 | date_default_timezone_set('UTC'); |
@@ -327,11 +327,11 @@ discard block |
||
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
330 | - * Gets altitude & speed information based on a particular id |
|
331 | - * |
|
332 | - * @return Array the spotter information |
|
333 | - * |
|
334 | - */ |
|
330 | + * Gets altitude & speed information based on a particular id |
|
331 | + * |
|
332 | + * @return Array the spotter information |
|
333 | + * |
|
334 | + */ |
|
335 | 335 | public function getAltitudeSpeedArchiveSpotterDataById($id) { |
336 | 336 | date_default_timezone_set('UTC'); |
337 | 337 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -348,11 +348,11 @@ discard block |
||
348 | 348 | } |
349 | 349 | |
350 | 350 | /** |
351 | - * Gets altitude information based on a particular callsign |
|
352 | - * |
|
353 | - * @return Array the spotter information |
|
354 | - * |
|
355 | - */ |
|
351 | + * Gets altitude information based on a particular callsign |
|
352 | + * |
|
353 | + * @return Array the spotter information |
|
354 | + * |
|
355 | + */ |
|
356 | 356 | public function getLastAltitudeArchiveSpotterDataByIdent($ident) { |
357 | 357 | date_default_timezone_set('UTC'); |
358 | 358 | $ident = filter_var($ident, FILTER_SANITIZE_STRING); |
@@ -402,11 +402,11 @@ discard block |
||
402 | 402 | } |
403 | 403 | |
404 | 404 | /** |
405 | - * Gets Minimal Live Spotter data |
|
406 | - * |
|
407 | - * @return Array the spotter information |
|
408 | - * |
|
409 | - */ |
|
405 | + * Gets Minimal Live Spotter data |
|
406 | + * |
|
407 | + * @return Array the spotter information |
|
408 | + * |
|
409 | + */ |
|
410 | 410 | public function getMinLiveSpotterData($begindate,$enddate,$filter = array(),$part = 0) { |
411 | 411 | global $globalDBdriver, $globalLiveInterval; |
412 | 412 | date_default_timezone_set('UTC'); |
@@ -466,11 +466,11 @@ discard block |
||
466 | 466 | } |
467 | 467 | |
468 | 468 | /** |
469 | - * Gets Minimal Live Spotter data |
|
470 | - * |
|
471 | - * @return Array the spotter information |
|
472 | - * |
|
473 | - */ |
|
469 | + * Gets Minimal Live Spotter data |
|
470 | + * |
|
471 | + * @return Array the spotter information |
|
472 | + * |
|
473 | + */ |
|
474 | 474 | public function getMinLiveSpotterDataPlayback($begindate,$enddate,$filter = array()) { |
475 | 475 | global $globalDBdriver, $globalLiveInterval; |
476 | 476 | date_default_timezone_set('UTC'); |
@@ -537,11 +537,11 @@ discard block |
||
537 | 537 | } |
538 | 538 | |
539 | 539 | /** |
540 | - * Gets count Live Spotter data |
|
541 | - * |
|
542 | - * @return Array the spotter information |
|
543 | - * |
|
544 | - */ |
|
540 | + * Gets count Live Spotter data |
|
541 | + * |
|
542 | + * @return Array the spotter information |
|
543 | + * |
|
544 | + */ |
|
545 | 545 | public function getLiveSpotterCount($begindate,$enddate,$filter = array()) { |
546 | 546 | global $globalDBdriver, $globalLiveInterval; |
547 | 547 | date_default_timezone_set('UTC'); |
@@ -587,11 +587,11 @@ discard block |
||
587 | 587 | // Spotter_Archive_output |
588 | 588 | |
589 | 589 | /** |
590 | - * Gets all the spotter information |
|
591 | - * |
|
592 | - * @return Array the spotter information |
|
593 | - * |
|
594 | - */ |
|
590 | + * Gets all the spotter information |
|
591 | + * |
|
592 | + * @return Array the spotter information |
|
593 | + * |
|
594 | + */ |
|
595 | 595 | public function searchSpotterData($q = '', $registration = '', $aircraft_icao = '', $aircraft_manufacturer = '', $highlights = '', $airline_icao = '', $airline_country = '', $airline_type = '', $airport = '', $airport_country = '', $callsign = '', $departure_airport_route = '', $arrival_airport_route = '', $owner = '',$pilot_id = '',$pilot_name = '',$altitude = '', $date_posted = '', $limit = '', $sort = '', $includegeodata = '',$origLat = '',$origLon = '',$dist = '', $filters=array()) { |
596 | 596 | global $globalTimezone, $globalDBdriver; |
597 | 597 | require_once(dirname(__FILE__).'/class.Translation.php'); |
@@ -883,11 +883,11 @@ discard block |
||
883 | 883 | } |
884 | 884 | |
885 | 885 | /** |
886 | - * Gets all the spotter information based on the callsign |
|
887 | - * |
|
888 | - * @return Array the spotter information |
|
889 | - * |
|
890 | - */ |
|
886 | + * Gets all the spotter information based on the callsign |
|
887 | + * |
|
888 | + * @return Array the spotter information |
|
889 | + * |
|
890 | + */ |
|
891 | 891 | public function getSpotterDataByIdent($ident = '', $limit = '', $sort = '') { |
892 | 892 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
893 | 893 | |
@@ -935,11 +935,11 @@ discard block |
||
935 | 935 | |
936 | 936 | |
937 | 937 | /** |
938 | - * Gets all the spotter information based on the owner |
|
939 | - * |
|
940 | - * @return Array the spotter information |
|
941 | - * |
|
942 | - */ |
|
938 | + * Gets all the spotter information based on the owner |
|
939 | + * |
|
940 | + * @return Array the spotter information |
|
941 | + * |
|
942 | + */ |
|
943 | 943 | public function getSpotterDataByOwner($owner = '', $limit = '', $sort = '', $filter = array()) { |
944 | 944 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
945 | 945 | |
@@ -987,11 +987,11 @@ discard block |
||
987 | 987 | } |
988 | 988 | |
989 | 989 | /** |
990 | - * Gets all the spotter information based on the pilot |
|
991 | - * |
|
992 | - * @return Array the spotter information |
|
993 | - * |
|
994 | - */ |
|
990 | + * Gets all the spotter information based on the pilot |
|
991 | + * |
|
992 | + * @return Array the spotter information |
|
993 | + * |
|
994 | + */ |
|
995 | 995 | public function getSpotterDataByPilot($pilot = '', $limit = '', $sort = '', $filter = array()) { |
996 | 996 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
997 | 997 | |
@@ -1035,11 +1035,11 @@ discard block |
||
1035 | 1035 | } |
1036 | 1036 | |
1037 | 1037 | /** |
1038 | - * Gets all number of flight over countries |
|
1039 | - * |
|
1040 | - * @return Array the airline country list |
|
1041 | - * |
|
1042 | - */ |
|
1038 | + * Gets all number of flight over countries |
|
1039 | + * |
|
1040 | + * @return Array the airline country list |
|
1041 | + * |
|
1042 | + */ |
|
1043 | 1043 | public function countAllFlightOverCountries($limit = true,$olderthanmonths = 0,$sincedate = '') { |
1044 | 1044 | global $globalDBdriver; |
1045 | 1045 | /* |
@@ -1079,11 +1079,11 @@ discard block |
||
1079 | 1079 | } |
1080 | 1080 | |
1081 | 1081 | /** |
1082 | - * Gets all number of flight over countries |
|
1083 | - * |
|
1084 | - * @return Array the airline country list |
|
1085 | - * |
|
1086 | - */ |
|
1082 | + * Gets all number of flight over countries |
|
1083 | + * |
|
1084 | + * @return Array the airline country list |
|
1085 | + * |
|
1086 | + */ |
|
1087 | 1087 | public function countAllFlightOverCountriesByAirlines($limit = true,$olderthanmonths = 0,$sincedate = '') { |
1088 | 1088 | global $globalDBdriver; |
1089 | 1089 | /* |
@@ -1124,11 +1124,11 @@ discard block |
||
1124 | 1124 | } |
1125 | 1125 | |
1126 | 1126 | /** |
1127 | - * Gets last spotter information based on a particular callsign |
|
1128 | - * |
|
1129 | - * @return Array the spotter information |
|
1130 | - * |
|
1131 | - */ |
|
1127 | + * Gets last spotter information based on a particular callsign |
|
1128 | + * |
|
1129 | + * @return Array the spotter information |
|
1130 | + * |
|
1131 | + */ |
|
1132 | 1132 | public function getDateArchiveSpotterDataById($id,$date) { |
1133 | 1133 | $Spotter = new Spotter($this->db); |
1134 | 1134 | date_default_timezone_set('UTC'); |
@@ -1140,11 +1140,11 @@ discard block |
||
1140 | 1140 | } |
1141 | 1141 | |
1142 | 1142 | /** |
1143 | - * Gets all the spotter information based on a particular callsign |
|
1144 | - * |
|
1145 | - * @return Array the spotter information |
|
1146 | - * |
|
1147 | - */ |
|
1143 | + * Gets all the spotter information based on a particular callsign |
|
1144 | + * |
|
1145 | + * @return Array the spotter information |
|
1146 | + * |
|
1147 | + */ |
|
1148 | 1148 | public function getDateArchiveSpotterDataByIdent($ident,$date) { |
1149 | 1149 | $Spotter = new Spotter($this->db); |
1150 | 1150 | date_default_timezone_set('UTC'); |
@@ -1156,11 +1156,11 @@ discard block |
||
1156 | 1156 | } |
1157 | 1157 | |
1158 | 1158 | /** |
1159 | - * Gets all the spotter information based on the airport |
|
1160 | - * |
|
1161 | - * @return Array the spotter information |
|
1162 | - * |
|
1163 | - */ |
|
1159 | + * Gets all the spotter information based on the airport |
|
1160 | + * |
|
1161 | + * @return Array the spotter information |
|
1162 | + * |
|
1163 | + */ |
|
1164 | 1164 | public function getSpotterDataByAirport($airport = '', $limit = '', $sort = '',$filters = array()) { |
1165 | 1165 | global $global_query; |
1166 | 1166 | $Spotter = new Spotter($this->db); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | <?php }; if (isset($globalSatellite) && $globalSatellite) { ?><td><div id="ibxsatellite"><h4><?php echo _("Satellites Displayed"); ?></h4><br /><i class="fa fa-spinner fa-pulse fa-fw"></i></div></td><?php } ?> |
51 | 51 | </tr></table></div> |
52 | 52 | <?php |
53 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
53 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
54 | 54 | ?> |
55 | 55 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script> |
56 | 56 | <?php |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
75 | 75 | <?php |
76 | 76 | } |
77 | - } |
|
77 | + } |
|
78 | 78 | ?> |
79 | 79 | |
80 | 80 | <div id="sidebar" class="sidebar collapsed"> |
@@ -85,34 +85,34 @@ discard block |
||
85 | 85 | <li><a href="" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
86 | 86 | <li><a href="" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
87 | 87 | <?php |
88 | - //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) { |
|
88 | + //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) { |
|
89 | 89 | if (isset($globalArchive) && $globalArchive == TRUE && (!isset($globalAircraft) || $globalAircraft === TRUE)) { |
90 | 90 | ?> |
91 | 91 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
92 | 92 | <?php |
93 | 93 | } |
94 | - //} |
|
94 | + //} |
|
95 | 95 | ?> |
96 | 96 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
97 | 97 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
98 | 98 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
99 | 99 | <?php |
100 | - if (isset($globalMap3D) && $globalMap3D) { |
|
100 | + if (isset($globalMap3D) && $globalMap3D) { |
|
101 | 101 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
102 | 102 | ?> |
103 | 103 | <li><a href="" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
104 | 104 | <?php |
105 | 105 | } else { |
106 | - if (isset($globalSatellite) && $globalSatellite) { |
|
106 | + if (isset($globalSatellite) && $globalSatellite) { |
|
107 | 107 | ?> |
108 | 108 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
109 | 109 | <?php |
110 | - } |
|
110 | + } |
|
111 | 111 | ?> |
112 | 112 | <li><a href="" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
113 | 113 | <?php |
114 | 114 | } |
115 | - } |
|
115 | + } |
|
116 | 116 | ?> |
117 | 117 | </ul> |
118 | 118 | |
@@ -261,72 +261,72 @@ discard block |
||
261 | 261 | <?php |
262 | 262 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
263 | 263 | else $MapType = $_COOKIE['MapType']; |
264 | - ?> |
|
264 | + ?> |
|
265 | 265 | <?php |
266 | 266 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
267 | - ?> |
|
267 | + ?> |
|
268 | 268 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
269 | 269 | <?php |
270 | 270 | } else { |
271 | - if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
272 | - ?> |
|
271 | + if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
272 | + ?> |
|
273 | 273 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
274 | 274 | <?php |
275 | - } |
|
276 | - ?> |
|
275 | + } |
|
276 | + ?> |
|
277 | 277 | <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option> |
278 | 278 | <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option> |
279 | 279 | <?php |
280 | - if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
281 | - ?> |
|
280 | + if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
281 | + ?> |
|
282 | 282 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
283 | 283 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
284 | 284 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
285 | 285 | <?php |
286 | - } |
|
287 | - ?> |
|
286 | + } |
|
287 | + ?> |
|
288 | 288 | <?php |
289 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
290 | - ?> |
|
289 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
290 | + ?> |
|
291 | 291 | <?php |
292 | 292 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
293 | - ?> |
|
293 | + ?> |
|
294 | 294 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
295 | 295 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
296 | 296 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
297 | 297 | <?php |
298 | 298 | } |
299 | - ?> |
|
299 | + ?> |
|
300 | 300 | <?php |
301 | 301 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
302 | - ?> |
|
302 | + ?> |
|
303 | 303 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
304 | 304 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
305 | 305 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
306 | 306 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
307 | 307 | <?php |
308 | 308 | } |
309 | - ?> |
|
309 | + ?> |
|
310 | 310 | <?php |
311 | 311 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
312 | - ?> |
|
312 | + ?> |
|
313 | 313 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
314 | 314 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
315 | 315 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
316 | 316 | <?php |
317 | 317 | } |
318 | - ?> |
|
318 | + ?> |
|
319 | 319 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
320 | 320 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
321 | 321 | <?php |
322 | - } |
|
323 | - ?> |
|
322 | + } |
|
323 | + ?> |
|
324 | 324 | <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option> |
325 | 325 | <?php |
326 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
326 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
327 | 327 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
328 | 328 | else $MapBoxId = $_COOKIE['MapTypeId']; |
329 | - ?> |
|
329 | + ?> |
|
330 | 330 | <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> |
331 | 331 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
332 | 332 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
@@ -341,16 +341,16 @@ discard block |
||
341 | 341 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
342 | 342 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
343 | 343 | <?php |
344 | - } |
|
345 | - ?> |
|
344 | + } |
|
345 | + ?> |
|
346 | 346 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
347 | 347 | <?php |
348 | 348 | } |
349 | - ?> |
|
349 | + ?> |
|
350 | 350 | </select> |
351 | 351 | </li> |
352 | 352 | <?php |
353 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
353 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
354 | 354 | ?> |
355 | 355 | <li><?php echo _("Type of Terrain:"); ?> |
356 | 356 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -361,10 +361,10 @@ discard block |
||
361 | 361 | </select> |
362 | 362 | </li> |
363 | 363 | <?php |
364 | - } |
|
364 | + } |
|
365 | 365 | ?> |
366 | 366 | <?php |
367 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
367 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
368 | 368 | ?> |
369 | 369 | <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') print 'checked'; ?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
370 | 370 | |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | <li><div class="checkbox"><label><input type="checkbox" name="satelliteestimation" value="1" onclick="clickSatelliteEstimation(this)" <?php if ((isset($_COOKIE['satelliteestimation']) && $_COOKIE['satelliteestimation'] == 'true') || (!isset($_COOKIE['satelliteestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['satelliteestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) print 'checked'; ?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
388 | 388 | <?php |
389 | 389 | } |
390 | - } |
|
390 | + } |
|
391 | 391 | ?> |
392 | 392 | <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true' || !isset($_COOKIE['displayairports'])) print 'checked'; ?> ><?php echo _("Display airports on map"); ?></label></div></li> |
393 | 393 | <li><div class="checkbox"><label><input type="checkbox" name="displaygroundstation" value="1" onclick="clickDisplayGroundStation(this)" <?php if ((isset($_COOKIE['show_GroundStation']) && $_COOKIE['show_GroundStation'] == 'true') || (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) print 'checked'; ?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
@@ -406,80 +406,80 @@ discard block |
||
406 | 406 | } |
407 | 407 | ?> |
408 | 408 | <?php |
409 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
409 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
410 | 410 | ?> |
411 | 411 | <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> |
412 | 412 | <li><div class="checkbox"><label><input type="checkbox" name="one3dmodel" value="1" onclick="useOne3Dmodel(this)" <?php if ((isset($_COOKIE['one3dmodel']) && $_COOKIE['one3dmodel'] == 'true') || (!isset($_COOKIE['one3dmodel']) && isset($globalMap3DOneModel) && $globalMap3DOneModel)) print 'checked'; ?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
413 | 413 | <?php |
414 | - } |
|
415 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
414 | + } |
|
415 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
416 | 416 | ?> |
417 | 417 | <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> |
418 | 418 | <?php |
419 | - } |
|
419 | + } |
|
420 | 420 | ?> |
421 | 421 | <?php |
422 | 422 | if (function_exists('array_column')) { |
423 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
424 | - ?> |
|
423 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
424 | + ?> |
|
425 | 425 | <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> |
426 | 426 | <?php |
427 | - } |
|
427 | + } |
|
428 | 428 | } elseif (isset($globalSources)) { |
429 | - $dispolar = false; |
|
430 | - foreach ($globalSources as $testsource) { |
|
431 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
432 | - } |
|
433 | - if ($dispolar) { |
|
434 | - ?> |
|
429 | + $dispolar = false; |
|
430 | + foreach ($globalSources as $testsource) { |
|
431 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
432 | + } |
|
433 | + if ($dispolar) { |
|
434 | + ?> |
|
435 | 435 | <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> |
436 | 436 | <?php |
437 | - } |
|
438 | - } |
|
439 | - ?> |
|
437 | + } |
|
438 | + } |
|
439 | + ?> |
|
440 | 440 | <?php |
441 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
441 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
442 | 442 | ?> |
443 | 443 | |
444 | 444 | <?php |
445 | 445 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
446 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
447 | - ?> |
|
446 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
447 | + ?> |
|
448 | 448 | <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> |
449 | 449 | <?php |
450 | 450 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
451 | - ?> |
|
451 | + ?> |
|
452 | 452 | <li><?php echo _("Aircraft icon color:"); ?><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'; ?>"></li> |
453 | 453 | <?php |
454 | 454 | } |
455 | - } |
|
456 | - } |
|
457 | - ?> |
|
455 | + } |
|
456 | + } |
|
457 | + ?> |
|
458 | 458 | <?php |
459 | 459 | if (isset($globalMarine) && $globalMarine === TRUE) { |
460 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
461 | - ?> |
|
460 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
461 | + ?> |
|
462 | 462 | <li><?php echo _("Marine icon color:"); ?> |
463 | 463 | <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) print $_COOKIE['MarineIconColor']; elseif (isset($globalMarineIconColor)) print $globalMarineIconColor; else print '1a3151'; ?>"> |
464 | 464 | </li> |
465 | 465 | <?php |
466 | - } |
|
467 | - } |
|
468 | - ?> |
|
466 | + } |
|
467 | + } |
|
468 | + ?> |
|
469 | 469 | <?php |
470 | 470 | if (isset($globalTracker) && $globalTracker === TRUE) { |
471 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
472 | - ?> |
|
471 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
472 | + ?> |
|
473 | 473 | <li><?php echo _("Tracker icon color:"); ?> |
474 | 474 | <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) print $_COOKIE['TrackerIconColor']; elseif (isset($globalTrackerIconColor)) print $globalTrackerIconColor; else print '1a3151'; ?>"> |
475 | 475 | </li> |
476 | 476 | <?php |
477 | - } |
|
478 | - } |
|
479 | - ?> |
|
477 | + } |
|
478 | + } |
|
479 | + ?> |
|
480 | 480 | <?php |
481 | 481 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
482 | - ?> |
|
482 | + ?> |
|
483 | 483 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
484 | 484 | <div class="range"> |
485 | 485 | <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'; ?>"> |
@@ -488,9 +488,9 @@ discard block |
||
488 | 488 | </li> |
489 | 489 | <?php |
490 | 490 | } |
491 | - ?> |
|
491 | + ?> |
|
492 | 492 | <?php |
493 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
493 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
494 | 494 | ?> |
495 | 495 | <li><?php echo _("Set scaling factor for rendering resolution:"); ?> |
496 | 496 | <div class="range"> |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | </li> |
529 | 529 | <?php |
530 | 530 | } |
531 | - } |
|
531 | + } |
|
532 | 532 | ?> |
533 | 533 | <li><?php echo _("Distance unit:"); ?> |
534 | 534 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -561,19 +561,19 @@ discard block |
||
561 | 561 | <ul> |
562 | 562 | <?php |
563 | 563 | if (!isset($globalAircraft) || $globalAircraft) { |
564 | - ?> |
|
564 | + ?> |
|
565 | 565 | <?php |
566 | 566 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
567 | - ?> |
|
567 | + ?> |
|
568 | 568 | <?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 } ?> |
569 | 569 | <?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 } ?> |
570 | 570 | <?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 } ?> |
571 | 571 | <?php |
572 | 572 | } |
573 | - ?> |
|
573 | + ?> |
|
574 | 574 | <?php |
575 | 575 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
576 | - ?> |
|
576 | + ?> |
|
577 | 577 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
578 | 578 | <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> |
579 | 579 | <?php } ?> |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | <?php } ?> |
583 | 583 | <?php |
584 | 584 | } |
585 | - ?> |
|
585 | + ?> |
|
586 | 586 | <li><?php echo _("Display airlines:"); ?> |
587 | 587 | <br/> |
588 | 588 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -602,14 +602,14 @@ discard block |
||
602 | 602 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
603 | 603 | } |
604 | 604 | } |
605 | - ?> |
|
605 | + ?> |
|
606 | 606 | </select> |
607 | 607 | </li> |
608 | 608 | <?php |
609 | 609 | $Spotter = new Spotter(); |
610 | 610 | $allalliancenames = $Spotter->getAllAllianceNames(); |
611 | 611 | if (!empty($allalliancenames)) { |
612 | - ?> |
|
612 | + ?> |
|
613 | 613 | <li><?php echo _("Display alliance:"); ?> |
614 | 614 | <br/> |
615 | 615 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -623,18 +623,18 @@ discard block |
||
623 | 623 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
624 | 624 | } |
625 | 625 | } |
626 | - ?> |
|
626 | + ?> |
|
627 | 627 | </select> |
628 | 628 | </li> |
629 | 629 | <?php |
630 | 630 | } |
631 | - ?> |
|
631 | + ?> |
|
632 | 632 | <?php |
633 | 633 | } |
634 | - ?> |
|
634 | + ?> |
|
635 | 635 | <?php |
636 | 636 | if (isset($globalAPRS) && $globalAPRS) { |
637 | - ?> |
|
637 | + ?> |
|
638 | 638 | <li><?php echo _("Display APRS sources name:"); ?> |
639 | 639 | <select class="selectpicker" multiple onchange="sources(this);"> |
640 | 640 | <?php |
@@ -658,18 +658,18 @@ discard block |
||
658 | 658 | echo '<option value="'.$src['name'].'">'.$src['name'].'</option>'; |
659 | 659 | } |
660 | 660 | } |
661 | - ?> |
|
661 | + ?> |
|
662 | 662 | </select> |
663 | 663 | </li> |
664 | 664 | <?php |
665 | 665 | } |
666 | - ?> |
|
666 | + ?> |
|
667 | 667 | <?php |
668 | 668 | if (!isset($globalAircraft) || $globalAircraft) { |
669 | - ?> |
|
669 | + ?> |
|
670 | 670 | <?php |
671 | - if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
672 | - ?> |
|
671 | + if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
672 | + ?> |
|
673 | 673 | <li><?php echo _("Display airlines of type:"); ?><br/> |
674 | 674 | <select class="selectpicker" onchange="airlinestype(this);"> |
675 | 675 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -679,21 +679,21 @@ discard block |
||
679 | 679 | </select> |
680 | 680 | </li> |
681 | 681 | <?php |
682 | - } |
|
683 | - ?> |
|
682 | + } |
|
683 | + ?> |
|
684 | 684 | <?php |
685 | 685 | } |
686 | - ?> |
|
686 | + ?> |
|
687 | 687 | <?php |
688 | 688 | if (isset($globalMarine) && $globalMarine) { |
689 | - ?> |
|
689 | + ?> |
|
690 | 690 | <li> |
691 | 691 | <?php echo _("Display vessels with MMSI:"); ?> |
692 | 692 | <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
693 | 693 | </li> |
694 | 694 | <?php |
695 | 695 | } |
696 | - ?> |
|
696 | + ?> |
|
697 | 697 | <li> |
698 | 698 | <?php echo _("Display with ident:"); ?> |
699 | 699 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | </form> |
707 | 707 | </div> |
708 | 708 | <?php |
709 | - if (isset($globalSatellite) && $globalSatellite) { |
|
709 | + if (isset($globalSatellite) && $globalSatellite) { |
|
710 | 710 | ?> |
711 | 711 | <div class="sidebar-pane" id="satellites"> |
712 | 712 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -746,14 +746,14 @@ discard block |
||
746 | 746 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
747 | 747 | } |
748 | 748 | } |
749 | - ?> |
|
749 | + ?> |
|
750 | 750 | </select> |
751 | 751 | </li> |
752 | 752 | </ul> |
753 | 753 | </form> |
754 | 754 | </div> |
755 | 755 | <?php |
756 | - } |
|
756 | + } |
|
757 | 757 | ?> |
758 | 758 | </div> |
759 | 759 | </div> |