|
@@ -4,7 +4,7 @@ discard block |
|
|
block discarded – undo |
|
4
|
4
|
require_once('require/class.Language.php'); |
|
5
|
5
|
require_once('require/class.Satellite.php'); |
|
6
|
6
|
|
|
7
|
|
-$trackident = filter_input(INPUT_GET,'trackid',FILTER_SANITIZE_STRING); |
|
|
7
|
+$trackident = filter_input(INPUT_GET, 'trackid', FILTER_SANITIZE_STRING); |
|
8
|
8
|
if ($trackident != '') { |
|
9
|
9
|
require_once('require/class.SpotterLive.php'); |
|
10
|
10
|
$SpotterLive = new SpotterLive(); |
|
@@ -14,7 +14,7 @@ discard block |
|
|
block discarded – undo |
|
14
|
14
|
$spotterid = $Spotter->getSpotterIDBasedOnFlightAwareID($trackident); |
|
15
|
15
|
header('Location: '.$globalURL.'/flightid/'.$spotterid); |
|
16
|
16
|
} else { |
|
17
|
|
- setcookie('MapTrack',$resulttrackident[0]['flightaware_id']); |
|
|
17
|
+ setcookie('MapTrack', $resulttrackident[0]['flightaware_id']); |
|
18
|
18
|
} |
|
19
|
19
|
} else { |
|
20
|
20
|
unset($_COOKIE['MapTrack']); |
|
@@ -167,7 +167,7 @@ discard block |
|
|
block discarded – undo |
|
167
|
167
|
<div class="form-group"> |
|
168
|
168
|
<label>From (UTC):</label> |
|
169
|
169
|
<div class='input-group date' id='datetimepicker1'> |
|
170
|
|
- <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a",$_COOKIE['archive_begin']); ?>" required /> |
|
|
170
|
+ <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a", $_COOKIE['archive_begin']); ?>" required /> |
|
171
|
171
|
<span class="input-group-addon"> |
|
172
|
172
|
<span class="glyphicon glyphicon-calendar"></span> |
|
173
|
173
|
</span> |
|
@@ -176,7 +176,7 @@ discard block |
|
|
block discarded – undo |
|
176
|
176
|
<div class="form-group"> |
|
177
|
177
|
<label>To (UTC):</label> |
|
178
|
178
|
<div class='input-group date' id='datetimepicker2'> |
|
179
|
|
- <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a",$_COOKIE['archive_end']); ?>" /> |
|
|
179
|
+ <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a", $_COOKIE['archive_end']); ?>" /> |
|
180
|
180
|
<span class="input-group-addon"> |
|
181
|
181
|
<span class="glyphicon glyphicon-calendar"></span> |
|
182
|
182
|
</span> |
|
@@ -301,8 +301,8 @@ discard block |
|
|
block discarded – undo |
|
301
|
301
|
<li><?php echo _("Type of Terrain:"); ?> |
|
302
|
302
|
<select class="selectpicker" onchange="terrainType(this);"> |
|
303
|
303
|
<option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
304
|
|
- <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
305
|
|
- <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
|
304
|
+ <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected'; ?>>ellipsoid</option> |
|
|
305
|
+ <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected'; ?>>vr terrain</option> |
|
306
|
306
|
</select> |
|
307
|
307
|
</li> |
|
308
|
308
|
<?php |
|
@@ -326,7 +326,7 @@ discard block |
|
|
block discarded – undo |
|
326
|
326
|
<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> |
|
327
|
327
|
<?php |
|
328
|
328
|
} |
|
329
|
|
- if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
|
329
|
+ if (time() > mktime(0, 0, 0, 12, 1, date("Y")) && time() < mktime(0, 0, 0, 12, 31, date("Y"))) { |
|
330
|
330
|
?> |
|
331
|
331
|
<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> |
|
332
|
332
|
<?php |
|
@@ -439,10 +439,10 @@ discard block |
|
|
block discarded – undo |
|
439
|
439
|
$Spotter = new Spotter(); |
|
440
|
440
|
$allairlinenames = $Spotter->getAllAirlineNames(); |
|
441
|
441
|
} |
|
442
|
|
- foreach($allairlinenames as $airline) { |
|
|
442
|
+ foreach ($allairlinenames as $airline) { |
|
443
|
443
|
$airline_name = $airline['airline_name']; |
|
444
|
|
- if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
445
|
|
- if (isset($_COOKIE['Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['Airlines']))) { |
|
|
444
|
+ if (strlen($airline_name) > 30) $airline_name = substr($airline_name, 0, 30).'...'; |
|
|
445
|
+ if (isset($_COOKIE['Airlines']) && in_array($airline['airline_icao'], explode(',', $_COOKIE['Airlines']))) { |
|
446
|
446
|
echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
|
447
|
447
|
} else { |
|
448
|
448
|
echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
|
@@ -458,8 +458,8 @@ discard block |
|
|
block discarded – undo |
|
458
|
458
|
<select class="selectpicker" multiple onchange="sources(this);"> |
|
459
|
459
|
<?php |
|
460
|
460
|
$Spotter = new Spotter(); |
|
461
|
|
- foreach($Spotter->getAllSourceName('aprs') as $source) { |
|
462
|
|
- if (isset($_COOKIE['Sources']) && in_array($source['source_name'],explode(',',$_COOKIE['Sources']))) { |
|
|
461
|
+ foreach ($Spotter->getAllSourceName('aprs') as $source) { |
|
|
462
|
+ if (isset($_COOKIE['Sources']) && in_array($source['source_name'], explode(',', $_COOKIE['Sources']))) { |
|
463
|
463
|
echo '<option value="'.$source['source_name'].'" selected>'.$source['source_name'].'</option>'; |
|
464
|
464
|
} else { |
|
465
|
465
|
echo '<option value="'.$source['source_name'].'">'.$source['source_name'].'</option>'; |
|
@@ -531,7 +531,7 @@ discard block |
|
|
block discarded – undo |
|
531
|
531
|
else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
532
|
532
|
else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
533
|
533
|
|
|
534
|
|
- if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
|
|
534
|
+ if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'], explode(',', $_COOKIE['sattypes']))) { |
|
535
|
535
|
print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |
|
536
|
536
|
} else { |
|
537
|
537
|
print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |