@@ -4,7 +4,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -434,10 +434,10 @@ discard block |
||
434 | 434 | $Spotter = new Spotter(); |
435 | 435 | $allairlinenames = $Spotter->getAllAirlineNames() |
436 | 436 | } |
437 | - foreach($allairlinenames as $airline) { |
|
437 | + foreach ($allairlinenames as $airline) { |
|
438 | 438 | $airline_name = $airline['airline_name']; |
439 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
440 | - if (isset($_COOKIE['Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['Airlines']))) { |
|
439 | + if (strlen($airline_name) > 30) $airline_name = substr($airline_name, 0, 30).'...'; |
|
440 | + if (isset($_COOKIE['Airlines']) && in_array($airline['airline_icao'], explode(',', $_COOKIE['Airlines']))) { |
|
441 | 441 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
442 | 442 | } else { |
443 | 443 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
@@ -453,8 +453,8 @@ discard block |
||
453 | 453 | <select class="selectpicker" multiple onchange="sources(this);"> |
454 | 454 | <?php |
455 | 455 | $Spotter = new Spotter(); |
456 | - foreach($Spotter->getAllSourceName('aprs') as $source) { |
|
457 | - if (isset($_COOKIE['Sources']) && in_array($source['source_name'],explode(',',$_COOKIE['Sources']))) { |
|
456 | + foreach ($Spotter->getAllSourceName('aprs') as $source) { |
|
457 | + if (isset($_COOKIE['Sources']) && in_array($source['source_name'], explode(',', $_COOKIE['Sources']))) { |
|
458 | 458 | echo '<option value="'.$source['source_name'].'" selected>'.$source['source_name'].'</option>'; |
459 | 459 | } else { |
460 | 460 | echo '<option value="'.$source['source_name'].'">'.$source['source_name'].'</option>'; |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
527 | 527 | else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
528 | 528 | |
529 | - if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
|
529 | + if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'], explode(',', $_COOKIE['sattypes']))) { |
|
530 | 530 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |
531 | 531 | } else { |
532 | 532 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |