@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | <?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 } ?> |
47 | 47 | </tr></table></div> |
48 | 48 | <?php |
49 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
49 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
50 | 50 | ?> |
51 | 51 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php"></script> |
52 | 52 | <?php |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
71 | 71 | <?php |
72 | 72 | } |
73 | - } |
|
73 | + } |
|
74 | 74 | ?> |
75 | 75 | |
76 | 76 | <div id="sidebar" class="sidebar collapsed"> |
@@ -81,34 +81,34 @@ discard block |
||
81 | 81 | <li><a href="#" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
82 | 82 | <li><a href="#" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
83 | 83 | <?php |
84 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
84 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
85 | 85 | if (isset($globalArchive) && $globalArchive == TRUE) { |
86 | 86 | ?> |
87 | 87 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
88 | 88 | <?php |
89 | 89 | } |
90 | - } |
|
90 | + } |
|
91 | 91 | ?> |
92 | 92 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
93 | 93 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
94 | 94 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
95 | 95 | <?php |
96 | - if (isset($globalMap3D) && $globalMap3D) { |
|
96 | + if (isset($globalMap3D) && $globalMap3D) { |
|
97 | 97 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
98 | 98 | ?> |
99 | 99 | <li><a href="#" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
100 | 100 | <?php |
101 | - if (isset($globalSatellite) && $globalSatellite) { |
|
101 | + if (isset($globalSatellite) && $globalSatellite) { |
|
102 | 102 | ?> |
103 | 103 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
104 | 104 | <?php |
105 | - } |
|
105 | + } |
|
106 | 106 | } else { |
107 | 107 | ?> |
108 | 108 | <li><a href="#" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
109 | 109 | <?php |
110 | 110 | } |
111 | - } |
|
111 | + } |
|
112 | 112 | ?> |
113 | 113 | </ul> |
114 | 114 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | ?> |
184 | 184 | </div> |
185 | 185 | <?php |
186 | - if (isset($globalArchive) && $globalArchive == TRUE) { |
|
186 | + if (isset($globalArchive) && $globalArchive == TRUE) { |
|
187 | 187 | ?> |
188 | 188 | <div class="sidebar-pane" id="archive"> |
189 | 189 | <h1 class="sidebar-header"><?php echo _("Playback"); ?> <i>Bêta</i><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | </form> |
243 | 243 | </div> |
244 | 244 | <?php |
245 | - } |
|
245 | + } |
|
246 | 246 | ?> |
247 | 247 | <div class="sidebar-pane" id="settings"> |
248 | 248 | <h1 class="sidebar-header"><?php echo _("Settings"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -253,56 +253,56 @@ discard block |
||
253 | 253 | <?php |
254 | 254 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
255 | 255 | else $MapType = $_COOKIE['MapType']; |
256 | - ?> |
|
256 | + ?> |
|
257 | 257 | <?php |
258 | 258 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
259 | - ?> |
|
259 | + ?> |
|
260 | 260 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
261 | 261 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
262 | 262 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
263 | 263 | <?php |
264 | 264 | } |
265 | - ?> |
|
265 | + ?> |
|
266 | 266 | <?php |
267 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
268 | - ?> |
|
267 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
268 | + ?> |
|
269 | 269 | <?php |
270 | - if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
271 | - ?> |
|
270 | + if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
271 | + ?> |
|
272 | 272 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
273 | 273 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
274 | 274 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
275 | 275 | <?php |
276 | - } |
|
277 | - ?> |
|
276 | + } |
|
277 | + ?> |
|
278 | 278 | <?php |
279 | - if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
280 | - ?> |
|
279 | + if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
280 | + ?> |
|
281 | 281 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
282 | 282 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
283 | 283 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
284 | 284 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
285 | 285 | <?php |
286 | - } |
|
287 | - ?> |
|
286 | + } |
|
287 | + ?> |
|
288 | 288 | <?php |
289 | - if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
290 | - ?> |
|
289 | + if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
290 | + ?> |
|
291 | 291 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
292 | 292 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
293 | 293 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
294 | 294 | <?php |
295 | - } |
|
296 | - ?> |
|
295 | + } |
|
296 | + ?> |
|
297 | 297 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
298 | 298 | <?php |
299 | 299 | } |
300 | - ?> |
|
300 | + ?> |
|
301 | 301 | <?php |
302 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
302 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
303 | 303 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
304 | 304 | else $MapBoxId = $_COOKIE['MapTypeId']; |
305 | - ?> |
|
305 | + ?> |
|
306 | 306 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
307 | 307 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
308 | 308 | <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
@@ -316,13 +316,13 @@ discard block |
||
316 | 316 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
317 | 317 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
318 | 318 | <?php |
319 | - } |
|
320 | - ?> |
|
319 | + } |
|
320 | + ?> |
|
321 | 321 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
322 | 322 | </select> |
323 | 323 | </li> |
324 | 324 | <?php |
325 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
325 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
326 | 326 | ?> |
327 | 327 | <li><?php echo _("Type of Terrain:"); ?> |
328 | 328 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -333,10 +333,10 @@ discard block |
||
333 | 333 | </select> |
334 | 334 | </li> |
335 | 335 | <?php |
336 | - } |
|
336 | + } |
|
337 | 337 | ?> |
338 | 338 | <?php |
339 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
339 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
340 | 340 | ?> |
341 | 341 | <?php |
342 | 342 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -353,88 +353,88 @@ discard block |
||
353 | 353 | <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> |
354 | 354 | <?php |
355 | 355 | } |
356 | - } |
|
356 | + } |
|
357 | 357 | ?> |
358 | 358 | <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> |
359 | 359 | <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> |
360 | 360 | <li><div class="checkbox"><label><input type="checkbox" name="displayweatherstation" value="1" onclick="clickDisplayWeatherStation(this)" <?php if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') || (!isset($_COOKIE['show_WeatherStation']) && (!isset($globalMapWeatherStation) || $globalMapWeatherStation === TRUE))) print 'checked'; ?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
361 | 361 | <li><div class="checkbox"><label><input type="checkbox" name="displaylightning" value="1" onclick="clickDisplayLightning(this)" <?php if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') || (!isset($_COOKIE['show_Lightning']) && (!isset($globalMapLightning) || $globalMapLightning === TRUE))) print 'checked'; ?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
362 | 362 | <?php |
363 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
363 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
364 | 364 | ?> |
365 | 365 | <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> |
366 | 366 | <?php |
367 | - } |
|
368 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
367 | + } |
|
368 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
369 | 369 | ?> |
370 | 370 | <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> |
371 | 371 | <?php |
372 | - } |
|
372 | + } |
|
373 | 373 | ?> |
374 | 374 | <?php |
375 | 375 | if (function_exists('array_column')) { |
376 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
377 | - ?> |
|
376 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
377 | + ?> |
|
378 | 378 | <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> |
379 | 379 | <?php |
380 | - } |
|
380 | + } |
|
381 | 381 | } elseif (isset($globalSources)) { |
382 | - $dispolar = false; |
|
383 | - foreach ($globalSources as $testsource) { |
|
384 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
385 | - } |
|
386 | - if ($dispolar) { |
|
387 | - ?> |
|
382 | + $dispolar = false; |
|
383 | + foreach ($globalSources as $testsource) { |
|
384 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
385 | + } |
|
386 | + if ($dispolar) { |
|
387 | + ?> |
|
388 | 388 | <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> |
389 | 389 | <?php |
390 | - } |
|
391 | - } |
|
392 | - ?> |
|
390 | + } |
|
391 | + } |
|
392 | + ?> |
|
393 | 393 | <?php |
394 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
394 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
395 | 395 | ?> |
396 | 396 | |
397 | 397 | <?php |
398 | 398 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
399 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
400 | - ?> |
|
399 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
400 | + ?> |
|
401 | 401 | <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> |
402 | 402 | <?php |
403 | 403 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
404 | - ?> |
|
404 | + ?> |
|
405 | 405 | <li><?php echo _("Aircraft icon color:"); ?> |
406 | 406 | <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'; ?>"> |
407 | 407 | </li> |
408 | 408 | <?php |
409 | 409 | } |
410 | - } |
|
411 | - } |
|
412 | - ?> |
|
410 | + } |
|
411 | + } |
|
412 | + ?> |
|
413 | 413 | <?php |
414 | 414 | if (isset($globalMarine) && $globalMarine === TRUE) { |
415 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
416 | - ?> |
|
415 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
416 | + ?> |
|
417 | 417 | <li><?php echo _("Marine icon color:"); ?> |
418 | 418 | <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'; ?>"> |
419 | 419 | </li> |
420 | 420 | <?php |
421 | - } |
|
422 | - } |
|
423 | - ?> |
|
421 | + } |
|
422 | + } |
|
423 | + ?> |
|
424 | 424 | <?php |
425 | 425 | if (isset($globalTracker) && $globalTracker === TRUE) { |
426 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
427 | - ?> |
|
426 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
427 | + ?> |
|
428 | 428 | <li><?php echo _("Tracker icon color:"); ?> |
429 | 429 | <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'; ?>"> |
430 | 430 | </li> |
431 | 431 | <?php |
432 | - } |
|
433 | - } |
|
434 | - ?> |
|
432 | + } |
|
433 | + } |
|
434 | + ?> |
|
435 | 435 | <?php |
436 | 436 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
437 | - ?> |
|
437 | + ?> |
|
438 | 438 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
439 | 439 | <div class="range"> |
440 | 440 | <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'; ?>"> |
@@ -443,9 +443,9 @@ discard block |
||
443 | 443 | </li> |
444 | 444 | <?php |
445 | 445 | } |
446 | - ?> |
|
446 | + ?> |
|
447 | 447 | <?php |
448 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
448 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
449 | 449 | ?> |
450 | 450 | <?php |
451 | 451 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | </li> |
477 | 477 | <?php |
478 | 478 | } |
479 | - } |
|
479 | + } |
|
480 | 480 | ?> |
481 | 481 | <li><?php echo _("Distance unit:"); ?> |
482 | 482 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -509,19 +509,19 @@ discard block |
||
509 | 509 | <ul> |
510 | 510 | <?php |
511 | 511 | if (!isset($globalAircraft) || $globalAircraft) { |
512 | - ?> |
|
512 | + ?> |
|
513 | 513 | <?php |
514 | 514 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
515 | - ?> |
|
515 | + ?> |
|
516 | 516 | <?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 } ?> |
517 | 517 | <?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 } ?> |
518 | 518 | <?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 } ?> |
519 | 519 | <?php |
520 | 520 | } |
521 | - ?> |
|
521 | + ?> |
|
522 | 522 | <?php |
523 | 523 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
524 | - ?> |
|
524 | + ?> |
|
525 | 525 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
526 | 526 | <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> |
527 | 527 | <?php } ?> |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | <?php } ?> |
531 | 531 | <?php |
532 | 532 | } |
533 | - ?> |
|
533 | + ?> |
|
534 | 534 | <li><?php echo _("Display airlines:"); ?> |
535 | 535 | <br/> |
536 | 536 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -550,14 +550,14 @@ discard block |
||
550 | 550 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
551 | 551 | } |
552 | 552 | } |
553 | - ?> |
|
553 | + ?> |
|
554 | 554 | </select> |
555 | 555 | </li> |
556 | 556 | <?php |
557 | 557 | $Spotter = new Spotter(); |
558 | 558 | $allalliancenames = $Spotter->getAllAllianceNames(); |
559 | 559 | if (!empty($allalliancenames)) { |
560 | - ?> |
|
560 | + ?> |
|
561 | 561 | <li><?php echo _("Display alliance:"); ?> |
562 | 562 | <br/> |
563 | 563 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -571,18 +571,18 @@ discard block |
||
571 | 571 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
572 | 572 | } |
573 | 573 | } |
574 | - ?> |
|
574 | + ?> |
|
575 | 575 | </select> |
576 | 576 | </li> |
577 | 577 | <?php |
578 | 578 | } |
579 | - ?> |
|
579 | + ?> |
|
580 | 580 | <?php |
581 | 581 | } |
582 | - ?> |
|
582 | + ?> |
|
583 | 583 | <?php |
584 | 584 | if (isset($globalAPRS) && $globalAPRS) { |
585 | - ?> |
|
585 | + ?> |
|
586 | 586 | <li><?php echo _("Display APRS sources name:"); ?> |
587 | 587 | <select class="selectpicker" multiple onchange="sources(this);"> |
588 | 588 | <?php |
@@ -607,18 +607,18 @@ discard block |
||
607 | 607 | } |
608 | 608 | } |
609 | 609 | |
610 | - ?> |
|
610 | + ?> |
|
611 | 611 | </select> |
612 | 612 | </li> |
613 | 613 | <?php |
614 | 614 | } |
615 | - ?> |
|
615 | + ?> |
|
616 | 616 | <?php |
617 | 617 | if (!isset($globalAircraft) && $globalAircraft) { |
618 | - ?> |
|
618 | + ?> |
|
619 | 619 | <?php |
620 | 620 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
621 | - ?> |
|
621 | + ?> |
|
622 | 622 | <li><?php echo _("Display airlines of type:"); ?><br/> |
623 | 623 | <select class="selectpicker" onchange="airlinestype(this);"> |
624 | 624 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -629,14 +629,14 @@ discard block |
||
629 | 629 | </li> |
630 | 630 | <?php |
631 | 631 | } |
632 | - ?> |
|
632 | + ?> |
|
633 | 633 | <li> |
634 | 634 | <?php echo _("Display flight with ident:"); ?> |
635 | 635 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
636 | 636 | </li> |
637 | 637 | <?php |
638 | 638 | } |
639 | - ?> |
|
639 | + ?> |
|
640 | 640 | </ul> |
641 | 641 | </form> |
642 | 642 | <form method="post"> |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | </form> |
646 | 646 | </div> |
647 | 647 | <?php |
648 | - if (isset($globalSatellite) && $globalSatellite) { |
|
648 | + if (isset($globalSatellite) && $globalSatellite) { |
|
649 | 649 | ?> |
650 | 650 | <div class="sidebar-pane" id="satellites"> |
651 | 651 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -685,14 +685,14 @@ discard block |
||
685 | 685 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
686 | 686 | } |
687 | 687 | } |
688 | - ?> |
|
688 | + ?> |
|
689 | 689 | </select> |
690 | 690 | </li> |
691 | 691 | </ul> |
692 | 692 | </form> |
693 | 693 | </div> |
694 | 694 | <?php |
695 | - } |
|
695 | + } |
|
696 | 696 | ?> |
697 | 697 | </div> |
698 | 698 | </div> |