Completed
Push — master ( c24ce2...7d4320 )
by Yannick
32:41
created
footer.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 </div>
7 7
 <footer class="container">
8 8
 	<?php
9
-	    if (isset($sql_time)) {
9
+		if (isset($sql_time)) {
10 10
 	?>
11 11
 	<i><?php echo _("Page generated in").' '.round($sql_time+$page_time,2); ?>s (<?php print round($page_time,2); ?>ms PHP - <?php print round($sql_time,2); ?>ms SQL)</i>
12 12
 	<br />
13 13
 	<?php
14
-	    }
14
+		}
15 15
 	?>
16 16
 	<span>Developed in Barrie by <a href="http://www.mariotrunz.me/" target="_blank">Mario Trunz</a> & at <a href="http://www.zugaina.com" target="_blank">Zugaina</a> by Ycarus</span> - <span><a href="<?php if (isset($globalURL)) print $globalURL; ?>/about#source">Source &amp; Credits</a></span> - <span><a href="https://www.flightairmap.com/" target="_blank">Get source code</a></span>
17 17
 </footer>
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,10 @@  discard block
 block discarded – undo
1 1
 </section>
2 2
 <div class="pub onmap">
3 3
 <?php
4
-	if (isset($globalPub)) print $globalPub;
5
-?>
4
+	if (isset($globalPub)) {
5
+		print $globalPub;
6
+	}
7
+	?>
6 8
 </div>
7 9
 <footer class="container">
8 10
 	<?php
@@ -13,7 +15,10 @@  discard block
 block discarded – undo
13 15
 	<?php
14 16
 	    }
15 17
 	?>
16
-	<span>Developed in Barrie by <a href="http://www.mariotrunz.me/" target="_blank">Mario Trunz</a> & at <a href="http://www.zugaina.com" target="_blank">Zugaina</a> by Ycarus</span> - <span><a href="<?php if (isset($globalURL)) print $globalURL; ?>/about#source">Source &amp; Credits</a></span> - <span><a href="https://www.flightairmap.com/" target="_blank">Get source code</a></span>
18
+	<span>Developed in Barrie by <a href="http://www.mariotrunz.me/" target="_blank">Mario Trunz</a> & at <a href="http://www.zugaina.com" target="_blank">Zugaina</a> by Ycarus</span> - <span><a href="<?php if (isset($globalURL)) {
19
+	print $globalURL;
20
+}
21
+?>/about#source">Source &amp; Credits</a></span> - <span><a href="https://www.flightairmap.com/" target="_blank">Get source code</a></span>
17 22
 </footer>
18 23
 
19 24
 <div class="notifications bottom-left"></div>
Please login to merge, or discard this patch.
index.php 2 patches
Indentation   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     <?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 } ?>
56 56
 </tr></table></div>
57 57
 <?php
58
-    if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) {
58
+	if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) {
59 59
 ?>
60 60
 <script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script>
61 61
 <script src="<?php echo $globalURL; ?>/js/meuusjs.1.0.3.min.js"></script>
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script>
82 82
 <?php
83 83
 	}
84
-    }
84
+	}
85 85
 ?>
86 86
 
87 87
 <div id="sidebar" class="sidebar collapsed">
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
 	<li><a href="" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li>
93 93
 	<li><a href="" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li>
94 94
 <?php
95
-    //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) {
95
+	//if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) {
96 96
 	if (isset($globalArchive) && $globalArchive == TRUE && (!isset($globalAircraft) || $globalAircraft === TRUE)) {
97 97
 ?>
98 98
 	<li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li>
99 99
 <?php
100 100
 	}
101
-    //}
101
+	//}
102 102
 ?>
103 103
 	<li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li>
104 104
 	<li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li>
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 ?>
113 113
 
114 114
 <?php
115
-    if (isset($globalMap3D) && $globalMap3D) {
115
+	if (isset($globalMap3D) && $globalMap3D) {
116 116
 	if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
117 117
 ?>
118 118
 	<li><a href="" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li>
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	<li><a href="" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li>
123 123
 <?php
124 124
 	}
125
-    }
125
+	}
126 126
 ?>
127 127
     </ul>
128 128
 
@@ -299,15 +299,15 @@  discard block
 block discarded – undo
299 299
 		    </div>
300 300
 		</li>
301 301
 		<?php
302
-		    if (isset($globalDemo) && $globalDemo) {
302
+			if (isset($globalDemo) && $globalDemo) {
303 303
 		?>
304 304
 		<li><button type="button" class="btn btn-primary disabled"><?php echo _("Show archive"); ?></button> Disabled in Demo mode</li>
305 305
 		<?php
306
-		    } else {
306
+			} else {
307 307
 		?>
308 308
 		<li><button type="button" onclick="addarchive(begindate,enddate);" class="btn btn-primary"><?php echo _("Show archive"); ?></button></li>
309 309
 		<?php
310
-		    }
310
+			}
311 311
 		?>
312 312
 	    </ul>
313 313
 	    <ul>
@@ -326,83 +326,83 @@  discard block
 block discarded – undo
326 326
 				if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
327 327
 					if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider;
328 328
 					else $MapType = $_COOKIE['MapType'];
329
-			    ?>
329
+				?>
330 330
 			<select  class="selectpicker" onchange="mapType(this);">
331 331
 			    <?php
332 332
 				} else {
333 333
 					if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') $MapType = $globalMapProvider;
334 334
 					else $MapType = $_COOKIE['MapType3D'];
335
-			    ?>
335
+				?>
336 336
 			<select  class="selectpicker" onchange="mapType3D(this);">
337 337
 			    <?php
338 338
 				}
339
-			    ?>
339
+				?>
340 340
 			    <?php
341 341
 				if (isset($globalMapOffline) && $globalMapOffline === TRUE) {
342
-			    ?>
342
+				?>
343 343
 			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option>
344 344
 			    <?php
345 345
 				} else {
346
-				    if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) {
347
-			    ?>
346
+					if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) {
347
+				?>
348 348
 			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option>
349 349
 			    <?php
350
-				    }
351
-			    ?>
350
+					}
351
+				?>
352 352
 			    <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option>
353 353
 			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option>
354 354
 			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') print ' selected'; ?>>ArcGIS Ocean</option>
355 355
 			    <?php
356
-				    if (isset($globalBingMapKey) && $globalBingMapKey != '') {
357
-			    ?>
356
+					if (isset($globalBingMapKey) && $globalBingMapKey != '') {
357
+				?>
358 358
 			    <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option>
359 359
 			    <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option>
360 360
 			    <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option>
361 361
 			    <?php
362
-				    }
363
-			    ?>
362
+					}
363
+				?>
364 364
 			    <?php
365
-				    if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
366
-			    ?>
365
+					if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
366
+				?>
367 367
 			    <?php
368 368
 					if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') {
369
-			    ?>
369
+				?>
370 370
 			    <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option>
371 371
 			    <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option>
372 372
 			    <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option>
373 373
 			    <?php
374 374
 					}
375
-			    ?>
375
+				?>
376 376
 			    <?php
377 377
 					if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') {
378
-			    ?>
378
+				?>
379 379
 			    <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option>
380 380
 			    <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option>
381 381
 			    <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option>
382 382
 			    <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option>
383 383
 			    <?php
384 384
 					}
385
-			    ?>
385
+				?>
386 386
 			    <?php
387 387
 					if (isset($globalMapQuestKey) && $globalMapQuestKey != '') {
388
-			    ?>
388
+				?>
389 389
 			    <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option>
390 390
 			    <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option>
391 391
 			    <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option>
392 392
 			    <?php
393 393
 					}
394
-			    ?>
394
+				?>
395 395
 			    <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option>
396 396
 			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option>
397 397
 			    <?php
398
-				    }
399
-			    ?>
398
+					}
399
+				?>
400 400
 			    <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option>
401 401
 			    <?php
402
-				    if (isset($globalMapboxToken) && $globalMapboxToken != '') {
402
+					if (isset($globalMapboxToken) && $globalMapboxToken != '') {
403 403
 					if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default';
404 404
 					else $MapBoxId = $_COOKIE['MapTypeId'];
405
-			    ?>
405
+				?>
406 406
 			    <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option>
407 407
 			    <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option>
408 408
 			    <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option>
@@ -417,16 +417,16 @@  discard block
 block discarded – undo
417 417
 			    <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option>
418 418
 			    <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option>
419 419
 			    <?php
420
-				    }
421
-			    ?>
420
+					}
421
+				?>
422 422
 			    <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option>
