Completed
Push — master ( cf2b25...fb7f07 )
by Yannick
06:18
created
header.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 // When button "Remove all filters" is clicked
29 29
 if (isset($_POST['removefilters'])) {
30 30
 	$allfilters = array_filter(array_keys($_COOKIE),function($key) {
31
-	    return strpos($key,'filter_') === 0;
31
+		return strpos($key,'filter_') === 0;
32 32
 	});
33 33
 	foreach ($allfilters as $filt) {
34 34
 		unset($_COOKIE[$filt]);
@@ -167,16 +167,16 @@  discard block
 block discarded – undo
167 167
 	}
168 168
 ?>
169 169
 <?php 
170
-    if (isset($_POST['archive'])) {
170
+	if (isset($_POST['archive'])) {
171 171
 ?>
172 172
 <?php 
173
-	    if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
173
+		if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
174 174
 ?>
175 175
 
176 176
 <script src="<?php print $globalURL; ?>/js/map.js.php?<?php print time(); ?>&archive&begindate=<?php print strtotime($_POST['start_date']); ?>&enddate=<?php print strtotime($_POST['end_date']); ?>&archivespeed=<?php print $_POST['archivespeed']; ?>"></script>
177 177
 <?php    
178
-	    }
179
-    } else {
178
+		}
179
+	} else {
180 180
 ?>
181 181
 <?php
182 182
 /*	if (isset($globalBeta) && $globalBeta) {
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 */
189 189
 ?>
190 190
 <?php 
191
-	    if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
191
+		if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) {
192 192
 ?>
193 193
 <?php
194 194
 //		if (isset($globalBeta) && $globalBeta) {
@@ -199,13 +199,13 @@  discard block
 block discarded – undo
199 199
 ?>
200 200
 <script src="<?php print $globalURL; ?>/js/map.js.php?<?php print time(); ?>"></script>
201 201
 <?php
202
-	    }
202
+		}
203 203
 ?>
204 204
 <?php
205 205
 //	}
206 206
 ?>
207 207
 <?php
208
-    }
208
+	}
209 209
 }
210 210
 ?>
211 211
 <?php
@@ -360,15 +360,15 @@  discard block
 block discarded – undo
360 360
 			<li><a href="<?php print $globalURL; ?>/airline"><?php echo _("Airlines"); ?></a></li>
361 361
 			<li><a href="<?php print $globalURL; ?>/airport"><?php echo _("Airports"); ?></a></li>
362 362
 <?php
363
-    if ((!isset($globalIVAO) || !$globalIVAO) && (!isset($globalVATSIM) || !$globalVATSIM) && (!isset($globalphpVMS) || !$globalphpVMS) && (!isset($globalVAM) || !$globalVAM)) {
363
+	if ((!isset($globalIVAO) || !$globalIVAO) && (!isset($globalVATSIM) || !$globalVATSIM) && (!isset($globalphpVMS) || !$globalphpVMS) && (!isset($globalVAM) || !$globalVAM)) {
364 364
 ?>
365 365
 			<li><a href="<?php print $globalURL; ?>/owner"><?php echo _("Owners"); ?></a></li>
366 366
 <?php
367
-    } else {
367
+	} else {
368 368
 ?>
369 369
 			<li><a href="<?php print $globalURL; ?>/pilot"><?php echo _("Pilots"); ?></a></li>
370 370
 <?php
371
-    }
371
+	}
372 372
 ?>
373 373
 			<li><hr /></li>
374 374
             <li><a href="<?php print $globalURL; ?>/currently"><?php echo _("Current Activity"); ?></a></li>
@@ -376,34 +376,34 @@  discard block
 block discarded – undo
376 376
             <li><a href="<?php print $globalURL; ?>/date/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Activity"); ?></a></li>
377 377
             <li><a href="<?php print $globalURL; ?>/newest"><?php echo _("Newest by Category"); ?></a></li>
378 378
             <?php
379
-        	if ($globalACARS) {
380
-        	    if (isset($globalDemo) && $globalDemo) {
381
-    	    ?>
379
+			if ($globalACARS) {
380
+				if (isset($globalDemo) && $globalDemo) {
381
+			?>
382 382
             <li><hr /></li>
383 383
             <li><i><?php echo _('ACARS data not available publicly'); ?></i></li>
384 384
             <li><a href=""><?php echo _('Latest ACARS messages'); ?></a></li>
385 385
             <li><a href=""><?php echo _('Archive ACARS messages'); ?></a></li>
386 386
             <?php
387
-        	    } else {
388
-    	    ?>
387
+				} else {
388
+			?>
389 389
             <li><hr /></li>
390 390
             <li><a href="<?php print $globalURL; ?>/acars-latest"><?php echo _("Latest ACARS messages"); ?></a></li>
391 391
             <li><a href="<?php print $globalURL; ?>/acars-archive"><?php echo _("Archive ACARS messages"); ?></a></li>
392 392
             <?php
393
-        	    }
394
-        	}
395
-    	    ?>
393
+				}
394
+			}
395
+			?>
396 396
     	    <?php
