Completed
Branch master (3f174d)
by Yannick
13:43
created
search-rss.php 1 patch
Braces   +18 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,8 +15,12 @@  discard block
 block discarded – undo
15 15
         } else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){
16 16
                 $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date'].":00";
17 17
                 $sql_date = $end_date;
18
-        } else $sql_date = '';
19
-} else $sql_date = '';
18
+        } else {
19
+        	$sql_date = '';
20
+        }
21
+        } else {
22
+	$sql_date = '';
23
+}
20 24
 
21 25
 if (isset($_GET['highest_altitude'])) {
22 26
         //for altitude manipulation
@@ -30,8 +34,12 @@  discard block
 block discarded – undo
30 34
         } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){
31 35
                 $start_altitude = $_GET['lowest_altitude'].",60000";
32 36
                 $sql_altitude = $start_altitude;
33
-        } else $sql_altitude = '';
34
-} else $sql_altitude = '';
37
+        } else {
38
+        	$sql_altitude = '';
39
+        }
40
+        } else {
41
+	$sql_altitude = '';
42
+}
35 43
 
36 44
 //calculuation for the pagination
37 45
 if(!isset($_GET['limit']))
@@ -49,7 +57,7 @@  discard block
 block discarded – undo
49 57
                 $limit_end = $_GET['number_results'];
50 58
                 $absolute_difference = $_GET['number_results'];
51 59
         }
52
-}  else {
60
+} else {
53 61
         $limit_explode = explode(",", $_GET['limit']);
54 62
         $limit_start = $limit_explode[0];
55 63
         $limit_end = $limit_explode[1];
@@ -70,8 +78,11 @@  discard block
 block discarded – undo
70 78
 
71 79
 $date = date("D, d M Y H:i:s T", time());
72 80
 
73
-if (isset($_GET['sort'])) $sort = $_GET['sort'];
74
-else $sort = '';
81
+if (isset($_GET['sort'])) {
82
+	$sort = $_GET['sort'];
83
+} else {
84
+	$sort = '';
85
+}
75 86
 $q = filter_input(INPUT_GET,'q',FILTER_SANITIZE_STRING);
76 87
 $registration = filter_input(INPUT_GET,'registratrion',FILTER_SANITIZE_STRING);
77 88
 $aircraft = filter_input(INPUT_GET,'aircraft',FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
airline-statistics-time.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
 			if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif'))
42 42
 			{
43 43
 				print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />';
44
-			}
45
-			elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
44
+			} elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
46 45
 			{
47 46
 				print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />';
48 47
 			}
Please login to merge, or discard this patch.
registration-detailed.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 		$limit_start = 0;
14 14
 		$limit_end = 25;
15 15
 		$absolute_difference = 25;
16
-	}  else {
16
+	} else {
17 17
 		$limit_explode = explode(",", $_GET['limit']);
18 18
 		$limit_start = $limit_explode[0];
19 19
 		$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.
contribute.php 1 patch
Braces   +13 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,21 @@
 block discarded – undo
11 11
     <p>You can contribute to <?php print $globalName; ?> if you have an ADS-B receiver.</p>
12 12
     <h3>You need to : </h3>
13 13
     <ul>
14
-	<li>Create an account on <a href="<?php if (isset($globalContributeLogin)) print $globalContributeLogin.'">'.$globalContributeLogin; else print 'https://login.flightairmap.fr">login.flightairmap.fr'; ?></a></li>
14
+	<li>Create an account on <a href="<?php if (isset($globalContributeLogin)) {
15
+	print $globalContributeLogin.'">'.$globalContributeLogin;
16
+} else {
17
+	print 'https://login.flightairmap.fr">login.flightairmap.fr';
18
+}
19
+?></a></li>
15 20
 	<li>Download dump1090 fork from <a href="https://github.com/Ysurac/dump1090">https://github.com/Ysurac/dump1090</a></li>
16 21
 	<li>Compile zfamup1090 with <em>make zfamup1090</em> (you need to have libcurl installed)</li>