423 423
 			    <?php
424 424
 				}
425
-			    ?>
425
+				?>
426 426
 			</select>
427 427
 		    </li>
428 428
 <?php
429
-    if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) {
429
+	if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) {
430 430
 ?>
431 431
 		    <li><?php echo _("Type of Terrain:"); ?>
432 432
 			<select  class="selectpicker" onchange="terrainType(this);">
@@ -437,18 +437,18 @@  discard block
 block discarded – undo
437 437
 			</select>
438 438
 		    </li>
439 439
 <?php
440
-    }
440
+	}
441 441
 ?>
442 442
 
443 443
 <?php
444
-    if (isset($globalMap3D) && $globalMap3D) {
444
+	if (isset($globalMap3D) && $globalMap3D) {
445 445
 ?>
446 446
 		    <li><div class="checkbox"><label><input type="checkbox" name="synchro2d3d" value="1" onclick="clickSyncMap2D3D(this)" <?php if (isset($_COOKIE['Map2D3DSync']) && $_COOKIE['Map2D3DSync'] == 'true') print 'checked'; ?> ><?php echo _("Use same type of map for 2D & 3D"); ?></label></div></li>
447 447
 <?php
448
-    }
448
+	}
449 449
 ?>
450 450
 <?php
451
-    if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
451
+	if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
452 452
 ?>
453 453
 		    <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>
454 454
 
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 		    <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>
472 472
 <?php
473 473
 	}
474
-    }
474
+	}
475 475
 ?>
476 476
 		    <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>
477 477
 		    <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>
@@ -490,82 +490,82 @@  discard block
 block discarded – undo
490 490
 	}
491 491
 ?>
492 492
 <?php
493
-    if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') {
493
+	if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') {
494 494
 ?>
495 495
 		    <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>
496 496
 		    <li><div class="checkbox"><label><input type="checkbox" name="shadows" value="1" onclick="clickShadows(this)" <?php if ((!isset($_COOKIE['map3dnoshadows']) && (!isset($globalMap3DShadows) || $globalMap3DShadows)) || (isset($_COOKIE['map3dnoshadows']) && $_COOKIE['map3dnoshadows'] == 'false')) print 'checked'; ?> ><?php echo _("Use shadows"); ?></label></div></li>
497 497
 		    <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>
498 498
 		    <li><div class="checkbox"><label><input type="checkbox" name="updaterealtime" value="1" onclick="clickUpdateRealtime(this)" <?php if ((isset($_COOKIE['updaterealtime']) && $_COOKIE['updaterealtime'] == 'true') || !isset($_COOKIE['updaterealtime'])) print 'checked'; ?> ><?php echo _("Display realtime data in infobox"); ?></label></div></li>
499 499
 <?php
500
-    }
501
-    if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) {
500
+	}
501
+	if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) {
502 502
 ?>
503 503
 		    <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>
504 504
 <?php
505
-    }
505
+	}
506 506
 ?>
507 507
 		    <?php
508 508
 			if (function_exists('array_column')) {
509
-			    if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) {
510
-		    ?>
509
+				if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) {
510
+			?>
511 511
 		    <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>
512 512
 		    <?php
513
-			    }
513
+				}
514 514
 			} elseif (isset($globalSources)) {
515
-			    $dispolar = false;
516
-			    foreach ($globalSources as $testsource) {
517
-			        if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true;
518
-			    }
519
-			    if ($dispolar) {
520
-		    ?>
515
+				$dispolar = false;
516
+				foreach ($globalSources as $testsource) {
517
+					if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true;
518
+				}
519
+				if ($dispolar) {
520
+			?>
521 521
 		    <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>
522 522
 		    <?php
523
-			    }
524
-		        }
525
-		    ?>
523
+				}
524
+				}
525
+			?>
526 526
 <?php
527
-    if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
527
+	if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
528 528
 ?>
529 529
 
530 530
 		    <?php
531 531
 			if (!isset($globalAircraft) || $globalAircraft === TRUE) {
532
-		    	    if (extension_loaded('gd') && function_exists('gd_info')) {
533
-		    ?>
532
+					if (extension_loaded('gd') && function_exists('gd_info')) {
533
+			?>
534 534
 		    <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>
535 535
 		    <?php 
536 536
 				if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') {
537
-		    ?>
537
+			?>
538 538
 			<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>
539 539
 		    <?php
540 540
 				}
541
-			    }
542
-		        }
543
-		    ?>
541
+				}
542
+				}
543
+			?>
544 544
 		    <?php
545 545
 			if (isset($globalMarine) && $globalMarine === TRUE) {
546
-			    if (extension_loaded('gd') && function_exists('gd_info')) {
547
-		    ?>
546
+				if (extension_loaded('gd') && function_exists('gd_info')) {
547
+			?>
548 548
 		    <li><?php echo _("Marine icon color:"); ?>
549 549
 			<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'; ?>">
550 550
 		    </li>
551 551
 		    <?php
552
-			    }
553
-		        }
554
-		    ?>
552
+				}
553
+				}
554
+			?>
555 555
 		    <?php
556 556
 			if (isset($globalTracker) && $globalTracker === TRUE) {
557
-			    if (extension_loaded('gd') && function_exists('gd_info')) {
558
-		    ?>
557
+				if (extension_loaded('gd') && function_exists('gd_info')) {
558
+			?>
559 559
 		    <li><?php echo _("Tracker icon color:"); ?>
560 560
 			<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'; ?>">
561 561
 		    </li>
562 562
 		    <?php
563
-			    }
564
-		        }
565
-		    ?>
563
+				}
564
+				}
565
+			?>
566 566
 		    <?php
567 567
 			if (!isset($globalAircraft) || $globalAircraft === TRUE) {
568
-		    ?>
568
+			?>
569 569
 		    <li><?php echo _("Show airport icon at zoom level:"); ?>
570 570
 			<div class="range">
571 571
 			    <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'; ?>">
@@ -574,9 +574,9 @@  discard block
 block discarded – undo
574 574
 		    </li>
575 575
 		    <?php
576 576
 			}
577
-		    ?>
577
+			?>
578 578
 <?php
579
-    } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') {
579
+	} elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') {
580 580
 ?>
581 581
 		    <li><?php echo _("Set scaling factor for rendering resolution:"); ?>
582 582
 			<div class="range">
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 		    </li>
615 615
 <?php
616 616
 	}
617
-    }
617
+	}
618 618
 ?>
619 619
 		    <li><?php echo _("Distance unit:"); ?>
620 620
 			<select class="selectpicker" onchange="unitdistance(this);">
@@ -654,19 +654,19 @@  discard block
 block discarded – undo
654 654
 		    <ul>
655 655
 		    <?php
656 656
 			if (!isset($globalAircraft) || $globalAircraft) {
657
-		    ?>
657
+			?>
658 658
 		    <?php
659 659
 			if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) {
660
-		    ?>
660
+			?>
661 661
 			<?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 } ?>
662 662
 			<?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 } ?>
663 663
 			<?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 } ?>
664 664
 		    <?php
665 665
 			}
666
-		    ?>
666
+			?>
667 667
 		    <?php
668 668
 			if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) {
669
-		    ?>
669
+			?>
670 670
 			<?php if (isset($globalSBS1) && $globalSBS1) { ?>
671 671
 			    <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>
672 672
 			<?php } ?>
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
 			<?php } ?>
676 676
 		    <?php
677 677
 			}
678
-		    ?>
678
+			?>
679 679
 		    <li><?php echo _("Display airlines:"); ?>
680 680
 		    <br/>
681 681
 			<select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines">
@@ -695,14 +695,14 @@  discard block
 block discarded – undo
695 695
 						echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>';
696 696
 					}
697 697
 				}
698
-			    ?>
698
+				?>
699 699
 			</select>
700 700
 		    </li>
701 701
 		    <?php
702 702
 			$Spotter = new Spotter();
703 703
 			$allalliancenames = $Spotter->getAllAllianceNames();