397
-    	        if (isset($globalAccidents) && $globalAccidents) {
398
-    	    ?>
397
+				if (isset($globalAccidents) && $globalAccidents) {
398
+			?>
399 399
             <li><hr /></li>
400 400
             <li><a href="<?php print $globalURL; ?>/accident-latest"><?php echo _("Latest accident messages"); ?></a></li>
401 401
             <li><a href="<?php print $globalURL; ?>/accident/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Accident"); ?></a></li>
402 402
             <li><a href="<?php print $globalURL; ?>/incident-latest"><?php echo _("Latest incident messages"); ?></a></li>
403 403
             <li><a href="<?php print $globalURL; ?>/incident/<?php print date("Y-m-d"); ?>"><?php echo _("Today's Incident"); ?></a></li>
404 404
             <?php
405
-        	}
406
-    	    ?>
405
+			}
406
+			?>
407 407
             <li><hr /></li>
408 408
             <li><a href="<?php print $globalURL; ?>/highlights/table"><?php echo _("Special Highlights"); ?></a></li>
409 409
             <li><a href="<?php print $globalURL; ?>/upcoming"><?php echo _("Upcoming Flights"); ?></a></li>
@@ -445,14 +445,14 @@  discard block
 block discarded – undo
445 445
   	    <form>
446 446
   		<select class="selectpicker" data-width="120px" onchange="language(this);">
447 447
   		    <?php
448
-  		        $Language = new Language();
449
-  		        $alllang = $Language->getLanguages();
450
-  		        foreach ($alllang as $key => $lang) {
451
-  		            print '<option value="'.$key.'"';
452
-  		            if (isset($_COOKIE['language']) && $_COOKIE['language'] == $key) print ' selected ';
453
-  		            print '>'.$lang[0].'</option>';
454
-  		        }
455
-  		    ?>
448
+  				$Language = new Language();
449
+  				$alllang = $Language->getLanguages();
450
+  				foreach ($alllang as $key => $lang) {
451
+  					print '<option value="'.$key.'"';
452
+  					if (isset($_COOKIE['language']) && $_COOKIE['language'] == $key) print ' selected ';
453
+  					print '>'.$lang[0].'</option>';
454
+  				}
455
+  			?>
456 456
   		</select>
457 457
   	    </form>
458 458
   	</div>
@@ -483,18 +483,18 @@  discard block
 block discarded – undo
483 483
 ?>
484 484
     <div class="top-header clear" role="main">
485 485
 <?php
486
-    if (isset($longitude) && isset($latitude) && $longitude != 0 && $latitude != 0) {
486
+	if (isset($longitude) && isset($latitude) && $longitude != 0 && $latitude != 0) {
487 487
 ?>
488 488
     <div id="archive-map"></div>
489 489
 <?php
490
-    }
490
+	}
491 491
 ?>
492 492
     </div>
493 493
 <?php
494 494
 }
495 495
 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))
496 496
 {
497
-    ?>
497
+	?>
498 498
     <div class="top-header clear" role="main">
499 499
         <div id="map"></div>
500 500
 	<link rel="stylesheet" href="<?php print $globalURL; ?>/css/leaflet.css" />
@@ -505,15 +505,15 @@  discard block
 block discarded – undo
505 505
         var zoom = 13;
506 506
 //create the map
507 507
 <?php
508
-    if (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($airport_array[0]['latitude'])) {
508
+	if (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($airport_array[0]['latitude'])) {
509 509
 ?>
510 510
   map = L.map('map', { zoomControl:true }).setView([<?php print $airport_array[0]['latitude']; ?>,<?php print $airport_array[0]['longitude']; ?>], zoom);
511 511
 <?php
512
-    } elseif (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) {
512
+	} elseif (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) {
513 513
 ?>
514 514
   map = L.map('map', { zoomControl:true });
515 515
 <?php
516
-    } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) {
516
+	} elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) {
517 517
 ?>
518 518
   map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['departure_airport_latitude']; ?>,<?php print $spotter_array[0]['arrival_airport_longitude']; ?>]);
519 519
     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);
@@ -521,22 +521,22 @@  discard block
 block discarded – undo
521 521
     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);
522 522
     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);
523 523
 <?php
524
-    } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && !isset($spotter_array[0]['departure_airport_latitude'])) {
524
+	} elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && !isset($spotter_array[0]['departure_airport_latitude'])) {
525 525
 ?>
526 526
   map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['latitude']; ?>,<?php print $spotter_array[0]['longitude']; ?>]);
527 527
 <?php
528
-    } elseif (!isset($spotter_array[0]['latitude']) && !isset($spotter_array[0]['longitude'])) {
528
+	} elseif (!isset($spotter_array[0]['latitude']) && !isset($spotter_array[0]['longitude'])) {
529 529
 ?>
530 530
   map = L.map('map', { zoomControl:true });
531 531
 <?php
532
-    }
532
+	}
533 533
 ?>
534 534
   //initialize the layer group for the aircrft markers
535 535
   var layer_data = L.layerGroup();
536 536
 
537 537
   //a few title layers
538 538
 <?php
