Completed
Push — master ( 46434e...ad133e )
by Yannick
32:08 queued 16:03
created
search.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -91,32 +91,32 @@
 block discarded – undo
91 91
 $limit_previous_2 = $limit_end - $absolute_difference;
92 92
 
93 93
 if (
94
-    (isset($_GET['q']) && $_GET['q'] != '') || 
95
-    (isset($_GET['registration']) && $_GET['registration'] != '') || 
96
-    (isset($_GET['aircraft']) && $_GET['aircraft'] != '') ||
97
-    (isset($_GET['manufacturer']) && $_GET['manufacturer'] != '') ||
98
-    (isset($_GET['highlights']) && $_GET['highlights'] != '') ||
99
-    (isset($_GET['airline']) && $_GET['airline'] != '') ||
100
-    (isset($_GET['airline_country']) && $_GET['airline_country'] != '') ||
101
-    (isset($_GET['airline_type']) && $_GET['airline_type'] != '') ||
102
-    (isset($_GET['airport']) && $_GET['airport'] != '') ||
103
-    (isset($_GET['airport_country']) && $_GET['airport_country'] != '') ||
104
-    (isset($_GET['callsign']) && $_GET['callsign'] != '') ||
105
-    (isset($_GET['captain_id']) && $_GET['captain_id'] != '') ||
106
-    (isset($_GET['race_id']) && $_GET['race_id'] != '') ||
107
-    (isset($_GET['captain_name']) && $_GET['captain_name'] != '') ||
108
-    (isset($_GET['race_name']) && $_GET['race_name'] != '') ||
109
-    (isset($_GET['owner']) && $_GET['owner'] != '') ||
110
-    (isset($_GET['pilot_name']) && $_GET['pilot_name'] != '') ||
111
-    (isset($_GET['pilot_id']) && $_GET['pilot_id'] != '') ||
112
-    (isset($_GET['departure_airport_route']) && $_GET['departure_airport_route'] != '') ||
113
-    (isset($_GET['arrival_airport_route']) && $_GET['arrival_airport_route'] != '') ||
114
-    (isset($_GET['mmsi']) && $_GET['mmsi'] != '') ||
115
-    (isset($_GET['imo']) && $_GET['imo'] != '') ||
116
-    ((isset($_GET['origlat']) && $_GET['origlat'] != '') &&
117
-    (isset($_GET['origlon']) && $_GET['origlon'] != '') &&
118
-    (isset($_GET['dist']) && $_GET['dist'] != ''))
119
-    ){  
94
+	(isset($_GET['q']) && $_GET['q'] != '') || 
95
+	(isset($_GET['registration']) && $_GET['registration'] != '') || 
96
+	(isset($_GET['aircraft']) && $_GET['aircraft'] != '') ||
97
+	(isset($_GET['manufacturer']) && $_GET['manufacturer'] != '') ||
98
+	(isset($_GET['highlights']) && $_GET['highlights'] != '') ||
99
+	(isset($_GET['airline']) && $_GET['airline'] != '') ||
100
+	(isset($_GET['airline_country']) && $_GET['airline_country'] != '') ||
101
+	(isset($_GET['airline_type']) && $_GET['airline_type'] != '') ||
102
+	(isset($_GET['airport']) && $_GET['airport'] != '') ||
103
+	(isset($_GET['airport_country']) && $_GET['airport_country'] != '') ||
104
+	(isset($_GET['callsign']) && $_GET['callsign'] != '') ||
105
+	(isset($_GET['captain_id']) && $_GET['captain_id'] != '') ||
106
+	(isset($_GET['race_id']) && $_GET['race_id'] != '') ||
107
+	(isset($_GET['captain_name']) && $_GET['captain_name'] != '') ||
108
+	(isset($_GET['race_name']) && $_GET['race_name'] != '') ||
109
+	(isset($_GET['owner']) && $_GET['owner'] != '') ||
110
+	(isset($_GET['pilot_name']) && $_GET['pilot_name'] != '') ||
111
+	(isset($_GET['pilot_id']) && $_GET['pilot_id'] != '') ||
112
+	(isset($_GET['departure_airport_route']) && $_GET['departure_airport_route'] != '') ||
113
+	(isset($_GET['arrival_airport_route']) && $_GET['arrival_airport_route'] != '') ||
114
+	(isset($_GET['mmsi']) && $_GET['mmsi'] != '') ||
115
+	(isset($_GET['imo']) && $_GET['imo'] != '') ||
116
+	((isset($_GET['origlat']) && $_GET['origlat'] != '') &&
117
+	(isset($_GET['origlon']) && $_GET['origlon'] != '') &&
118
+	(isset($_GET['dist']) && $_GET['dist'] != ''))
119
+	){  
120 120
 	$q = filter_input(INPUT_GET, 'q',FILTER_SANITIZE_STRING);
121 121
 	$registration = filter_input(INPUT_GET, 'registration',FILTER_SANITIZE_STRING);
122 122
 	$aircraft = filter_input(INPUT_GET, 'aircraft',FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
statistics.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -267,16 +267,16 @@  discard block
 block discarded – undo
267 267
                 <div class="more">
268 268
             	    <?php
269 269
             	    
270
-            		if ($year != '' && $month != '') {
271
-            	    ?>
270
+					if ($year != '' && $month != '') {
271
+					?>
272 272
             	    <a href="<?php print $globalURL; ?>/marine/statistics/type/<?php echo $year; ?>/<?php echo $month ?>/" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
273 273
             	    <?php
274
-            		} else {
275
-            	    ?>
274
+					} else {
275
+					?>
276 276
             	    <a href="<?php print $globalURL; ?>/marine/statistics/type" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
277 277
             	    <?php
278
-            		}
279
-            	    ?>
278
+					}
279
+					?>
280 280
                 </div>
281 281
             </div>
282 282
     <!-- <?php print 'Time elapsed : '.(microtime(true)-$beginpage).'s' ?> -->
@@ -308,16 +308,16 @@  discard block
 block discarded – undo
308 308
 ?>
309 309
                 <div class="more">
310 310
             	    <?php
311
-            		if ($year != '' && $month != '') {
312
-            	    ?>
311
+					if ($year != '' && $month != '') {
312
+					?>
313 313
             	    <a href="<?php print $globalURL; ?>/marine/statistics/race/<?php echo $year; ?>/<?php echo $month ?>/" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
314 314
             	    <?php
315
-            		} else {
316
-            	    ?>
315
+					} else {
316
+					?>
317 317
             	    <a href="<?php print $globalURL; ?>/marine/statistics/race" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
318 318
             	    <?php
319
-            		}
320
-            	    ?>
319
+					}
320
+					?>
321 321
                 </div>
322 322
             </div>
323 323
     <!-- <?php print 'Time elapsed : '.(microtime(true)-$beginpage).'s' ?> -->
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 ?>
355 355
                 <div class="more">
356 356
             	    <?php
357
-            	    /*
357
+					/*
358 358
             		if ($year != '' && $month != '') {
359 359
             	    ?>
360 360
             	    <a href="<?php print $globalURL; ?>/tracker/statistics/type/<?php echo $year; ?>/<?php echo $month ?>/" class="btn btn-default btn" role="button"><?php echo _("See full statistic"); ?>&raquo;</a>
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
             	    <?php
366 366
             		}
367 367
             		*/
368
-            	    ?>
368
+					?>
369 369
                 </div>
370 370
             </div>
371 371
     <!-- <?php print 'Time elapsed : '.(microtime(true)-$beginpage).'s' ?> -->
Please login to merge, or discard this patch.
footer.php 1 patch
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.
header.php 1 patch
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 // When button "Remove all filters" is clicked
39 39
 if (isset($_POST['removefilters'])) {
40 40
 	$allfilters = array_filter(array_keys($_COOKIE),function($key) {
41
-	    return strpos($key,'filter_') === 0;
41
+		return strpos($key,'filter_') === 0;
42 42
 	});
43 43
 	foreach ($allfilters as $filt) {
44 44
 		unset($_COOKIE[$filt]);
@@ -409,34 +409,34 @@  discard block
 block discarded – undo
409 409
 
410 410
       <ul class="nav navbar-nav">
411 411
 <?php
412
-    if (isset($globalNewsFeeds['global']) && !empty($globalNewsFeeds['global'])) {
412
+	if (isset($globalNewsFeeds['global']) && !empty($globalNewsFeeds['global'])) {
413 413
 ?>
414 414
     <li><a href="<?php print $globalURL; ?>/news"><?php echo _("News"); ?></a></li>
415 415
 <?php
416
-    }
416
+	}
417 417
 ?>
418 418
 
419 419
 <?php 
420
-    $sub = false;
421
-    if (
420
+	$sub = false;
421
+	if (
422 422
 	(
423
-	    (!isset($globalAircraft) || (isset($globalAircraft) && $globalAircraft === TRUE)) && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalTracker) && $globalTracker === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
423
+		(!isset($globalAircraft) || (isset($globalAircraft) && $globalAircraft === TRUE)) && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalTracker) && $globalTracker === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
424 424
 	) || 
425 425
 	(
426
-	    isset($globalMarine) && $globalMarine === TRUE && ((isset($globalTracker) && $globalTracker === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
426
+		isset($globalMarine) && $globalMarine === TRUE && ((isset($globalTracker) && $globalTracker === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
427 427
 	) || 
428 428
 	(
429
-	    isset($globalTracker) && $globalTracker === TRUE && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
429
+		isset($globalTracker) && $globalTracker === TRUE && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalSatellite) && $globalSatellite === TRUE))
430 430
 	) || 
431 431
 	(
432
-	    isset($globalSatellite) && $globalSatellite === TRUE && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalTracker) && $globalTracker === TRUE))
432
+		isset($globalSatellite) && $globalSatellite === TRUE && ((isset($globalMarine) && $globalMarine === TRUE) || (isset($globalTracker) && $globalTracker === TRUE))
433 433
 	)
434
-    ) {
434
+	) {
435 435
 	$sub = true;
436
-    }
436
+	}
437 437
 ?>