704 704
 			if (!empty($allalliancenames)) {
705
-		    ?>
705
+			?>
706 706
 		    <li><?php echo _("Display alliance:"); ?>
707 707
 		    <br/>
708 708
 			<select class="selectpicker" onchange="alliance(this);" id="display_alliance">
@@ -716,18 +716,18 @@  discard block
 block discarded – undo
716 716
 						echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>';
717 717
 					}
718 718
 				}
719
-			    ?>
719
+				?>
720 720
 			</select>
721 721
 		    </li>
722 722
 		    <?php
723 723
 			}
724
-		    ?>
724
+			?>
725 725
 		    <?php
726 726
 			}
727
-		    ?>
727
+			?>
728 728
 		    <?php
729 729
 			if (isset($globalAPRS) && $globalAPRS) {
730
-		    ?>
730
+			?>
731 731
 		    <li><?php echo _("Display APRS sources name:"); ?>
732 732
 			<select class="selectpicker" multiple onchange="sources(this);">
733 733
 			    <?php
@@ -751,18 +751,18 @@  discard block
 block discarded – undo
751 751
 						echo '<option value="'.$src['name'].'">'.$src['name'].'</option>';
752 752
 					}
753 753
 				}
754
-			    ?>
754
+				?>
755 755
 			</select>
756 756
 		    </li>
757 757
 		    <?php
758 758
 			}
759
-		    ?>
759
+			?>
760 760
 		    <?php
761 761
 			if (!isset($globalAircraft) || $globalAircraft) {
762
-		    ?>
762
+			?>
763 763
 		    <?php
764
-			    if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) {
765
-		    ?>
764
+				if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) {
765
+			?>
766 766
 		    <li><?php echo _("Display airlines of type:"); ?><br/>
767 767
 			<select class="selectpicker" onchange="airlinestype(this);">
768 768
 			    <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option>
@@ -772,14 +772,14 @@  discard block
 block discarded – undo
772 772
 			</select>
773 773
 		    </li>
774 774
 		    <?php
775
-			    }
776
-		    ?>
775
+				}
776
+			?>
777 777
 		    <?php
778 778
 			}
779
-		    ?>
779
+			?>
780 780
 		    <?php
781 781
 			if (isset($globalMarine) && $globalMarine) {
782
-		    ?>
782
+			?>
783 783
 		    <li>
784 784
 			<?php echo _("Display vessels with MMSI:"); ?>
785 785
 			<input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" />
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
 								print '<option value="'.$race['race_id'].'">'.$race['race_name'].'</option>';
803 803
 							}
804 804
 						}
805
-			    ?>
805
+				?>
806 806
 			</select>
807 807
 		    </li>
808 808
 
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 					}
811 811
 				}
812 812
 			}
813
-		    ?>
813
+			?>
814 814
 		    <li>
815 815
 			<?php echo _("Display with ident:"); ?>
816 816
 			<input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" />
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
 	    </form>
824 824
     	</div>
825 825
 <?php
826
-    if (isset($globalSatellite) && $globalSatellite) {
826
+	if (isset($globalSatellite) && $globalSatellite) {
827 827
 ?>
828 828
         <div class="sidebar-pane" id="satellites">
829 829
 	    <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1>
@@ -863,14 +863,14 @@  discard block
 block discarded – undo
863 863
 						print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>';
864 864
 					}
865 865
 				}
866
-			    ?>
866
+				?>
867 867
 			</select>
868 868
 		    </li>
869 869
 		</ul>
870 870
 	    </form>
871 871
 	</div>
872 872
 <?php
873
-    }
873
+	}
874 874
 ?>
875 875
     </div>
876 876
 </div>
Please login to merge, or discard this patch.
Braces   +582 added lines, -147 removed lines patch added patch discarded remove patch
@@ -57,7 +57,10 @@  discard block
 block discarded – undo
57 57
 <?php
58 58
     if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) {
59 59
 ?>
60
-<script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script>
60
+<script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) {
61
+	print '?tsk='.$tsk;
62
+}
63
+?>"></script>
61 64
 <script src="<?php echo $globalURL; ?>/js/meuusjs.1.0.3.min.js"></script>
62 65
 <script src="<?php echo $globalURL; ?>/js/map.3d.weather.js"></script>
63 66
 <?php
@@ -137,9 +140,18 @@  discard block
 block discarded – undo
137 140
 			<h1>Weather</h1>
138 141
 			<ul>
139 142
 			
140
-				<li><div class="checkbox"><label><input type="checkbox" name="wind" value="1" onclick="clickWind(this);" <?php if (isset($_COOKIE['weather_wind']) && $_COOKIE['weather_wind'] == 'true') print 'checked'; ?> /><?php echo _("Weather Winds"); ?></label></div></li>
141
-				<li><div class="checkbox"><label><input type="checkbox" name="wave" value="1" onclick="clickWave(this);" <?php if (isset($_COOKIE['weather_wave']) && $_COOKIE['weather_wave'] == 'true') print 'checked'; ?> /><?php echo _("Ocean surface currents"); ?></label></div></li>
142
-				<!-- <li><div class="checkbox"><label><input type="checkbox" name="backwave" value="1" onclick="clickBackWave(this);" <?php if (isset($_COOKIE['weather_backwave']) && $_COOKIE['weather_backwave'] == 'true') print 'checked'; ?> /><?php echo _("Weather Waves height background"); ?></label></div></li> -->
143
+				<li><div class="checkbox"><label><input type="checkbox" name="wind" value="1" onclick="clickWind(this);" <?php if (isset($_COOKIE['weather_wind']) && $_COOKIE['weather_wind'] == 'true') {
144
+	print 'checked';
145
+}
146
+?> /><?php echo _("Weather Winds"); ?></label></div></li>
147
+				<li><div class="checkbox"><label><input type="checkbox" name="wave" value="1" onclick="clickWave(this);" <?php if (isset($_COOKIE['weather_wave']) && $_COOKIE['weather_wave'] == 'true') {
148
+	print 'checked';
149
+}
150
+?> /><?php echo _("Ocean surface currents"); ?></label></div></li>
151
+				<!-- <li><div class="checkbox"><label><input type="checkbox" name="backwave" value="1" onclick="clickBackWave(this);" <?php if (isset($_COOKIE['weather_backwave']) && $_COOKIE['weather_backwave'] == 'true') {
152
+	print 'checked';
153
+}
154
+?> /><?php echo _("Weather Waves height background"); ?></label></div></li> -->
143 155
 			
144 156
 <?php
145 157
 		if (isset($globalOpenWeatherMapKey) && $globalOpenWeatherMapKey != '') {
@@ -158,7 +170,10 @@  discard block
 block discarded – undo
158 170
 ?>
159 171
 			<h1>Weather</h1>
160 172
 			<ul>
161
-				<li><div class="checkbox"><label><input type="checkbox" name="displayweather" value="1" onclick="clickDisplayWeather(this)" <?php if ((isset($_COOKIE['show_Weather']) && $_COOKIE['show_Weather'] == 'true') || (!isset($_COOKIE['show_Weather']) && (isset($globalMapWeather) && $globalMapWeather === TRUE))) print 'checked'; ?> ><?php echo _("Display weather on 3D map"); ?></label></div></li>
173
+				<li><div class="checkbox"><label><input type="checkbox" name="displayweather" value="1" onclick="clickDisplayWeather(this)" <?php if ((isset($_COOKIE['show_Weather']) && $_COOKIE['show_Weather'] == 'true') || (!isset($_COOKIE['show_Weather']) && (isset($globalMapWeather) && $globalMapWeather === TRUE))) {
174
+	print 'checked';
175
+}
176
+?> ><?php echo _("Display weather on 3D map"); ?></label></div></li>
162 177
 			<!--	<li><div class="checkbox"><label><input type="checkbox" name="displayrain" value="1" onclick="clickDisplayRain(this)" ><?php echo _("Display rain on 3D map"); ?></label></div></li>-->
163 178
 			</ul>
164 179
 <?php
@@ -176,13 +191,22 @@  discard block
 block discarded – undo
176 191
 <?php
177 192
 		if (!isset($globalAircraft) || $globalAircraft) {
178 193
 ?>
179
-				<li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') print 'checked'; ?> /><?php echo _("Display waypoints"); ?></label></div></li>
180
-				<li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') print 'checked'; ?> /><?php echo _("Display airspace"); ?></label></div></li>
194
+				<li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') {
195
+	print 'checked';
196
+}
197
+?> /><?php echo _("Display waypoints"); ?></label></div></li>
198
+				<li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') {
199
+	print 'checked';
200
+}
201
+?> /><?php echo _("Display airspace"); ?></label></div></li>
181 202
 <?php