539
-    if ($globalMapProvider == 'Mapbox') {
539
+	if ($globalMapProvider == 'Mapbox') {
540 540
 ?>
541 541
   L.tileLayer('https://{s}.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={token}', {
542 542
     maxZoom: 18,
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
     token : '<?php print $globalMapboxToken; ?>'
548 548
   }).addTo(map);
549 549
 <?php
550
-    } elseif ($globalMapProvider == 'OpenStreetMap') {
550
+	} elseif ($globalMapProvider == 'OpenStreetMap') {
551 551
 ?>
552 552
   L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
553 553
     maxZoom: 18,
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
       '<a href="http://www.openstreetmap.org/copyright">Open Database Licence</a>'
556 556
   }).addTo(map);
557 557
 <?php
558
-    } elseif ($globalMapProvider == 'MapQuest-OSM') {
558
+	} elseif ($globalMapProvider == 'MapQuest-OSM') {
559 559
 ?>
560 560
   L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
561 561
     maxZoom: 18,
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
       'Tiles Courtesy of <a href="http://www.mapquest.com">MapQuest</a>'
565 565
   }).addTo(map);
566 566
 <?php
567
-    } elseif ($globalMapProvider == 'MapQuest-Aerial') {
567
+	} elseif ($globalMapProvider == 'MapQuest-Aerial') {
568 568
 ?>
569 569
   L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png', {
570 570
     maxZoom: 18,
@@ -573,27 +573,27 @@  discard block
 block discarded – undo
573 573
       '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"'
574 574
   }).addTo(map);
575 575
 <?php
576
-    } elseif ($globalMapProvider == 'Google-Roadmap') {
576
+	} elseif ($globalMapProvider == 'Google-Roadmap') {
577 577
 ?>
578 578
     var googleLayer = new L.Google('ROADMAP');
579 579
     map.addLayer(googleLayer);
580 580
 <?php
581
-    } elseif ($globalMapProvider == 'Google-Satellite') {
581
+	} elseif ($globalMapProvider == 'Google-Satellite') {
582 582
 ?>
583 583
     var googleLayer = new L.Google('SATELLITE');
584 584
     map.addLayer(googleLayer);
585 585
 <?php
586
-    } elseif ($globalMapProvider == 'Google-Hybrid') {
586
+	} elseif ($globalMapProvider == 'Google-Hybrid') {
587 587
 ?>
588 588
     var googleLayer = new L.Google('HYBRID');
589 589
     map.addLayer(googleLayer);
590 590
 <?php
591
-    } elseif ($globalMapProvider == 'Google-Terrain') {
591
+	} elseif ($globalMapProvider == 'Google-Terrain') {
592 592
 ?>
593 593
     var googleLayer = new L.Google('Terrain');
594 594
     map.addLayer(googleLayer);
595 595
 <?php
596
-    }
596
+	}
597 597
 ?>
598 598
         </script>
599 599
     </div>
Please login to merge, or discard this patch.
require/class.Common.php 1 patch
Indentation   +140 added lines, -140 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@  discard block
 block discarded – undo
6 6
 	//protected $cookies = array();
7 7
 	
8 8
 	/**
9
-	* Get data from form result
10
-	* @param String $url form URL
11
-	* @param String $type type of submit form method (get or post)
12
-	* @param String|Array $data values form post method
13
-	* @param Array $headers header to submit with the form
14
-	* @return String the result
15
-	*/
9
+	 * Get data from form result
10
+	 * @param String $url form URL
11
+	 * @param String $type type of submit form method (get or post)
12
+	 * @param String|Array $data values form post method
13
+	 * @param Array $headers header to submit with the form
14
+	 * @return String the result
15
+	 */
16 16
 	public function getData($url, $type = 'get', $data = '', $headers = '',$cookie = '',$referer = '',$timeout = '',$useragent = '') {
17 17
 		$ch = curl_init();
18 18
 		curl_setopt($ch, CURLOPT_URL, $url);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 				return $this->getData($url,'get',$data,$headers,$clearanceCookie,$referer,$timeout,$useragent);
68 68
 			}
69 69
 		} else {
70
-		    return $result;
70
+			return $result;
71 71
 		}
72 72
 	}
73 73
 	
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
 	}
97 97
 	
98 98
 	/**
99
-	* Convert a HTML table to an array
100
-	* @param String $data HTML page
101
-	* @return Array array of the tables in HTML page
102
-	*/
99
+	 * Convert a HTML table to an array
100
+	 * @param String $data HTML page
101
+	 * @return Array array of the tables in HTML page
102
+	 */
103 103
 	public function table2array($data) {
104 104
 		if (!is_string($data)) return array();
105 105
 		if ($data == '') return array();
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
 	}
134 134
 	
135 135
 	/**
136
-	* Convert <p> part of a HTML page to an array
137
-	* @param String $data HTML page
138
-	* @return Array array of the <p> in HTML page
139
-	*/
136
+	 * Convert <p> part of a HTML page to an array
137
+	 * @param String $data HTML page
138
+	 * @return Array array of the <p> in HTML page
139
+	 */
140 140
 	public function text2array($data) {
141 141
 		$html = str_get_html($data);
142 142
 		if ($html === false) return array();
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
 	}