438 438
 <?php
439
-    if (!isset($globalAircraft) || $globalAircraft === TRUE) {
439
+	if (!isset($globalAircraft) || $globalAircraft === TRUE) {
440 440
 ?>
441 441
     <li class="dropdown">
442 442
 <?php
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 	<ul class="dropdown-menu multi-level">
448 448
       	<li class="dropdown-submenu">
449 449
 <?php
450
-        }
450
+		}
451 451
 ?>
452 452
 <?php
453 453
 	if (isset($globalNewsFeeds['aircraft']) && !empty($globalNewsFeeds['aircraft'])) {
@@ -462,25 +462,25 @@  discard block
 block discarded – undo
462 462
           <ul class="dropdown-menu">
463 463
           	<li><a href="<?php print $globalURL; ?>/aircraft"><?php echo _("Aircraft Types"); ?></a></li>
464 464
 <?php
465
-    if (!isset($globalNoAirlines) || $globalNoAirlines === FALSE) {
465
+	if (!isset($globalNoAirlines) || $globalNoAirlines === FALSE) {
466 466
 ?>
467 467
 			<li><a href="<?php print $globalURL; ?>/airline"><?php echo _("Airlines"); ?></a></li>
468 468
 <?php
469
-    }
469
+	}
470 470
 ?>
471 471
 			<li><a href="<?php print $globalURL; ?>/airport"><?php echo _("Airports"); ?></a></li>
472 472
 <?php
473
-    if ((isset($globalUseOwner) && $globalUseOwner) || (!isset($globalUseOwner) && (!isset($globalVA) || !$globalVA) && (!isset($globalIVAO) || !$globalIVAO) && (!isset($globalVATSIM) || !$globalVATSIM) && (!isset($globalphpVMS) || !$globalphpVMS) && (!isset($globalVAM) || !$globalVAM))) {
473
+	if ((isset($globalUseOwner) && $globalUseOwner) || (!isset($globalUseOwner) && (!isset($globalVA) || !$globalVA) && (!isset($globalIVAO) || !$globalIVAO) && (!isset($globalVATSIM) || !$globalVATSIM) && (!isset($globalphpVMS) || !$globalphpVMS) && (!isset($globalVAM) || !$globalVAM))) {
474 474
 ?>
475 475
 			<li><a href="<?php print $globalURL; ?>/owner"><?php echo _("Owners"); ?></a></li>
476 476
 <?php
477
-    } 
478
-    if ((isset($globalUsePilot) && $globalUsePilot) || !isset($globalUsePilot) && ((isset($globalVA) && $globalVA) || (isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS) || (isset($globalVAM) && $globalVAM))) {
477
+	} 
478
+	if ((isset($globalUsePilot) && $globalUsePilot) || !isset($globalUsePilot) && ((isset($globalVA) && $globalVA) || (isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS) || (isset($globalVAM) && $globalVAM))) {
479 479
 
480 480
 ?>
481 481
 			<li><a href="<?php print $globalURL; ?>/pilot"><?php echo _("Pilots"); ?></a></li>
482 482
 <?php
483
-    }
483
+	}
484 484
 ?>
485 485
 			<li><hr /></li>
486 486
             <li><a href="<?php print $globalURL; ?>/currently"><?php echo _("Current Activity"); ?></a></li>
@@ -488,43 +488,43 @@  discard block
 block discarded – undo
488 488
             <li><a href="<?php print $globalURL; ?>/date/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Activity"); ?></a></li>
489 489
             <li><a href="<?php print $globalURL; ?>/newest"><?php echo _("Newest by Category"); ?></a></li>
490 490
             <?php
491
-        	if ($globalACARS) {
492
-        	    if (isset($globalDemo) && $globalDemo) {
493
-    	    ?>
491
+			if ($globalACARS) {
492
+				if (isset($globalDemo) && $globalDemo) {
493
+			?>
494 494
             <li><hr /></li>
495 495
             <li><i><?php echo _('ACARS data not available publicly'); ?></i></li>
496 496
             <li><a href=""><?php echo _('Latest ACARS messages'); ?></a></li>
497 497
             <li><a href=""><?php echo _('Archive ACARS messages'); ?></a></li>
498 498
             <?php
499
-        	    } else {
500
-    	    ?>
499
+				} else {
500
+			?>
501 501
             <li><hr /></li>
502 502
             <li><a href="<?php print $globalURL; ?>/acars-latest"><?php echo _("Latest ACARS messages"); ?></a></li>
503 503
             <li><a href="<?php print $globalURL; ?>/acars-archive"><?php echo _("Archive ACARS messages"); ?></a></li>
504 504
             <?php
505
-        	    }
506
-        	}
507
-    	    ?>
505
+				}
506
+			}
507
+			?>
508 508
     	    <?php
509
-    	        if (isset($globalAccidents) && $globalAccidents) {
510
-    	    ?>
509
+				if (isset($globalAccidents) && $globalAccidents) {
510
+			?>
511 511
             <li><hr /></li>
512 512
             <li><a href="<?php print $globalURL; ?>/accident-latest"><?php echo _("Latest accident"); ?></a></li>
513 513
             <li><a href="<?php print $globalURL; ?>/accident/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Accident"); ?></a></li>
514 514
             <li><a href="<?php print $globalURL; ?>/incident-latest"><?php echo _("Latest incident"); ?></a></li>
515 515
             <li><a href="<?php print $globalURL; ?>/incident/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Incident"); ?></a></li>
516 516
             <?php
517
-        	}
518
-    	    ?>
517
+			}
518
+			?>
519 519
             <li><hr /></li>
520 520
             <li><a href="<?php print $globalURL; ?>/highlights/table"><?php echo _("Special Highlights"); ?></a></li>
521 521
             <?php
522 522
 		if (!isset($globalNoUpcoming) || $globalNoUpcoming === FALSE) {
523
-	    ?>
523
+		?>
524 524
             <li><a href="<?php print $globalURL; ?>/upcoming"><?php echo _("Upcoming Flights"); ?></a></li>
525 525
 	    <?php
526 526
 		}
527
-	    ?>
527
+		?>
528 528
           </ul>
529 529
         </li>
530 530
       	<li><a href="<?php print $globalURL; ?>/search"><?php echo _("Search"); ?></a></li>
@@ -551,14 +551,14 @@  discard block
 block discarded – undo
551 551
     </ul>
552 552
 <?php
553 553
 	}
554
-    }
554
+	}
555 555
 ?>
556 556
 <?php
557
-    if (isset($globalMarine) && $globalMarine) {
557
+	if (isset($globalMarine) && $globalMarine) {
558 558
 ?>
559 559
     <li class="dropdown">
560 560
 <?php
561
-        if ($sub) {
561
+		if ($sub) {
562 562
 ?>
563 563
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Marines"); ?> <b class="caret"></b></a>
564 564
 	<ul class="dropdown-menu multi-level">
@@ -601,14 +601,14 @@  discard block
 block discarded – undo
601 601
 	}
602 602
 ?>
603 603
 <?php
604
-    }
604
+	}
605 605
 ?>
606 606
 <?php
607
-    if (isset($globalTracker) && $globalTracker) {
607
+	if (isset($globalTracker) && $globalTracker) {
608 608
 ?>
609 609
     <li class="dropdown">
610 610
 <?php
611
-        if ($sub) {
611
+		if ($sub) {
612 612
 ?>
613 613
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Trackers"); ?> <b class="caret"></b></a>
614 614
 	<ul class="dropdown-menu multi-level">
@@ -642,14 +642,14 @@  discard block
 block discarded – undo
642 642
 	}
643 643
 ?>
644 644
 <?php
645
-    }
645
+	}
646 646
 ?>
647 647
 <?php
648
-    if (isset($globalSatellite) && $globalSatellite) {
648
+	if (isset($globalSatellite) && $globalSatellite) {
649 649
 ?>
650 650
     <li class="dropdown">
651 651
 <?php
652
-        if ($sub) {
652
+		if ($sub) {
653 653
 ?>
654 654
     <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo _("Satellites"); ?> <b class="caret"></b></a>
655 655
 	<ul class="dropdown-menu multi-level">
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 	}
686 686
 ?>
687 687
 <?php
688
-    }
688
+	}
689 689
 ?>
690 690
 
691 691
         <li class="dropdown">
@@ -693,13 +693,13 @@  discard block
 block discarded – undo
693 693
           <ul class="dropdown-menu">
694 694
           	<li><a href="<?php print $globalURL; ?>/about"><?php echo _("About The Project"); ?></a></li>
695 695
 <?php
696
-    if (!isset($globalAircraft) || $globalAircraft === TRUE) {
696
+	if (!isset($globalAircraft) || $globalAircraft === TRUE) {
697 697
 ?>
698 698
           	<li><a href="<?php print $globalURL; ?>/about/export"><?php echo _("Exporting Data"); ?></a></li>
699 699
 		<li><hr /></li>
700 700
 		<li><a href="<?php print $globalURL; ?>/about/tv"><?php echo _("Spotter TV"); ?></a></li>
701 701
 <?php
702
-    }
702
+	}
703 703
 ?>
704 704
 	    <?php if (isset($globalContribute) && $globalContribute) { ?>
705 705
                 <li><hr /></li>
@@ -723,13 +723,13 @@  discard block
 block discarded – undo
723 723
   	    <form>
724 724
   		<select class="selectpicker" data-width="120px" onchange="language(this);">
725 725
   		    <?php
726
-  		        foreach ($alllang as $key => $lang) {
727
-  		            print '<option value="'.$key.'"';
728
-  		            if (isset($_COOKIE['language']) && $_COOKIE['language'] == $key) print ' selected ';
729
-  		            if ($lang[0] == 'Deutsch') print '>'.$lang[0].' (&beta;eta)</option>';
730
-  		            else print '>'.$lang[0].'</option>';
731
-  		        }
732
-  		    ?>
726
+  				foreach ($alllang as $key => $lang) {
727
+  					print '<option value="'.$key.'"';
728
+  					if (isset($_COOKIE['language']) && $_COOKIE['language'] == $key) print ' selected ';
729
+  					if ($lang[0] == 'Deutsch') print '>'.$lang[0].' (&beta;eta)</option>';
730
+  					else print '>'.$lang[0].'</option>';
731
+  				}
732
+  			?>
733 733
   		</select>
734 734
   	    </form>
735 735
   	</div>
@@ -762,18 +762,18 @@  discard block
 block discarded – undo
762 762
 ?>
763 763
     <div class="top-header clear" role="main">
764 764
 <?php
765
-    if (isset($longitude) && isset($latitude) && $longitude != 0 && $latitude != 0) {
765
+	if (isset($longitude) && isset($latitude) && $longitude != 0 && $latitude != 0) {
766 766
 ?>
767 767
     <div id="archive-map"></div>
768 768
 <?php
769
-    }
769
+	}
770 770
 ?>
771 771
     </div>
772 772
 <?php
773 773
 }
774 774
 if ((strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) || (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false))
775 775
 {
776
-    ?>
776
+	?>
777 777
     <div class="top-header clear" role="main">
778 778
         <div id="map"></div>
779 779
 	<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
@@ -784,15 +784,15 @@  discard block
 block discarded – undo
784 784
         var zoom = 13;
785 785
 //create the map
786 786
 <?php
787
-    if (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($airport_array[0]['latitude'])) {
787
+	if (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($airport_array[0]['latitude'])) {
788 788
 ?>
789 789
   map = L.map('map', { zoomControl:true }).setView([<?php print $airport_array[0]['latitude']; ?>,<?php print $airport_array[0]['longitude']; ?>], zoom);
790 790
 <?php
791
-    } elseif (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) {
791
+	} elseif (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) {
792 792
 ?>
793 793
   map = L.map('map', { zoomControl:true });
794 794
 <?php
795
-    } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) {
795
+	} elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) {
796 796
 ?>
797 797
   map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['departure_airport_latitude']; ?>,<?php print $spotter_array[0]['arrival_airport_longitude']; ?>]);
798 798
     var line = L.polyline([[<?php print $spotter_array[0]['departure_airport_latitude']; ?>, <?php print $spotter_array[0]['departure_airport_longitude']; ?>],[<?php print $spotter_array[0]['arrival_airport_latitude']; ?>, <?php print $spotter_array[0]['arrival_airport_longitude']; ?>]]).addTo(map);
@@ -800,22 +800,22 @@  discard block
 block discarded – undo
800 800
     var departure_airport = L.marker([<?php print $spotter_array[0]['departure_airport_latitude']; ?>, <?php print $spotter_array[0]['departure_airport_longitude']; ?>], {icon: L.icon({iconUrl: '<?php print $globalURL; ?>/images/departure_airport.png',iconSize: [16,18],iconAnchor: [8,16]})}).addTo(map);
801 801
     var arrival_airport = L.marker([<?php print $spotter_array[0]['arrival_airport_latitude']; ?>, <?php print $spotter_array[0]['arrival_airport_longitude']; ?>], {icon: L.icon({iconUrl: '<?php print $globalURL; ?>/images/arrival_airport.png',iconSize: [16,18],iconAnchor: [8,16]})}).addTo(map);
802 802
 <?php
803
-    } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && !isset($spotter_array[0]['departure_airport_latitude']) && isset($spotter_array[0]['latitude'])) {
803
+	} elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && !isset($spotter_array[0]['departure_airport_latitude']) && isset($spotter_array[0]['latitude'])) {
804 804
 ?>
805 805
   map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['latitude']; ?>,<?php print $spotter_array[0]['longitude']; ?>]);