182 203
 		}
183 204
 		if (isset($globalMarine) && $globalMarine) {
184 205
 ?>
185
-				<li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') print 'checked'; ?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li>
206
+				<li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') {
207
+	print 'checked';
208
+}
209
+?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li>
186 210
 <?php
187 211
 		}
188 212
 ?>
@@ -197,13 +221,22 @@  discard block
 block discarded – undo
197 221
 <?php
198 222
 		if (!isset($globalAircraft) || $globalAircraft) {
199 223
 ?>
200
-				<li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') print 'checked'; ?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li>
201
-				<li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') print 'checked'; ?> /><?php echo _("Display airspace"); ?> Beta</label></div></li>
224
+				<li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') {
225
+	print 'checked';
226
+}
227
+?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li>
228
+				<li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') {
229
+	print 'checked';
230
+}
231
+?> /><?php echo _("Display airspace"); ?> Beta</label></div></li>
202 232
 <?php
203 233
 		}
204 234
 		if (isset($globalMarine) && $globalMarine) {
205 235
 ?>
206
-				<li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') print 'checked'; ?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li>
236
+				<li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') {
237
+	print 'checked';
238
+}
239
+?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li>
207 240
 <?php
208 241
 		}
209 242
 ?>
@@ -218,14 +251,32 @@  discard block
 block discarded – undo
218 251
 		<h1>NOTAM</h1>
219 252
 		<form>
220 253
 			<ul>
221
-				<li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') print 'checked'; ?> /><?php echo _("Display NOTAM"); ?></label></div></li>
254
+				<li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') {
255
+	print 'checked';
256
+}
257
+?> /><?php echo _("Display NOTAM"); ?></label></div></li>
222 258
 				<li><?php echo _("NOTAM scope:"); ?>
223 259
 					<select class="selectpicker" onchange="notamscope(this);">
224
-						<option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option>
225
-						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option>
226
-						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option>
227
-						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option>
228
-						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option>
260
+						<option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') {
261
+	print ' selected';
262
+}
263
+?>>All</option>
264
+						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') {
265
+	print ' selected';
266
+}
267
+?>>Airport/Enroute warning</option>
268
+						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') {
269
+	print ' selected';
270
+}
271
+?>>Airport warning</option>
272
+						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') {
273
+	print ' selected';
274
+}
275
+?>>Navigation warning</option>
276
+						<option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') {
277
+	print ' selected';
278
+}
279
+?>>Enroute warning</option>
229 280
 					</select
230 281
 				</li>
231 282
 			</ul>
@@ -253,7 +304,10 @@  discard block
 block discarded – undo
253 304
 		    <div class="form-group">
254 305
 			<label><?php echo _("From:"); ?></label>
255 306
 			<div class='input-group date' id='datetimepicker1'>
256
-			    <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC'; ?>" required />
307
+			    <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') {
308
+	print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC';
309
+}
310
+?>" required />
257 311
 			    <span class="input-group-addon">
258 312
 				<span class="glyphicon glyphicon-calendar"></span>
259 313
 			    </span>
@@ -262,7 +316,10 @@  discard block
 block discarded – undo
262 316
 		    <div class="form-group">
263 317
 			<label><?php echo _("To:"); ?></label>
264 318
 			<div class='input-group date' id='datetimepicker2'>
265
-			    <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC'; ?>" />
319
+			    <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') {
320
+	print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC';
321
+}
322
+?>" />
266 323
 			    <span class="input-group-addon">
267 324
 				<span class="glyphicon glyphicon-calendar"></span>
268 325
 			    </span>
@@ -294,8 +351,20 @@  discard block
 block discarded – undo
294 351
 		    </script>
295 352
 		<li><?php echo _("Playback speed:"); ?>
296 353
 		    <div class="range">
297
-			<input type="range" min="0" max="50" step="1" id="archivespeed" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php  if (isset($_POST['archivespeed'])) print $_POST['archivespeed']; elseif (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?>">
298
-			<output id="archivespeedrange"><?php  if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output>
354
+			<input type="range" min="0" max="50" step="1" id="archivespeed" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php  if (isset($_POST['archivespeed'])) {
355
+	print $_POST['archivespeed'];
356
+} elseif (isset($_COOKIE['archive_speed'])) {
357
+	print $_COOKIE['archive_speed'];
358
+} else {
359
+	print '1';
360
+}
361
+?>">
362
+			<output id="archivespeedrange"><?php  if (isset($_COOKIE['archive_speed'])) {
363
+	print $_COOKIE['archive_speed'];
364
+} else {
365
+	print '1';
366
+}
367
+?></output>
299 368
 		    </div>
300 369
 		</li>
301 370
 		<?php
@@ -324,14 +393,20 @@  discard block
 block discarded – undo
324 393
 		    <li><?php echo _("Type of Map:"); ?>
325 394
 			    <?php
326 395
 				if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
327
-					if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider;
328
-					else $MapType = $_COOKIE['MapType'];
396
+					if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') {
397
+						$MapType = $globalMapProvider;
398
+					} else {
399
+						$MapType = $_COOKIE['MapType'];
400
+					}
329 401
 			    ?>
330 402
 			<select  class="selectpicker" onchange="mapType(this);">
331 403
 			    <?php
332 404
 				} else {
333
-					if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') $MapType = $globalMapProvider;
334
-					else $MapType = $_COOKIE['MapType3D'];
405
+					if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') {
406
+						$MapType = $globalMapProvider;
407
+					} else {
408
+						$MapType = $_COOKIE['MapType3D'];
409
+					}
335 410
 			    ?>
336 411
 			<select  class="selectpicker" onchange="mapType3D(this);">
337 412
 			    <?php
@@ -340,24 +415,48 @@  discard block
 block discarded – undo
340 415
 			    <?php
341 416
 				if (isset($globalMapOffline) && $globalMapOffline === TRUE) {
342 417
 			    ?>
343
-			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option>
418
+			    <option value="offline"<?php if ($MapType == 'offline') {
419
+	print ' selected';
420
+}
421
+?>>Natural Earth (local)</option>
344 422
 			    <?php
345 423
 				} else {
346 424
 				    if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) {
347 425
 			    ?>
348
-			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option>
426
+			    <option value="offline"<?php if ($MapType == 'offline') {
427
+	print ' selected';
428
+}
429
+?>>Natural Earth (local)</option>
349 430
 			    <?php
350 431
 				    }
351 432
 			    ?>
352
-			    <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option>
353
-			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option>
354
-			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') print ' selected'; ?>>ArcGIS Ocean</option>
433
+			    <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') {
434
+	print ' selected';
435
+}
436
+?>>ArcGIS Streetmap</option>
437
+			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') {
438
+	print ' selected';
439
+}
440
+?>>ArcGIS Satellite</option>
441
+			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') {
442
+	print ' selected';
443
+}
444
+?>>ArcGIS Ocean</option>
355 445
 			    <?php
356 446
 				    if (isset($globalBingMapKey) && $globalBingMapKey != '') {
357 447
 			    ?>
358
-			    <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option>
359
-			    <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option>
360
-			    <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option>
448
+			    <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') {
449
+	print ' selected';
450
+}
451
+?>>Bing-Aerial</option>
452
+			    <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') {
453
+	print ' selected';
454
+}
455
+?>>Bing-Hybrid</option>
456
+			    <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') {
457
+	print ' selected';
458
+}
459
+?>>Bing-Road</option>
361 460
 			    <?php
362 461
 				    }
363 462
 			    ?>
@@ -367,59 +466,143 @@  discard block
 block discarded – undo
367 466
 			    <?php
368 467
 					if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') {
369 468
 			    ?>
370
-			    <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option>
371
-			    <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option>
372
-			    <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option>
469
+			    <option value="Here-Aerial"<?php if ($MapType == 'Here') {
470
+	print ' selected';
471
+}
472
+?>>Here-Aerial</option>
473
+			    <option value="Here-Hybrid"<?php if ($MapType == 'Here') {
474
+	print ' selected';
475
+}
476
+?>>Here-Hybrid</option>
477
+			    <option value="Here-Road"<?php if ($MapType == 'Here') {
478
+	print ' selected';
479
+}
480
+?>>Here-Road</option>
373 481
 			    <?php