152 152
 
153 153
 	/**
154
-	* Give distance between 2 coordonnates
155
-	* @param Float $lat latitude of first point
156
-	* @param Float $lon longitude of first point
157
-	* @param Float $latc latitude of second point
158
-	* @param Float $lonc longitude of second point
159
-	* @param String $unit km else no unit used
160
-	* @return Float Distance in $unit
161
-	*/
154
+	 * Give distance between 2 coordonnates
155
+	 * @param Float $lat latitude of first point
156
+	 * @param Float $lon longitude of first point
157
+	 * @param Float $latc latitude of second point
158
+	 * @param Float $lonc longitude of second point
159
+	 * @param String $unit km else no unit used
160
+	 * @return Float Distance in $unit
161
+	 */
162 162
 	public function distance($lat, $lon, $latc, $lonc, $unit = 'km') {
163 163
 		if ($lat == $latc && $lon == $lonc) return 0;
164 164
 		$dist = rad2deg(acos(sin(deg2rad(floatval($lat)))*sin(deg2rad(floatval($latc)))+ cos(deg2rad(floatval($lat)))*cos(deg2rad(floatval($latc)))*cos(deg2rad(floatval($lon)-floatval($lonc)))))*60*1.1515;
@@ -176,11 +176,11 @@  discard block
 block discarded – undo
176 176
 	}
177 177
 
178 178
 	/**
179
-	* Check is distance realistic
180
-	* @param int $timeDifference the time between the reception of both messages
181
-	* @param float $distance distance covered
182
-	* @return whether distance is realistic
183
-	*/
179
+	 * Check is distance realistic
180
+	 * @param int $timeDifference the time between the reception of both messages
181
+	 * @param float $distance distance covered
182
+	 * @return whether distance is realistic
183
+	 */
184 184
 	public function withinThreshold ($timeDifference, $distance) {
185 185
 		$x = abs($timeDifference);
186 186
 		$d = abs($distance);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 	}
199 199
 
200 200
 	public function isInteger($input){
201
-	    return(ctype_digit(strval($input)));
201
+		return(ctype_digit(strval($input)));
202 202
 	}
203 203
 
204 204
 
@@ -214,11 +214,11 @@  discard block
 block discarded – undo
214 214
 	}
215 215
 	
216 216
 	/**
217
-	* Copy folder contents
218
-	* @param       string   $source    Source path
219
-	* @param       string   $dest      Destination path
220
-	* @return      bool     Returns true on success, false on failure
221
-	*/
217
+	 * Copy folder contents
218
+	 * @param       string   $source    Source path
219
+	 * @param       string   $dest      Destination path
220
+	 * @return      bool     Returns true on success, false on failure
221
+	 */
222 222
 	public function xcopy($source, $dest)
223 223
 	{
224 224
 		$files = glob($source.'*.*');
@@ -230,20 +230,20 @@  discard block
 block discarded – undo
230 230
 	}
231 231
 	
232 232
 	/**
233
-	* Check if an url exist
234
-	* @param	String $url url to check
235
-	* @return	bool Return true on succes false on failure
236
-	*/
233
+	 * Check if an url exist
234
+	 * @param	String $url url to check
235
+	 * @return	bool Return true on succes false on failure
236
+	 */
237 237
 	public function urlexist($url){
238 238
 		$headers=get_headers($url);
239 239
 		return stripos($headers[0],"200 OK")?true:false;
240 240
 	}
241 241
 	
242 242
 	/**
243
-	* Convert hexa to string
244
-	* @param	String $hex data in hexa
245
-	* @return	String Return result
246
-	*/
243
+	 * Convert hexa to string
244
+	 * @param	String $hex data in hexa
245
+	 * @return	String Return result
246
+	 */
247 247
 	public function hex2str($hex) {
248 248
 		$str = '';
249 249
 		$hexln = strlen($hex);
@@ -301,9 +301,9 @@  discard block
 block discarded – undo
301 301
 	}
302 302
 	
303 303
 	/**
304
-	* Returns list of available locales
305
-	*
306
-	* @return array
304
+	 * Returns list of available locales
305
+	 *
306
+	 * @return array
307 307
 	 */
308 308
 	public function listLocaleDir()