806 806
 <?php
807
-    } elseif (!isset($spotter_array[0]['latitude']) && !isset($spotter_array[0]['longitude'])) {
807
+	} elseif (!isset($spotter_array[0]['latitude']) && !isset($spotter_array[0]['longitude'])) {
808 808
 ?>
809 809
   map = L.map('map', { zoomControl:true });
810 810
 <?php
811
-    }
811
+	}
812 812
 ?>
813 813
   //initialize the layer group for the aircrft markers
814 814
   var layer_data = L.layerGroup();
815 815
 
816 816
   //a few title layers
817 817
 <?php
818
-    if ($globalMapProvider == 'Mapbox') {
818
+	if ($globalMapProvider == 'Mapbox') {
819 819
 ?>
820 820
   L.tileLayer('https://{s}.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={token}', {
821 821
     maxZoom: 18,
@@ -826,14 +826,14 @@  discard block
 block discarded – undo
826 826
     token : '<?php print $globalMapboxToken; ?>'
827 827
   }).addTo(map);
828 828
 <?php
829
-    } elseif ($globalMapProvider == 'Mapbox-GL') {
829
+	} elseif ($globalMapProvider == 'Mapbox-GL') {
830 830
 ?>
831 831
     L.mapboxGL({
832 832
 	accessToken: '<?php print $globalMapboxToken; ?>',
833 833
 	style: 'mapbox://styles/mapbox/bright-v8'
834 834
   }).addTo(map);
835 835
 <?php
836
-    } elseif ($globalMapProvider == 'MapQuest-OSM') {
836
+	} elseif ($globalMapProvider == 'MapQuest-OSM') {
837 837
 ?>
838 838
   L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
839 839
     maxZoom: 18,
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
       'Tiles Courtesy of <a href="http://www.mapquest.com">MapQuest</a>'
843 843
   }).addTo(map);
844 844
 <?php
845
-    } elseif ($globalMapProvider == 'MapQuest-Aerial') {
845
+	} elseif ($globalMapProvider == 'MapQuest-Aerial') {
846 846
 ?>
847 847
   L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png', {
848 848
     maxZoom: 18,
@@ -851,27 +851,27 @@  discard block
 block discarded – undo
851 851
       'Tiles Courtesy of <a href="http://www.mapquest.com">MapQuest</a>, Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"'
852 852
   }).addTo(map);
853 853
 <?php
854
-    } elseif ($globalMapProvider == 'Google-Roadmap') {
854
+	} elseif ($globalMapProvider == 'Google-Roadmap') {
855 855
 ?>
856 856
     var googleLayer = new L.Google('ROADMAP');
857 857
     map.addLayer(googleLayer);
858 858
 <?php
859
-    } elseif ($globalMapProvider == 'Google-Satellite') {
859
+	} elseif ($globalMapProvider == 'Google-Satellite') {
860 860
 ?>
861 861
     var googleLayer = new L.Google('SATELLITE');
862 862
     map.addLayer(googleLayer);
863 863
 <?php
864
-    } elseif ($globalMapProvider == 'Google-Hybrid') {
864
+	} elseif ($globalMapProvider == 'Google-Hybrid') {
865 865
 ?>
866 866
     var googleLayer = new L.Google('HYBRID');
867 867
     map.addLayer(googleLayer);
868 868
 <?php
869
-    } elseif ($globalMapProvider == 'Google-Terrain') {
869
+	} elseif ($globalMapProvider == 'Google-Terrain') {
870 870
 ?>
871 871
     var googleLayer = new L.Google('Terrain');
872 872
     map.addLayer(googleLayer);
873 873
 <?php
874
-    } elseif (isset($globalMapCustomLayer[$globalMapProvider])) {
874
+	} elseif (isset($globalMapCustomLayer[$globalMapProvider])) {
875 875
 	$customid = $globalMapProvider;
876 876
 ?>
877 877
     L.tileLayer('<?php print $globalMapCustomLayer[$customid]['url']; ?>/{z}/{x}/{y}.png', {
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
         attribution: '<?php print $globalMapCustomLayer[$customid]['attribution']; ?>'
882 882
     }).addTo(map);
883 883
 <?php
884
-    } elseif ($globalMapProvider == 'offline' || (isset($globalMapOffline) && $globalMapOffline === TRUE)) {
884
+	} elseif ($globalMapProvider == 'offline' || (isset($globalMapOffline) && $globalMapOffline === TRUE)) {
885 885
 ?>
886 886
     var center = map.getCenter();
887 887
     map.options.crs = L.CRS.EPSG4326;
@@ -896,8 +896,8 @@  discard block
 block discarded – undo
896 896
         attribution: 'Natural Earth'
897 897
     }).addTo(map);
898 898
 <?php
899
-    //} elseif ($globalMapProvider == 'OpenStreetMap') {
900
-    } else {
899
+	//} elseif ($globalMapProvider == 'OpenStreetMap') {
900
+	} else {
901 901
 ?>
902 902
   L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
903 903
     maxZoom: 18,
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
   }).addTo(map);
907 907
 
908 908
 <?php
909
-    }
909
+	}
910 910
 ?>
911 911
         </script>
912 912
     </div>
Please login to merge, or discard this patch.
location-geojson.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
 {
14 14
 	$coords = explode(',',$_GET['coord']);
15 15
 	if ((isset($_COOKIE['show_GroundStation']) && $_COOKIE['show_GroundStation'] == 'true') 
16
-	    || (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) {
16
+		|| (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) {
17 17
 		//$spotter_array = $Source->getAllLocationInfo();
18 18
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('gs',$coords));
19 19
 	}
20 20
 	if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') 
21
-	    || (!isset($_COOKIE['show_WeatherStation']) && (isset($globalMapWeatherStation) && $globalMapWeatherStation === TRUE))) {
21
+		|| (!isset($_COOKIE['show_WeatherStation']) && (isset($globalMapWeatherStation) && $globalMapWeatherStation === TRUE))) {
22 22
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('wx',$coords));
23 23
 	}