374 482
 					}
375 483
 			    ?>
376 484
 			    <?php
377 485
 					if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') {
378 486
 			    ?>
379
-			    <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option>
380
-			    <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option>
381
-			    <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option>
382
-			    <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option>
487
+			    <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') {
488
+	print ' selected';
489
+}
490
+?>>Google Roadmap</option>
491
+			    <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') {
492
+	print ' selected';
493
+}
494
+?>>Google Satellite</option>
495
+			    <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') {
496
+	print ' selected';
497
+}
498
+?>>Google Hybrid</option>
499
+			    <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') {
500
+	print ' selected';
501
+}
502
+?>>Google Terrain</option>
383 503
 			    <?php
384 504
 					}
385 505
 			    ?>
386 506
 			    <?php
387 507
 					if (isset($globalMapQuestKey) && $globalMapQuestKey != '') {
388 508
 			    ?>
389
-			    <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option>
390
-			    <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option>
391
-			    <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option>
509
+			    <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') {
510
+	print ' selected';
511
+}
512
+?>>MapQuest-OSM</option>
513
+			    <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') {
514
+	print ' selected';
515
+}
516
+?>>MapQuest-Aerial</option>
517
+			    <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') {
518
+	print ' selected';
519
+}
520
+?>>MapQuest-Hybrid</option>
392 521
 			    <?php
393 522
 					}
394 523
 			    ?>
395
-			    <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option>
396
-			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option>
524
+			    <option value="Yandex"<?php if ($MapType == 'Yandex') {
525
+	print ' selected';
526
+}
527
+?>>Yandex</option>
528
+			    <option value="offline"<?php if ($MapType == 'offline') {
529
+	print ' selected';
530
+}
531
+?>>Natural Earth</option>
397 532
 			    <?php
398 533
 				    }
399 534
 			    ?>
400
-			    <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option>
535
+			    <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') {
536
+	print ' selected';
537
+}
538
+?>>National Geographic Street</option>
401 539
 			    <?php
402 540
 				    if (isset($globalMapboxToken) && $globalMapboxToken != '') {
403
-					if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default';
404
-					else $MapBoxId = $_COOKIE['MapTypeId'];
541
+					if (!isset($_COOKIE['MapTypeId'])) {
542
+						$MapBoxId = 'default';
543
+					} else {
544
+						$MapBoxId = $_COOKIE['MapTypeId'];
545
+					}
405 546
 			    ?>
406
-			    <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option>
407
-			    <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option>
408
-			    <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option>
409
-			    <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option>
410
-			    <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option>
411
-			    <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option>
412
-			    <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option>
413
-			    <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option>
414
-			    <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option>
415
-			    <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option>
416
-			    <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option>
417
-			    <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option>
418
-			    <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option>
547
+			    <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') {
548
+	print ' selected';
549
+}
550
+?>>Mapbox GL</option>
551
+			    <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') {
552
+	print ' selected';
553
+}
554
+?>>Mapbox default</option>
555
+			    <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') {
556
+	print ' selected';
557
+}
558
+?>>Mapbox streets</option>
559
+			    <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') {
560
+	print ' selected';
561
+}
562
+?>>Mapbox light</option>
563
+			    <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') {
564
+	print ' selected';
565
+}
566
+?>>Mapbox dark</option>
567
+			    <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') {
568
+	print ' selected';
569
+}
570
+?>>Mapbox satellite</option>
571
+			    <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') {
572
+	print ' selected';
573
+}
574
+?>>Mapbox streets-satellite</option>
575
+			    <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') {
576
+	print ' selected';
577
+}
578
+?>>Mapbox streets-basic</option>
579
+			    <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') {
580
+	print ' selected';
581
+}
582
+?>>Mapbox comic</option>
583
+			    <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') {
584
+	print ' selected';
585
+}
586
+?>>Mapbox outdoors</option>
587
+			    <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') {
588
+	print ' selected';
589
+}
590
+?>>Mapbox pencil</option>
591
+			    <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') {
592
+	print ' selected';
593
+}
594
+?>>Mapbox pirates</option>
595
+			    <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') {
596
+	print ' selected';
597
+}
598
+?>>Mapbox emerald</option>
419 599
 			    <?php
420 600
 				    }
421 601
 			    ?>
422
-			    <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option>
602
+			    <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') {
603
+	print ' selected';
604
+}
605
+?>>OpenStreetMap</option>
423 606
 			    <?php
424 607
 				}
425 608
 			    ?>
@@ -430,10 +613,22 @@  discard block
 block discarded – undo
430 613
 ?>
431 614
 		    <li><?php echo _("Type of Terrain:"); ?>
432 615
 			<select  class="selectpicker" onchange="terrainType(this);">
433
-			    <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option>
434
-			    <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option>
435
-			    <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option>
436
-			    <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option>
616
+			    <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') {
617
+	print ' selected';
618
+}
619
+?>>stk terrain</option>
620
+			    <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') {
621
+	print ' selected';
622
+}
623
+?>>ellipsoid</option>
624
+			    <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') {
625
+	print ' selected';
626
+}
627
+?>>vr terrain</option>
628
+			    <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') {
629
+	print ' selected';
630
+}
631
+?>>ArticDEM</option>
437 632
 			</select>
438 633
 		    </li>
439 634
 <?php
@@ -443,59 +638,116 @@  discard block
 block discarded – undo
443 638
 <?php
444 639
     if (isset($globalMap3D) && $globalMap3D) {
445 640
 ?>
446
-		    <li><div class="checkbox"><label><input type="checkbox" name="synchro2d3d" value="1" onclick="clickSyncMap2D3D(this)" <?php if (isset($_COOKIE['Map2D3DSync']) && $_COOKIE['Map2D3DSync'] == 'true') print 'checked'; ?> ><?php echo _("Use same type of map for 2D & 3D"); ?></label></div></li>
641
+		    <li><div class="checkbox"><label><input type="checkbox" name="synchro2d3d" value="1" onclick="clickSyncMap2D3D(this)" <?php if (isset($_COOKIE['Map2D3DSync']) && $_COOKIE['Map2D3DSync'] == 'true') {
642
+	print 'checked';
643
+}
644
+?> ><?php echo _("Use same type of map for 2D & 3D"); ?></label></div></li>
447 645
 <?php
448 646
     }
449 647
 ?>
450 648
 <?php
451 649
     if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
452 650
 ?>
453
-		    <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>
651
+		    <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') {
652
+	print 'checked';
653
+}
654
+?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li>
454 655
 
455 656
 <?php
456 657
 	if (!isset($globalAircraft) || $globalAircraft === TRUE) {
457 658
 ?>
458
-		    <!--<li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') print 'checked'; ?> ><?php echo _("Display flight info as popup"); ?></label></div></li>-->
459
-		    <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) print 'checked'; ?> ><?php echo _("Display flight path"); ?></label></div></li>
460
-		    <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (!isset($_COOKIE['MapRoute']) && isset($globalMapRoute) && $globalMapRoute)) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li>
461
-		    <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || (!isset($_COOKIE['MapRemainingRoute']) && isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) print 'checked'; ?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li>
462
-		    <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) print 'checked'; ?> ><?php echo _("Planes animate between updates"); ?></label></div></li>
659
+		    <!--<li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') {
660
+	print 'checked';
661
+}
662
+?> ><?php echo _("Display flight info as popup"); ?></label></div></li>-->
663
+		    <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) {
664
+	print 'checked';
665
+}
666
+?> ><?php echo _("Display flight path"); ?></label></div></li>
667
+		    <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (!isset($_COOKIE['MapRoute']) && isset($globalMapRoute) && $globalMapRoute)) {
668
+	print 'checked';
669
+}
670
+?> ><?php echo _("Display flight route on click"); ?></label></div></li>
671
+		    <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || (!isset($_COOKIE['MapRemainingRoute']) && isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) {
672
+	print 'checked';
673
+}
674
+?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li>
675
+		    <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) {
676
+	print 'checked';
677
+}
678
+?> ><?php echo _("Planes animate between updates"); ?></label></div></li>
463 679
 <?php