309 309
 	{
@@ -398,100 +398,100 @@  discard block
 block discarded – undo
398 398
 	public function remove_accents($string) {
399 399
 		if ( !preg_match('/[\x80-\xff]/', $string) ) return $string;
400 400
 		$chars = array(
401
-		    // Decompositions for Latin-1 Supplement
402
-		    chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
403
-		    chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
404
-		    chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
405
-		    chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
406
-		    chr(195).chr(137) => 'E', chr(195).chr(138) => 'E',
407
-		    chr(195).chr(139) => 'E', chr(195).chr(140) => 'I',
408
-		    chr(195).chr(141) => 'I', chr(195).chr(142) => 'I',
409
-		    chr(195).chr(143) => 'I', chr(195).chr(145) => 'N',
410
-		    chr(195).chr(146) => 'O', chr(195).chr(147) => 'O',
411
-		    chr(195).chr(148) => 'O', chr(195).chr(149) => 'O',
412
-		    chr(195).chr(150) => 'O', chr(195).chr(153) => 'U',
413
-		    chr(195).chr(154) => 'U', chr(195).chr(155) => 'U',
414
-		    chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y',
415
-		    chr(195).chr(159) => 's', chr(195).chr(160) => 'a',
416
-		    chr(195).chr(161) => 'a', chr(195).chr(162) => 'a',
417
-		    chr(195).chr(163) => 'a', chr(195).chr(164) => 'a',
418
-		    chr(195).chr(165) => 'a', chr(195).chr(167) => 'c',
419
-		    chr(195).chr(168) => 'e', chr(195).chr(169) => 'e',
420
-		    chr(195).chr(170) => 'e', chr(195).chr(171) => 'e',
421
-		    chr(195).chr(172) => 'i', chr(195).chr(173) => 'i',
422
-		    chr(195).chr(174) => 'i', chr(195).chr(175) => 'i',
423
-		    chr(195).chr(177) => 'n', chr(195).chr(178) => 'o',
424
-		    chr(195).chr(179) => 'o', chr(195).chr(180) => 'o',
425
-		    chr(195).chr(181) => 'o', chr(195).chr(182) => 'o',
426
-		    chr(195).chr(182) => 'o', chr(195).chr(185) => 'u',
427
-		    chr(195).chr(186) => 'u', chr(195).chr(187) => 'u',
428
-		    chr(195).chr(188) => 'u', chr(195).chr(189) => 'y',
429
-		    chr(195).chr(191) => 'y',
430
-		    // Decompositions for Latin Extended-A
431
-		    chr(196).chr(128) => 'A', chr(196).chr(129) => 'a',
432
-		    chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',
433
-		    chr(196).chr(132) => 'A', chr(196).chr(133) => 'a',
434
-		    chr(196).chr(134) => 'C', chr(196).chr(135) => 'c',
435
-		    chr(196).chr(136) => 'C', chr(196).chr(137) => 'c',
436
-		    chr(196).chr(138) => 'C', chr(196).chr(139) => 'c',
437
-		    chr(196).chr(140) => 'C', chr(196).chr(141) => 'c',
438
-		    chr(196).chr(142) => 'D', chr(196).chr(143) => 'd',
439
-		    chr(196).chr(144) => 'D', chr(196).chr(145) => 'd',
440
-		    chr(196).chr(146) => 'E', chr(196).chr(147) => 'e',
441
-		    chr(196).chr(148) => 'E', chr(196).chr(149) => 'e',
442
-		    chr(196).chr(150) => 'E', chr(196).chr(151) => 'e',
443
-		    chr(196).chr(152) => 'E', chr(196).chr(153) => 'e',
444
-		    chr(196).chr(154) => 'E', chr(196).chr(155) => 'e',
445
-		    chr(196).chr(156) => 'G', chr(196).chr(157) => 'g',
446
-		    chr(196).chr(158) => 'G', chr(196).chr(159) => 'g',
447
-		    chr(196).chr(160) => 'G', chr(196).chr(161) => 'g',
448
-		    chr(196).chr(162) => 'G', chr(196).chr(163) => 'g',
449
-		    chr(196).chr(164) => 'H', chr(196).chr(165) => 'h',
450
-		    chr(196).chr(166) => 'H', chr(196).chr(167) => 'h',
451
-		    chr(196).chr(168) => 'I', chr(196).chr(169) => 'i',
452
-		    chr(196).chr(170) => 'I', chr(196).chr(171) => 'i',
453
-		    chr(196).chr(172) => 'I', chr(196).chr(173) => 'i',
454
-		    chr(196).chr(174) => 'I', chr(196).chr(175) => 'i',
455
-		    chr(196).chr(176) => 'I', chr(196).chr(177) => 'i',
456
-		    chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij',
457
-		    chr(196).chr(180) => 'J', chr(196).chr(181) => 'j',
458
-		    chr(196).chr(182) => 'K', chr(196).chr(183) => 'k',
459
-		    chr(196).chr(184) => 'k', chr(196).chr(185) => 'L',
460
-		    chr(196).chr(186) => 'l', chr(196).chr(187) => 'L',
461
-		    chr(196).chr(188) => 'l', chr(196).chr(189) => 'L',
462
-		    chr(196).chr(190) => 'l', chr(196).chr(191) => 'L',
463
-		    chr(197).chr(128) => 'l', chr(197).chr(129) => 'L',
464
-		    chr(197).chr(130) => 'l', chr(197).chr(131) => 'N',
465
-		    chr(197).chr(132) => 'n', chr(197).chr(133) => 'N',
466
-		    chr(197).chr(134) => 'n', chr(197).chr(135) => 'N',
467
-		    chr(197).chr(136) => 'n', chr(197).chr(137) => 'N',
468
-		    chr(197).chr(138) => 'n', chr(197).chr(139) => 'N',
469
-		    chr(197).chr(140) => 'O', chr(197).chr(141) => 'o',
470
-		    chr(197).chr(142) => 'O', chr(197).chr(143) => 'o',
471
-		    chr(197).chr(144) => 'O', chr(197).chr(145) => 'o',
472
-		    chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe',
473
-		    chr(197).chr(148) => 'R',chr(197).chr(149) => 'r',
474
-		    chr(197).chr(150) => 'R',chr(197).chr(151) => 'r',
475
-		    chr(197).chr(152) => 'R',chr(197).chr(153) => 'r',
476
-		    chr(197).chr(154) => 'S',chr(197).chr(155) => 's',
477
-		    chr(197).chr(156) => 'S',chr(197).chr(157) => 's',
478
-		    chr(197).chr(158) => 'S',chr(197).chr(159) => 's',
479
-		    chr(197).chr(160) => 'S', chr(197).chr(161) => 's',
480
-		    chr(197).chr(162) => 'T', chr(197).chr(163) => 't',
481
-		    chr(197).chr(164) => 'T', chr(197).chr(165) => 't',
482
-		    chr(197).chr(166) => 'T', chr(197).chr(167) => 't',
483
-		    chr(197).chr(168) => 'U', chr(197).chr(169) => 'u',
484
-		    chr(197).chr(170) => 'U', chr(197).chr(171) => 'u',
485
-		    chr(197).chr(172) => 'U', chr(197).chr(173) => 'u',
486
-		    chr(197).chr(174) => 'U', chr(197).chr(175) => 'u',
487
-		    chr(197).chr(176) => 'U', chr(197).chr(177) => 'u',
488
-		    chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
489
-		    chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
490
-		    chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
491
-		    chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
492
-		    chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
493
-		    chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
494
-		    chr(197).chr(190) => 'z', chr(197).chr(191) => 's'
401
+			// Decompositions for Latin-1 Supplement
402
+			chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
403
+			chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
404
+			chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
405
+			chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
406
+			chr(195).chr(137) => 'E', chr(195).chr(138) => 'E',
407
+			chr(195).chr(139) => 'E', chr(195).chr(140) => 'I',
408
+			chr(195).chr(141) => 'I', chr(195).chr(142) => 'I',
409
+			chr(195).chr(143) => 'I', chr(195).chr(145) => 'N',
410
+			chr(195).chr(146) => 'O', chr(195).chr(147) => 'O',
411
+			chr(195).chr(148) => 'O', chr(195).chr(149) => 'O',
412
+			chr(195).chr(150) => 'O', chr(195).chr(153) => 'U',
413
+			chr(195).chr(154) => 'U', chr(195).chr(155) => 'U',
414
+			chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y',
415
+			chr(195).chr(159) => 's', chr(195).chr(160) => 'a',
416
+			chr(195).chr(161) => 'a', chr(195).chr(162) => 'a',
417
+			chr(195).chr(163) => 'a', chr(195).chr(164) => 'a',
418
+			chr(195).chr(165) => 'a', chr(195).chr(167) => 'c',
419
+			chr(195).chr(168) => 'e', chr(195).chr(169) => 'e',
420
+			chr(195).chr(170) => 'e', chr(195).chr(171) => 'e',
421
+			chr(195).chr(172) => 'i', chr(195).chr(173) => 'i',
422
+			chr(195).chr(174) => 'i', chr(195).chr(175) => 'i',
423
+			chr(195).chr(177) => 'n', chr(195).chr(178) => 'o',
424
+			chr(195).chr(179) => 'o', chr(195).chr(180) => 'o',
425
+			chr(195).chr(181) => 'o', chr(195).chr(182) => 'o',
426
+			chr(195).chr(182) => 'o', chr(195).chr(185) => 'u',
427
+			chr(195).chr(186) => 'u', chr(195).chr(187) => 'u',
428
+			chr(195).chr(188) => 'u', chr(195).chr(189) => 'y',
429
+			chr(195).chr(191) => 'y',
430
+			// Decompositions for Latin Extended-A
431
+			chr(196).chr(128) => 'A', chr(196).chr(129) => 'a',
432
+			chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',
433
+			chr(196).chr(132) => 'A', chr(196).chr(133) => 'a',
434
+			chr(196).chr(134) => 'C', chr(196).chr(135) => 'c',
435
+			chr(196).chr(136) => 'C', chr(196).chr(137) => 'c',
436
+			chr(196).chr(138) => 'C', chr(196).chr(139) => 'c',
437
+			chr(196).chr(140) => 'C', chr(196).chr(141) => 'c',
438
+			chr(196).chr(142) => 'D', chr(196).chr(143) => 'd',
439
+			chr(196).chr(144) => 'D', chr(196).chr(145) => 'd',
440
+			chr(196).chr(146) => 'E', chr(196).chr(147) => 'e',
441
+			chr(196).chr(148) => 'E', chr(196).chr(149) => 'e',
442
+			chr(196).chr(150) => 'E', chr(196).chr(151) => 'e',
443
+			chr(196).chr(152) => 'E', chr(196).chr(153) => 'e',
444
+			chr(196).chr(154) => 'E', chr(196).chr(155) => 'e',
445
+			chr(196).chr(156) => 'G', chr(196).chr(157) => 'g',
446
+			chr(196).chr(158) => 'G', chr(196).chr(159) => 'g',
447
+			chr(196).chr(160) => 'G', chr(196).chr(161) => 'g',
448
+			chr(196).chr(162) => 'G', chr(196).chr(163) => 'g',
449
+			chr(196).chr(164) => 'H', chr(196).chr(165) => 'h',
450
+			chr(196).chr(166) => 'H', chr(196).chr(167) => 'h',
451
+			chr(196).chr(168) => 'I', chr(196).chr(169) => 'i',
452
+			chr(196).chr(170) => 'I', chr(196).chr(171) => 'i',
453
+			chr(196).chr(172) => 'I', chr(196).chr(173) => 'i',
454
+			chr(196).chr(174) => 'I', chr(196).chr(175) => 'i',
455
+			chr(196).chr(176) => 'I', chr(196).chr(177) => 'i',
456
+			chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij',
457
+			chr(196).chr(180) => 'J', chr(196).chr(181) => 'j',
458
+			chr(196).chr(182) => 'K', chr(196).chr(183) => 'k',
459
+			chr(196).chr(184) => 'k', chr(196).chr(185) => 'L',
460
+			chr(196).chr(186) => 'l', chr(196).chr(187) => 'L',
461
+			chr(196).chr(188) => 'l', chr(196).chr(189) => 'L',
462
+			chr(196).chr(190) => 'l', chr(196).chr(191) => 'L',
463
+			chr(197).chr(128) => 'l', chr(197).chr(129) => 'L',
464
+			chr(197).chr(130) => 'l', chr(197).chr(131) => 'N',
465
+			chr(197).chr(132) => 'n', chr(197).chr(133) => 'N',
466
+			chr(197).chr(134) => 'n', chr(197).chr(135) => 'N',
467
+			chr(197).chr(136) => 'n', chr(197).chr(137) => 'N',
468
+			chr(197).chr(138) => 'n', chr(197).chr(139) => 'N',
469
+			chr(197).chr(140) => 'O', chr(197).chr(141) => 'o',
470
+			chr(197).chr(142) => 'O', chr(197).chr(143) => 'o',
471
+			chr(197).chr(144) => 'O', chr(197).chr(145) => 'o',
472
+			chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe',
473
+			chr(197).chr(148) => 'R',chr(197).chr(149) => 'r',
474
+			chr(197).chr(150) => 'R',chr(197).chr(151) => 'r',
475
+			chr(197).chr(152) => 'R',chr(197).chr(153) => 'r',
476
+			chr(197).chr(154) => 'S',chr(197).chr(155) => 's',
477
+			chr(197).chr(156) => 'S',chr(197).chr(157) => 's',
478
+			chr(197).chr(158) => 'S',chr(197).chr(159) => 's',
479
+			chr(197).chr(160) => 'S', chr(197).chr(161) => 's',
480
+			chr(197).chr(162) => 'T', chr(197).chr(163) => 't',
481
+			chr(197).chr(164) => 'T', chr(197).chr(165) => 't',
482
+			chr(197).chr(166) => 'T', chr(197).chr(167) => 't',
483
+			chr(197).chr(168) => 'U', chr(197).chr(169) => 'u',
484
+			chr(197).chr(170) => 'U', chr(197).chr(171) => 'u',
485
+			chr(197).chr(172) => 'U', chr(197).chr(173) => 'u',
486
+			chr(197).chr(174) => 'U', chr(197).chr(175) => 'u',
487
+			chr(197).chr(176) => 'U', chr(197).chr(177) => 'u',
488
+			chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
489
+			chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
490
+			chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
491
+			chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
492
+			chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
493
+			chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
494
+			chr(197).chr(190) => 'z', chr(197).chr(191) => 's'
495 495
 		);
496 496
 		$string = strtr($string, $chars);
497 497
 		return $string;
Please login to merge, or discard this patch.
statistics-registration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 if (!isset($filter_name)) $filter_name = '';
9 9
 $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING);
10 10
 if ($airline_icao == '' && isset($globalFilter)) {
11
-    if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
11
+	if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
12 12
 }
13 13
 setcookie('stats_airline_icao',$airline_icao,time()+60*60*24,'/');
14 14
 $year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT);
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
           function drawChart() {
32 32
             var data = google.visualization.arrayToDataTable([
33 33
             	["'._("Aircraft Manufacturer").'", "'._("# of times").'"], ';
34
-            	$registration_data = '';
34
+				$registration_data = '';
35 35
 foreach($registration_array as $registration_item)
36 36
 {
37 37
 	$registration_data .= '[ "'.$registration_item['registration'].' - '.$registration_item['aircraft_name'].' ('.$registration_item['aircraft_icao'].')",'.$registration_item['aircraft_registration_count'].'],';
Please login to merge, or discard this patch.
statistics-aircraft.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 if (!isset($filter_name)) $filter_name = '';
9 9
 $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING);
10 10
 if ($airline_icao == '' && isset($globalFilter)) {
11
-    if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
11
+	if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
12 12
 }
13 13
 $year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT);
14 14
 $month = filter_input(INPUT_GET,'month',FILTER_SANITIZE_NUMBER_INT);
Please login to merge, or discard this patch.
statistics-month.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 if (!isset($filter_name)) $filter_name = '';
9 9
 $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING);
10 10
 if ($airline_icao == '' && isset($globalFilter)) {
11
-    if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
11
+	if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
12 12
 }
13 13
 
14 14
 require_once('header.php');
Please login to merge, or discard this patch.
statistics-owner.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 if (!isset($filter_name)) $filter_name = '';
9 9
 $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING);
10 10
 if ($airline_icao == '' && isset($globalFilter)) {
11
-    if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
11
+	if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
12 12
 }
13 13
 $year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT);
14 14
 $month = filter_input(INPUT_GET,'month',FILTER_SANITIZE_NUMBER_INT);
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
           function drawChart() {
29 29
             var data = google.visualization.arrayToDataTable([
30 30
             	["'._("Owner").'", "'._("# of times").'"], ';
31
-            	$owner_data = '';
31
+				$owner_data = '';
32 32
 		foreach($owner_array as $owner_item)
33 33
 		{
34 34
 			$owner_data .= '[ "'.$owner_item['owner_name'].'",'.$owner_item['owner_count'].'],';
35 35
 		}
36 36
 		$owner_data = substr($owner_data, 0, -1);
37 37
 		print $owner_data;
38
-            print ']);
38
+			print ']);
39 39
     
40 40
             var options = {
41 41
             	chartArea: {"width": "80%", "height": "60%"},
Please login to merge, or discard this patch.
statistics-manufacturer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 if (!isset($filter_name)) $filter_name = '';
9 9
 $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING);
10 10
 if ($airline_icao == '' && isset($globalFilter)) {
11
-    if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
11
+	if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
12 12
 }
13 13
 
14 14
 $year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT);
Please login to merge, or discard this patch.
statistics-sub-menu.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 		</form>
33 33
 	</div>
34 34
 <?php 
35
-    if (!isset($year) || (isset($year) && $year == '') && !isset($month) || (isset($month) && $month == '')) {
35
+	if (!isset($year) || (isset($year) && $year == '') && !isset($month) || (isset($month) && $month == '')) {
36 36
 ?>
37 37
 <div class="sub-menu sub-menu-container">
38 38
 	<ul class="nav">
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		    </ul>
88 88
 		</li>
89 89
 		<?php
90
-		    if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) {
90
+			if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) {
91 91
 		?>
92 92
 		<li class="dropdown">
93 93
 		    <a class="dropdown-toggle <?php if(strtolower($current_page) == "statistics-fatalities-year" || strtolower($current_page) == "statistics-fatalities-month"){ print 'active'; } ?>" data-toggle="dropdown" href="#">
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
 		    </ul>
100 100
 		</li>
101 101
 		<?php
102
-		    }
102
+			}
103 103
 		?>
104 104
 	</ul>
105 105
 </div>
106 106
 <?php
107
-    } else {
107
+	} else {
108 108
 ?>
109 109
 <div class="sub-menu sub-menu-container">
110 110
 	<ul class="nav">
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 		</li>
164 164
 		-->
165 165
 		<?php
166
-		    if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) {
166
+			if (isset($globalAccidents) && $globalAccidents && (!isset($airline_icao) || $airline_icao == '' || $airline_icao == 'all')) {
167 167
 		?>
168 168
 		<!--
169 169
 		<li class="dropdown">
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
 		</li>
178 178
 		-->
179 179
 		<?php
180
-		    }
180
+			}
181 181
 		?>
182 182
 	</ul>
183 183
 </div>
184 184
 <?php
185
-    }
185
+	}
186 186
 ?>
187 187
\ No newline at end of file
Please login to merge, or discard this patch.
statistics-pilot.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 if (!isset($filter_name)) $filter_name = '';
9 9
 $airline_icao = (string)filter_input(INPUT_GET,'airline',FILTER_SANITIZE_STRING);
10 10
 if ($airline_icao == '' && isset($globalFilter)) {
11
-    if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
11
+	if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0];
12 12
 }
13 13
 setcookie('stats_airline_icao',$airline_icao,time()+60*60*24,'/');
14 14
 $year = filter_input(INPUT_GET,'year',FILTER_SANITIZE_NUMBER_INT);
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
           function drawChart() {
31 31
             var data = google.visualization.arrayToDataTable([
32 32
             	["'._("Pilot").'", "'._("# of times").'"], ';
33
-            	$pilot_data = '';
33
+				$pilot_data = '';
34 34
 		foreach($pilot_array as $pilot_item)
35 35
 		{
36 36
 			$pilot_data .= '[ "'.$pilot_item['pilot_name'].' ('.$pilot_item['pilot_id'].')",'.$pilot_item['pilot_count'].'],';
37 37
 		}
38 38
 		$pilot_data = substr($pilot_data, 0, -1);
39 39
 		print $pilot_data;
40
-            print ']);
40
+			print ']);
41 41
     
42 42
             var options = {
43 43
             	chartArea: {"width": "80%", "height": "60%"},
Please login to merge, or discard this patch.