17
-	<li>Run zfamup1090 : <em>./zfamup1090 --net-zfam-user YourUsername --net-zfam-pass YourPassword<?php if (isset($globalContributeURL)) print ' --net-zfam-addr '.$globalContributeURL; if (isset($globalContributePort)) print ' --net-zfam-port '.$globalContributePort; ?></em> (add <em>--net-bo-ipaddr ipofbeastsource --net-bo-port portofbeastsource</em> if needed, default to 127.0.0.1 and 30005)</li>
22
+	<li>Run zfamup1090 : <em>./zfamup1090 --net-zfam-user YourUsername --net-zfam-pass YourPassword<?php if (isset($globalContributeURL)) {
23
+	print ' --net-zfam-addr '.$globalContributeURL;
24
+}
25
+if (isset($globalContributePort)) {
26
+	print ' --net-zfam-port '.$globalContributePort;
27
+}
28
+?></em> (add <em>--net-bo-ipaddr ipofbeastsource --net-bo-port portofbeastsource</em> if needed, default to 127.0.0.1 and 30005)</li>
18 29
     </ul>
19 30
 </div>
20 31
 <?php
Please login to merge, or discard this patch.
search.php 1 patch
Braces   +112 added lines, -31 removed lines patch added patch discarded remove patch
@@ -26,8 +26,12 @@  discard block
 block discarded – undo
26 26
 	} else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){
27 27
 		$end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date']." 00:00:00";
28 28
 		$sql_date = $end_date;
29
-	} else $sql_date = '';
30
-} else $sql_date = '';
29
+	} else {
30
+		$sql_date = '';
31
+	}
32
+	} else {
33
+	$sql_date = '';
34
+}
31 35
 
32 36
 if (isset($_GET['highest_altitude'])) {
33 37
 	//for altitude manipulation
@@ -41,8 +45,12 @@  discard block
 block discarded – undo
41 45
 	} else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){
42 46
 		$start_altitude = $_GET['lowest_altitude'].",60000";
43 47
 		$sql_altitude = $start_altitude;
44
-	} else $sql_altitude = '';
45
-} else $sql_altitude = '';
48
+	} else {
49
+		$sql_altitude = '';
50
+	}
51
+	} else {
52
+	$sql_altitude = '';
53
+}
46 54
 
47 55
 //calculuation for the pagination
48 56
 if(!isset($_GET['limit']))
@@ -60,7 +68,7 @@  discard block
 block discarded – undo
60 68
 		$limit_end = $_GET['number_results'];
61 69
 		$absolute_difference = $_GET['number_results'];
62 70
 	}
63
-}  else {
71
+} else {
64 72
 	$limit_explode = explode(",", $_GET['limit']);
65 73
 	$limit_start = $limit_explode[0];
66 74
 	$limit_end = $limit_explode[1];
@@ -93,10 +101,15 @@  discard block
 block discarded – undo
93 101
 	$origlon = filter_input(INPUT_GET,'origlon',FILTER_SANITIZE_STRING);
94 102
 	$dist = filter_input(INPUT_GET,'dist',FILTER_SANITIZE_NUMBER_INT);
95 103
 	if ($dist != '') {
96
-		if (isset($globalDistanceUnit) && $globalDistanceUnit == 'mi') $dist = $dist*1.60934;
97
-		elseif (isset($globalDistanceUnit) && $globalDistanceUnit == 'nm') $dist = $dist*1.852;
104
+		if (isset($globalDistanceUnit) && $globalDistanceUnit == 'mi') {
105
+			$dist = $dist*1.60934;
106
+		} elseif (isset($globalDistanceUnit) && $globalDistanceUnit == 'nm') {
107
+			$dist = $dist*1.852;
108
+		}
109
+	}
110
+	if (!isset($sql_date)) {
111
+		$sql_date = '';
98 112
 	}
99
-	if (!isset($sql_date)) $sql_date = '';
100 113
 	if ($archive == 1) {
101 114
 		$SpotterArchive = new SpotterArchive();
102 115
 		$spotter_array = $SpotterArchive->searchSpotterData($q,$registration,$aircraft,strtolower(str_replace("-", " ", $manufacturer)),$highlights,$airline,$airline_country,$airline_type,$airport,$airport_country,$callsign,$departure_airport_route,$arrival_airport_route,$owner,$pilot_id,$pilot_name,$sql_altitude,$sql_date,$limit_start.",".$absolute_difference,$sort,'',$origlat,$origlon,$dist);
@@ -164,7 +177,10 @@  discard block
 block discarded – undo
164 177
 		if (isset($_GET['aircraft']) && $_GET['aircraft'] != ""){ print _("Aircraft:").' <span>'.$_GET['aircraft'].'</span> '; }
165 178
 		if (isset($_GET['manufacturer']) && $_GET['manufacturer'] != ""){ print _("Manufacturer:").' <span>'.$_GET['manufacturer'].'</span> '; }
166 179
 		if (isset($_GET['registration']) && $_GET['registration'] != ""){ print _("Registration:").' <span>'.$_GET['registration'].'</span> '; }
167
-		if (isset($_GET['highlights'])) if ($_GET['highlights'] == "true"){ print _("Highlights:").' <span>'.$_GET['highlights'].'</span> '; }
180
+		if (isset($_GET['highlights'])) {
181
+			if ($_GET['highlights'] == "true"){ print _("Highlights:").' <span>'.$_GET['highlights'].'</span> ';
182
+		}
183
+		}
168 184
 		if (isset($_GET['airline']) && $_GET['airline'] != ""){ print _("Airline:").' <span>'.$_GET['airline'].'</span> '; }
169 185
 		if (isset($_GET['airline_country']) && $_GET['airline_country'] != ""){ print _("Airline country:").' <span>'.$_GET['airline_country'].'</span> '; }
170 186
 		if (isset($_GET['airline_type']) && $_GET['airline_type'] != ""){ print _("Airline type:").' <span>'.$_GET['airline_type'].'</span> '; }
@@ -274,7 +290,10 @@  discard block
 block discarded – undo
274 290
 		<fieldset>
275 291
 			<div class="form-group">
276 292
 				<label><?php echo _("Keywords"); ?></label> 
277
-				<input type="text" id="q" name="q" value="<?php if (isset($_GET['q'])) print $_GET['q']; ?>" size="10" placeholder="<?php echo _("Keywords"); ?>" />
293
+				<input type="text" id="q" name="q" value="<?php if (isset($_GET['q'])) {
294
+	print $_GET['q'];
295
+}
296
+?>" size="10" placeholder="<?php echo _("Keywords"); ?>" />
278 297
 			</div>
279 298
 		</fieldset>
280 299
 		<div class="advanced-form">
@@ -286,41 +305,62 @@  discard block
 block discarded – undo
286 305
 						<option></option>
287 306
 					</select>
288 307
 				</div>
289
-				<script type="text/javascript">getSelect('manufacturer','<?php if(isset($_GET['manufacturer'])) print $_GET['manufacturer']; ?>')</script>
308
+				<script type="text/javascript">getSelect('manufacturer','<?php if(isset($_GET['manufacturer'])) {
309
+	print $_GET['manufacturer'];
310
+}
311
+?>')</script>
290 312
 				<div class="form-group">
291 313
 					<label><?php echo _("Type"); ?></label> 
292 314
 					<select name="aircraft" id="aircrafttypes" class="selectpicker" data-live-search="true">
293 315
 						<option></option>
294 316
 					</select>
295 317
 				</div>
296
-				<script type="text/javascript">getSelect('aircrafttypes','<?php if(isset($_GET['aircraft_icao'])) print $_GET['aircraft_icao']; ?>');</script>
318
+				<script type="text/javascript">getSelect('aircrafttypes','<?php if(isset($_GET['aircraft_icao'])) {
319
+	print $_GET['aircraft_icao'];
320
+}
321
+?>');</script>
297 322
 				<div class="form-group">
298 323
 					<label><?php echo _("Registration"); ?></label> 
299
-					<input type="text" name="registration" value="<?php if (isset($_GET['registration'])) print $_GET['registration']; ?>" size="8" />
324
+					<input type="text" name="registration" value="<?php if (isset($_GET['registration'])) {
325
+	print $_GET['registration'];
326
+}
327
+?>" size="8" />
300 328
 				</div>
301 329
 <?php
302 330
 if ((isset($globalIVAO) && $globalIVAO) || (isset($globalVATSIM) && $globalVATSIM) || (isset($globalphpVMS) && $globalphpVMS)) {
303 331
 ?>
304 332
 				<div class="form-group">
305 333
 					<label><?php echo _("Pilot id"); ?></label> 
306
-					<input type="text" name="pilot_id" value="<?php if (isset($_GET['pilot_id'])) print $_GET['pilot_id']; ?>" size="15" />
334
+					<input type="text" name="pilot_id" value="<?php if (isset($_GET['pilot_id'])) {
335
+	print $_GET['pilot_id'];
336
+}
337
+?>" size="15" />
307 338
 				</div>
308 339
 				<div class="form-group">
309 340
 					<label><?php echo _("Pilot name"); ?></label> 