464 680
 	} elseif (!isset($globalTracker) || $globalTracker === TRUE) {
465 681
 ?>
466
-		    <li><div class="checkbox"><label><input type="checkbox" name="mapmatching" value="1" onclick="clickMapMatching(this)" <?php if ((isset($_COOKIE['mapmatching']) && $_COOKIE['mapmatching'] == 'true') || (!isset($_COOKIE['mapmatching']) && isset($globalMapMatching) && $globalMapMatching)) print 'checked'; ?> ><?php echo _("Enable map matching"); ?></label></div></li>
682
+		    <li><div class="checkbox"><label><input type="checkbox" name="mapmatching" value="1" onclick="clickMapMatching(this)" <?php if ((isset($_COOKIE['mapmatching']) && $_COOKIE['mapmatching'] == 'true') || (!isset($_COOKIE['mapmatching']) && isset($globalMapMatching) && $globalMapMatching)) {
683
+	print 'checked';
684
+}
685
+?> ><?php echo _("Enable map matching"); ?></label></div></li>
467 686
 <?php
468 687
 	}
469 688
 	if (isset($globalSatellite) && $globalSatellite === TRUE) {
470 689
 ?>
471
-		    <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>
690
+		    <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)) {
691
+	print 'checked';
692
+}
693
+?> ><?php echo _("Satellites animate between updates"); ?></label></div></li>
472 694
 <?php
473 695
 	}
474 696
     }
475 697
 ?>
476
-		    <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>
477
-		    <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>
478
-		    <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>
479
-		    <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>
698
+		    <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'])) {
699
+	print 'checked';
700
+}
701
+?> ><?php echo _("Display airports on map"); ?></label></div></li>
702
+		    <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))) {
703
+	print 'checked';
704
+}
705
+?> ><?php echo _("Display ground station on map"); ?></label></div></li>
706
+		    <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))) {
707
+	print 'checked';
708
+}
709
+?> ><?php echo _("Display weather station on map"); ?></label></div></li>
710
+		    <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))) {
711
+	print 'checked';
712
+}
713
+?> ><?php echo _("Display lightning on map"); ?></label></div></li>
480 714
 <?php
481 715
 	if (isset($globalFires)) {
482 716
 ?>
483
-		    <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) print 'checked'; ?> ><?php echo _("Display fires on map"); ?></label></div></li>
717
+		    <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) {
718
+	print 'checked';
719
+}
720
+?> ><?php echo _("Display fires on map"); ?></label></div></li>
484 721
 <?php
485 722
 	}
486 723
 	if (isset($globalMap3D) && $globalMap3D) {
487 724
 ?>
488
-		    <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if ((isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') || (!isset($_COOKIE['singlemodel']) && isset($globalMap3DSelected) && $globalMap3DSelected)) print 'checked'; ?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li>
725
+		    <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if ((isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') || (!isset($_COOKIE['singlemodel']) && isset($globalMap3DSelected) && $globalMap3DSelected)) {
726
+	print 'checked';
727
+}
728
+?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li>
489 729
 <?php
490 730
 	}
491 731
 ?>
492 732
 <?php
493 733
     if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') {
494 734
 ?>
495
-		    <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>
496
-		    <li><div class="checkbox"><label><input type="checkbox" name="shadows" value="1" onclick="clickShadows(this)" <?php if ((!isset($_COOKIE['map3dnoshadows']) && (!isset($globalMap3DShadows) || $globalMap3DShadows)) || (isset($_COOKIE['map3dnoshadows']) && $_COOKIE['map3dnoshadows'] == 'false')) print 'checked'; ?> ><?php echo _("Use shadows"); ?></label></div></li>
497
-		    <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>
498
-		    <li><div class="checkbox"><label><input type="checkbox" name="updaterealtime" value="1" onclick="clickUpdateRealtime(this)" <?php if ((isset($_COOKIE['updaterealtime']) && $_COOKIE['updaterealtime'] == 'true') || !isset($_COOKIE['updaterealtime'])) print 'checked'; ?> ><?php echo _("Display realtime data in infobox"); ?></label></div></li>
735
+		    <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')) {
736
+	print 'checked';
737
+}
738
+?> ><?php echo _("Show mini-map"); ?></label></div></li>
739
+		    <li><div class="checkbox"><label><input type="checkbox" name="shadows" value="1" onclick="clickShadows(this)" <?php if ((!isset($_COOKIE['map3dnoshadows']) && (!isset($globalMap3DShadows) || $globalMap3DShadows)) || (isset($_COOKIE['map3dnoshadows']) && $_COOKIE['map3dnoshadows'] == 'false')) {
740
+	print 'checked';
741
+}
742
+?> ><?php echo _("Use shadows"); ?></label></div></li>
743
+		    <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)) {
744
+	print 'checked';
745
+}
746
+?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li>
747
+		    <li><div class="checkbox"><label><input type="checkbox" name="updaterealtime" value="1" onclick="clickUpdateRealtime(this)" <?php if ((isset($_COOKIE['updaterealtime']) && $_COOKIE['updaterealtime'] == 'true') || !isset($_COOKIE['updaterealtime'])) {
748
+	print 'checked';
749
+}
750
+?> ><?php echo _("Display realtime data in infobox"); ?></label></div></li>
499 751
 <?php
500 752
     }
501 753
     if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) {
@@ -508,17 +760,25 @@  discard block
 block discarded – undo
508 760
 			if (function_exists('array_column')) {
509 761
 			    if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) {
510 762
 		    ?>
511
-		    <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>
763
+		    <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) {
764
+	print 'checked';
765
+}
766
+?> ><?php echo _("Display polar on map"); ?></label></div></li>
512 767
 		    <?php
513 768
 			    }
514 769
 			} elseif (isset($globalSources)) {
515 770
 			    $dispolar = false;
516 771
 			    foreach ($globalSources as $testsource) {
517
-			        if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true;
772
+			        if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) {
773
+			        	$dispolar = true;
774
+			        }
518 775
 			    }
519 776
 			    if ($dispolar) {
520 777
 		    ?>
521
-		    <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>
778
+		    <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) {
779
+	print 'checked';
780
+}
781
+?> ><?php echo _("Display polar on map"); ?></label></div></li>
522 782
 		    <?php
523 783
 			    }
524 784
 		        }
@@ -531,11 +791,21 @@  discard block
 block discarded – undo
531 791
 			if (!isset($globalAircraft) || $globalAircraft === TRUE) {
532 792
 		    	    if (extension_loaded('gd') && function_exists('gd_info')) {
533 793
 		    ?>
534
-		    <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>
794
+		    <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') {
795
+	print 'checked';
796
+}
797
+?> ><?php echo _("Aircraft icon color based on altitude"); ?></li>
535 798
 		    <?php 
536 799
 				if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') {
537 800
 		    ?>
538
-			<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>
801
+			<li><?php echo _("Aircraft icon color:"); ?><input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) {
802
+	print $_COOKIE['IconColor'];
803
+} elseif (isset($globalAircraftIconColor)) {
804
+	print $globalAircraftIconColor;
805
+} else {
806
+	print '1a3151';
807
+}
808
+?>"></li>
539 809
 		    <?php
540 810
 				}
541 811
 			    }
@@ -546,7 +816,14 @@  discard block
 block discarded – undo
546 816
 			    if (extension_loaded('gd') && function_exists('gd_info')) {
547 817
 		    ?>
548 818
 		    <li><?php echo _("Marine icon color:"); ?>
549
-			<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'; ?>">
819
+			<input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) {
820
+	print $_COOKIE['MarineIconColor'];
821
+} elseif (isset($globalMarineIconColor)) {
822
+	print $globalMarineIconColor;
823
+} else {
824
+	print '1a3151';
825
+}
826
+?>">
550 827
 		    </li>
551 828
 		    <?php
552 829
 			    }
@@ -557,7 +834,14 @@  discard block
 block discarded – undo
557 834
 			    if (extension_loaded('gd') && function_exists('gd_info')) {
558 835
 		    ?>
559 836
 		    <li><?php echo _("Tracker icon color:"); ?>
560
-			<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'; ?>">
837
+			<input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) {
838
+	print $_COOKIE['TrackerIconColor'];
839
+} elseif (isset($globalTrackerIconColor)) {
840
+	print $globalTrackerIconColor;
841
+} else {
842
+	print '1a3151';
843
+}
844
+?>">
561 845
 		    </li>