24 24
 	if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') 
25
-	    || (!isset($_COOKIE['show_Lightning']) && (isset($globalMapLightning) && $globalMapLightning === TRUE))) {
25
+		|| (!isset($_COOKIE['show_Lightning']) && (isset($globalMapLightning) && $globalMapLightning === TRUE))) {
26 26
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('lightning',$coords));
27 27
 	}
28 28
 	if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') 
29
-	    || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) {
29
+		|| (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) {
30 30
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('fires',$coords,true));
31 31
 	}
32 32
 	if (!isset($globalDemo)) {
@@ -34,20 +34,20 @@  discard block
 block discarded – undo
34 34
 	}
35 35
 } else {
36 36
 	if ((isset($_COOKIE['show_GroundStation']) && $_COOKIE['show_GroundStation'] == 'true') 
37
-	    || (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) {
37
+		|| (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) {
38 38
 		//$spotter_array = $Source->getAllLocationInfo();
39 39
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('gs'));
40 40
 	}
41 41
 	if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') 
42
-	    || (!isset($_COOKIE['show_WeatherStation']) && (isset($globalMapWeatherStation) && $globalMapWeatherStation === TRUE))) {
42
+		|| (!isset($_COOKIE['show_WeatherStation']) && (isset($globalMapWeatherStation) && $globalMapWeatherStation === TRUE))) {
43 43
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('wx'));
44 44
 	}
45 45
 	if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') 
46
-	    || (!isset($_COOKIE['show_Lightning']) && (isset($globalMapLightning) && $globalMapLightning === TRUE))) {
46
+		|| (!isset($_COOKIE['show_Lightning']) && (isset($globalMapLightning) && $globalMapLightning === TRUE))) {
47 47
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('lightning'));
48 48
 	}
49 49
 	if ((isset($_COOKIE['show_Fire']) && $_COOKIE['show_Fire'] == 'true') 
50
-	    || (!isset($_COOKIE['show_Fire']) && (isset($globalMapFires) && $globalMapFires === TRUE))) {
50
+		|| (!isset($_COOKIE['show_Fire']) && (isset($globalMapFires) && $globalMapFires === TRUE))) {
51 51
 		$spotter_array = array_merge($spotter_array,$Source->getLocationInfoByType('fires',array(),true));
52 52
 	}
53 53
 	if (!isset($globalDemo)) {
Please login to merge, or discard this patch.
scripts/daemon-acars.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -11,27 +11,27 @@  discard block
 block discarded – undo
11 11
 require_once(dirname(__FILE__).'/../require/class.Connection.php');
12 12
 $schema = new Connection();
13 13
 if ($schema->latest() === false) {
14
-    echo "You MUST update to latest schema. Run install/index.php";
15
-    exit();
14
+	echo "You MUST update to latest schema. Run install/index.php";
15
+	exit();
16 16
 }
17 17
 if ($globalInstalled === FALSE) {
18
-    echo "Install script MUST be run before this script. Use you web browser to run install/index.php";
19
-    die();
18
+	echo "Install script MUST be run before this script. Use you web browser to run install/index.php";
19
+	die();
20 20
 }
21 21
 if (!isset($globalACARSHost) || !isset($globalACARSPort) || $globalACARSHost == '' || $globalACARSPort == '') {
22
-    echo 'You MUST define $globalACARSHost and $globalACARSPort in require/settings.php';
23
-    die();
22
+	echo 'You MUST define $globalACARSHost and $globalACARSPort in require/settings.php';
23
+	die();
24 24
 }
25 25
 
26 26
 $ACARS=new ACARS(null,true);
27 27
 date_default_timezone_set('UTC');
28 28
 // signal handler - playing nice with sockets and dump1090
29 29
 pcntl_signal(SIGINT,  function($signo) {
30
-    global $sock;
31
-    echo "\n\nctrl-c or kill signal received. Tidying up ... ";
32
-    socket_shutdown($sock, 0);
33
-    socket_close($sock);
34
-    die("Bye!\n");
30
+	global $sock;
31
+	echo "\n\nctrl-c or kill signal received. Tidying up ... ";
32
+	socket_shutdown($sock, 0);
33
+	socket_close($sock);
34
+	die("Bye!\n");
35 35
 });
36 36
 pcntl_signal_dispatch();
37 37
 
@@ -44,24 +44,24 @@  discard block
 block discarded – undo
44 44
 // Bind the source address
45 45
 if( !socket_bind($sock, $globalACARSHost , $globalACARSPort) )
46 46
 {
47
-    $errorcode = socket_last_error();
48
-    $errormsg = socket_strerror($errorcode);
47
+	$errorcode = socket_last_error();
48
+	$errormsg = socket_strerror($errorcode);
49 49
      
50
-    die("Could not bind socket : [$errorcode] $errormsg \n");
50
+	die("Could not bind socket : [$errorcode] $errormsg \n");
51 51
 }
52 52
 
53 53
 if ($globalDebug) echo "LISTEN UDP MODE \n\n";
54 54
 while(1) {
55
-    $r = socket_recvfrom($sock, $buffer, 512, 0, $remote_ip, $remote_port);
55
+	$r = socket_recvfrom($sock, $buffer, 512, 0, $remote_ip, $remote_port);
56 56
 
57
-    // lets play nice and handle signals such as ctrl-c/kill properly
58
-    pcntl_signal_dispatch();
59
-    $dataFound = false;
60
-    //  (null) 2 23/02/2015 14:46:06 0 -16 X .D-AIPW ! 1L 7 M82A LH077P 010952342854:VP-MIBI+W+0)-V+(),GB1
61
-    if ($globalDebug) echo $buffer."\n";
62
-    $ACARS->add(trim($buffer));
63
-    socket_sendto($sock, "OK " . $buffer , 100 , 0 , $remote_ip , $remote_port);
64
-    $ACARS->deleteLiveAcarsData();
57
+	// lets play nice and handle signals such as ctrl-c/kill properly
58
+	pcntl_signal_dispatch();
59
+	$dataFound = false;
60
+	//  (null) 2 23/02/2015 14:46:06 0 -16 X .D-AIPW ! 1L 7 M82A LH077P 010952342854:VP-MIBI+W+0)-V+(),GB1
61
+	if ($globalDebug) echo $buffer."\n";
62
+	$ACARS->add(trim($buffer));
63
+	socket_sendto($sock, "OK " . $buffer , 100 , 0 , $remote_ip , $remote_port);
64
+	$ACARS->deleteLiveAcarsData();
65 65
 }
66 66
 pcntl_exec($_,$argv);
67 67
 ?>
Please login to merge, or discard this patch.
install/header.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 <meta property="og:site_name" content="<?php print $globalName; ?>"/>
46 46
 
47 47
 <?php
48
-    if (!isset($_SESSION['install']) && !isset($_POST['dbtype'])) {
48
+	if (!isset($_SESSION['install']) && !isset($_POST['dbtype'])) {
49 49
 ?>
50 50
 <script language="JavaScript" type="text/javascript">
51 51
     function datasource_js() {
@@ -154,22 +154,22 @@  discard block
 block discarded – undo
154 154
     }
155 155
 </script>
156 156
 <?php
157
-    }
157
+	}
158 158
 ?>
159 159
 
160 160
 </head>
161 161
 
162 162
 <?php
163
-    if (!isset($_SESSION['install']) && !isset($_POST['dbtype']) && isset($_SESSION['identified'])) {
163
+	if (!isset($_SESSION['install']) && !isset($_POST['dbtype']) && isset($_SESSION['identified'])) {
164 164
 ?>
165 165
 
166 166
 <body class="page-<?php print strtolower($current_page); ?>" onload="datasource_js(); metarcycle_js(); create_database_js(); daemon_js(); schedule_js()">
167 167
 <?php
168
-    } else {
168
+	} else {
169 169
 ?>
170 170
     <body class="page-<?php print strtolower($current_page); ?>">
171 171
 <?php
172
-    }
172
+	}
173 173
 ?>
174 174
 <div class="navbar navbar-fixed-top" role="navigation">
175 175
     <div class="container">
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	    <a class="navbar-brand" href="../"><img src="<?php print '../'.$logoURL; ?>" height="30px" /></a>
184 184
 	</div>
185 185
 <?php
186
-    if (!isset($_SESSION['install']) && !isset($_POST['dbtype']) && isset($_SESSION['identified'])) {
186
+	if (!isset($_SESSION['install']) && !isset($_POST['dbtype']) && isset($_SESSION['identified'])) {
187 187
 ?>
188 188
 	<div class="collapse navbar-collapse">
189 189
 	    <ul class="nav navbar-nav">
@@ -213,19 +213,19 @@  discard block
 block discarded – undo
213 213
 	     </ul>
214 214
 	</div>
215 215
 <?php
216
-    }
216
+	}
217 217
 ?>
218 218
     </div>
219 219
 </div>
220 220
 
221 221
 <?php
222 222
 if (isset($top_header)) {
223
-    if ($top_header != "")
224
-    {
223
+	if ($top_header != "")
224
+	{
225 225
 	print '<div class="top-header container clear" role="main">';
226 226
 		print '<img src="../images/'.$top_header.'" alt="'.$title.'" title="'.$title.'" />';
227 227
 	print '</div>';
228
-    }
228
+	}
229 229
 }
230 230
 ?>
231 231
 
Please login to merge, or discard this patch.
js/map.2d.js.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
 	};
