@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | <?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 } ?> |
50 | 50 | </tr></table></div> |
51 | 51 | <?php |
52 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
52 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
53 | 53 | ?> |
54 | 54 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script> |
55 | 55 | <?php |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
74 | 74 | <?php |
75 | 75 | } |
76 | - } |
|
76 | + } |
|
77 | 77 | ?> |
78 | 78 | |
79 | 79 | <div id="sidebar" class="sidebar collapsed"> |
@@ -84,34 +84,34 @@ discard block |
||
84 | 84 | <li><a href="" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
85 | 85 | <li><a href="" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
86 | 86 | <?php |
87 | - //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) { |
|
87 | + //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) { |
|
88 | 88 | if (isset($globalArchive) && $globalArchive == TRUE) { |
89 | 89 | ?> |
90 | 90 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
91 | 91 | <?php |
92 | 92 | } |
93 | - //} |
|
93 | + //} |
|
94 | 94 | ?> |
95 | 95 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
96 | 96 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
97 | 97 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
98 | 98 | <?php |
99 | - if (isset($globalMap3D) && $globalMap3D) { |
|
99 | + if (isset($globalMap3D) && $globalMap3D) { |
|
100 | 100 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
101 | 101 | ?> |
102 | 102 | <li><a href="" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
103 | 103 | <?php |
104 | 104 | } else { |
105 | - if (isset($globalSatellite) && $globalSatellite) { |
|
105 | + if (isset($globalSatellite) && $globalSatellite) { |
|
106 | 106 | ?> |
107 | 107 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
108 | 108 | <?php |
109 | - } |
|
109 | + } |
|
110 | 110 | ?> |
111 | 111 | <li><a href="" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
112 | 112 | <?php |
113 | 113 | } |
114 | - } |
|
114 | + } |
|
115 | 115 | ?> |
116 | 116 | </ul> |
117 | 117 | |
@@ -260,72 +260,72 @@ discard block |
||
260 | 260 | <?php |
261 | 261 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
262 | 262 | else $MapType = $_COOKIE['MapType']; |
263 | - ?> |
|
263 | + ?> |
|
264 | 264 | <?php |
265 | 265 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
266 | - ?> |
|
266 | + ?> |
|
267 | 267 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
268 | 268 | <?php |
269 | 269 | } else { |
270 | - if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
271 | - ?> |
|
270 | + if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
271 | + ?> |
|
272 | 272 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
273 | 273 | <?php |
274 | - } |
|
275 | - ?> |
|
274 | + } |
|
275 | + ?> |
|
276 | 276 | <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option> |
277 | 277 | <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option> |
278 | 278 | <?php |
279 | - if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
280 | - ?> |
|
279 | + if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
280 | + ?> |
|
281 | 281 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
282 | 282 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
283 | 283 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
284 | 284 | <?php |
285 | - } |
|
286 | - ?> |
|
285 | + } |
|
286 | + ?> |
|
287 | 287 | <?php |
288 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
289 | - ?> |
|
288 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
289 | + ?> |
|
290 | 290 | <?php |
291 | 291 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
292 | - ?> |
|
292 | + ?> |
|
293 | 293 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
294 | 294 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
295 | 295 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
296 | 296 | <?php |
297 | 297 | } |
298 | - ?> |
|
298 | + ?> |
|
299 | 299 | <?php |
300 | 300 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
301 | - ?> |
|
301 | + ?> |
|
302 | 302 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
303 | 303 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
304 | 304 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
305 | 305 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
306 | 306 | <?php |
307 | 307 | } |
308 | - ?> |
|
308 | + ?> |
|
309 | 309 | <?php |
310 | 310 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
311 | - ?> |
|
311 | + ?> |
|
312 | 312 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
313 | 313 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
314 | 314 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
315 | 315 | <?php |
316 | 316 | } |
317 | - ?> |
|
317 | + ?> |
|
318 | 318 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
319 | 319 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
320 | 320 | <?php |
321 | - } |
|
322 | - ?> |
|
321 | + } |
|
322 | + ?> |
|
323 | 323 | <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option> |
324 | 324 | <?php |
325 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
325 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
326 | 326 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
327 | 327 | else $MapBoxId = $_COOKIE['MapTypeId']; |
328 | - ?> |
|
328 | + ?> |
|
329 | 329 | <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> |
330 | 330 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
331 | 331 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
@@ -340,16 +340,16 @@ discard block |
||
340 | 340 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
341 | 341 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
342 | 342 | <?php |
343 | - } |
|
344 | - ?> |
|
343 | + } |
|
344 | + ?> |
|
345 | 345 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
346 | 346 | <?php |
347 | 347 | } |
348 | - ?> |
|
348 | + ?> |
|
349 | 349 | </select> |
350 | 350 | </li> |
351 | 351 | <?php |
352 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
352 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
353 | 353 | ?> |
354 | 354 | <li><?php echo _("Type of Terrain:"); ?> |
355 | 355 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -360,10 +360,10 @@ discard block |
||
360 | 360 | </select> |
361 | 361 | </li> |
362 | 362 | <?php |
363 | - } |
|
363 | + } |
|
364 | 364 | ?> |
365 | 365 | <?php |
366 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
366 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
367 | 367 | ?> |
368 | 368 | <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> |
369 | 369 | |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | <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> |
387 | 387 | <?php |
388 | 388 | } |
389 | - } |
|
389 | + } |
|
390 | 390 | ?> |
391 | 391 | <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> |
392 | 392 | <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> |
@@ -405,80 +405,80 @@ discard block |
||
405 | 405 | } |
406 | 406 | ?> |
407 | 407 | <?php |
408 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
408 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
409 | 409 | ?> |
410 | 410 | <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> |
411 | 411 | <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> |
412 | 412 | <?php |
413 | - } |
|
414 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
413 | + } |
|
414 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
415 | 415 | ?> |
416 | 416 | <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> |
417 | 417 | <?php |
418 | - } |
|
418 | + } |
|
419 | 419 | ?> |
420 | 420 | <?php |
421 | 421 | if (function_exists('array_column')) { |
422 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
423 | - ?> |
|
422 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
423 | + ?> |
|
424 | 424 | <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> |
425 | 425 | <?php |
426 | - } |
|
426 | + } |
|
427 | 427 | } elseif (isset($globalSources)) { |
428 | - $dispolar = false; |
|
429 | - foreach ($globalSources as $testsource) { |
|
430 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
431 | - } |
|
432 | - if ($dispolar) { |
|
433 | - ?> |
|
428 | + $dispolar = false; |
|
429 | + foreach ($globalSources as $testsource) { |
|
430 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
431 | + } |
|
432 | + if ($dispolar) { |
|
433 | + ?> |
|
434 | 434 | <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> |
435 | 435 | <?php |
436 | - } |
|
437 | - } |
|
438 | - ?> |
|
436 | + } |
|
437 | + } |
|
438 | + ?> |
|
439 | 439 | <?php |
440 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
440 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
441 | 441 | ?> |
442 | 442 | |
443 | 443 | <?php |
444 | 444 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
445 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
446 | - ?> |
|
445 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
446 | + ?> |
|
447 | 447 | <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> |
448 | 448 | <?php |
449 | 449 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
450 | - ?> |
|
450 | + ?> |
|
451 | 451 | <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> |
452 | 452 | <?php |
453 | 453 | } |
454 | - } |
|
455 | - } |
|
456 | - ?> |
|
454 | + } |
|
455 | + } |
|
456 | + ?> |
|
457 | 457 | <?php |
458 | 458 | if (isset($globalMarine) && $globalMarine === TRUE) { |
459 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
460 | - ?> |
|
459 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
460 | + ?> |
|
461 | 461 | <li><?php echo _("Marine icon color:"); ?> |
462 | 462 | <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'; ?>"> |
463 | 463 | </li> |
464 | 464 | <?php |
465 | - } |
|
466 | - } |
|
467 | - ?> |
|
465 | + } |
|
466 | + } |
|
467 | + ?> |
|
468 | 468 | <?php |
469 | 469 | if (isset($globalTracker) && $globalTracker === TRUE) { |
470 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
471 | - ?> |
|
470 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
471 | + ?> |
|
472 | 472 | <li><?php echo _("Tracker icon color:"); ?> |
473 | 473 | <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'; ?>"> |
474 | 474 | </li> |
475 | 475 | <?php |
476 | - } |
|
477 | - } |
|
478 | - ?> |
|
476 | + } |
|
477 | + } |
|
478 | + ?> |
|
479 | 479 | <?php |
480 | 480 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
481 | - ?> |
|
481 | + ?> |
|
482 | 482 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
483 | 483 | <div class="range"> |
484 | 484 | <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'; ?>"> |
@@ -487,9 +487,9 @@ discard block |
||
487 | 487 | </li> |
488 | 488 | <?php |
489 | 489 | } |
490 | - ?> |
|
490 | + ?> |
|
491 | 491 | <?php |
492 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
492 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
493 | 493 | ?> |
494 | 494 | <?php |
495 | 495 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | </li> |
522 | 522 | <?php |
523 | 523 | } |
524 | - } |
|
524 | + } |
|
525 | 525 | ?> |
526 | 526 | <li><?php echo _("Distance unit:"); ?> |
527 | 527 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -554,19 +554,19 @@ discard block |
||
554 | 554 | <ul> |
555 | 555 | <?php |
556 | 556 | if (!isset($globalAircraft) || $globalAircraft) { |
557 | - ?> |
|
557 | + ?> |
|
558 | 558 | <?php |
559 | 559 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
560 | - ?> |
|
560 | + ?> |
|
561 | 561 | <?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 } ?> |
562 | 562 | <?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 } ?> |
563 | 563 | <?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 } ?> |
564 | 564 | <?php |
565 | 565 | } |
566 | - ?> |
|
566 | + ?> |
|
567 | 567 | <?php |
568 | 568 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
569 | - ?> |
|
569 | + ?> |
|
570 | 570 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
571 | 571 | <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> |
572 | 572 | <?php } ?> |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | <?php } ?> |
576 | 576 | <?php |
577 | 577 | } |
578 | - ?> |
|
578 | + ?> |
|
579 | 579 | <li><?php echo _("Display airlines:"); ?> |
580 | 580 | <br/> |
581 | 581 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -595,14 +595,14 @@ discard block |
||
595 | 595 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
596 | 596 | } |
597 | 597 | } |
598 | - ?> |
|
598 | + ?> |
|
599 | 599 | </select> |
600 | 600 | </li> |
601 | 601 | <?php |
602 | 602 | $Spotter = new Spotter(); |
603 | 603 | $allalliancenames = $Spotter->getAllAllianceNames(); |
604 | 604 | if (!empty($allalliancenames)) { |
605 | - ?> |
|
605 | + ?> |
|
606 | 606 | <li><?php echo _("Display alliance:"); ?> |
607 | 607 | <br/> |
608 | 608 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -616,18 +616,18 @@ discard block |
||
616 | 616 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
617 | 617 | } |
618 | 618 | } |
619 | - ?> |
|
619 | + ?> |
|
620 | 620 | </select> |
621 | 621 | </li> |
622 | 622 | <?php |
623 | 623 | } |
624 | - ?> |
|
624 | + ?> |
|
625 | 625 | <?php |
626 | 626 | } |
627 | - ?> |
|
627 | + ?> |
|
628 | 628 | <?php |
629 | 629 | if (isset($globalAPRS) && $globalAPRS) { |
630 | - ?> |
|
630 | + ?> |
|
631 | 631 | <li><?php echo _("Display APRS sources name:"); ?> |
632 | 632 | <select class="selectpicker" multiple onchange="sources(this);"> |
633 | 633 | <?php |
@@ -651,18 +651,18 @@ discard block |
||
651 | 651 | echo '<option value="'.$src['name'].'">'.$src['name'].'</option>'; |
652 | 652 | } |
653 | 653 | } |
654 | - ?> |
|
654 | + ?> |
|
655 | 655 | </select> |
656 | 656 | </li> |
657 | 657 | <?php |
658 | 658 | } |
659 | - ?> |
|
659 | + ?> |
|
660 | 660 | <?php |
661 | 661 | if (!isset($globalAircraft) || $globalAircraft) { |
662 | - ?> |
|
662 | + ?> |
|
663 | 663 | <?php |
664 | - if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
665 | - ?> |
|
664 | + if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
665 | + ?> |
|
666 | 666 | <li><?php echo _("Display airlines of type:"); ?><br/> |
667 | 667 | <select class="selectpicker" onchange="airlinestype(this);"> |
668 | 668 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -672,21 +672,21 @@ discard block |
||
672 | 672 | </select> |
673 | 673 | </li> |
674 | 674 | <?php |
675 | - } |
|
676 | - ?> |
|
675 | + } |
|
676 | + ?> |
|
677 | 677 | <?php |
678 | 678 | } |
679 | - ?> |
|
679 | + ?> |
|
680 | 680 | <?php |
681 | 681 | if (isset($globalMarine) && $globalMarine) { |
682 | - ?> |
|
682 | + ?> |
|
683 | 683 | <li> |
684 | 684 | <?php echo _("Display vessels with MMSI:"); ?> |
685 | 685 | <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
686 | 686 | </li> |
687 | 687 | <?php |
688 | 688 | } |
689 | - ?> |
|
689 | + ?> |
|
690 | 690 | <li> |
691 | 691 | <?php echo _("Display with ident:"); ?> |
692 | 692 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | </form> |
700 | 700 | </div> |
701 | 701 | <?php |
702 | - if (isset($globalSatellite) && $globalSatellite) { |
|
702 | + if (isset($globalSatellite) && $globalSatellite) { |
|
703 | 703 | ?> |
704 | 704 | <div class="sidebar-pane" id="satellites"> |
705 | 705 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -739,14 +739,14 @@ discard block |
||
739 | 739 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
740 | 740 | } |
741 | 741 | } |
742 | - ?> |
|
742 | + ?> |
|
743 | 743 | </select> |
744 | 744 | </li> |
745 | 745 | </ul> |
746 | 746 | </form> |
747 | 747 | </div> |
748 | 748 | <?php |
749 | - } |
|
749 | + } |
|
750 | 750 | ?> |
751 | 751 | </div> |
752 | 752 | </div> |
@@ -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); |
@@ -256,11 +256,11 @@ discard block |
||
256 | 256 | |
257 | 257 | |
258 | 258 | /** |
259 | - * Gets altitude information based on a particular callsign |
|
260 | - * |
|
261 | - * @return Array the spotter information |
|
262 | - * |
|
263 | - */ |
|
259 | + * Gets altitude information based on a particular callsign |
|
260 | + * |
|
261 | + * @return Array the spotter information |
|
262 | + * |
|
263 | + */ |
|
264 | 264 | public function getAltitudeArchiveSpotterDataByIdent($ident) { |
265 | 265 | |
266 | 266 | date_default_timezone_set('UTC'); |
@@ -281,11 +281,11 @@ discard block |
||
281 | 281 | } |
282 | 282 | |
283 | 283 | /** |
284 | - * Gets altitude information based on a particular id |
|
285 | - * |
|
286 | - * @return Array the spotter information |
|
287 | - * |
|
288 | - */ |
|
284 | + * Gets altitude information based on a particular id |
|
285 | + * |
|
286 | + * @return Array the spotter information |
|
287 | + * |
|
288 | + */ |
|
289 | 289 | public function getAltitudeArchiveSpotterDataById($id) { |
290 | 290 | |
291 | 291 | date_default_timezone_set('UTC'); |
@@ -306,11 +306,11 @@ discard block |
||
306 | 306 | } |
307 | 307 | |
308 | 308 | /** |
309 | - * Gets altitude & speed information based on a particular id |
|
310 | - * |
|
311 | - * @return Array the spotter information |
|
312 | - * |
|
313 | - */ |
|
309 | + * Gets altitude & speed information based on a particular id |
|
310 | + * |
|
311 | + * @return Array the spotter information |
|
312 | + * |
|
313 | + */ |
|
314 | 314 | public function getAltitudeSpeedArchiveSpotterDataById($id) { |
315 | 315 | date_default_timezone_set('UTC'); |
316 | 316 | $id = filter_var($id, FILTER_SANITIZE_STRING); |
@@ -327,11 +327,11 @@ discard block |
||
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
330 | - * Gets altitude information based on a particular callsign |
|
331 | - * |
|
332 | - * @return Array the spotter information |
|
333 | - * |
|
334 | - */ |
|
330 | + * Gets altitude information based on a particular callsign |
|
331 | + * |
|
332 | + * @return Array the spotter information |
|
333 | + * |
|
334 | + */ |
|
335 | 335 | public function getLastAltitudeArchiveSpotterDataByIdent($ident) { |
336 | 336 | date_default_timezone_set('UTC'); |
337 | 337 | $ident = filter_var($ident, FILTER_SANITIZE_STRING); |
@@ -381,11 +381,11 @@ discard block |
||
381 | 381 | } |
382 | 382 | |
383 | 383 | /** |
384 | - * Gets Minimal Live Spotter data |
|
385 | - * |
|
386 | - * @return Array the spotter information |
|
387 | - * |
|
388 | - */ |
|
384 | + * Gets Minimal Live Spotter data |
|
385 | + * |
|
386 | + * @return Array the spotter information |
|
387 | + * |
|
388 | + */ |
|
389 | 389 | public function getMinLiveSpotterData($begindate,$enddate,$filter = array()) { |
390 | 390 | global $globalDBdriver, $globalLiveInterval; |
391 | 391 | date_default_timezone_set('UTC'); |
@@ -433,11 +433,11 @@ discard block |
||
433 | 433 | } |
434 | 434 | |
435 | 435 | /** |
436 | - * Gets Minimal Live Spotter data |
|
437 | - * |
|
438 | - * @return Array the spotter information |
|
439 | - * |
|
440 | - */ |
|
436 | + * Gets Minimal Live Spotter data |
|
437 | + * |
|
438 | + * @return Array the spotter information |
|
439 | + * |
|
440 | + */ |
|
441 | 441 | public function getMinLiveSpotterDataPlayback($begindate,$enddate,$filter = array()) { |
442 | 442 | global $globalDBdriver, $globalLiveInterval; |
443 | 443 | date_default_timezone_set('UTC'); |
@@ -501,11 +501,11 @@ discard block |
||
501 | 501 | } |
502 | 502 | |
503 | 503 | /** |
504 | - * Gets count Live Spotter data |
|
505 | - * |
|
506 | - * @return Array the spotter information |
|
507 | - * |
|
508 | - */ |
|
504 | + * Gets count Live Spotter data |
|
505 | + * |
|
506 | + * @return Array the spotter information |
|
507 | + * |
|
508 | + */ |
|
509 | 509 | public function getLiveSpotterCount($begindate,$enddate,$filter = array()) { |
510 | 510 | global $globalDBdriver, $globalLiveInterval; |
511 | 511 | date_default_timezone_set('UTC'); |
@@ -551,11 +551,11 @@ discard block |
||
551 | 551 | // Spotter_Archive_output |
552 | 552 | |
553 | 553 | /** |
554 | - * Gets all the spotter information |
|
555 | - * |
|
556 | - * @return Array the spotter information |
|
557 | - * |
|
558 | - */ |
|
554 | + * Gets all the spotter information |
|
555 | + * |
|
556 | + * @return Array the spotter information |
|
557 | + * |
|
558 | + */ |
|
559 | 559 | 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()) { |
560 | 560 | global $globalTimezone, $globalDBdriver; |
561 | 561 | require_once(dirname(__FILE__).'/class.Translation.php'); |
@@ -847,11 +847,11 @@ discard block |
||
847 | 847 | } |
848 | 848 | |
849 | 849 | /** |
850 | - * Gets all the spotter information based on the callsign |
|
851 | - * |
|
852 | - * @return Array the spotter information |
|
853 | - * |
|
854 | - */ |
|
850 | + * Gets all the spotter information based on the callsign |
|
851 | + * |
|
852 | + * @return Array the spotter information |
|
853 | + * |
|
854 | + */ |
|
855 | 855 | public function getSpotterDataByIdent($ident = '', $limit = '', $sort = '') { |
856 | 856 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
857 | 857 | |
@@ -899,11 +899,11 @@ discard block |
||
899 | 899 | |
900 | 900 | |
901 | 901 | /** |
902 | - * Gets all the spotter information based on the owner |
|
903 | - * |
|
904 | - * @return Array the spotter information |
|
905 | - * |
|
906 | - */ |
|
902 | + * Gets all the spotter information based on the owner |
|
903 | + * |
|
904 | + * @return Array the spotter information |
|
905 | + * |
|
906 | + */ |
|
907 | 907 | public function getSpotterDataByOwner($owner = '', $limit = '', $sort = '', $filter = array()) { |
908 | 908 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
909 | 909 | |
@@ -951,11 +951,11 @@ discard block |
||
951 | 951 | } |
952 | 952 | |
953 | 953 | /** |
954 | - * Gets all the spotter information based on the pilot |
|
955 | - * |
|
956 | - * @return Array the spotter information |
|
957 | - * |
|
958 | - */ |
|
954 | + * Gets all the spotter information based on the pilot |
|
955 | + * |
|
956 | + * @return Array the spotter information |
|
957 | + * |
|
958 | + */ |
|
959 | 959 | public function getSpotterDataByPilot($pilot = '', $limit = '', $sort = '', $filter = array()) { |
960 | 960 | $global_query = "SELECT spotter_archive_output.* FROM spotter_archive_output"; |
961 | 961 | |
@@ -999,11 +999,11 @@ discard block |
||
999 | 999 | } |
1000 | 1000 | |
1001 | 1001 | /** |
1002 | - * Gets all number of flight over countries |
|
1003 | - * |
|
1004 | - * @return Array the airline country list |
|
1005 | - * |
|
1006 | - */ |
|
1002 | + * Gets all number of flight over countries |
|
1003 | + * |
|
1004 | + * @return Array the airline country list |
|
1005 | + * |
|
1006 | + */ |
|
1007 | 1007 | public function countAllFlightOverCountries($limit = true,$olderthanmonths = 0,$sincedate = '') { |
1008 | 1008 | global $globalDBdriver; |
1009 | 1009 | /* |
@@ -1043,11 +1043,11 @@ discard block |
||
1043 | 1043 | } |
1044 | 1044 | |
1045 | 1045 | /** |
1046 | - * Gets all number of flight over countries |
|
1047 | - * |
|
1048 | - * @return Array the airline country list |
|
1049 | - * |
|
1050 | - */ |
|
1046 | + * Gets all number of flight over countries |
|
1047 | + * |
|
1048 | + * @return Array the airline country list |
|
1049 | + * |
|
1050 | + */ |
|
1051 | 1051 | public function countAllFlightOverCountriesByAirlines($limit = true,$olderthanmonths = 0,$sincedate = '') { |
1052 | 1052 | global $globalDBdriver; |
1053 | 1053 | /* |
@@ -1088,11 +1088,11 @@ discard block |
||
1088 | 1088 | } |
1089 | 1089 | |
1090 | 1090 | /** |
1091 | - * Gets last spotter information based on a particular callsign |
|
1092 | - * |
|
1093 | - * @return Array the spotter information |
|
1094 | - * |
|
1095 | - */ |
|
1091 | + * Gets last spotter information based on a particular callsign |
|
1092 | + * |
|
1093 | + * @return Array the spotter information |
|
1094 | + * |
|
1095 | + */ |
|
1096 | 1096 | public function getDateArchiveSpotterDataById($id,$date) { |
1097 | 1097 | $Spotter = new Spotter($this->db); |
1098 | 1098 | date_default_timezone_set('UTC'); |
@@ -1104,11 +1104,11 @@ discard block |
||
1104 | 1104 | } |
1105 | 1105 | |
1106 | 1106 | /** |
1107 | - * Gets all the spotter information based on a particular callsign |
|
1108 | - * |
|
1109 | - * @return Array the spotter information |
|
1110 | - * |
|
1111 | - */ |
|
1107 | + * Gets all the spotter information based on a particular callsign |
|
1108 | + * |
|
1109 | + * @return Array the spotter information |
|
1110 | + * |
|
1111 | + */ |
|
1112 | 1112 | public function getDateArchiveSpotterDataByIdent($ident,$date) { |
1113 | 1113 | $Spotter = new Spotter($this->db); |
1114 | 1114 | date_default_timezone_set('UTC'); |
@@ -1120,11 +1120,11 @@ discard block |
||
1120 | 1120 | } |
1121 | 1121 | |
1122 | 1122 | /** |
1123 | - * Gets all the spotter information based on the airport |
|
1124 | - * |
|
1125 | - * @return Array the spotter information |
|
1126 | - * |
|
1127 | - */ |
|
1123 | + * Gets all the spotter information based on the airport |
|
1124 | + * |
|
1125 | + * @return Array the spotter information |
|
1126 | + * |
|
1127 | + */ |
|
1128 | 1128 | public function getSpotterDataByAirport($airport = '', $limit = '', $sort = '',$filters = array()) { |
1129 | 1129 | global $global_query; |
1130 | 1130 | $Spotter = new Spotter($this->db); |