562 846
 		    <?php
563 847
 			    }
@@ -568,8 +852,22 @@  discard block
 block discarded – undo
568 852
 		    ?>
569 853
 		    <li><?php echo _("Show airport icon at zoom level:"); ?>
570 854
 			<div class="range">
571
-			    <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'; ?>">
572
-			    <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output>
855
+			    <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) {
856
+	print $_COOKIE['AirportZoom'];
857
+} elseif (isset($globalAirportZoom)) {
858
+	print $globalAirportZoom;
859
+} else {
860
+	print '7';
861
+}
862
+?>">
863
+			    <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) {
864
+	print $_COOKIE['AirportZoom'];
865
+} elseif (isset($globalAirportZoom)) {
866
+	print $globalAirportZoom;
867
+} else {
868
+	print '7';
869
+}
870
+?></output>
573 871
 			</div>
574 872
 		    </li>
575 873
 		    <?php
@@ -580,17 +878,40 @@  discard block
 block discarded – undo
580 878
 ?>
581 879
 		    <li><?php echo _("Set scaling factor for rendering resolution:"); ?>
582 880
 			<div class="range">
583
-			    <input type="range" min="0.5" max="2" step="0.5" name="resolutionscale" onchange="scale.value=value;resolutionScale(resolutionscale.value);" value="<?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?>">
584
-			    <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?></output>
881
+			    <input type="range" min="0.5" max="2" step="0.5" name="resolutionscale" onchange="scale.value=value;resolutionScale(resolutionscale.value);" value="<?php if (isset($_COOKIE['resolutionScale'])) {
882
+	print $_COOKIE['resolutionScale'];
883
+} else {
884
+	print '1';
885
+}
886
+?>">
887
+			    <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) {
888
+	print $_COOKIE['resolutionScale'];
889
+} else {
890
+	print '1';
891
+}
892
+?></output>
585 893
 			</div>
586 894
 		    </li>
587 895
 <?php
588 896
 	if (!isset($globalAircraft) || $globalAircraft === TRUE) {
589 897
 ?>
590
-		    <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') print 'checked'; ?> > <?php echo _("Use airlines liveries"); ?></li>
591
-		    <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') print 'checked'; ?> > <?php echo _("Force Aircraft color"); ?>&nbsp;
898
+		    <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') {
899
+	print 'checked';
900
+}
901
+?> > <?php echo _("Use airlines liveries"); ?></li>
902
+		    <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') {
903
+	print 'checked';
904
+}
905
+?> > <?php echo _("Force Aircraft color"); ?>&nbsp;
592 906
 		    <!--<li><?php echo _("Aircraft icon color:"); ?>-->
593
-			<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 'ff0000'; ?>">
907
+			<input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) {
908
+	print $_COOKIE['IconColor'];
909
+} elseif (isset($globalAircraftIconColor)) {
910
+	print $globalAircraftIconColor;
911
+} else {
912
+	print 'ff0000';
913
+}
914
+?>">
594 915
 		    </li>
595 916
 <?php
596 917
 	}
@@ -598,9 +919,19 @@  discard block
 block discarded – undo
598 919
 <?php
599 920
 	if (isset($globalMarine) && $globalMarine === TRUE) {
600 921
 ?>
601
-		    <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Marine color"); ?>&nbsp;
922
+		    <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') {
923
+	print 'checked';
924
+}
925
+?> ><?php echo _("Force Marine color"); ?>&nbsp;
602 926
 		    <!--<li><?php echo _("Marine icon color:"); ?>-->
603
-			<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 'ff0000'; ?>">
927
+			<input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) {
928
+	print $_COOKIE['MarineIconColor'];
929
+} elseif (isset($globalMarineIconColor)) {
930
+	print $globalMarineIconColor;
931
+} else {
932
+	print 'ff0000';
933
+}
934
+?>">
604 935
 		    </li>
605 936
 <?php
606 937
 	}
@@ -608,9 +939,19 @@  discard block
 block discarded – undo
608 939
 <?php
609 940
 	if (isset($globalTracker) && $globalTracker === TRUE) {
610 941
 ?>
611
-		    <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Tracker color"); ?>&nbsp;
942
+		    <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') {
943
+	print 'checked';
944
+}
945
+?> ><?php echo _("Force Tracker color"); ?>&nbsp;
612 946
 		    <!--<li><?php echo _("Tracker icon color:"); ?>-->
613
-			<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 'ff0000'; ?>">
947
+			<input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) {
948
+	print $_COOKIE['TrackerIconColor'];
949
+} elseif (isset($globalTrackerIconColor)) {
950
+	print $globalTrackerIconColor;
951
+} else {
952
+	print 'ff0000';
953
+}
954
+?>">
614 955
 		    </li>
615 956
 <?php
616 957
 	}
@@ -618,29 +959,62 @@  discard block
 block discarded – undo
618 959
 ?>
619 960
 		    <li><?php echo _("Distance unit:"); ?>
620 961
 			<select class="selectpicker" onchange="unitdistance(this);">
621
-			    <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option>
622
-			    <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option>
623
-			    <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option>
962
+			    <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) {
963
+	echo ' selected';
964
+}
965
+?>>km</option>
966
+			    <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) {
967
+	echo ' selected';
968
+}
969
+?>>nm</option>
970
+			    <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) {
971
+	echo ' selected';
972
+}
973
+?>>mi</option>
624 974
 		        </select>
625 975
 		    </li>
626 976
 		    <li><?php echo _("Altitude unit:"); ?>
627 977
 			<select class="selectpicker" onchange="unitaltitude(this);">
628
-			    <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option>
629
-			    <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option>
978
+			    <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) {
979
+	echo ' selected';
980
+}
981
+?>>m</option>
982
+			    <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) {
983
+	echo ' selected';
984
+}
985
+?>>feet</option>
630 986
 		        </select>
631 987
 		    </li>
632 988
 		    <li><?php echo _("Speed unit:"); ?>
633 989
 			<select class="selectpicker" onchange="unitspeed(this);">
634
-			    <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) echo ' selected'; ?>>km/h</option>
635
-			    <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option>
636
-			    <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option>
990
+			    <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) {
991
+	echo ' selected';
992
+}
993
+?>>km/h</option>
994
+			    <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) {
995
+	echo ' selected';
996
+}
997
+?>>mph</option>
998
+			    <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) {
999
+	echo ' selected';
1000
+}
1001
+?>>knots</option>
637 1002
 		        </select>
638 1003
 		    </li>
639 1004
 		    <li><?php echo _("Coordinate unit:"); ?>
640 1005
 			<select class="selectpicker" onchange="unitcoordinate(this);">
641
-			    <option value="dd"<?php if ((!isset($_COOKIE['unitcoordinate']) && (!isset($globalUnitCoordinate) || (isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dd'))) || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dd')) echo ' selected'; ?>>DD</option>
642
-			    <option value="dms"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dms') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dms')) echo ' selected'; ?>>DMS</option>
643
-			    <option value="dm"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dm') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dm')) echo ' selected'; ?>>DM</option>
1006
+			    <option value="dd"<?php if ((!isset($_COOKIE['unitcoordinate']) && (!isset($globalUnitCoordinate) || (isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dd'))) || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dd')) {
1007
+	echo ' selected';
1008
+}
1009
+?>>DD</option>
1010
+			    <option value="dms"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dms') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dms')) {
1011
+	echo ' selected';
1012
+}
1013
+?>>DMS</option>
1014
+			    <option value="dm"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dm') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dm')) {
1015
+	echo ' selected';
1016
+}
1017
+?>>DM</option>
644 1018
 		        </select>
645 1019
 		    </li>
646 1020
 
@@ -658,9 +1032,18 @@  discard block
 block discarded – undo
658 1032
 		    <?php
659 1033
 			if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) {
660 1034
 		    ?>
661
-			<?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 } ?>
662
-			<?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 } ?>
663
-			<?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 } ?>
1035
+			<?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'])) {
1036
+	print 'checked';
1037
+}
1038
+?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?>
1039
+			<?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'])) {
1040
+	print 'checked';
1041
+}
1042
+?> ><?php echo _("Display IVAO data"); ?></li><?php } ?>
1043
+			<?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'])) {
1044
+	print 'checked';
1045
+}
1046
+?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?>
664 1047
 		    <?php