449 449
 
450 450
 <?php
451
-    if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
451
+	if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) {
452 452
 ?>
453 453
 	function tskPopup (feature, layer) {
454 454
 		var output = '';
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 	};
484 484
 	update_tsk();
485 485
 <?php
486
-    }
486
+	}
487 487
 ?>
488 488
 	map.on('moveend', function() {
489 489
 		if (map.hasLayer(locationsLayer) == true) {
@@ -504,10 +504,10 @@  discard block
 block discarded – undo
504 504
 		update_santaLayer(false);
505 505
 	}
506 506
 <?php
507
-    // Add support for custom json via $globalMapJson
508
-    if (isset($globalMapJson) && is_array($globalMapJson)) {
507
+	// Add support for custom json via $globalMapJson
508
+	if (isset($globalMapJson) && is_array($globalMapJson)) {
509 509
 	foreach ($globalMapJson as $json) {
510
-	    if (isset($json['url'])) {
510
+		if (isset($json['url'])) {
511 511
 ?>
512 512
 update_genLayer('<?php print $json['url']; ?>');
513 513
 <?php
@@ -516,9 +516,9 @@  discard block
 block discarded – undo
516 516
 setInterval(function(){if (noTimeout) update_genLayer('<?php print $json['url']; ?>')}, <?php print $json['refresh']; ?>);
517 517
 <?php
518 518
 		}
519
-	    }
519
+		}
520
+	}
520 521
 	}
521
-    }
522 522
 
523 523
 ?>
524 524
 //adds the bootstrap tooltip to the map icons
Please login to merge, or discard this patch.
index.php 1 patch
Indentation   +108 added lines, -108 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
 
@@ -306,15 +306,15 @@  discard block
 block discarded – undo
306 306
 		    </div>
307 307
 		</li>
308 308
 		<?php
309
-		    if (isset($globalDemo) && $globalDemo) {
309
+			if (isset($globalDemo) && $globalDemo) {
310 310
 		?>
311 311
 		<li><button type="button" class="btn btn-primary disabled"><?php echo _("Show archive"); ?></button> Disabled in Demo mode</li>
312 312
 		<?php
313
-		    } else {
313
+			} else {
314 314
 		?>
315 315
 		<li><button type="button" onclick="addarchive(begindate,enddate);" class="btn btn-primary"><?php echo _("Show archive"); ?></button></li>
316 316
 		<?php
317
-		    }
317
+			}
318 318
 		?>
319 319
 	    </ul>
320 320
 	    <ul>
@@ -333,82 +333,82 @@  discard block
 block discarded – undo
333 333
 				if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
334 334
 					if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider;
335 335
 					else $MapType = $_COOKIE['MapType'];
336
-			    ?>
336
+				?>
337 337
 			<select  class="selectpicker" onchange="mapType(this);">
338 338
 			    <?php
339 339
 				} else {
340 340
 					if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') $MapType = $globalMapProvider;
341 341
 					else $MapType = $_COOKIE['MapType3D'];
342
-			    ?>
342
+				?>
343 343
 			<select  class="selectpicker" onchange="mapType3D(this);">
344 344
 			    <?php
345 345
 				}
346
-			    ?>
346
+				?>
347 347
 			    <?php
348 348
 				if (isset($globalMapOffline) && $globalMapOffline === TRUE) {
349
-			    ?>
349
+				?>
350 350
 			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option>
351 351
 			    <?php
352 352
 				} else {
353
-				    if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) {
354
-			    ?>
353
+					if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) {
354
+				?>
355 355
 			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option>
356 356
 			    <?php
357
-				    }
358
-			    ?>
357
+					}
358
+				?>
359 359
 			    <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option>
360 360
 			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option>
361 361
 			    <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') print ' selected'; ?>>ArcGIS Ocean</option>
362 362
 			    <?php
363
-				    if (isset($globalBingMapKey) && $globalBingMapKey != '') {
364
-			    ?>
363
+					if (isset($globalBingMapKey) && $globalBingMapKey != '') {
364
+				?>
365 365
 			    <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option>
366 366
 			    <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option>
367 367
 			    <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option>
368 368
 			    <?php
369
-				    }
370
-			    ?>
369
+					}
370
+				?>
371 371
 			    <?php
372
-				    if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
373
-			    ?>
372
+					if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
373
+				?>
374 374
 			    <?php
375 375
 					if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') {
376
-			    ?>
376
+				?>
377 377
 			    <option value="Here-Aerial"<?php if ($MapType == 'Here-Aerial') print ' selected'; ?>>Here-Aerial</option>
378 378
 			    <option value="Here-Hybrid"<?php if ($MapType == 'Here-Hybrid') print ' selected'; ?>>Here-Hybrid</option>
379 379
 			    <option value="Here-Road"<?php if ($MapType == 'Here-Road') print ' selected'; ?>>Here-Road</option>
380 380
 			    <?php
381 381
 					}
382
-			    ?>
382
+				?>
383 383
 			    <?php