310
-					<input type="text" name="pilot_name" value="<?php if (isset($_GET['pilot_name'])) print $_GET['pilot_name']; ?>" size="15" />
341
+					<input type="text" name="pilot_name" value="<?php if (isset($_GET['pilot_name'])) {
342
+	print $_GET['pilot_name'];
343
+}
344
+?>" size="15" />
311 345
 				</div>
312 346
 <?php
313
-}else {
347
+} else {
314 348
 ?>
315 349
 				<div class="form-group">
316 350
 					<label><?php echo _("Owner name"); ?></label> 
317
-					<input type="text" name="owner" value="<?php if (isset($_GET['owner'])) print $_GET['owner']; ?>" size="15" />
351
+					<input type="text" name="owner" value="<?php if (isset($_GET['owner'])) {
352
+	print $_GET['owner'];
353
+}
354
+?>" size="15" />
318 355
 				</div>
319 356
 <?php
320 357
 }
321 358
 ?>
322 359
 				<div class="form-group checkbox">
323
-					<div><input type="checkbox" name="highlights" value="true" id="highlights" <?php if (isset($_GET['highlights'])) if ($_GET['highlights'] == "true"){ print 'checked="checked"'; } ?>> <label for="highlights"><?php echo _("Include only aircrafts with special highlights (unique liveries, destinations etc.)"); ?></label></div>
360
+					<div><input type="checkbox" name="highlights" value="true" id="highlights" <?php if (isset($_GET['highlights'])) {
361
+	if ($_GET['highlights'] == "true"){ print 'checked="checked"';
362
+}
363
+} ?>> <label for="highlights"><?php echo _("Include only aircrafts with special highlights (unique liveries, destinations etc.)"); ?></label></div>
324 364
 				</div>
325 365
 			</fieldset>
326 366
 			<fieldset>
@@ -331,23 +371,41 @@  discard block
 block discarded – undo
331 371
 						<option></option>
332 372
 					</select>
333 373
 				</div>
334
-				<script type="text/javascript">getSelect('airlinenames','<?php if(isset($_GET['airline'])) print $_GET['airline']; ?>');</script>
374
+				<script type="text/javascript">getSelect('airlinenames','<?php if(isset($_GET['airline'])) {
375
+	print $_GET['airline'];
376
+}
377
+?>');</script>
335 378
 				<div class="form-group">
336 379
 					<label><?php echo _("Country"); ?></label> 
337 380
 					<select name="airline_country" id="airlinecountries" class="selectpicker" data-live-search="true">
338 381
 						<option></option>
339 382
 					</select>
340 383
 				</div>
341
-				<script type="text/javascript">getSelect('airlinecountries','<?php if(isset($_GET['airline_country'])) print $_GET['airline_country']; ?>');</script>
384
+				<script type="text/javascript">getSelect('airlinecountries','<?php if(isset($_GET['airline_country'])) {
385
+	print $_GET['airline_country'];
386
+}
387
+?>');</script>
342 388
 				<div class="form-group">
343 389
 					<label><?php echo _("Callsign"); ?></label> 
344
-					<input type="text" name="callsign" value="<?php if (isset($_GET['callsign'])) print $_GET['callsign']; ?>" size="8" />
390
+					<input type="text" name="callsign" value="<?php if (isset($_GET['callsign'])) {
391
+	print $_GET['callsign'];
392
+}
393
+?>" size="8" />
345 394
 				</div>
346 395
 				<div class="form-group radio">
347 396
 					<div><input type="radio" name="airline_type" value="all" id="airline_type_all" <?php if (!isset($_GET['airline_type']) || $_GET['airline_type'] == "all"){ print 'checked="checked"'; } ?>> <label for="airline_type_all"><?php echo _("All airlines types"); ?></label></div>
348
-					<div><input type="radio" name="airline_type" value="passenger" id="airline_type_passenger" <?php if (isset($_GET['airline_type'])) if ($_GET['airline_type'] == "passenger"){ print 'checked="checked"'; } ?>> <label for="airline_type_passenger"><?php echo _("Only Passenger airlines"); ?></label></div>
349
-					<div><input type="radio" name="airline_type" value="cargo" id="airline_type_cargo" <?php if (isset($_GET['airline_type'])) if ( $_GET['airline_type'] == "cargo"){ print 'checked="checked"'; } ?>> <label for="airline_type_cargo"><?php echo _("Only Cargo airlines"); ?></label></div>
350
-					<div><input type="radio" name="airline_type" value="military" id="airline_type_military" <?php if (isset($_GET['airline_type'])) if ( $_GET['airline_type'] == "military"){ print 'checked="checked"'; } ?>> <label for="airline_type_military"><?php echo _("Only Military airlines"); ?></label></div>
397
+					<div><input type="radio" name="airline_type" value="passenger" id="airline_type_passenger" <?php if (isset($_GET['airline_type'])) {
398
+	if ($_GET['airline_type'] == "passenger"){ print 'checked="checked"';
399
+}
400
+} ?>> <label for="airline_type_passenger"><?php echo _("Only Passenger airlines"); ?></label></div>
401
+					<div><input type="radio" name="airline_type" value="cargo" id="airline_type_cargo" <?php if (isset($_GET['airline_type'])) {
402
+	if ( $_GET['airline_type'] == "cargo"){ print 'checked="checked"';
403
+}
404
+} ?>> <label for="airline_type_cargo"><?php echo _("Only Cargo airlines"); ?></label></div>
405
+					<div><input type="radio" name="airline_type" value="military" id="airline_type_military" <?php if (isset($_GET['airline_type'])) {
406
+	if ( $_GET['airline_type'] == "military"){ print 'checked="checked"';
407
+}
408
+} ?>> <label for="airline_type_military"><?php echo _("Only Military airlines"); ?></label></div>
351 409
 				</div>
352 410
 			</fieldset>
353 411
 			<fieldset>
@@ -358,14 +416,20 @@  discard block
 block discarded – undo
358 416
 						<option></option>
359 417
 					</select>
360 418
 				</div>
361
-				<script type="text/javascript">getSelect('airportnames','<?php if(isset($_GET['airport_icao'])) print $_GET['airport_icao']; ?>');</script>
419
+				<script type="text/javascript">getSelect('airportnames','<?php if(isset($_GET['airport_icao'])) {
420
+	print $_GET['airport_icao'];
421
+}
422
+?>');</script>
362 423
 				<div class="form-group">
363 424
 					<label><?php echo _("Country"); ?></label> 
364 425
 					<select name="airport_country" id="airportcountries" class="selectpicker" data-live-search="true">
365 426
 						<option></option>
366 427
 					</select>
367 428
 				</div>
368
-				<script type="text/javascript">getSelect('airportcountries','<?php if(isset($_GET['airport_country'])) print $_GET['airport_country']; ?>');</script>
429
+				<script type="text/javascript">getSelect('airportcountries','<?php if(isset($_GET['airport_country'])) {
430
+	print $_GET['airport_country'];
431
+}
432
+?>');</script>
369 433
 			</fieldset>
370 434
 			<fieldset>
371 435
 				<legend><?php echo _("Route"); ?></legend>
@@ -375,21 +439,30 @@  discard block
 block discarded – undo
375 439
 						<option></option>
376 440
 					</select>
377 441
 				</div>
378
-				<script type="text/javascript">getSelect('departureairportnames','<?php if(isset($_GET['departure_airport_route'])) print $_GET['departure_airport_route']; ?>');</script>
442
+				<script type="text/javascript">getSelect('departureairportnames','<?php if(isset($_GET['departure_airport_route'])) {
443
+	print $_GET['departure_airport_route'];
444
+}
445
+?>');</script>
379 446
 				<div class="form-group">
380 447
 					<label><?php echo _("Arrival Airport"); ?></label> 
381 448
 					<select name="arrival_airport_route" id="arrivalairportnames" class="selectpicker" data-live-search="true">
382 449
 						<option></option>
383 450
 					</select>
384 451
 				</div>
385
-				<script type="text/javascript">getSelect('arrivalairportnames','<?php if(isset($_GET['arrival_airport_route'])) print $_GET['arrival_airport_route']; ?>');</script>
452
+				<script type="text/javascript">getSelect('arrivalairportnames','<?php if(isset($_GET['arrival_airport_route'])) {
453
+	print $_GET['arrival_airport_route'];
454
+}
455
+?>');</script>
386 456
 			</fieldset>
387 457
 			<fieldset>
388 458
 				<legend><?php echo _("Date"); ?></legend>
389 459
 				<div class="form-group">
390 460
 					<label><?php echo _("Start Date"); ?></label>
391 461
 					<div class='input-group date' id='datetimepicker1'>
392
-						<input type='text' name="start_date" class="form-control" value="<?php if (isset($_GET['start_date'])) print $_GET['start_date']; ?>" placeholder="<?php echo _("Start Date/Time"); ?>" />
462
+						<input type='text' name="start_date" class="form-control" value="<?php if (isset($_GET['start_date'])) {
463
+	print $_GET['start_date'];
464
+}
465
+?>" placeholder="<?php echo _("Start Date/Time"); ?>" />
393 466
 						<span class="input-group-addon">
394 467
 							<span class="glyphicon glyphicon-calendar"></span>
395 468
 						</span>
@@ -398,7 +471,10 @@  discard block
 block discarded – undo
398 471
 				<div class="form-group">
399 472
 					<label><?php echo _("End Date"); ?></label>
400 473
 					<div class='input-group date' id='datetimepicker2'>
401
-						<input type='text' name="end_date" class="form-control" value="<?php if (isset($_GET['end_date'])) print $_GET['end_date']; ?>" placeholder="<?php echo _("End Date/Time"); ?>" />
474
+						<input type='text' name="end_date" class="form-control" value="<?php if (isset($_GET['end_date'])) {
475
+	print $_GET['end_date'];
476
+}
477
+?>" placeholder="<?php echo _("End Date/Time"); ?>" />
402 478
 						<span class="input-group-addon">
403 479
 							<span class="glyphicon glyphicon-calendar"></span>
404 480
 						</span>
@@ -474,7 +550,12 @@  discard block
 block discarded – undo
474 550
 				<input type="text" name="origlon" class="form-control" placeholder="<?php echo _("Center point longitude"); ?>" />
475 551
 			</div>
476 552
 			<div class="form-group">
477
-				<label><?php echo _("Distance").' ('; if (isset($globalDistanceUnit)) print $globalDistanceUnit; else print 'km'; print ')'; ?></label>
553
+				<label><?php echo _("Distance").' ('; if (isset($globalDistanceUnit)) {
554
+	print $globalDistanceUnit;
555
+} else {
556
+	print 'km';
557
+}
558
+print ')'; ?></label>
478 559
 				<input type="text" name="dist" class="form-control" placeholder="<?php echo _("Distance from center point"); ?>" />
479 560
 			</div>
480 561
 		</fieldset>
Please login to merge, or discard this patch.
currently.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	$limit_start = 0;
14 14
 	$limit_end = 25;
15 15
 	$absolute_difference = 25;
16
-}  else {
16
+} else {
17 17
 	$limit_explode = explode(",", $_GET['limit']);
18 18
 	$limit_start = $limit_explode[0];
19 19
 	$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.
date-statistics-airline-country.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,11 @@
 block discarded – undo
6 6
 $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
7 7
 
8 8
 $Spotter = new Spotter();
9
-if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
10
-else $spotter_array = array();
9
+if (isset($_GET['date'])) {
10
+	$spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
11
+} else {
12
+	$spotter_array = array();
13
+}
11 14
 
12 15
 if (!empty($spotter_array))
13 16
 {
Please login to merge, or discard this patch.
footer.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,10 @@
 block discarded – undo
9 9
 	<?php
10 10
 	    }
11 11
 	?>
12
-	<span>Developed in Barrie by <a href="http://www.mariotrunz.com" 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://github.com/Ysurac/FlightAirMap/issues" target="_blank">Report any issues</a></span>
12
+	<span>Developed in Barrie by <a href="http://www.mariotrunz.com" 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)) {
13
+	print $globalURL;
14
+}
15
+?>/about#source">Source &amp; Credits</a></span> - <span><a href="https://github.com/Ysurac/FlightAirMap/issues" target="_blank">Report any issues</a></span>
13 16
 </footer>
14 17
 
15 18
 <div class="notifications bottom-left"></div>
Please login to merge, or discard this patch.
tools-acars.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@
 block discarded – undo
21 21
 print '<fieldset class="form-group">';
22 22
 print '<label for="acars_message">'._("ACARS Message").'</label>';
23 23
 print '<textarea class="form-control" name="acars_message" id="acars_message" rows="5">';
24
-if ($message != '') print $message;
24
+if ($message != '') {
25
+	print $message;
26
+}
25 27
 print '</textarea>';
26 28
 print '</fieldset>';
27 29
 print '<button type="submit" class="btn btn-primary">Submit</button>';
Please login to merge, or discard this patch.