665 1048
 			}
666 1049
 		    ?>
@@ -668,10 +1051,16 @@  discard block
 block discarded – undo
668 1051
 			if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) {
669 1052
 		    ?>
670 1053
 			<?php if (isset($globalSBS1) && $globalSBS1) { ?>
671
-			    <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>
1054
+			    <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'])) {
1055
+	print 'checked';
1056
+}
1057
+?> ><?php echo _("Display ADS-B data"); ?></label></div></li>
672 1058
 			<?php } ?>
673 1059
 			<?php if (isset($globalAPRS) && $globalAPRS) { ?>
674
-			    <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['ShowAPRS']) && $_COOKIE['ShowAPRS'] == 'true') || !isset($_COOKIE['ShowAPRS'])) print 'checked'; ?> ><?php echo _("Display APRS data"); ?></label></div></li>
1060
+			    <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['ShowAPRS']) && $_COOKIE['ShowAPRS'] == 'true') || !isset($_COOKIE['ShowAPRS'])) {
1061
+	print 'checked';
1062
+}
1063
+?> ><?php echo _("Display APRS data"); ?></label></div></li>
675 1064
 			<?php } ?>
676 1065
 		    <?php
677 1066
 			}
@@ -688,7 +1077,9 @@  discard block
 block discarded – undo
688 1077
 				}
689 1078
 				foreach($allairlinenames as $airline) {
690 1079
 					$airline_name = $airline['airline_name'];
691
-					if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...';
1080
+					if (strlen($airline_name) > 30) {
1081
+						$airline_name = substr($airline_name,0,30).'...';
1082
+					}
692 1083
 					if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) {
693 1084
 						echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>';
694 1085
 					} else {
@@ -706,7 +1097,10 @@  discard block
 block discarded – undo
706 1097
 		    <li><?php echo _("Display alliance:"); ?>
707 1098
 		    <br/>
708 1099
 			<select class="selectpicker" onchange="alliance(this);" id="display_alliance">
709
-			    <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option>
1100
+			    <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') {
1101
+	echo ' selected';
1102
+}
1103
+?>><?php echo _("All"); ?></option>
710 1104
 			    <?php
711 1105
 				foreach($allalliancenames as $alliance) {
712 1106
 					$alliance_name = $alliance['alliance'];
@@ -765,10 +1159,22 @@  discard block
 block discarded – undo
765 1159
 		    ?>
766 1160
 		    <li><?php echo _("Display airlines of type:"); ?><br/>
767 1161
 			<select class="selectpicker" onchange="airlinestype(this);">
768
-			    <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option>
769
-			    <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option>
770
-			    <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option>
771
-			    <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option>
1162
+			    <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') {
1163
+	echo ' selected';
1164
+}
1165
+?>><?php echo _("All"); ?></option>
1166
+			    <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') {
1167
+	echo ' selected';
1168
+}
1169
+?>><?php echo _("Passenger"); ?></option>
1170
+			    <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') {
1171
+	echo ' selected';
1172
+}
1173
+?>><?php echo _("Cargo"); ?></option>
1174
+			    <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') {
1175
+	echo ' selected';
1176
+}
1177
+?>><?php echo _("Military"); ?></option>
772 1178
 			</select>
773 1179
 		    </li>
774 1180
 		    <?php
@@ -782,7 +1188,10 @@  discard block
 block discarded – undo
782 1188
 		    ?>
783 1189
 		    <li>
784 1190
 			<?php echo _("Display vessels with MMSI:"); ?>
785
-			<input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" />
1191
+			<input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) {
1192
+	print $_COOKIE['filter_mmsi'];
1193
+}
1194
+?>" />
786 1195
 		    </li>
787 1196
 			<?php
788 1197
 				if (isset($globalVM) && $globalVM) {
@@ -813,7 +1222,10 @@  discard block
 block discarded – undo
813 1222
 		    ?>
814 1223
 		    <li>
815 1224
 			<?php echo _("Display with ident:"); ?>
816
-			<input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" />
1225
+			<input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) {
1226
+	print $_COOKIE['filter_ident'];
1227
+}
1228
+?>" />
817 1229
 		    </li>
818 1230
 		</ul>
819 1231
 	    </form>
@@ -829,7 +1241,10 @@  discard block
 block discarded – undo
829 1241
 	    <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1>
830 1242
 	    <form>
831 1243
 		<ul>
832
-		    <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) print 'checked'; ?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li>
1244
+		    <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) {
1245
+	print 'checked';
1246
+}
1247
+?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li>
833 1248
 		    <li><?php echo _("Type:"); ?>
834 1249
 			<select class="selectpicker" multiple onchange="sattypes(this);">
835 1250
 			    <?php
@@ -837,25 +1252,45 @@  discard block
 block discarded – undo
837 1252
 				$types = $Satellite->get_tle_types();
838 1253
 				foreach ($types as $type) {
839 1254
 					$type_name = $type['tle_type'];
840
-					if ($type_name == 'musson') $type_name = 'Russian LEO Navigation';
841
-					else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System';
842
-					else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System';
843
-					else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational';
844
-					else if ($type_name == 'gps-ops') $type_name = 'GPS Operational';
845
-					else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System';
846
-					else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System';
847
-					else if ($type_name == 'sarsat') $type_name = 'Search & Rescue';
848
-					else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring';
849
-					else if ($type_name == 'resource') $type_name = 'Earth Resources';
850
-					else if ($type_name == 'stations') $type_name = 'Space Stations';
851
-					else if ($type_name == 'geo') $type_name = 'Geostationary';
852
-					else if ($type_name == 'amateur') $type_name = 'Amateur Radio';
853
-					else if ($type_name == 'x-comm') $type_name = 'Experimental';
854
-					else if ($type_name == 'other-comm') $type_name = 'Other Comm';
855
-					else if ($type_name == 'science') $type_name = 'Space & Earth Science';
856
-					else if ($type_name == 'military') $type_name = 'Miscellaneous Military';
857
-					else if ($type_name == 'radar') $type_name = 'Radar Calibration';
858
-					else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches';
1255
+					if ($type_name == 'musson') {
1256
+						$type_name = 'Russian LEO Navigation';
1257
+					} else if ($type_name == 'nnss') {
1258
+						$type_name = 'Navi Navigation Satellite System';
1259
+					} else if ($type_name == 'sbas') {
1260
+						$type_name = 'Satellite-Based Augmentation System';
1261
+					} else if ($type_name == 'glo-ops') {
1262
+						$type_name = 'Glonass Operational';
1263
+					} else if ($type_name == 'gps-ops') {
1264
+						$type_name = 'GPS Operational';
1265
+					} else if ($type_name == 'argos') {
1266
+						$type_name = 'ARGOS Data Collection System';
1267
+					} else if ($type_name == 'tdrss') {
1268
+						$type_name = 'Tracking and Data Relay Satellite System';
1269
+					} else if ($type_name == 'sarsat') {
1270
+						$type_name = 'Search & Rescue';
1271
+					} else if ($type_name == 'dmc') {
1272
+						$type_name = 'Disaster Monitoring';
1273
+					} else if ($type_name == 'resource') {
1274
+						$type_name = 'Earth Resources';
1275
+					} else if ($type_name == 'stations') {
1276
+						$type_name = 'Space Stations';
1277
+					} else if ($type_name == 'geo') {
1278
+						$type_name = 'Geostationary';
1279
+					} else if ($type_name == 'amateur') {
1280
+						$type_name = 'Amateur Radio';
1281
+					} else if ($type_name == 'x-comm') {
1282
+						$type_name = 'Experimental';
1283
+					} else if ($type_name == 'other-comm') {
1284
+						$type_name = 'Other Comm';
1285
+					} else if ($type_name == 'science') {
1286
+						$type_name = 'Space & Earth Science';
1287
+					} else if ($type_name == 'military') {
1288
+						$type_name = 'Miscellaneous Military';
1289
+					} else if ($type_name == 'radar') {
1290
+						$type_name = 'Radar Calibration';
1291
+					} else if ($type_name == 'tle-new') {
1292
+						$type_name = 'Last 30 days launches';
1293
+					}
859 1294
 					
860 1295
 					if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) {
861 1296
 						print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>';
Please login to merge, or discard this patch.