384 384
 					if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') {
385
-			    ?>
385
+				?>
386 386
 			    <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option>
387 387
 			    <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option>
388 388
 			    <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option>
389 389
 			    <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option>
390 390
 			    <?php
391 391
 					}
392
-			    ?>
392
+				?>
393 393
 			    <?php
394 394
 					if (isset($globalMapQuestKey) && $globalMapQuestKey != '') {
395
-			    ?>
395
+				?>
396 396
 			    <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option>
397 397
 			    <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option>
398 398
 			    <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option>
399 399
 			    <?php
400 400
 					}
401
-			    ?>
401
+				?>
402 402
 			    <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option>
403 403
 			    <?php
404
-				    }
405
-			    ?>
404
+					}
405
+				?>
406 406
 			    <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option>
407 407
 			    <?php
408
-				    if (isset($globalMapboxToken) && $globalMapboxToken != '') {
408
+					if (isset($globalMapboxToken) && $globalMapboxToken != '') {
409 409
 					if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default';
410 410
 					else $MapBoxId = $_COOKIE['MapTypeId'];
411
-			    ?>
411
+				?>
412 412
 			    <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option>
413 413
 			    <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option>
414 414
 			    <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option>
@@ -423,17 +423,17 @@  discard block
 block discarded – undo
423 423
 			    <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option>
424 424
 			    <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option>
425 425
 			    <?php
426
-				    }
427
-			    ?>
426
+					}
427
+				?>
428 428
 			    <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option>
429 429
 			    <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option>
430 430
 			    <?php
431 431
 				}
432
-			    ?>
432
+				?>
433 433
 			</select>
434 434
 		    </li>
435 435
 <?php
436
-    if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) {
436
+	if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) {
437 437
 ?>
438 438
 		    <li><?php echo _("Type of Terrain:"); ?>
439 439
 			<select  class="selectpicker" onchange="terrainType(this);">
@@ -444,18 +444,18 @@  discard block
 block discarded – undo
444 444
 			</select>
445 445
 		    </li>
446 446
 <?php
447
-    }
447
+	}
448 448
 ?>
449 449
 
450 450
 <?php
451
-    if (isset($globalMap3D) && $globalMap3D) {
451
+	if (isset($globalMap3D) && $globalMap3D) {
452 452
 ?>
453 453
 		    <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>
454 454
 <?php
455
-    }
455
+	}
456 456
 ?>
457 457
 <?php
458
-    if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
458
+	if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
459 459
 ?>
460 460
 		    <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>
461 461
 
@@ -478,12 +478,12 @@  discard block
 block discarded – undo
478 478
 		    <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>
479 479
 <?php
480 480
 	}
481
-    }
482
-    if (!isset($globalAircraft) || $globalAircraft === TRUE) {
481
+	}
482
+	if (!isset($globalAircraft) || $globalAircraft === TRUE) {
483 483
 ?>
484 484
 		    <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>
485 485
 <?php
486
-    }
486
+	}
487 487
 ?>
488 488
 		    <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>
489 489
 		    <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>
@@ -502,88 +502,88 @@  discard block
 block discarded – undo
502 502
 ?>
503 503
 		    <li><div class="checkbox"><label><input type="checkbox" name="truelight" value="1" onclick="clickTrueLight(this)" <?php if ((!isset($_COOKIE['truelight']) && (!isset($globalMapTrueLight) || $globalMapTrueLight)) || (isset($_COOKIE['truelight']) && $_COOKIE['truelight'] == 'true')) print 'checked'; ?> ><?php echo _("Enable globe sun lighting"); ?></label></div></li>
504 504
 <?php
505
-    if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') {
505
+	if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') {
506 506
 ?>
507 507
 		    <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>
508 508
 		    <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>
509 509
 		    <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>
510 510
 		    <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>
511 511
 <?php
512
-    }
513
-    if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) {
512
+	}
513
+	if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) {
514 514
 ?>
515 515
 		    <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>
516 516
 <?php
517
-    }
517
+	}
518 518
 ?>
519 519
 		    <?php
520 520
 			if (function_exists('array_column')) {
521
-			    if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) {
522
-		    ?>
521
+				if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) {
522
+			?>
523 523
 		    <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>
524 524
 		    <?php
525
-			    }
525
+				}
526 526
 			} elseif (isset($globalSources)) {
527
-			    $dispolar = false;
528
-			    foreach ($globalSources as $testsource) {
529
-			        if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true;
530
-			    }
531
-			    if ($dispolar) {
532
-		    ?>
527
+				$dispolar = false;
528
+				foreach ($globalSources as $testsource) {
529
+					if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true;
530
+				}
531
+				if ($dispolar) {
532
+			?>
533 533
 		    <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>
534 534
 		    <?php
535
-			    }
536
-		        }
537
-		    ?>
535
+				}
536
+				}
537
+			?>
538 538
 <?php
539
-    if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
539
+	if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') {
540 540
 ?>
541 541
 		    <?php
542 542
 			if (!isset($globalAircraft) || $globalAircraft === TRUE) {
543
-		    ?>
543
+			?>
544 544
 		    <li><?php echo _("Max number of flights to display in 2D:"); ?> <input type="number" name="2dlimit" value="<?php if (isset($_COOKIE['map_2d_limit'])) print $_COOKIE['map_2d_limit']; elseif (isset($globalMap2DAircraftsLimit)) print $globalMap2DAircraftsLimit; else print 15000; ?>" onchange="map2dlimit(this.value);" /></li>
545 545
 		    <?php
546 546
 			}
547
-		    ?>
547
+			?>
548 548
 		    <?php
549 549
 			if (!isset($globalAircraft) || $globalAircraft === TRUE) {
550
-		    	    if (extension_loaded('gd') && function_exists('gd_info')) {
551
-		    ?>
550
+					if (extension_loaded('gd') && function_exists('gd_info')) {
551
+			?>
552 552
 		    <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>
553 553
 		    <?php 
554 554
 				if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') {
555
-		    ?>
555
+			?>
556 556
 			<li><?php echo _("Aircraft icon color:"); ?> <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(this.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print '1a3151'; ?>"></li>
557 557
 		    <?php
558 558
 				}
559
-			    }
560
-		        }
561
-		    ?>
559
+				}
560
+				}
561
+			?>
562 562
 		    <?php
563 563
 			if (isset($globalMarine) && $globalMarine === TRUE) {
564
-			    if (extension_loaded('gd') && function_exists('gd_info')) {
565
-		    ?>
564
+				if (extension_loaded('gd') && function_exists('gd_info')) {
565
+			?>
566 566
 		    <li><?php echo _("Marine icon color:"); ?>
567 567
 			<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'; ?>">
568 568
 		    </li>
569 569
 		    <?php
570
-			    }
571
-		        }
572
-		    ?>
570
+				}
571
+				}
572
+			?>
573 573
 		    <?php
574 574
 			if (isset($globalTracker) && $globalTracker === TRUE) {
575
-			    if (extension_loaded('gd') && function_exists('gd_info')) {
576
-		    ?>
575
+				if (extension_loaded('gd') && function_exists('gd_info')) {
576
+			?>
577 577
 		    <li><?php echo _("Tracker icon color:"); ?>
578 578
 			<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'; ?>">
579 579
 		    </li>
580 580
 		    <?php
581
-			    }
582
-		        }
583
-		    ?>
581
+				}
582
+				}
583
+			?>
584 584
 		    <?php
585 585
 			if (!isset($globalAircraft) || $globalAircraft === TRUE) {
586
-		    ?>
586
+			?>
587 587
 		    <li><?php echo _("Show airport icon at zoom level:"); ?>
588 588
 			<div class="range">
589 589
 			    <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'; ?>">
@@ -592,9 +592,9 @@  discard block
 block discarded – undo
592 592
 		    </li>
593 593
 		    <?php
594 594
 			}
595
-		    ?>
595
+			?>
596 596
 <?php
597
-    } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') {
597
+	} elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') {
598 598
 ?>
599 599
 		    <li><?php echo _("Set scaling factor for rendering resolution:"); ?>
600 600
 			<div class="range">
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 		    </li>
634 634
 <?php
635 635
 	}
636
-    }
636
+	}
637 637
 ?>
638 638
 		    <li><?php echo _("Distance unit:"); ?>
639 639
 			<select class="selectpicker" onchange="unitdistance(this);">
@@ -673,19 +673,19 @@  discard block
 block discarded – undo
673 673
 		    <ul>
674 674
 		    <?php
675 675
 			if (!isset($globalAircraft) || $globalAircraft) {
676
-		    ?>
676
+			?>
677 677
 		    <?php
678 678
 			if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) {
679
-		    ?>
679
+			?>
680 680
 			<?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['filter_ShowVATSIM']) && $_COOKIE['filter_ShowVATSIM'] == 'true') || !isset($_COOKIE['filter_ShowVATSIM'])) print 'checked'; ?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?>
681 681
 			<?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['filter_ShowIVAO']) && $_COOKIE['filter_ShowIVAO'] == 'true') || !isset($_COOKIE['filter_ShowIVAO'])) print 'checked'; ?> ><?php echo _("Display IVAO data"); ?></li><?php } ?>
682 682
 			<?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['filter_ShowVMS']) && $_COOKIE['filter_ShowVMS'] == 'true') || !isset($_COOKIE['filter_ShowVMS'])) print 'checked'; ?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?>
683 683
 		    <?php
684 684
 			}
685
-		    ?>
685
+			?>
686 686
 		    <?php
687 687
 			if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) {
688
-		    ?>
688
+			?>
689 689
 			<?php if (isset($globalSBS1) && $globalSBS1) { ?>
690 690
 			    <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['filter_ShowSBS1']) && $_COOKIE['filter_ShowSBS1'] == 'true') || !isset($_COOKIE['filter_ShowSBS1'])) print 'checked'; ?> ><?php echo _("Display ADS-B data"); ?></label></div></li>
691 691
 			<?php } ?>
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
 			<li><div class="checkbox"><label><input type="checkbox" name="blocked" value="1" onclick="clickBlocked(this)" <?php if (isset($_COOKIE['filter_blocked']) && $_COOKIE['filter_blocked'] == 'true') print 'checked'; ?> ><?php echo _("Only display FAA ASDI blocked aircrafts"); ?></label></div></li>
696 696
 		    <?php
697 697
 			}
698
-		    ?>
698
+			?>
699 699
 		    <li><?php echo _("Display airlines:"); ?>
700 700
 		    <br/>
701 701
 			<select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines">
@@ -715,14 +715,14 @@  discard block
 block discarded – undo
715 715
 						echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>';
716 716
 					}
717 717
 				}
718
-			    ?>
718
+				?>
719 719
 			</select>
720 720
 		    </li>
721 721
 		    <?php
722 722
 			$Spotter = new Spotter();
723 723
 			$allalliancenames = $Spotter->getAllAllianceNames();
724 724
 			if (!empty($allalliancenames)) {
725
-		    ?>
725
+			?>
726 726
 		    <li><?php echo _("Display alliance:"); ?>
727 727
 		    <br/>
728 728
 			<select class="selectpicker" onchange="alliance(this);" id="display_alliance">
@@ -736,18 +736,18 @@  discard block
 block discarded – undo
736 736
 						echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>';
737 737
 					}
738 738
 				}
739
-			    ?>
739
+				?>
740 740
 			</select>
741 741
 		    </li>
742 742
 		    <?php
743 743
 			}
744
-		    ?>
744
+			?>
745 745
 		    <?php
746 746
 			}
747
-		    ?>
747
+			?>
748 748
 		    <?php
749 749
 			if (isset($globalAPRS) && $globalAPRS) {
750
-		    ?>
750
+			?>
751 751
 		    <li><?php echo _("Display APRS sources name:"); ?>
752 752
 			<select class="selectpicker" multiple onchange="sources(this);">
753 753
 			    <?php
@@ -771,18 +771,18 @@  discard block
 block discarded – undo
771 771
 						echo '<option value="'.$src['name'].'">'.$src['name'].'</option>';
772 772
 					}
773 773
 				}
774
-			    ?>
774
+				?>
775 775
 			</select>
776 776
 		    </li>
777 777
 		    <?php
778 778
 			}
779
-		    ?>
779
+			?>
780 780
 		    <?php
781 781
 			if (!isset($globalAircraft) || $globalAircraft) {
782
-		    ?>
782
+			?>
783 783
 		    <?php
784
-			    if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) {
785
-		    ?>
784
+				if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) {
785
+			?>
786 786
 		    <li><?php echo _("Display airlines of type:"); ?><br/>
787 787
 			<select class="selectpicker" onchange="airlinestype(this);">
788 788
 			    <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option>
@@ -792,14 +792,14 @@  discard block
 block discarded – undo
792 792
 			</select>
793 793
 		    </li>
794 794
 		    <?php
795
-			    }
796
-		    ?>
795
+				}
796
+			?>
797 797
 		    <?php
798 798
 			}
799
-		    ?>
799
+			?>
800 800
 		    <?php
801 801
 			if (isset($globalMarine) && $globalMarine) {
802
-		    ?>
802
+			?>
803 803
 		    <li>
804 804
 			<?php echo _("Display vessels with MMSI:"); ?>
805 805
 			<input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" />
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
 								print '<option value="'.$race['race_id'].'">'.$race['race_name'].'</option>';
823 823
 							}
824 824
 						}
825
-			    ?>
825
+				?>
826 826
 			</select>
827 827
 		    </li>
828 828
 
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
 					}
831 831
 				}
832 832
 			}
833
-		    ?>
833
+			?>
834 834
 		    <li>
835 835
 			<?php echo _("Display with ident:"); ?>
836 836
 			<input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" />
@@ -843,7 +843,7 @@  discard block
 block discarded – undo
843 843
 	    </form>
844 844
     	</div>
845 845
 <?php
846
-    if (isset($globalSatellite) && $globalSatellite) {
846
+	if (isset($globalSatellite) && $globalSatellite) {
847 847
 ?>
848 848
         <div class="sidebar-pane" id="satellites">
849 849
 	    <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1>
@@ -883,14 +883,14 @@  discard block
 block discarded – undo
883 883
 						print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>';
884 884
 					}
885 885
 				}
886
-			    ?>
886
+				?>
887 887
 			</select>
888 888
 		    </li>
889 889
 		</ul>
890 890
 	    </form>
891 891
 	</div>
892 892
 <?php
893
-    }
893
+	}
894 894
 ?>
895 895
     </div>
896 896
 </div>
Please login to merge, or discard this patch.