@@ -14,35 +14,35 @@ discard block |
||
| 14 | 14 | if (isset($globalMapOffline) && $globalMapOffline) $MapType = 'offline'; |
| 15 | 15 | |
| 16 | 16 | if (isset($_GET['3d'])) { |
| 17 | - setcookie('MapFormat','3d'); |
|
| 17 | + setcookie('MapFormat', '3d'); |
|
| 18 | 18 | } else if (isset($_GET['2d'])) { |
| 19 | - setcookie('MapFormat','2d'); |
|
| 19 | + setcookie('MapFormat', '2d'); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) { |
| 23 | - $tsk = filter_input(INPUT_GET,'tsk',FILTER_SANITIZE_URL); |
|
| 23 | + $tsk = filter_input(INPUT_GET, 'tsk', FILTER_SANITIZE_URL); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | if (isset($_POST['archive'])) { |
| 27 | - setcookie('archive','true'); |
|
| 28 | - setcookie('archive_begin',strtotime($_POST['start_date'])); |
|
| 29 | - setcookie('archive_end',strtotime($_POST['end_date'])); |
|
| 30 | - setcookie('archive_speed',$_POST['archivespeed']); |
|
| 27 | + setcookie('archive', 'true'); |
|
| 28 | + setcookie('archive_begin', strtotime($_POST['start_date'])); |
|
| 29 | + setcookie('archive_end', strtotime($_POST['end_date'])); |
|
| 30 | + setcookie('archive_speed', $_POST['archivespeed']); |
|
| 31 | 31 | } |
| 32 | 32 | if (isset($_POST['noarchive'])) { |
| 33 | - setcookie('archive','false',-1); |
|
| 34 | - setcookie('archive_begin','',-1); |
|
| 35 | - setcookie('archive_end','',-1); |
|
| 36 | - setcookie('archive_speed','',-1); |
|
| 33 | + setcookie('archive', 'false', -1); |
|
| 34 | + setcookie('archive_begin', '', -1); |
|
| 35 | + setcookie('archive_end', '', -1); |
|
| 36 | + setcookie('archive_speed', '', -1); |
|
| 37 | 37 | } |
| 38 | 38 | // When button "Remove all filters" is clicked |
| 39 | 39 | if (isset($_POST['removefilters'])) { |
| 40 | - $allfilters = array_filter(array_keys($_COOKIE),function($key) { |
|
| 41 | - return strpos($key,'filter_') === 0; |
|
| 40 | + $allfilters = array_filter(array_keys($_COOKIE), function($key) { |
|
| 41 | + return strpos($key, 'filter_') === 0; |
|
| 42 | 42 | }); |
| 43 | 43 | foreach ($allfilters as $filt) { |
| 44 | 44 | unset($_COOKIE[$filt]); |
| 45 | - setcookie($filt,null,-1); |
|
| 45 | + setcookie($filt, null, -1); |
|
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | ?> |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | <script src="<?php print $globalURL; ?>/js/MovingMarker.js"></script> |
| 265 | 265 | <script src="<?php print $globalURL; ?>/js/jquery.idle.min.js"></script> |
| 266 | 266 | <script src="<?php print $globalURL; ?>/js/map.common.js"></script> |
| 267 | -<script src="<?php print $globalURL; ?>/js/map.2d.js.php?ident=<?php print $ident; ?><?php if(isset($latitude)) print '&latitude='.$latitude; ?><?php if(isset($longitude)) print '&longitude='.$longitude; ?>&<?php print time(); ?>"></script> |
|
| 267 | +<script src="<?php print $globalURL; ?>/js/map.2d.js.php?ident=<?php print $ident; ?><?php if (isset($latitude)) print '&latitude='.$latitude; ?><?php if (isset($longitude)) print '&longitude='.$longitude; ?>&<?php print time(); ?>"></script> |
|
| 268 | 268 | <?php |
| 269 | 269 | if (!isset($type) || $type == 'aircraft') { |
| 270 | 270 | ?> |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | <script src="<?php print $globalURL; ?>/js/MovingMarker.js"></script> |
| 338 | 338 | <script src="<?php print $globalURL; ?>/js/jquery.idle.min.js"></script> |
| 339 | 339 | <script src="<?php print $globalURL; ?>/js/map.common.js"></script> |
| 340 | -<script src="<?php print $globalURL; ?>/js/map.2d.js.php?flightaware_id=<?php print $flightaware_id; ?><?php if(isset($latitude)) print '&latitude='.$latitude; ?><?php if(isset($longitude)) print '&longitude='.$longitude; ?>&<?php print time(); ?>"></script> |
|
| 340 | +<script src="<?php print $globalURL; ?>/js/map.2d.js.php?flightaware_id=<?php print $flightaware_id; ?><?php if (isset($latitude)) print '&latitude='.$latitude; ?><?php if (isset($longitude)) print '&longitude='.$longitude; ?>&<?php print time(); ?>"></script> |
|
| 341 | 341 | <script src="<?php print $globalURL; ?>/js/map-aircraft.2d.js.php?flightaware_id=<?php print $flightaware_id; ?>&<?php print time(); ?>"></script> |
| 342 | 342 | <?php |
| 343 | 343 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '' && ($MapType == 'Google-Roadmap' || $MapType == 'Google-Satellite' || $MapType == 'Google-Hybrid' || $MapType == 'Google-Terrain')) { |
@@ -742,8 +742,8 @@ discard block |
||
| 742 | 742 | ?> |
| 743 | 743 | <div class="search"> |
| 744 | 744 | <form action="<?php print $globalURL; ?>/search" method="get"> |
| 745 | - <!--<input type="text" name="q" value="<?php if (isset($GET['q'])) { if ($_GET['q'] != ""){ print $_GET['q']; } else { print _("Search"); } } else { print _("Search"); } ?>" onfocus="if (this.value=='search'){this.value='';}" /><button type="submit"><i class="fa fa-search"></i></button>--> |
|
| 746 | - <input type="text" name="callsign" value="<?php if (isset($GET['callsign'])) { if ($_GET['callsign'] != ""){ print $_GET['callsign']; } else { print _("Search"); } } else { print _("Search"); } ?>" onfocus="if (this.value=='search'){this.value='';}" /><button type="submit"><i class="fa fa-search"></i></button> |
|
| 745 | + <!--<input type="text" name="q" value="<?php if (isset($GET['q'])) { if ($_GET['q'] != "") { print $_GET['q']; } else { print _("Search"); } } else { print _("Search"); } ?>" onfocus="if (this.value=='search'){this.value='';}" /><button type="submit"><i class="fa fa-search"></i></button>--> |
|
| 746 | + <input type="text" name="callsign" value="<?php if (isset($GET['callsign'])) { if ($_GET['callsign'] != "") { print $_GET['callsign']; } else { print _("Search"); } } else { print _("Search"); } ?>" onfocus="if (this.value=='search'){this.value='';}" /><button type="submit"><i class="fa fa-search"></i></button> |
|
| 747 | 747 | </form> |
| 748 | 748 | </div> |
| 749 | 749 | <div class="social"> |
@@ -761,7 +761,7 @@ discard block |
||
| 761 | 761 | print '</div>'; |
| 762 | 762 | } |
| 763 | 763 | |
| 764 | -if (strtolower($current_page) =='ident-detailed' || strtolower($current_page) == 'flightid-overview') { |
|
| 764 | +if (strtolower($current_page) == 'ident-detailed' || strtolower($current_page) == 'flightid-overview') { |
|
| 765 | 765 | ?> |
| 766 | 766 | <div class="top-header clear" role="main"> |
| 767 | 767 | <?php |
@@ -774,7 +774,7 @@ discard block |
||
| 774 | 774 | </div> |
| 775 | 775 | <?php |
| 776 | 776 | } |
| 777 | -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)) |
|
| 777 | +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)) |
|
| 778 | 778 | { |
| 779 | 779 | ?> |
| 780 | 780 | <div class="top-header clear" role="main"> |
@@ -787,15 +787,15 @@ discard block |
||
| 787 | 787 | var zoom = 13; |
| 788 | 788 | //create the map |
| 789 | 789 | <?php |
| 790 | - if (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($airport_array[0]['latitude'])) { |
|
| 790 | + if (strpos(strtolower($current_page), 'airport-') !== false && strpos(strtolower($current_page), 'statistics-') === false && isset($airport_array[0]['latitude'])) { |
|
| 791 | 791 | ?> |
| 792 | 792 | map = L.map('map', { zoomControl:true }).setView([<?php print $airport_array[0]['latitude']; ?>,<?php print $airport_array[0]['longitude']; ?>], zoom); |
| 793 | 793 | <?php |
| 794 | - } elseif (strpos(strtolower($current_page),'airport-') !== false && strpos(strtolower($current_page),'statistics-') === false) { |
|
| 794 | + } elseif (strpos(strtolower($current_page), 'airport-') !== false && strpos(strtolower($current_page), 'statistics-') === false) { |
|
| 795 | 795 | ?> |
| 796 | 796 | map = L.map('map', { zoomControl:true }); |
| 797 | 797 | <?php |
| 798 | - } elseif (strpos(strtolower($current_page),'route-') !== false && strpos(strtolower($current_page),'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) { |
|
| 798 | + } elseif (strpos(strtolower($current_page), 'route-') !== false && strpos(strtolower($current_page), 'statistics-') === false && isset($spotter_array[0]['departure_airport_latitude'])) { |
|
| 799 | 799 | ?> |
| 800 | 800 | map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['departure_airport_latitude']; ?>,<?php print $spotter_array[0]['arrival_airport_longitude']; ?>]); |
| 801 | 801 | 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); |
@@ -803,7 +803,7 @@ discard block |
||
| 803 | 803 | 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); |
| 804 | 804 | 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); |
| 805 | 805 | <?php |
| 806 | - } 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'])) { |
|
| 806 | + } 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'])) { |
|
| 807 | 807 | ?> |
| 808 | 808 | map = L.map('map', { zoomControl:true }).setView([<?php print $spotter_array[0]['latitude']; ?>,<?php print $spotter_array[0]['longitude']; ?>]); |
| 809 | 809 | <?php |
@@ -331,15 +331,15 @@ discard block |
||
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | <?php |
| 334 | - if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
| 334 | + if (isset($globalMapUseBbox) && $globalMapUseBbox) { |
|
| 335 | 335 | ?> |
| 336 | 336 | var loc_geojson = Cesium.loadJson("<?php print $globalURL; ?>/location-geojson.php?coord="+bbox()); |
| 337 | 337 | <?php |
| 338 | - } else { |
|
| 338 | + } else { |
|
| 339 | 339 | ?> |
| 340 | 340 | var loc_geojson = Cesium.loadJson("<?php print $globalURL; ?>/location-geojson.php"); |
| 341 | 341 | <?php |
| 342 | - } |
|
| 342 | + } |
|
| 343 | 343 | ?> |
| 344 | 344 | loc_geojson.then(function(geojsondata) { |
| 345 | 345 | loc = new Cesium.CustomDataSource('location'); |
@@ -512,15 +512,15 @@ discard block |
||
| 512 | 512 | // if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
| 513 | 513 | ?> |
| 514 | 514 | <?php |
| 515 | - if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
|
| 515 | + if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
|
| 516 | 516 | ?> |
| 517 | 517 | var MapTerrain = 'ellipsoid'; |
| 518 | 518 | <?php |
| 519 | - } else { |
|
| 519 | + } else { |
|
| 520 | 520 | ?> |
| 521 | 521 | var MapTerrain = getCookie('MapTerrain'); |
| 522 | 522 | <?php |
| 523 | - } |
|
| 523 | + } |
|
| 524 | 524 | ?> |
| 525 | 525 | |
| 526 | 526 | |
@@ -574,11 +574,11 @@ discard block |
||
| 574 | 574 | } |
| 575 | 575 | |
| 576 | 576 | <?php |
| 577 | - if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) { |
|
| 577 | + if (isset($globalTSK) && $globalTSK && isset($_GET['tsk'])) { |
|
| 578 | 578 | ?> |
| 579 | 579 | update_tsk(); |
| 580 | 580 | <?php |
| 581 | - } |
|
| 581 | + } |
|
| 582 | 582 | ?> |
| 583 | 583 | |
| 584 | 584 | update_locationsLayer(); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | <?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 } ?> |
| 48 | 48 | </tr></table></div> |
| 49 | 49 | <?php |
| 50 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
| 50 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
| 51 | 51 | ?> |
| 52 | 52 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script> |
| 53 | 53 | <?php |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
| 72 | 72 | <?php |
| 73 | 73 | } |
| 74 | - } |
|
| 74 | + } |
|
| 75 | 75 | ?> |
| 76 | 76 | |
| 77 | 77 | <div id="sidebar" class="sidebar collapsed"> |
@@ -82,34 +82,34 @@ discard block |
||
| 82 | 82 | <li><a href="#" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
| 83 | 83 | <li><a href="#" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
| 84 | 84 | <?php |
| 85 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 85 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 86 | 86 | if (isset($globalArchive) && $globalArchive == TRUE) { |
| 87 | 87 | ?> |
| 88 | 88 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
| 89 | 89 | <?php |
| 90 | 90 | } |
| 91 | - } |
|
| 91 | + } |
|
| 92 | 92 | ?> |
| 93 | 93 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
| 94 | 94 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
| 95 | 95 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
| 96 | 96 | <?php |
| 97 | - if (isset($globalMap3D) && $globalMap3D) { |
|
| 97 | + if (isset($globalMap3D) && $globalMap3D) { |
|
| 98 | 98 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
| 99 | 99 | ?> |
| 100 | 100 | <li><a href="#" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
| 101 | 101 | <?php |
| 102 | 102 | } else { |
| 103 | - if (isset($globalSatellite) && $globalSatellite) { |
|
| 103 | + if (isset($globalSatellite) && $globalSatellite) { |
|
| 104 | 104 | ?> |
| 105 | 105 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
| 106 | 106 | <?php |
| 107 | - } |
|
| 107 | + } |
|
| 108 | 108 | ?> |
| 109 | 109 | <li><a href="#" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
| 110 | 110 | <?php |
| 111 | 111 | } |
| 112 | - } |
|
| 112 | + } |
|
| 113 | 113 | ?> |
| 114 | 114 | </ul> |
| 115 | 115 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | ?> |
| 185 | 185 | </div> |
| 186 | 186 | <?php |
| 187 | - if (isset($globalArchive) && $globalArchive == TRUE) { |
|
| 187 | + if (isset($globalArchive) && $globalArchive == TRUE) { |
|
| 188 | 188 | ?> |
| 189 | 189 | <div class="sidebar-pane" id="archive"> |
| 190 | 190 | <h1 class="sidebar-header"><?php echo _("Playback"); ?> <i>Bêta</i><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | </form> |
| 244 | 244 | </div> |
| 245 | 245 | <?php |
| 246 | - } |
|
| 246 | + } |
|
| 247 | 247 | ?> |
| 248 | 248 | <div class="sidebar-pane" id="settings"> |
| 249 | 249 | <h1 class="sidebar-header"><?php echo _("Settings"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -254,67 +254,67 @@ discard block |
||
| 254 | 254 | <?php |
| 255 | 255 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
| 256 | 256 | else $MapType = $_COOKIE['MapType']; |
| 257 | - ?> |
|
| 257 | + ?> |
|
| 258 | 258 | <?php |
| 259 | 259 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
| 260 | - ?> |
|
| 260 | + ?> |
|
| 261 | 261 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
| 262 | 262 | <?php |
| 263 | 263 | } else { |
| 264 | - if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
| 265 | - ?> |
|
| 264 | + if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
| 265 | + ?> |
|
| 266 | 266 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
| 267 | 267 | <?php |
| 268 | - } |
|
| 269 | - if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
| 270 | - ?> |
|
| 268 | + } |
|
| 269 | + if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
| 270 | + ?> |
|
| 271 | 271 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
| 272 | 272 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
| 273 | 273 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
| 274 | 274 | <?php |
| 275 | - } |
|
| 276 | - ?> |
|
| 275 | + } |
|
| 276 | + ?> |
|
| 277 | 277 | <?php |
| 278 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
| 279 | - ?> |
|
| 278 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
| 279 | + ?> |
|
| 280 | 280 | <?php |
| 281 | 281 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
| 282 | - ?> |
|
| 282 | + ?> |
|
| 283 | 283 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
| 284 | 284 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
| 285 | 285 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
| 286 | 286 | <?php |
| 287 | 287 | } |
| 288 | - ?> |
|
| 288 | + ?> |
|
| 289 | 289 | <?php |
| 290 | 290 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
| 291 | - ?> |
|
| 291 | + ?> |
|
| 292 | 292 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
| 293 | 293 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
| 294 | 294 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
| 295 | 295 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
| 296 | 296 | <?php |
| 297 | 297 | } |
| 298 | - ?> |
|
| 298 | + ?> |
|
| 299 | 299 | <?php |
| 300 | 300 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
| 301 | - ?> |
|
| 301 | + ?> |
|
| 302 | 302 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
| 303 | 303 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
| 304 | 304 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
| 305 | 305 | <?php |
| 306 | 306 | } |
| 307 | - ?> |
|
| 307 | + ?> |
|
| 308 | 308 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
| 309 | 309 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
| 310 | 310 | <?php |
| 311 | - } |
|
| 312 | - ?> |
|
| 311 | + } |
|
| 312 | + ?> |
|
| 313 | 313 | <?php |
| 314 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
| 314 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
| 315 | 315 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
| 316 | 316 | else $MapBoxId = $_COOKIE['MapTypeId']; |
| 317 | - ?> |
|
| 317 | + ?> |
|
| 318 | 318 | <!-- <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> --> |
| 319 | 319 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
| 320 | 320 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
@@ -329,16 +329,16 @@ discard block |
||
| 329 | 329 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
| 330 | 330 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
| 331 | 331 | <?php |
| 332 | - } |
|
| 333 | - ?> |
|
| 332 | + } |
|
| 333 | + ?> |
|
| 334 | 334 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
| 335 | 335 | <?php |
| 336 | 336 | } |
| 337 | - ?> |
|
| 337 | + ?> |
|
| 338 | 338 | </select> |
| 339 | 339 | </li> |
| 340 | 340 | <?php |
| 341 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
| 341 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
| 342 | 342 | ?> |
| 343 | 343 | <li><?php echo _("Type of Terrain:"); ?> |
| 344 | 344 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -349,10 +349,10 @@ discard block |
||
| 349 | 349 | </select> |
| 350 | 350 | </li> |
| 351 | 351 | <?php |
| 352 | - } |
|
| 352 | + } |
|
| 353 | 353 | ?> |
| 354 | 354 | <?php |
| 355 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 355 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 356 | 356 | ?> |
| 357 | 357 | <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if ((isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') || (!isset($_COOKIE['Map2DBuildings']))) print 'checked'; ?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
| 358 | 358 | |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | <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> |
| 372 | 372 | <?php |
| 373 | 373 | } |
| 374 | - } |
|
| 374 | + } |
|
| 375 | 375 | ?> |
| 376 | 376 | <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> |
| 377 | 377 | <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> |
@@ -383,81 +383,81 @@ discard block |
||
| 383 | 383 | <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) print 'checked'; ?> ><?php echo _("Display fires on map"); ?></label></div></li> |
| 384 | 384 | <?php |
| 385 | 385 | } |
| 386 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 386 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 387 | 387 | ?> |
| 388 | 388 | <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> |
| 389 | 389 | <?php |
| 390 | - } |
|
| 391 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
| 390 | + } |
|
| 391 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
| 392 | 392 | ?> |
| 393 | 393 | <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> |
| 394 | 394 | <?php |
| 395 | - } |
|
| 395 | + } |
|
| 396 | 396 | ?> |
| 397 | 397 | <?php |
| 398 | 398 | if (function_exists('array_column')) { |
| 399 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
| 400 | - ?> |
|
| 399 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
| 400 | + ?> |
|
| 401 | 401 | <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> |
| 402 | 402 | <?php |
| 403 | - } |
|
| 403 | + } |
|
| 404 | 404 | } elseif (isset($globalSources)) { |
| 405 | - $dispolar = false; |
|
| 406 | - foreach ($globalSources as $testsource) { |
|
| 407 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
| 408 | - } |
|
| 409 | - if ($dispolar) { |
|
| 410 | - ?> |
|
| 405 | + $dispolar = false; |
|
| 406 | + foreach ($globalSources as $testsource) { |
|
| 407 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
| 408 | + } |
|
| 409 | + if ($dispolar) { |
|
| 410 | + ?> |
|
| 411 | 411 | <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> |
| 412 | 412 | <?php |
| 413 | - } |
|
| 414 | - } |
|
| 415 | - ?> |
|
| 413 | + } |
|
| 414 | + } |
|
| 415 | + ?> |
|
| 416 | 416 | <?php |
| 417 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 417 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 418 | 418 | ?> |
| 419 | 419 | |
| 420 | 420 | <?php |
| 421 | 421 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
| 422 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 423 | - ?> |
|
| 422 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 423 | + ?> |
|
| 424 | 424 | <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> |
| 425 | 425 | <?php |
| 426 | 426 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
| 427 | - ?> |
|
| 427 | + ?> |
|
| 428 | 428 | <li><?php echo _("Aircraft icon color:"); ?> |
| 429 | 429 | <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print '1a3151'; ?>"> |
| 430 | 430 | </li> |
| 431 | 431 | <?php |
| 432 | 432 | } |
| 433 | - } |
|
| 434 | - } |
|
| 435 | - ?> |
|
| 433 | + } |
|
| 434 | + } |
|
| 435 | + ?> |
|
| 436 | 436 | <?php |
| 437 | 437 | if (isset($globalMarine) && $globalMarine === TRUE) { |
| 438 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 439 | - ?> |
|
| 438 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 439 | + ?> |
|
| 440 | 440 | <li><?php echo _("Marine icon color:"); ?> |
| 441 | 441 | <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'; ?>"> |
| 442 | 442 | </li> |
| 443 | 443 | <?php |
| 444 | - } |
|
| 445 | - } |
|
| 446 | - ?> |
|
| 444 | + } |
|
| 445 | + } |
|
| 446 | + ?> |
|
| 447 | 447 | <?php |
| 448 | 448 | if (isset($globalTracker) && $globalTracker === TRUE) { |
| 449 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 450 | - ?> |
|
| 449 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 450 | + ?> |
|
| 451 | 451 | <li><?php echo _("Tracker icon color:"); ?> |
| 452 | 452 | <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'; ?>"> |
| 453 | 453 | </li> |
| 454 | 454 | <?php |
| 455 | - } |
|
| 456 | - } |
|
| 457 | - ?> |
|
| 455 | + } |
|
| 456 | + } |
|
| 457 | + ?> |
|
| 458 | 458 | <?php |
| 459 | 459 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
| 460 | - ?> |
|
| 460 | + ?> |
|
| 461 | 461 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
| 462 | 462 | <div class="range"> |
| 463 | 463 | <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'; ?>"> |
@@ -466,9 +466,9 @@ discard block |
||
| 466 | 466 | </li> |
| 467 | 467 | <?php |
| 468 | 468 | } |
| 469 | - ?> |
|
| 469 | + ?> |
|
| 470 | 470 | <?php |
| 471 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
| 471 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
| 472 | 472 | ?> |
| 473 | 473 | <?php |
| 474 | 474 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | </li> |
| 501 | 501 | <?php |
| 502 | 502 | } |
| 503 | - } |
|
| 503 | + } |
|
| 504 | 504 | ?> |
| 505 | 505 | <li><?php echo _("Distance unit:"); ?> |
| 506 | 506 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -533,19 +533,19 @@ discard block |
||
| 533 | 533 | <ul> |
| 534 | 534 | <?php |
| 535 | 535 | if (!isset($globalAircraft) || $globalAircraft) { |
| 536 | - ?> |
|
| 536 | + ?> |
|
| 537 | 537 | <?php |
| 538 | 538 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
| 539 | - ?> |
|
| 539 | + ?> |
|
| 540 | 540 | <?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['ShowVATSIM']) && $_COOKIE['ShowVATSIM'] == 'true') || !isset($_COOKIE['ShowVATSIM'])) print 'checked'; ?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
| 541 | 541 | <?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['ShowIVAO']) && $_COOKIE['ShowIVAO'] == 'true') || !isset($_COOKIE['ShowIVAO'])) print 'checked'; ?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
| 542 | 542 | <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['ShowVMS']) && $_COOKIE['ShowVMS'] == 'true') || !isset($_COOKIE['ShowVMS'])) print 'checked'; ?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
| 543 | 543 | <?php |
| 544 | 544 | } |
| 545 | - ?> |
|
| 545 | + ?> |
|
| 546 | 546 | <?php |
| 547 | 547 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
| 548 | - ?> |
|
| 548 | + ?> |
|
| 549 | 549 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
| 550 | 550 | <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['ShowSBS1']) && $_COOKIE['ShowSBS1'] == 'true') || !isset($_COOKIE['ShowSBS1'])) print 'checked'; ?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
| 551 | 551 | <?php } ?> |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | <?php } ?> |
| 555 | 555 | <?php |
| 556 | 556 | } |
| 557 | - ?> |
|
| 557 | + ?> |
|
| 558 | 558 | <li><?php echo _("Display airlines:"); ?> |
| 559 | 559 | <br/> |
| 560 | 560 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -574,14 +574,14 @@ discard block |
||
| 574 | 574 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
| 575 | 575 | } |
| 576 | 576 | } |
| 577 | - ?> |
|
| 577 | + ?> |
|
| 578 | 578 | </select> |
| 579 | 579 | </li> |
| 580 | 580 | <?php |
| 581 | 581 | $Spotter = new Spotter(); |
| 582 | 582 | $allalliancenames = $Spotter->getAllAllianceNames(); |
| 583 | 583 | if (!empty($allalliancenames)) { |
| 584 | - ?> |
|
| 584 | + ?> |
|
| 585 | 585 | <li><?php echo _("Display alliance:"); ?> |
| 586 | 586 | <br/> |
| 587 | 587 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -595,18 +595,18 @@ discard block |
||
| 595 | 595 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
| 596 | 596 | } |
| 597 | 597 | } |
| 598 | - ?> |
|
| 598 | + ?> |
|
| 599 | 599 | </select> |
| 600 | 600 | </li> |
| 601 | 601 | <?php |
| 602 | 602 | } |
| 603 | - ?> |
|
| 603 | + ?> |
|
| 604 | 604 | <?php |
| 605 | 605 | } |
| 606 | - ?> |
|
| 606 | + ?> |
|
| 607 | 607 | <?php |
| 608 | 608 | if (isset($globalAPRS) && $globalAPRS) { |
| 609 | - ?> |
|
| 609 | + ?> |
|
| 610 | 610 | <li><?php echo _("Display APRS sources name:"); ?> |
| 611 | 611 | <select class="selectpicker" multiple onchange="sources(this);"> |
| 612 | 612 | <?php |
@@ -630,18 +630,18 @@ discard block |
||
| 630 | 630 | echo '<option value="'.$src['name'].'">'.$src['name'].'</option>'; |
| 631 | 631 | } |
| 632 | 632 | } |
| 633 | - ?> |
|
| 633 | + ?> |
|
| 634 | 634 | </select> |
| 635 | 635 | </li> |
| 636 | 636 | <?php |
| 637 | 637 | } |
| 638 | - ?> |
|
| 638 | + ?> |
|
| 639 | 639 | <?php |
| 640 | 640 | if (!isset($globalAircraft) || $globalAircraft) { |
| 641 | - ?> |
|
| 641 | + ?> |
|
| 642 | 642 | <?php |
| 643 | - if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
| 644 | - ?> |
|
| 643 | + if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
| 644 | + ?> |
|
| 645 | 645 | <li><?php echo _("Display airlines of type:"); ?><br/> |
| 646 | 646 | <select class="selectpicker" onchange="airlinestype(this);"> |
| 647 | 647 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -651,21 +651,21 @@ discard block |
||
| 651 | 651 | </select> |
| 652 | 652 | </li> |
| 653 | 653 | <?php |
| 654 | - } |
|
| 655 | - ?> |
|
| 654 | + } |
|
| 655 | + ?> |
|
| 656 | 656 | <?php |
| 657 | 657 | } |
| 658 | - ?> |
|
| 658 | + ?> |
|
| 659 | 659 | <?php |
| 660 | 660 | if (isset($globalMarine) && $globalMarine) { |
| 661 | - ?> |
|
| 661 | + ?> |
|
| 662 | 662 | <li> |
| 663 | 663 | <?php echo _("Display vessels with MMSI:"); ?> |
| 664 | 664 | <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
| 665 | 665 | </li> |
| 666 | 666 | <?php |
| 667 | 667 | } |
| 668 | - ?> |
|
| 668 | + ?> |
|
| 669 | 669 | <li> |
| 670 | 670 | <?php echo _("Display with ident:"); ?> |
| 671 | 671 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | </form> |
| 679 | 679 | </div> |
| 680 | 680 | <?php |
| 681 | - if (isset($globalSatellite) && $globalSatellite) { |
|
| 681 | + if (isset($globalSatellite) && $globalSatellite) { |
|
| 682 | 682 | ?> |
| 683 | 683 | <div class="sidebar-pane" id="satellites"> |
| 684 | 684 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -718,14 +718,14 @@ discard block |
||
| 718 | 718 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
| 719 | 719 | } |
| 720 | 720 | } |
| 721 | - ?> |
|
| 721 | + ?> |
|
| 722 | 722 | </select> |
| 723 | 723 | </li> |
| 724 | 724 | </ul> |
| 725 | 725 | </form> |
| 726 | 726 | </div> |
| 727 | 727 | <?php |
| 728 | - } |
|
| 728 | + } |
|
| 729 | 729 | ?> |
| 730 | 730 | </div> |
| 731 | 731 | </div> |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | require_once(dirname(__FILE__).'/class.create_db.php'); |
| 23 | 23 | require_once(dirname(__FILE__).'/class.update_schema.php'); |
| 24 | 24 | require_once(dirname(__FILE__).'/class.settings.php'); |
| 25 | -$title="Install"; |
|
| 25 | +$title = "Install"; |
|
| 26 | 26 | require(dirname(__FILE__).'/../require/settings.php'); |
| 27 | 27 | require_once(dirname(__FILE__).'/../require/class.Common.php'); |
| 28 | 28 | require(dirname(__FILE__).'/header.php'); |
@@ -95,8 +95,8 @@ discard block |
||
| 95 | 95 | if (!extension_loaded('curl')) { |
| 96 | 96 | $error[] = "Curl is not loaded."; |
| 97 | 97 | } |
| 98 | - if(function_exists('apache_get_modules') ){ |
|
| 99 | - if(!in_array('mod_rewrite',apache_get_modules())) { |
|
| 98 | + if (function_exists('apache_get_modules')) { |
|
| 99 | + if (!in_array('mod_rewrite', apache_get_modules())) { |
|
| 100 | 100 | $error[] = "mod_rewrite is not available."; |
| 101 | 101 | } |
| 102 | 102 | /* |
@@ -112,8 +112,8 @@ discard block |
||
| 112 | 112 | print '<div class="info column"><p><strong>If you use MySQL or MariaDB, check that <i>max_allowed_packet</i> >= 8M, else import of some table can fail.</strong></p></div>'; |
| 113 | 113 | if (isset($_SERVER['REQUEST_SCHEME']) && isset($_SERVER['SERVER_NAME']) && isset($_SERVER['SERVER_PORT']) && isset($_SERVER['REQUEST_URI'])) { |
| 114 | 114 | if (function_exists('get_headers')) { |
| 115 | - $check_header = @get_headers($_SERVER['REQUEST_SCHEME'].'://'.$_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"].str_replace('install/','search',str_replace('index.php',$_SERVER["REQUEST_URI"]))); |
|
| 116 | - if (isset($check_header[0]) && !stripos($check_header[0],"200 OK")) { |
|
| 115 | + $check_header = @get_headers($_SERVER['REQUEST_SCHEME'].'://'.$_SERVER["SERVER_NAME"].':'.$_SERVER["SERVER_PORT"].str_replace('install/', 'search', str_replace('index.php', $_SERVER["REQUEST_URI"]))); |
|
| 116 | + if (isset($check_header[0]) && !stripos($check_header[0], "200 OK")) { |
|
| 117 | 117 | print '<div class="info column"><p><strong>Check your configuration, rewrite don\'t seems to work.</strong></p></div>'; |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -503,13 +503,13 @@ discard block |
||
| 503 | 503 | ?> |
| 504 | 504 | <tr> |
| 505 | 505 | <?php |
| 506 | - if (filter_var($source['host'],FILTER_VALIDATE_URL)) { |
|
| 506 | + if (filter_var($source['host'], FILTER_VALIDATE_URL)) { |
|
| 507 | 507 | ?> |
| 508 | 508 | <td><input type="text" name="host[]" id="host" value="<?php print $source['host']; ?>" /></td> |
| 509 | 509 | <td><input type="text" name="port[]" class="col-xs-2" id="port" value="<?php if (isset($source['port'])) print $source['port']; ?>" /></td> |
| 510 | 510 | <?php |
| 511 | 511 | } else { |
| 512 | - $hostport = explode(':',$source['host']); |
|
| 512 | + $hostport = explode(':', $source['host']); |
|
| 513 | 513 | if (isset($hostport[1])) { |
| 514 | 514 | $host = $hostport[0]; |
| 515 | 515 | $port = $hostport[1]; |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | <select name="timezones[]" id="timezones"> |
| 558 | 558 | <?php |
| 559 | 559 | $timezonelist = DateTimeZone::listIdentifiers(DateTimeZone::ALL); |
| 560 | - foreach($timezonelist as $timezones){ |
|
| 560 | + foreach ($timezonelist as $timezones) { |
|
| 561 | 561 | if (isset($source['timezone']) && $source['timezone'] == $timezones) { |
| 562 | 562 | print '<option selected>'.$timezones.'</option>'; |
| 563 | 563 | } elseif (!isset($source['timezone']) && $timezones == 'UTC') { |
@@ -610,7 +610,7 @@ discard block |
||
| 610 | 610 | <select name="timezones[]" id="timezones"> |
| 611 | 611 | <?php |
| 612 | 612 | $timezonelist = DateTimeZone::listIdentifiers(DateTimeZone::ALL); |
| 613 | - foreach($timezonelist as $timezones){ |
|
| 613 | + foreach ($timezonelist as $timezones) { |
|
| 614 | 614 | if ($timezones == 'UTC') { |
| 615 | 615 | print '<option selected>'.$timezones.'</option>'; |
| 616 | 616 | } else print '<option>'.$timezones.'</option>'; |
@@ -1019,7 +1019,7 @@ discard block |
||
| 1019 | 1019 | <br /> |
| 1020 | 1020 | <p> |
| 1021 | 1021 | <label for="aircraftsize">Size of aircraft icon on map (default to 30px if zoom > 7 else 15px), empty to default</label> |
| 1022 | - <input type="number" name="aircraftsize" id="aircraftsize" value="<?php if (isset($globalAircraftSize)) echo $globalAircraftSize;?>" /> |
|
| 1022 | + <input type="number" name="aircraftsize" id="aircraftsize" value="<?php if (isset($globalAircraftSize)) echo $globalAircraftSize; ?>" /> |
|
| 1023 | 1023 | </p> |
| 1024 | 1024 | <br /> |
| 1025 | 1025 | <p> |
@@ -1081,14 +1081,14 @@ discard block |
||
| 1081 | 1081 | $error = ''; |
| 1082 | 1082 | |
| 1083 | 1083 | if (isset($_POST['dbtype'])) { |
| 1084 | - $dbtype = filter_input(INPUT_POST,'dbtype',FILTER_SANITIZE_STRING); |
|
| 1085 | - $dbroot = filter_input(INPUT_POST,'dbroot',FILTER_SANITIZE_STRING); |
|
| 1086 | - $dbrootpass = filter_input(INPUT_POST,'dbrootpass',FILTER_SANITIZE_STRING); |
|
| 1087 | - $dbname = filter_input(INPUT_POST,'dbname',FILTER_SANITIZE_STRING); |
|
| 1088 | - $dbuser = filter_input(INPUT_POST,'dbuser',FILTER_SANITIZE_STRING); |
|
| 1089 | - $dbuserpass = filter_input(INPUT_POST,'dbuserpass',FILTER_SANITIZE_STRING); |
|
| 1090 | - $dbhost = filter_input(INPUT_POST,'dbhost',FILTER_SANITIZE_STRING); |
|
| 1091 | - $dbport = filter_input(INPUT_POST,'dbport',FILTER_SANITIZE_STRING); |
|
| 1084 | + $dbtype = filter_input(INPUT_POST, 'dbtype', FILTER_SANITIZE_STRING); |
|
| 1085 | + $dbroot = filter_input(INPUT_POST, 'dbroot', FILTER_SANITIZE_STRING); |
|
| 1086 | + $dbrootpass = filter_input(INPUT_POST, 'dbrootpass', FILTER_SANITIZE_STRING); |
|
| 1087 | + $dbname = filter_input(INPUT_POST, 'dbname', FILTER_SANITIZE_STRING); |
|
| 1088 | + $dbuser = filter_input(INPUT_POST, 'dbuser', FILTER_SANITIZE_STRING); |
|
| 1089 | + $dbuserpass = filter_input(INPUT_POST, 'dbuserpass', FILTER_SANITIZE_STRING); |
|
| 1090 | + $dbhost = filter_input(INPUT_POST, 'dbhost', FILTER_SANITIZE_STRING); |
|
| 1091 | + $dbport = filter_input(INPUT_POST, 'dbport', FILTER_SANITIZE_STRING); |
|
| 1092 | 1092 | |
| 1093 | 1093 | if ($dbtype == 'mysql' && !extension_loaded('pdo_mysql')) $error .= 'Mysql driver for PDO must be loaded'; |
| 1094 | 1094 | if ($dbtype == 'pgsql' && !extension_loaded('pdo_pgsql')) $error .= 'PosgreSQL driver for PDO must be loaded'; |
@@ -1108,49 +1108,49 @@ discard block |
||
| 1108 | 1108 | } else $settings = array_merge($settings,array('globalDBdriver' => $dbtype,'globalDBhost' => $dbhost,'globalDBuser' => $dbuser,'globalDBport' => $dbport,'globalDBpass' => $dbuserpass,'globalDBname' => $dbname)); |
| 1109 | 1109 | */ |
| 1110 | 1110 | |
| 1111 | - $settings = array_merge($settings,array('globalDBdriver' => $dbtype,'globalDBhost' => $dbhost,'globalDBuser' => $dbuser,'globalDBport' => $dbport,'globalDBpass' => $dbuserpass,'globalDBname' => $dbname)); |
|
| 1111 | + $settings = array_merge($settings, array('globalDBdriver' => $dbtype, 'globalDBhost' => $dbhost, 'globalDBuser' => $dbuser, 'globalDBport' => $dbport, 'globalDBpass' => $dbuserpass, 'globalDBname' => $dbname)); |
|
| 1112 | 1112 | |
| 1113 | - $sitename = filter_input(INPUT_POST,'sitename',FILTER_SANITIZE_STRING); |
|
| 1114 | - $siteurl = filter_input(INPUT_POST,'siteurl',FILTER_SANITIZE_STRING); |
|
| 1115 | - $timezone = filter_input(INPUT_POST,'timezone',FILTER_SANITIZE_STRING); |
|
| 1116 | - $language = filter_input(INPUT_POST,'language',FILTER_SANITIZE_STRING); |
|
| 1117 | - $settings = array_merge($settings,array('globalName' => $sitename,'globalURL' => $siteurl, 'globalTimezone' => $timezone,'globalLanguage' => $language)); |
|
| 1113 | + $sitename = filter_input(INPUT_POST, 'sitename', FILTER_SANITIZE_STRING); |
|
| 1114 | + $siteurl = filter_input(INPUT_POST, 'siteurl', FILTER_SANITIZE_STRING); |
|
| 1115 | + $timezone = filter_input(INPUT_POST, 'timezone', FILTER_SANITIZE_STRING); |
|
| 1116 | + $language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
|
| 1117 | + $settings = array_merge($settings, array('globalName' => $sitename, 'globalURL' => $siteurl, 'globalTimezone' => $timezone, 'globalLanguage' => $language)); |
|
| 1118 | 1118 | |
| 1119 | - $mapprovider = filter_input(INPUT_POST,'mapprovider',FILTER_SANITIZE_STRING); |
|
| 1120 | - $mapboxid = filter_input(INPUT_POST,'mapboxid',FILTER_SANITIZE_STRING); |
|
| 1121 | - $mapboxtoken = filter_input(INPUT_POST,'mapboxtoken',FILTER_SANITIZE_STRING); |
|
| 1122 | - $googlekey = filter_input(INPUT_POST,'googlekey',FILTER_SANITIZE_STRING); |
|
| 1123 | - $bingkey = filter_input(INPUT_POST,'bingkey',FILTER_SANITIZE_STRING); |
|
| 1124 | - $openweathermapkey = filter_input(INPUT_POST,'openweathermapkey',FILTER_SANITIZE_STRING); |
|
| 1125 | - $mapquestkey = filter_input(INPUT_POST,'mapquestkey',FILTER_SANITIZE_STRING); |
|
| 1126 | - $hereappid = filter_input(INPUT_POST,'hereappid',FILTER_SANITIZE_STRING); |
|
| 1127 | - $hereappcode = filter_input(INPUT_POST,'hereappcode',FILTER_SANITIZE_STRING); |
|
| 1128 | - $settings = array_merge($settings,array('globalMapProvider' => $mapprovider,'globalMapboxId' => $mapboxid,'globalMapboxToken' => $mapboxtoken,'globalGoogleAPIKey' => $googlekey,'globalBingMapKey' => $bingkey,'globalHereappID' => $hereappid,'globalHereappCode' => $hereappcode,'globalMapQuestKey' => $mapquestkey,'globalOpenWeatherMapKey' => $openweathermapkey)); |
|
| 1119 | + $mapprovider = filter_input(INPUT_POST, 'mapprovider', FILTER_SANITIZE_STRING); |
|
| 1120 | + $mapboxid = filter_input(INPUT_POST, 'mapboxid', FILTER_SANITIZE_STRING); |
|
| 1121 | + $mapboxtoken = filter_input(INPUT_POST, 'mapboxtoken', FILTER_SANITIZE_STRING); |
|
| 1122 | + $googlekey = filter_input(INPUT_POST, 'googlekey', FILTER_SANITIZE_STRING); |
|
| 1123 | + $bingkey = filter_input(INPUT_POST, 'bingkey', FILTER_SANITIZE_STRING); |
|
| 1124 | + $openweathermapkey = filter_input(INPUT_POST, 'openweathermapkey', FILTER_SANITIZE_STRING); |
|
| 1125 | + $mapquestkey = filter_input(INPUT_POST, 'mapquestkey', FILTER_SANITIZE_STRING); |
|
| 1126 | + $hereappid = filter_input(INPUT_POST, 'hereappid', FILTER_SANITIZE_STRING); |
|
| 1127 | + $hereappcode = filter_input(INPUT_POST, 'hereappcode', FILTER_SANITIZE_STRING); |
|
| 1128 | + $settings = array_merge($settings, array('globalMapProvider' => $mapprovider, 'globalMapboxId' => $mapboxid, 'globalMapboxToken' => $mapboxtoken, 'globalGoogleAPIKey' => $googlekey, 'globalBingMapKey' => $bingkey, 'globalHereappID' => $hereappid, 'globalHereappCode' => $hereappcode, 'globalMapQuestKey' => $mapquestkey, 'globalOpenWeatherMapKey' => $openweathermapkey)); |
|
| 1129 | 1129 | |
| 1130 | - $latitudemax = filter_input(INPUT_POST,'latitudemax',FILTER_SANITIZE_STRING); |
|
| 1131 | - $latitudemin = filter_input(INPUT_POST,'latitudemin',FILTER_SANITIZE_STRING); |
|
| 1132 | - $longitudemax = filter_input(INPUT_POST,'longitudemax',FILTER_SANITIZE_STRING); |
|
| 1133 | - $longitudemin = filter_input(INPUT_POST,'longitudemin',FILTER_SANITIZE_STRING); |
|
| 1134 | - $livezoom = filter_input(INPUT_POST,'livezoom',FILTER_SANITIZE_NUMBER_INT); |
|
| 1135 | - $settings = array_merge($settings,array('globalLatitudeMax' => $latitudemax,'globalLatitudeMin' => $latitudemin,'globalLongitudeMax' => $longitudemax,'globalLongitudeMin' => $longitudemin,'globalLiveZoom' => $livezoom)); |
|
| 1130 | + $latitudemax = filter_input(INPUT_POST, 'latitudemax', FILTER_SANITIZE_STRING); |
|
| 1131 | + $latitudemin = filter_input(INPUT_POST, 'latitudemin', FILTER_SANITIZE_STRING); |
|
| 1132 | + $longitudemax = filter_input(INPUT_POST, 'longitudemax', FILTER_SANITIZE_STRING); |
|
| 1133 | + $longitudemin = filter_input(INPUT_POST, 'longitudemin', FILTER_SANITIZE_STRING); |
|
| 1134 | + $livezoom = filter_input(INPUT_POST, 'livezoom', FILTER_SANITIZE_NUMBER_INT); |
|
| 1135 | + $settings = array_merge($settings, array('globalLatitudeMax' => $latitudemax, 'globalLatitudeMin' => $latitudemin, 'globalLongitudeMax' => $longitudemax, 'globalLongitudeMin' => $longitudemin, 'globalLiveZoom' => $livezoom)); |
|
| 1136 | 1136 | |
| 1137 | - $squawk_country = filter_input(INPUT_POST,'squawk_country',FILTER_SANITIZE_STRING); |
|
| 1138 | - $settings = array_merge($settings,array('globalSquawkCountry' => $squawk_country)); |
|
| 1137 | + $squawk_country = filter_input(INPUT_POST, 'squawk_country', FILTER_SANITIZE_STRING); |
|
| 1138 | + $settings = array_merge($settings, array('globalSquawkCountry' => $squawk_country)); |
|
| 1139 | 1139 | |
| 1140 | - $latitudecenter = filter_input(INPUT_POST,'latitudecenter',FILTER_SANITIZE_STRING); |
|
| 1141 | - $longitudecenter = filter_input(INPUT_POST,'longitudecenter',FILTER_SANITIZE_STRING); |
|
| 1142 | - $settings = array_merge($settings,array('globalCenterLatitude' => $latitudecenter,'globalCenterLongitude' => $longitudecenter)); |
|
| 1140 | + $latitudecenter = filter_input(INPUT_POST, 'latitudecenter', FILTER_SANITIZE_STRING); |
|
| 1141 | + $longitudecenter = filter_input(INPUT_POST, 'longitudecenter', FILTER_SANITIZE_STRING); |
|
| 1142 | + $settings = array_merge($settings, array('globalCenterLatitude' => $latitudecenter, 'globalCenterLongitude' => $longitudecenter)); |
|
| 1143 | 1143 | |
| 1144 | - $acars = filter_input(INPUT_POST,'acars',FILTER_SANITIZE_STRING); |
|
| 1144 | + $acars = filter_input(INPUT_POST, 'acars', FILTER_SANITIZE_STRING); |
|
| 1145 | 1145 | if ($acars == 'acars') { |
| 1146 | - $settings = array_merge($settings,array('globalACARS' => 'TRUE')); |
|
| 1146 | + $settings = array_merge($settings, array('globalACARS' => 'TRUE')); |
|
| 1147 | 1147 | } else { |
| 1148 | - $settings = array_merge($settings,array('globalACARS' => 'FALSE')); |
|
| 1148 | + $settings = array_merge($settings, array('globalACARS' => 'FALSE')); |
|
| 1149 | 1149 | } |
| 1150 | 1150 | |
| 1151 | - $flightawareusername = filter_input(INPUT_POST,'flightawareusername',FILTER_SANITIZE_STRING); |
|
| 1152 | - $flightawarepassword = filter_input(INPUT_POST,'flightawarepassword',FILTER_SANITIZE_STRING); |
|
| 1153 | - $settings = array_merge($settings,array('globalFlightAwareUsername' => $flightawareusername,'globalFlightAwarePassword' => $flightawarepassword)); |
|
| 1151 | + $flightawareusername = filter_input(INPUT_POST, 'flightawareusername', FILTER_SANITIZE_STRING); |
|
| 1152 | + $flightawarepassword = filter_input(INPUT_POST, 'flightawarepassword', FILTER_SANITIZE_STRING); |
|
| 1153 | + $settings = array_merge($settings, array('globalFlightAwareUsername' => $flightawareusername, 'globalFlightAwarePassword' => $flightawarepassword)); |
|
| 1154 | 1154 | |
| 1155 | 1155 | $source_name = $_POST['source_name']; |
| 1156 | 1156 | $source_latitude = $_POST['source_latitude']; |
@@ -1164,8 +1164,8 @@ discard block |
||
| 1164 | 1164 | |
| 1165 | 1165 | $sources = array(); |
| 1166 | 1166 | foreach ($source_name as $keys => $name) { |
| 1167 | - if (isset($source_id[$keys])) $sources[] = array('name' => $name,'latitude' => $source_latitude[$keys],'longitude' => $source_longitude[$keys],'altitude' => $source_altitude[$keys],'city' => $source_city[$keys],'country' => $source_country[$keys],'id' => $source_id[$keys],'source' => $source_ref[$keys]); |
|
| 1168 | - else $sources[] = array('name' => $name,'latitude' => $source_latitude[$keys],'longitude' => $source_longitude[$keys],'altitude' => $source_altitude[$keys],'city' => $source_city[$keys],'country' => $source_country[$keys],'source' => $source_ref[$keys]); |
|
| 1167 | + if (isset($source_id[$keys])) $sources[] = array('name' => $name, 'latitude' => $source_latitude[$keys], 'longitude' => $source_longitude[$keys], 'altitude' => $source_altitude[$keys], 'city' => $source_city[$keys], 'country' => $source_country[$keys], 'id' => $source_id[$keys], 'source' => $source_ref[$keys]); |
|
| 1168 | + else $sources[] = array('name' => $name, 'latitude' => $source_latitude[$keys], 'longitude' => $source_longitude[$keys], 'altitude' => $source_altitude[$keys], 'city' => $source_city[$keys], 'country' => $source_country[$keys], 'source' => $source_ref[$keys]); |
|
| 1169 | 1169 | } |
| 1170 | 1170 | if (count($sources) > 0) $_SESSION['sources'] = $sources; |
| 1171 | 1171 | |
@@ -1174,16 +1174,16 @@ discard block |
||
| 1174 | 1174 | $newstype = $_POST['newstype']; |
| 1175 | 1175 | |
| 1176 | 1176 | $newsfeeds = array(); |
| 1177 | - foreach($newsurl as $newskey => $url) { |
|
| 1177 | + foreach ($newsurl as $newskey => $url) { |
|
| 1178 | 1178 | if ($url != '') { |
| 1179 | 1179 | $type = $newstype[$newskey]; |
| 1180 | 1180 | $lng = $newslng[$newskey]; |
| 1181 | 1181 | if (isset($newsfeeds[$type][$lng])) { |
| 1182 | - $newsfeeds[$type][$lng] = array_merge($newsfeeds[$type][$lng],array($url)); |
|
| 1182 | + $newsfeeds[$type][$lng] = array_merge($newsfeeds[$type][$lng], array($url)); |
|
| 1183 | 1183 | } else $newsfeeds[$type][$lng] = array($url); |
| 1184 | 1184 | } |
| 1185 | 1185 | } |
| 1186 | - $settings = array_merge($settings,array('globalNewsFeeds' => $newsfeeds)); |
|
| 1186 | + $settings = array_merge($settings, array('globalNewsFeeds' => $newsfeeds)); |
|
| 1187 | 1187 | |
| 1188 | 1188 | //$sbshost = filter_input(INPUT_POST,'sbshost',FILTER_SANITIZE_STRING); |
| 1189 | 1189 | //$sbsport = filter_input(INPUT_POST,'sbsport',FILTER_SANITIZE_NUMBER_INT); |
@@ -1194,27 +1194,27 @@ discard block |
||
| 1194 | 1194 | $sbsurl = $_POST['sbsurl']; |
| 1195 | 1195 | */ |
| 1196 | 1196 | |
| 1197 | - $globalvatsim = filter_input(INPUT_POST,'globalvatsim',FILTER_SANITIZE_STRING); |
|
| 1198 | - $globalva = filter_input(INPUT_POST,'globalva',FILTER_SANITIZE_STRING); |
|
| 1199 | - $globalivao = filter_input(INPUT_POST,'globalivao',FILTER_SANITIZE_STRING); |
|
| 1200 | - $globalphpvms = filter_input(INPUT_POST,'globalphpvms',FILTER_SANITIZE_STRING); |
|
| 1201 | - $globalvam = filter_input(INPUT_POST,'globalvam',FILTER_SANITIZE_STRING); |
|
| 1202 | - $globalsbs = filter_input(INPUT_POST,'globalsbs',FILTER_SANITIZE_STRING); |
|
| 1203 | - $globalaprs = filter_input(INPUT_POST,'globalaprs',FILTER_SANITIZE_STRING); |
|
| 1204 | - $datasource = filter_input(INPUT_POST,'datasource',FILTER_SANITIZE_STRING); |
|
| 1197 | + $globalvatsim = filter_input(INPUT_POST, 'globalvatsim', FILTER_SANITIZE_STRING); |
|
| 1198 | + $globalva = filter_input(INPUT_POST, 'globalva', FILTER_SANITIZE_STRING); |
|
| 1199 | + $globalivao = filter_input(INPUT_POST, 'globalivao', FILTER_SANITIZE_STRING); |
|
| 1200 | + $globalphpvms = filter_input(INPUT_POST, 'globalphpvms', FILTER_SANITIZE_STRING); |
|
| 1201 | + $globalvam = filter_input(INPUT_POST, 'globalvam', FILTER_SANITIZE_STRING); |
|
| 1202 | + $globalsbs = filter_input(INPUT_POST, 'globalsbs', FILTER_SANITIZE_STRING); |
|
| 1203 | + $globalaprs = filter_input(INPUT_POST, 'globalaprs', FILTER_SANITIZE_STRING); |
|
| 1204 | + $datasource = filter_input(INPUT_POST, 'datasource', FILTER_SANITIZE_STRING); |
|
| 1205 | 1205 | |
| 1206 | - $globalaircraft = filter_input(INPUT_POST,'globalaircraft',FILTER_SANITIZE_STRING); |
|
| 1207 | - if ($globalaircraft == 'aircraft') $settings = array_merge($settings,array('globalAircraft' => 'TRUE')); |
|
| 1208 | - else $settings = array_merge($settings,array('globalAircraft' => 'FALSE')); |
|
| 1209 | - $globaltracker = filter_input(INPUT_POST,'globaltracker',FILTER_SANITIZE_STRING); |
|
| 1210 | - if ($globaltracker == 'tracker') $settings = array_merge($settings,array('globalTracker' => 'TRUE')); |
|
| 1211 | - else $settings = array_merge($settings,array('globalTracker' => 'FALSE')); |
|
| 1212 | - $globalmarine = filter_input(INPUT_POST,'globalmarine',FILTER_SANITIZE_STRING); |
|
| 1213 | - if ($globalmarine == 'marine') $settings = array_merge($settings,array('globalMarine' => 'TRUE')); |
|
| 1214 | - else $settings = array_merge($settings,array('globalMarine' => 'FALSE')); |
|
| 1215 | - $globalsatellite = filter_input(INPUT_POST,'globalsatellite',FILTER_SANITIZE_STRING); |
|
| 1216 | - if ($globalsatellite == 'satellite') $settings = array_merge($settings,array('globalSatellite' => 'TRUE')); |
|
| 1217 | - else $settings = array_merge($settings,array('globalSatellite' => 'FALSE')); |
|
| 1206 | + $globalaircraft = filter_input(INPUT_POST, 'globalaircraft', FILTER_SANITIZE_STRING); |
|
| 1207 | + if ($globalaircraft == 'aircraft') $settings = array_merge($settings, array('globalAircraft' => 'TRUE')); |
|
| 1208 | + else $settings = array_merge($settings, array('globalAircraft' => 'FALSE')); |
|
| 1209 | + $globaltracker = filter_input(INPUT_POST, 'globaltracker', FILTER_SANITIZE_STRING); |
|
| 1210 | + if ($globaltracker == 'tracker') $settings = array_merge($settings, array('globalTracker' => 'TRUE')); |
|
| 1211 | + else $settings = array_merge($settings, array('globalTracker' => 'FALSE')); |
|
| 1212 | + $globalmarine = filter_input(INPUT_POST, 'globalmarine', FILTER_SANITIZE_STRING); |
|
| 1213 | + if ($globalmarine == 'marine') $settings = array_merge($settings, array('globalMarine' => 'TRUE')); |
|
| 1214 | + else $settings = array_merge($settings, array('globalMarine' => 'FALSE')); |
|
| 1215 | + $globalsatellite = filter_input(INPUT_POST, 'globalsatellite', FILTER_SANITIZE_STRING); |
|
| 1216 | + if ($globalsatellite == 'satellite') $settings = array_merge($settings, array('globalSatellite' => 'TRUE')); |
|
| 1217 | + else $settings = array_merge($settings, array('globalSatellite' => 'FALSE')); |
|
| 1218 | 1218 | |
| 1219 | 1219 | /* |
| 1220 | 1220 | $globalSBS1Hosts = array(); |
@@ -1230,7 +1230,7 @@ discard block |
||
| 1230 | 1230 | } |
| 1231 | 1231 | $settings = array_merge($settings,array('globalSBS1Hosts' => $globalSBS1Hosts)); |
| 1232 | 1232 | */ |
| 1233 | - $settings_comment = array_merge($settings_comment,array('globalSBS1Hosts')); |
|
| 1233 | + $settings_comment = array_merge($settings_comment, array('globalSBS1Hosts')); |
|
| 1234 | 1234 | $host = $_POST['host']; |
| 1235 | 1235 | $port = $_POST['port']; |
| 1236 | 1236 | $name = $_POST['name']; |
@@ -1247,113 +1247,113 @@ discard block |
||
| 1247 | 1247 | else $cov = 'FALSE'; |
| 1248 | 1248 | if (isset($noarchive[$key]) && $noarchive[$key] == 1) $arch = 'TRUE'; |
| 1249 | 1249 | else $arch = 'FALSE'; |
| 1250 | - if (strpos($format[$key],'_callback')) { |
|
| 1251 | - $gSources[] = array('host' => $h, 'pass' => $port[$key],'name' => $name[$key],'format' => $format[$key],'sourcestats' => $cov,'noarchive' => $arch,'timezone' => $timezones[$key],'callback' => 'TRUE'); |
|
| 1250 | + if (strpos($format[$key], '_callback')) { |
|
| 1251 | + $gSources[] = array('host' => $h, 'pass' => $port[$key], 'name' => $name[$key], 'format' => $format[$key], 'sourcestats' => $cov, 'noarchive' => $arch, 'timezone' => $timezones[$key], 'callback' => 'TRUE'); |
|
| 1252 | 1252 | } elseif ($h != '' || $name[$key] != '') { |
| 1253 | - $gSources[] = array('host' => $h, 'port' => $port[$key],'name' => $name[$key],'format' => $format[$key],'sourcestats' => $cov,'noarchive' => $arch,'timezone' => $timezones[$key],'callback' => 'FALSE'); |
|
| 1253 | + $gSources[] = array('host' => $h, 'port' => $port[$key], 'name' => $name[$key], 'format' => $format[$key], 'sourcestats' => $cov, 'noarchive' => $arch, 'timezone' => $timezones[$key], 'callback' => 'FALSE'); |
|
| 1254 | 1254 | } |
| 1255 | 1255 | if ($format[$key] == 'airwhere') $forcepilots = true; |
| 1256 | 1256 | } |
| 1257 | - $settings = array_merge($settings,array('globalSources' => $gSources)); |
|
| 1257 | + $settings = array_merge($settings, array('globalSources' => $gSources)); |
|
| 1258 | 1258 | |
| 1259 | 1259 | /* |
| 1260 | 1260 | $sbstimeout = filter_input(INPUT_POST,'sbstimeout',FILTER_SANITIZE_NUMBER_INT); |
| 1261 | 1261 | $settings = array_merge($settings,array('globalSourcesTimeOut' => $sbstimeout)); |
| 1262 | 1262 | */ |
| 1263 | - $acarshost = filter_input(INPUT_POST,'acarshost',FILTER_SANITIZE_STRING); |
|
| 1264 | - $acarsport = filter_input(INPUT_POST,'acarsport',FILTER_SANITIZE_NUMBER_INT); |
|
| 1265 | - $settings = array_merge($settings,array('globalACARSHost' => $acarshost,'globalACARSPort' => $acarsport)); |
|
| 1263 | + $acarshost = filter_input(INPUT_POST, 'acarshost', FILTER_SANITIZE_STRING); |
|
| 1264 | + $acarsport = filter_input(INPUT_POST, 'acarsport', FILTER_SANITIZE_NUMBER_INT); |
|
| 1265 | + $settings = array_merge($settings, array('globalACARSHost' => $acarshost, 'globalACARSPort' => $acarsport)); |
|
| 1266 | 1266 | |
| 1267 | - $bitly = filter_input(INPUT_POST,'bitly',FILTER_SANITIZE_STRING); |
|
| 1268 | - $settings = array_merge($settings,array('globalBitlyAccessToken' => $bitly)); |
|
| 1267 | + $bitly = filter_input(INPUT_POST, 'bitly', FILTER_SANITIZE_STRING); |
|
| 1268 | + $settings = array_merge($settings, array('globalBitlyAccessToken' => $bitly)); |
|
| 1269 | 1269 | |
| 1270 | - $customcss = filter_input(INPUT_POST,'customcss',FILTER_SANITIZE_STRING); |
|
| 1271 | - $settings = array_merge($settings,array('globalCustomCSS' => $customcss)); |
|
| 1270 | + $customcss = filter_input(INPUT_POST, 'customcss', FILTER_SANITIZE_STRING); |
|
| 1271 | + $settings = array_merge($settings, array('globalCustomCSS' => $customcss)); |
|
| 1272 | 1272 | |
| 1273 | - $map3dtile = filter_input(INPUT_POST,'map3dtileset',FILTER_SANITIZE_STRING); |
|
| 1274 | - $settings = array_merge($settings,array('globalMap3DTiles' => $map3dtile)); |
|
| 1273 | + $map3dtile = filter_input(INPUT_POST, 'map3dtileset', FILTER_SANITIZE_STRING); |
|
| 1274 | + $settings = array_merge($settings, array('globalMap3DTiles' => $map3dtile)); |
|
| 1275 | 1275 | |
| 1276 | - $notamsource = filter_input(INPUT_POST,'notamsource',FILTER_SANITIZE_STRING); |
|
| 1277 | - $settings = array_merge($settings,array('globalNOTAMSource' => $notamsource)); |
|
| 1278 | - $metarsource = filter_input(INPUT_POST,'metarsource',FILTER_SANITIZE_STRING); |
|
| 1279 | - $settings = array_merge($settings,array('globalMETARurl' => $metarsource)); |
|
| 1276 | + $notamsource = filter_input(INPUT_POST, 'notamsource', FILTER_SANITIZE_STRING); |
|
| 1277 | + $settings = array_merge($settings, array('globalNOTAMSource' => $notamsource)); |
|
| 1278 | + $metarsource = filter_input(INPUT_POST, 'metarsource', FILTER_SANITIZE_STRING); |
|
| 1279 | + $settings = array_merge($settings, array('globalMETARurl' => $metarsource)); |
|
| 1280 | 1280 | |
| 1281 | - $zoilatitude = filter_input(INPUT_POST,'zoilatitude',FILTER_SANITIZE_STRING); |
|
| 1282 | - $zoilongitude = filter_input(INPUT_POST,'zoilongitude',FILTER_SANITIZE_STRING); |
|
| 1283 | - $zoidistance = filter_input(INPUT_POST,'zoidistance',FILTER_SANITIZE_NUMBER_INT); |
|
| 1281 | + $zoilatitude = filter_input(INPUT_POST, 'zoilatitude', FILTER_SANITIZE_STRING); |
|
| 1282 | + $zoilongitude = filter_input(INPUT_POST, 'zoilongitude', FILTER_SANITIZE_STRING); |
|
| 1283 | + $zoidistance = filter_input(INPUT_POST, 'zoidistance', FILTER_SANITIZE_NUMBER_INT); |
|
| 1284 | 1284 | if ($zoilatitude != '' && $zoilongitude != '' && $zoidistance != '') { |
| 1285 | - $settings = array_merge($settings,array('globalDistanceIgnore' => array('latitude' => $zoilatitude,'longitude' => $zoilongitude,'distance' => $zoidistance))); |
|
| 1286 | - } else $settings = array_merge($settings,array('globalDistanceIgnore' => array())); |
|
| 1285 | + $settings = array_merge($settings, array('globalDistanceIgnore' => array('latitude' => $zoilatitude, 'longitude' => $zoilongitude, 'distance' => $zoidistance))); |
|
| 1286 | + } else $settings = array_merge($settings, array('globalDistanceIgnore' => array())); |
|
| 1287 | 1287 | |
| 1288 | - $refresh = filter_input(INPUT_POST,'refresh',FILTER_SANITIZE_NUMBER_INT); |
|
| 1289 | - $settings = array_merge($settings,array('globalLiveInterval' => $refresh)); |
|
| 1290 | - $maprefresh = filter_input(INPUT_POST,'maprefresh',FILTER_SANITIZE_NUMBER_INT); |
|
| 1291 | - $settings = array_merge($settings,array('globalMapRefresh' => $maprefresh)); |
|
| 1292 | - $mapidle = filter_input(INPUT_POST,'mapidle',FILTER_SANITIZE_NUMBER_INT); |
|
| 1293 | - $settings = array_merge($settings,array('globalMapIdleTimeout' => $mapidle)); |
|
| 1294 | - $closestmindist = filter_input(INPUT_POST,'closestmindist',FILTER_SANITIZE_NUMBER_INT); |
|
| 1295 | - $settings = array_merge($settings,array('globalClosestMinDist' => $closestmindist)); |
|
| 1288 | + $refresh = filter_input(INPUT_POST, 'refresh', FILTER_SANITIZE_NUMBER_INT); |
|
| 1289 | + $settings = array_merge($settings, array('globalLiveInterval' => $refresh)); |
|
| 1290 | + $maprefresh = filter_input(INPUT_POST, 'maprefresh', FILTER_SANITIZE_NUMBER_INT); |
|
| 1291 | + $settings = array_merge($settings, array('globalMapRefresh' => $maprefresh)); |
|
| 1292 | + $mapidle = filter_input(INPUT_POST, 'mapidle', FILTER_SANITIZE_NUMBER_INT); |
|
| 1293 | + $settings = array_merge($settings, array('globalMapIdleTimeout' => $mapidle)); |
|
| 1294 | + $closestmindist = filter_input(INPUT_POST, 'closestmindist', FILTER_SANITIZE_NUMBER_INT); |
|
| 1295 | + $settings = array_merge($settings, array('globalClosestMinDist' => $closestmindist)); |
|
| 1296 | 1296 | |
| 1297 | - $aircraftsize = filter_input(INPUT_POST,'aircraftsize',FILTER_SANITIZE_NUMBER_INT); |
|
| 1298 | - $settings = array_merge($settings,array('globalAircraftSize' => $aircraftsize)); |
|
| 1297 | + $aircraftsize = filter_input(INPUT_POST, 'aircraftsize', FILTER_SANITIZE_NUMBER_INT); |
|
| 1298 | + $settings = array_merge($settings, array('globalAircraftSize' => $aircraftsize)); |
|
| 1299 | 1299 | |
| 1300 | - $archivemonths = filter_input(INPUT_POST,'archivemonths',FILTER_SANITIZE_NUMBER_INT); |
|
| 1301 | - $settings = array_merge($settings,array('globalArchiveMonths' => $archivemonths)); |
|
| 1300 | + $archivemonths = filter_input(INPUT_POST, 'archivemonths', FILTER_SANITIZE_NUMBER_INT); |
|
| 1301 | + $settings = array_merge($settings, array('globalArchiveMonths' => $archivemonths)); |
|
| 1302 | 1302 | |
| 1303 | - $archiveyear = filter_input(INPUT_POST,'archiveyear',FILTER_SANITIZE_STRING); |
|
| 1303 | + $archiveyear = filter_input(INPUT_POST, 'archiveyear', FILTER_SANITIZE_STRING); |
|
| 1304 | 1304 | if ($archiveyear == "archiveyear") { |
| 1305 | - $settings = array_merge($settings,array('globalArchiveYear' => 'TRUE')); |
|
| 1305 | + $settings = array_merge($settings, array('globalArchiveYear' => 'TRUE')); |
|
| 1306 | 1306 | } else { |
| 1307 | - $settings = array_merge($settings,array('globalArchiveYear' => 'FALSE')); |
|
| 1307 | + $settings = array_merge($settings, array('globalArchiveYear' => 'FALSE')); |
|
| 1308 | 1308 | } |
| 1309 | - $archivekeepmonths = filter_input(INPUT_POST,'archivekeepmonths',FILTER_SANITIZE_NUMBER_INT); |
|
| 1310 | - $settings = array_merge($settings,array('globalArchiveKeepMonths' => $archivekeepmonths)); |
|
| 1311 | - $archivekeeptrackmonths = filter_input(INPUT_POST,'archivekeeptrackmonths',FILTER_SANITIZE_NUMBER_INT); |
|
| 1312 | - $settings = array_merge($settings,array('globalArchiveKeepTrackMonths' => $archivekeeptrackmonths)); |
|
| 1309 | + $archivekeepmonths = filter_input(INPUT_POST, 'archivekeepmonths', FILTER_SANITIZE_NUMBER_INT); |
|
| 1310 | + $settings = array_merge($settings, array('globalArchiveKeepMonths' => $archivekeepmonths)); |
|
| 1311 | + $archivekeeptrackmonths = filter_input(INPUT_POST, 'archivekeeptrackmonths', FILTER_SANITIZE_NUMBER_INT); |
|
| 1312 | + $settings = array_merge($settings, array('globalArchiveKeepTrackMonths' => $archivekeeptrackmonths)); |
|
| 1313 | 1313 | |
| 1314 | - $britishairways = filter_input(INPUT_POST,'britishairways',FILTER_SANITIZE_STRING); |
|
| 1315 | - $settings = array_merge($settings,array('globalBritishAirwaysKey' => $britishairways)); |
|
| 1316 | - $transavia = filter_input(INPUT_POST,'transavia',FILTER_SANITIZE_STRING); |
|
| 1317 | - $settings = array_merge($settings,array('globalTransaviaKey' => $transavia)); |
|
| 1314 | + $britishairways = filter_input(INPUT_POST, 'britishairways', FILTER_SANITIZE_STRING); |
|
| 1315 | + $settings = array_merge($settings, array('globalBritishAirwaysKey' => $britishairways)); |
|
| 1316 | + $transavia = filter_input(INPUT_POST, 'transavia', FILTER_SANITIZE_STRING); |
|
| 1317 | + $settings = array_merge($settings, array('globalTransaviaKey' => $transavia)); |
|
| 1318 | 1318 | |
| 1319 | - $lufthansakey = filter_input(INPUT_POST,'lufthansakey',FILTER_SANITIZE_STRING); |
|
| 1320 | - $lufthansasecret = filter_input(INPUT_POST,'lufthansasecret',FILTER_SANITIZE_STRING); |
|
| 1321 | - $settings = array_merge($settings,array('globalLufthansaKey' => array('key' => $lufthansakey,'secret' => $lufthansasecret))); |
|
| 1319 | + $lufthansakey = filter_input(INPUT_POST, 'lufthansakey', FILTER_SANITIZE_STRING); |
|
| 1320 | + $lufthansasecret = filter_input(INPUT_POST, 'lufthansasecret', FILTER_SANITIZE_STRING); |
|
| 1321 | + $settings = array_merge($settings, array('globalLufthansaKey' => array('key' => $lufthansakey, 'secret' => $lufthansasecret))); |
|
| 1322 | 1322 | |
| 1323 | 1323 | // Create in settings.php keys not yet configurable if not already here |
| 1324 | 1324 | //if (!isset($globalImageBingKey)) $settings = array_merge($settings,array('globalImageBingKey' => '')); |
| 1325 | - if (!isset($globalDebug)) $settings = array_merge($settings,array('globalDebug' => 'TRUE')); |
|
| 1325 | + if (!isset($globalDebug)) $settings = array_merge($settings, array('globalDebug' => 'TRUE')); |
|
| 1326 | 1326 | |
| 1327 | - $resetyearstats = filter_input(INPUT_POST,'resetyearstats',FILTER_SANITIZE_STRING); |
|
| 1327 | + $resetyearstats = filter_input(INPUT_POST, 'resetyearstats', FILTER_SANITIZE_STRING); |
|
| 1328 | 1328 | if ($resetyearstats == 'resetyearstats') { |
| 1329 | - $settings = array_merge($settings,array('globalDeleteLastYearStats' => 'TRUE')); |
|
| 1329 | + $settings = array_merge($settings, array('globalDeleteLastYearStats' => 'TRUE')); |
|
| 1330 | 1330 | } else { |
| 1331 | - $settings = array_merge($settings,array('globalDeleteLastYearStats' => 'FALSE')); |
|
| 1331 | + $settings = array_merge($settings, array('globalDeleteLastYearStats' => 'FALSE')); |
|
| 1332 | 1332 | } |
| 1333 | 1333 | |
| 1334 | - $archive = filter_input(INPUT_POST,'archive',FILTER_SANITIZE_STRING); |
|
| 1334 | + $archive = filter_input(INPUT_POST, 'archive', FILTER_SANITIZE_STRING); |
|
| 1335 | 1335 | if ($archive == 'archive') { |
| 1336 | - $settings = array_merge($settings,array('globalArchive' => 'TRUE')); |
|
| 1336 | + $settings = array_merge($settings, array('globalArchive' => 'TRUE')); |
|
| 1337 | 1337 | } else { |
| 1338 | - $settings = array_merge($settings,array('globalArchive' => 'FALSE')); |
|
| 1338 | + $settings = array_merge($settings, array('globalArchive' => 'FALSE')); |
|
| 1339 | 1339 | } |
| 1340 | - $archiveresults = filter_input(INPUT_POST,'archiveresults',FILTER_SANITIZE_STRING); |
|
| 1340 | + $archiveresults = filter_input(INPUT_POST, 'archiveresults', FILTER_SANITIZE_STRING); |
|
| 1341 | 1341 | if ($archiveresults == 'archiveresults') { |
| 1342 | - $settings = array_merge($settings,array('globalArchiveResults' => 'TRUE')); |
|
| 1342 | + $settings = array_merge($settings, array('globalArchiveResults' => 'TRUE')); |
|
| 1343 | 1343 | } else { |
| 1344 | - $settings = array_merge($settings,array('globalArchiveResults' => 'FALSE')); |
|
| 1344 | + $settings = array_merge($settings, array('globalArchiveResults' => 'FALSE')); |
|
| 1345 | 1345 | } |
| 1346 | - $daemon = filter_input(INPUT_POST,'daemon',FILTER_SANITIZE_STRING); |
|
| 1346 | + $daemon = filter_input(INPUT_POST, 'daemon', FILTER_SANITIZE_STRING); |
|
| 1347 | 1347 | if ($daemon == 'daemon') { |
| 1348 | - $settings = array_merge($settings,array('globalDaemon' => 'TRUE')); |
|
| 1348 | + $settings = array_merge($settings, array('globalDaemon' => 'TRUE')); |
|
| 1349 | 1349 | } else { |
| 1350 | - $settings = array_merge($settings,array('globalDaemon' => 'FALSE')); |
|
| 1350 | + $settings = array_merge($settings, array('globalDaemon' => 'FALSE')); |
|
| 1351 | 1351 | } |
| 1352 | - $schedules = filter_input(INPUT_POST,'schedules',FILTER_SANITIZE_STRING); |
|
| 1352 | + $schedules = filter_input(INPUT_POST, 'schedules', FILTER_SANITIZE_STRING); |
|
| 1353 | 1353 | if ($schedules == 'schedules') { |
| 1354 | - $settings = array_merge($settings,array('globalSchedulesFetch' => 'TRUE')); |
|
| 1354 | + $settings = array_merge($settings, array('globalSchedulesFetch' => 'TRUE')); |
|
| 1355 | 1355 | } else { |
| 1356 | - $settings = array_merge($settings,array('globalSchedulesFetch' => 'FALSE')); |
|
| 1356 | + $settings = array_merge($settings, array('globalSchedulesFetch' => 'FALSE')); |
|
| 1357 | 1357 | } |
| 1358 | 1358 | |
| 1359 | 1359 | /* |
@@ -1364,264 +1364,264 @@ discard block |
||
| 1364 | 1364 | $settings = array_merge($settings,array('globalFlightAware' => 'FALSE','globalSBS1' => 'TRUE')); |
| 1365 | 1365 | } |
| 1366 | 1366 | */ |
| 1367 | - $settings = array_merge($settings,array('globalFlightAware' => 'FALSE')); |
|
| 1368 | - if ($globalsbs == 'sbs') $settings = array_merge($settings,array('globalSBS1' => 'TRUE')); |
|
| 1369 | - else $settings = array_merge($settings,array('globalSBS1' => 'FALSE')); |
|
| 1370 | - if ($globalaprs == 'aprs') $settings = array_merge($settings,array('globalAPRS' => 'TRUE')); |
|
| 1371 | - else $settings = array_merge($settings,array('globalAPRS' => 'FALSE')); |
|
| 1367 | + $settings = array_merge($settings, array('globalFlightAware' => 'FALSE')); |
|
| 1368 | + if ($globalsbs == 'sbs') $settings = array_merge($settings, array('globalSBS1' => 'TRUE')); |
|
| 1369 | + else $settings = array_merge($settings, array('globalSBS1' => 'FALSE')); |
|
| 1370 | + if ($globalaprs == 'aprs') $settings = array_merge($settings, array('globalAPRS' => 'TRUE')); |
|
| 1371 | + else $settings = array_merge($settings, array('globalAPRS' => 'FALSE')); |
|
| 1372 | 1372 | $va = false; |
| 1373 | 1373 | if ($globalivao == 'ivao') { |
| 1374 | - $settings = array_merge($settings,array('globalIVAO' => 'TRUE')); |
|
| 1374 | + $settings = array_merge($settings, array('globalIVAO' => 'TRUE')); |
|
| 1375 | 1375 | $va = true; |
| 1376 | - } else $settings = array_merge($settings,array('globalIVAO' => 'FALSE')); |
|
| 1376 | + } else $settings = array_merge($settings, array('globalIVAO' => 'FALSE')); |
|
| 1377 | 1377 | if ($globalvatsim == 'vatsim') { |
| 1378 | - $settings = array_merge($settings,array('globalVATSIM' => 'TRUE')); |
|
| 1378 | + $settings = array_merge($settings, array('globalVATSIM' => 'TRUE')); |
|
| 1379 | 1379 | $va = true; |
| 1380 | - } else $settings = array_merge($settings,array('globalVATSIM' => 'FALSE')); |
|
| 1380 | + } else $settings = array_merge($settings, array('globalVATSIM' => 'FALSE')); |
|
| 1381 | 1381 | if ($globalphpvms == 'phpvms') { |
| 1382 | - $settings = array_merge($settings,array('globalphpVMS' => 'TRUE')); |
|
| 1382 | + $settings = array_merge($settings, array('globalphpVMS' => 'TRUE')); |
|
| 1383 | 1383 | $va = true; |
| 1384 | - } else $settings = array_merge($settings,array('globalphpVMS' => 'FALSE')); |
|
| 1384 | + } else $settings = array_merge($settings, array('globalphpVMS' => 'FALSE')); |
|
| 1385 | 1385 | if ($globalvam == 'vam') { |
| 1386 | - $settings = array_merge($settings,array('globalVAM' => 'TRUE')); |
|
| 1386 | + $settings = array_merge($settings, array('globalVAM' => 'TRUE')); |
|
| 1387 | 1387 | $va = true; |
| 1388 | - } else $settings = array_merge($settings,array('globalVAM' => 'FALSE')); |
|
| 1388 | + } else $settings = array_merge($settings, array('globalVAM' => 'FALSE')); |
|
| 1389 | 1389 | if ($va) { |
| 1390 | - $settings = array_merge($settings,array('globalSchedulesFetch' => 'FALSE','globalTranslationFetch' => 'FALSE')); |
|
| 1391 | - } else $settings = array_merge($settings,array('globalSchedulesFetch' => 'TRUE','globalTranslationFetch' => 'TRUE')); |
|
| 1390 | + $settings = array_merge($settings, array('globalSchedulesFetch' => 'FALSE', 'globalTranslationFetch' => 'FALSE')); |
|
| 1391 | + } else $settings = array_merge($settings, array('globalSchedulesFetch' => 'TRUE', 'globalTranslationFetch' => 'TRUE')); |
|
| 1392 | 1392 | if ($globalva == 'va' || $va) { |
| 1393 | - $settings = array_merge($settings,array('globalVA' => 'TRUE')); |
|
| 1394 | - $settings = array_merge($settings,array('globalUsePilot' => 'TRUE','globalUseOwner' => 'FALSE')); |
|
| 1393 | + $settings = array_merge($settings, array('globalVA' => 'TRUE')); |
|
| 1394 | + $settings = array_merge($settings, array('globalUsePilot' => 'TRUE', 'globalUseOwner' => 'FALSE')); |
|
| 1395 | 1395 | } else { |
| 1396 | - $settings = array_merge($settings,array('globalVA' => 'FALSE')); |
|
| 1397 | - if ($forcepilots) $settings = array_merge($settings,array('globalUsePilot' => 'TRUE','globalUseOwner' => 'FALSE')); |
|
| 1398 | - else $settings = array_merge($settings,array('globalUsePilot' => 'FALSE','globalUseOwner' => 'TRUE')); |
|
| 1396 | + $settings = array_merge($settings, array('globalVA' => 'FALSE')); |
|
| 1397 | + if ($forcepilots) $settings = array_merge($settings, array('globalUsePilot' => 'TRUE', 'globalUseOwner' => 'FALSE')); |
|
| 1398 | + else $settings = array_merge($settings, array('globalUsePilot' => 'FALSE', 'globalUseOwner' => 'TRUE')); |
|
| 1399 | 1399 | } |
| 1400 | 1400 | |
| 1401 | 1401 | |
| 1402 | - $mapoffline = filter_input(INPUT_POST,'mapoffline',FILTER_SANITIZE_STRING); |
|
| 1402 | + $mapoffline = filter_input(INPUT_POST, 'mapoffline', FILTER_SANITIZE_STRING); |
|
| 1403 | 1403 | if ($mapoffline == 'mapoffline') { |
| 1404 | - $settings = array_merge($settings,array('globalMapOffline' => 'TRUE')); |
|
| 1404 | + $settings = array_merge($settings, array('globalMapOffline' => 'TRUE')); |
|
| 1405 | 1405 | } else { |
| 1406 | - $settings = array_merge($settings,array('globalMapOffline' => 'FALSE')); |
|
| 1406 | + $settings = array_merge($settings, array('globalMapOffline' => 'FALSE')); |
|
| 1407 | 1407 | } |
| 1408 | - $globaloffline = filter_input(INPUT_POST,'globaloffline',FILTER_SANITIZE_STRING); |
|
| 1408 | + $globaloffline = filter_input(INPUT_POST, 'globaloffline', FILTER_SANITIZE_STRING); |
|
| 1409 | 1409 | if ($globaloffline == 'globaloffline') { |
| 1410 | - $settings = array_merge($settings,array('globalOffline' => 'TRUE')); |
|
| 1410 | + $settings = array_merge($settings, array('globalOffline' => 'TRUE')); |
|
| 1411 | 1411 | } else { |
| 1412 | - $settings = array_merge($settings,array('globalOffline' => 'FALSE')); |
|
| 1412 | + $settings = array_merge($settings, array('globalOffline' => 'FALSE')); |
|
| 1413 | 1413 | } |
| 1414 | 1414 | |
| 1415 | - $notam = filter_input(INPUT_POST,'notam',FILTER_SANITIZE_STRING); |
|
| 1415 | + $notam = filter_input(INPUT_POST, 'notam', FILTER_SANITIZE_STRING); |
|
| 1416 | 1416 | if ($notam == 'notam') { |
| 1417 | - $settings = array_merge($settings,array('globalNOTAM' => 'TRUE')); |
|
| 1417 | + $settings = array_merge($settings, array('globalNOTAM' => 'TRUE')); |
|
| 1418 | 1418 | } else { |
| 1419 | - $settings = array_merge($settings,array('globalNOTAM' => 'FALSE')); |
|
| 1419 | + $settings = array_merge($settings, array('globalNOTAM' => 'FALSE')); |
|
| 1420 | 1420 | } |
| 1421 | - $owner = filter_input(INPUT_POST,'owner',FILTER_SANITIZE_STRING); |
|
| 1421 | + $owner = filter_input(INPUT_POST, 'owner', FILTER_SANITIZE_STRING); |
|
| 1422 | 1422 | if ($owner == 'owner') { |
| 1423 | - $settings = array_merge($settings,array('globalOwner' => 'TRUE')); |
|
| 1423 | + $settings = array_merge($settings, array('globalOwner' => 'TRUE')); |
|
| 1424 | 1424 | } else { |
| 1425 | - $settings = array_merge($settings,array('globalOwner' => 'FALSE')); |
|
| 1425 | + $settings = array_merge($settings, array('globalOwner' => 'FALSE')); |
|
| 1426 | 1426 | } |
| 1427 | - $map3d = filter_input(INPUT_POST,'map3d',FILTER_SANITIZE_STRING); |
|
| 1427 | + $map3d = filter_input(INPUT_POST, 'map3d', FILTER_SANITIZE_STRING); |
|
| 1428 | 1428 | if ($map3d == 'map3d') { |
| 1429 | - $settings = array_merge($settings,array('globalMap3D' => 'TRUE')); |
|
| 1429 | + $settings = array_merge($settings, array('globalMap3D' => 'TRUE')); |
|
| 1430 | 1430 | } else { |
| 1431 | - $settings = array_merge($settings,array('globalMap3D' => 'FALSE')); |
|
| 1431 | + $settings = array_merge($settings, array('globalMap3D' => 'FALSE')); |
|
| 1432 | 1432 | } |
| 1433 | - $crash = filter_input(INPUT_POST,'crash',FILTER_SANITIZE_STRING); |
|
| 1433 | + $crash = filter_input(INPUT_POST, 'crash', FILTER_SANITIZE_STRING); |
|
| 1434 | 1434 | if ($crash == 'crash') { |
| 1435 | - $settings = array_merge($settings,array('globalAccidents' => 'TRUE')); |
|
| 1435 | + $settings = array_merge($settings, array('globalAccidents' => 'TRUE')); |
|
| 1436 | 1436 | } else { |
| 1437 | - $settings = array_merge($settings,array('globalAccidents' => 'FALSE')); |
|
| 1437 | + $settings = array_merge($settings, array('globalAccidents' => 'FALSE')); |
|
| 1438 | 1438 | } |
| 1439 | - $fires = filter_input(INPUT_POST,'fires',FILTER_SANITIZE_STRING); |
|
| 1439 | + $fires = filter_input(INPUT_POST, 'fires', FILTER_SANITIZE_STRING); |
|
| 1440 | 1440 | if ($fires == 'fires') { |
| 1441 | - $settings = array_merge($settings,array('globalMapFires' => 'TRUE')); |
|
| 1441 | + $settings = array_merge($settings, array('globalMapFires' => 'TRUE')); |
|
| 1442 | 1442 | } else { |
| 1443 | - $settings = array_merge($settings,array('globalMapFires' => 'FALSE')); |
|
| 1443 | + $settings = array_merge($settings, array('globalMapFires' => 'FALSE')); |
|
| 1444 | 1444 | } |
| 1445 | - $firessupport = filter_input(INPUT_POST,'firessupport',FILTER_SANITIZE_STRING); |
|
| 1445 | + $firessupport = filter_input(INPUT_POST, 'firessupport', FILTER_SANITIZE_STRING); |
|
| 1446 | 1446 | if ($firessupport == 'firessupport') { |
| 1447 | - $settings = array_merge($settings,array('globalFires' => 'TRUE')); |
|
| 1447 | + $settings = array_merge($settings, array('globalFires' => 'TRUE')); |
|
| 1448 | 1448 | } else { |
| 1449 | - $settings = array_merge($settings,array('globalFires' => 'FALSE')); |
|
| 1449 | + $settings = array_merge($settings, array('globalFires' => 'FALSE')); |
|
| 1450 | 1450 | } |
| 1451 | - $mapsatellites = filter_input(INPUT_POST,'mapsatellites',FILTER_SANITIZE_STRING); |
|
| 1451 | + $mapsatellites = filter_input(INPUT_POST, 'mapsatellites', FILTER_SANITIZE_STRING); |
|
| 1452 | 1452 | if ($mapsatellites == 'mapsatellites') { |
| 1453 | - $settings = array_merge($settings,array('globalMapSatellites' => 'TRUE')); |
|
| 1453 | + $settings = array_merge($settings, array('globalMapSatellites' => 'TRUE')); |
|
| 1454 | 1454 | } else { |
| 1455 | - $settings = array_merge($settings,array('globalMapSatellites' => 'FALSE')); |
|
| 1455 | + $settings = array_merge($settings, array('globalMapSatellites' => 'FALSE')); |
|
| 1456 | 1456 | } |
| 1457 | - $map3ddefault = filter_input(INPUT_POST,'map3ddefault',FILTER_SANITIZE_STRING); |
|
| 1457 | + $map3ddefault = filter_input(INPUT_POST, 'map3ddefault', FILTER_SANITIZE_STRING); |
|
| 1458 | 1458 | if ($map3ddefault == 'map3ddefault') { |
| 1459 | - $settings = array_merge($settings,array('globalMap3Ddefault' => 'TRUE')); |
|
| 1459 | + $settings = array_merge($settings, array('globalMap3Ddefault' => 'TRUE')); |
|
| 1460 | 1460 | } else { |
| 1461 | - $settings = array_merge($settings,array('globalMap3Ddefault' => 'FALSE')); |
|
| 1461 | + $settings = array_merge($settings, array('globalMap3Ddefault' => 'FALSE')); |
|
| 1462 | 1462 | } |
| 1463 | - $map3dliveries = filter_input(INPUT_POST,'map3dliveries',FILTER_SANITIZE_STRING); |
|
| 1463 | + $map3dliveries = filter_input(INPUT_POST, 'map3dliveries', FILTER_SANITIZE_STRING); |
|
| 1464 | 1464 | if ($map3dliveries == 'map3dliveries') { |
| 1465 | - $settings = array_merge($settings,array('globalMap3DLiveries' => 'TRUE')); |
|
| 1465 | + $settings = array_merge($settings, array('globalMap3DLiveries' => 'TRUE')); |
|
| 1466 | 1466 | } else { |
| 1467 | - $settings = array_merge($settings,array('globalMap3DLiveries' => 'FALSE')); |
|
| 1467 | + $settings = array_merge($settings, array('globalMap3DLiveries' => 'FALSE')); |
|
| 1468 | 1468 | } |
| 1469 | - $translate = filter_input(INPUT_POST,'translate',FILTER_SANITIZE_STRING); |
|
| 1469 | + $translate = filter_input(INPUT_POST, 'translate', FILTER_SANITIZE_STRING); |
|
| 1470 | 1470 | if ($translate == 'translate') { |
| 1471 | - $settings = array_merge($settings,array('globalTranslate' => 'TRUE')); |
|
| 1471 | + $settings = array_merge($settings, array('globalTranslate' => 'TRUE')); |
|
| 1472 | 1472 | } else { |
| 1473 | - $settings = array_merge($settings,array('globalTranslate' => 'FALSE')); |
|
| 1473 | + $settings = array_merge($settings, array('globalTranslate' => 'FALSE')); |
|
| 1474 | 1474 | } |
| 1475 | - $realairlines = filter_input(INPUT_POST,'realairlines',FILTER_SANITIZE_STRING); |
|
| 1475 | + $realairlines = filter_input(INPUT_POST, 'realairlines', FILTER_SANITIZE_STRING); |
|
| 1476 | 1476 | if ($realairlines == 'realairlines') { |
| 1477 | - $settings = array_merge($settings,array('globalUseRealAirlines' => 'TRUE')); |
|
| 1477 | + $settings = array_merge($settings, array('globalUseRealAirlines' => 'TRUE')); |
|
| 1478 | 1478 | } else { |
| 1479 | - $settings = array_merge($settings,array('globalUseRealAirlines' => 'FALSE')); |
|
| 1479 | + $settings = array_merge($settings, array('globalUseRealAirlines' => 'FALSE')); |
|
| 1480 | 1480 | } |
| 1481 | - $estimation = filter_input(INPUT_POST,'estimation',FILTER_SANITIZE_STRING); |
|
| 1481 | + $estimation = filter_input(INPUT_POST, 'estimation', FILTER_SANITIZE_STRING); |
|
| 1482 | 1482 | if ($estimation == 'estimation') { |
| 1483 | - $settings = array_merge($settings,array('globalMapEstimation' => 'TRUE')); |
|
| 1483 | + $settings = array_merge($settings, array('globalMapEstimation' => 'TRUE')); |
|
| 1484 | 1484 | } else { |
| 1485 | - $settings = array_merge($settings,array('globalMapEstimation' => 'FALSE')); |
|
| 1485 | + $settings = array_merge($settings, array('globalMapEstimation' => 'FALSE')); |
|
| 1486 | 1486 | } |
| 1487 | - $metar = filter_input(INPUT_POST,'metar',FILTER_SANITIZE_STRING); |
|
| 1487 | + $metar = filter_input(INPUT_POST, 'metar', FILTER_SANITIZE_STRING); |
|
| 1488 | 1488 | if ($metar == 'metar') { |
| 1489 | - $settings = array_merge($settings,array('globalMETAR' => 'TRUE')); |
|
| 1489 | + $settings = array_merge($settings, array('globalMETAR' => 'TRUE')); |
|
| 1490 | 1490 | } else { |
| 1491 | - $settings = array_merge($settings,array('globalMETAR' => 'FALSE')); |
|
| 1491 | + $settings = array_merge($settings, array('globalMETAR' => 'FALSE')); |
|
| 1492 | 1492 | } |
| 1493 | - $metarcycle = filter_input(INPUT_POST,'metarcycle',FILTER_SANITIZE_STRING); |
|
| 1493 | + $metarcycle = filter_input(INPUT_POST, 'metarcycle', FILTER_SANITIZE_STRING); |
|
| 1494 | 1494 | if ($metarcycle == 'metarcycle') { |
| 1495 | - $settings = array_merge($settings,array('globalMETARcycle' => 'TRUE')); |
|
| 1495 | + $settings = array_merge($settings, array('globalMETARcycle' => 'TRUE')); |
|
| 1496 | 1496 | } else { |
| 1497 | - $settings = array_merge($settings,array('globalMETARcycle' => 'FALSE')); |
|
| 1497 | + $settings = array_merge($settings, array('globalMETARcycle' => 'FALSE')); |
|
| 1498 | 1498 | } |
| 1499 | - $fork = filter_input(INPUT_POST,'fork',FILTER_SANITIZE_STRING); |
|
| 1499 | + $fork = filter_input(INPUT_POST, 'fork', FILTER_SANITIZE_STRING); |
|
| 1500 | 1500 | if ($fork == 'fork') { |
| 1501 | - $settings = array_merge($settings,array('globalFork' => 'TRUE')); |
|
| 1501 | + $settings = array_merge($settings, array('globalFork' => 'TRUE')); |
|
| 1502 | 1502 | } else { |
| 1503 | - $settings = array_merge($settings,array('globalFork' => 'FALSE')); |
|
| 1503 | + $settings = array_merge($settings, array('globalFork' => 'FALSE')); |
|
| 1504 | 1504 | } |
| 1505 | 1505 | |
| 1506 | - $colormap = filter_input(INPUT_POST,'colormap',FILTER_SANITIZE_STRING); |
|
| 1506 | + $colormap = filter_input(INPUT_POST, 'colormap', FILTER_SANITIZE_STRING); |
|
| 1507 | 1507 | if ($colormap == 'colormap') { |
| 1508 | - $settings = array_merge($settings,array('globalMapAltitudeColor' => 'TRUE')); |
|
| 1508 | + $settings = array_merge($settings, array('globalMapAltitudeColor' => 'TRUE')); |
|
| 1509 | 1509 | } else { |
| 1510 | - $settings = array_merge($settings,array('globalMapAltitudeColor' => 'FALSE')); |
|
| 1510 | + $settings = array_merge($settings, array('globalMapAltitudeColor' => 'FALSE')); |
|
| 1511 | 1511 | } |
| 1512 | 1512 | |
| 1513 | 1513 | if (isset($_POST['aircrafticoncolor'])) { |
| 1514 | - $aircrafticoncolor = filter_input(INPUT_POST,'aircrafticoncolor',FILTER_SANITIZE_STRING); |
|
| 1515 | - $settings = array_merge($settings,array('globalAircraftIconColor' => substr($aircrafticoncolor,1))); |
|
| 1514 | + $aircrafticoncolor = filter_input(INPUT_POST, 'aircrafticoncolor', FILTER_SANITIZE_STRING); |
|
| 1515 | + $settings = array_merge($settings, array('globalAircraftIconColor' => substr($aircrafticoncolor, 1))); |
|
| 1516 | 1516 | } |
| 1517 | 1517 | |
| 1518 | - $airportzoom = filter_input(INPUT_POST,'airportzoom',FILTER_SANITIZE_NUMBER_INT); |
|
| 1519 | - $settings = array_merge($settings,array('globalAirportZoom' => $airportzoom)); |
|
| 1518 | + $airportzoom = filter_input(INPUT_POST, 'airportzoom', FILTER_SANITIZE_NUMBER_INT); |
|
| 1519 | + $settings = array_merge($settings, array('globalAirportZoom' => $airportzoom)); |
|
| 1520 | 1520 | |
| 1521 | - $unitdistance = filter_input(INPUT_POST,'unitdistance',FILTER_SANITIZE_STRING); |
|
| 1522 | - $settings = array_merge($settings,array('globalUnitDistance' => $unitdistance)); |
|
| 1523 | - $unitaltitude = filter_input(INPUT_POST,'unitaltitude',FILTER_SANITIZE_STRING); |
|
| 1524 | - $settings = array_merge($settings,array('globalUnitAltitude' => $unitaltitude)); |
|
| 1525 | - $unitspeed = filter_input(INPUT_POST,'unitspeed',FILTER_SANITIZE_STRING); |
|
| 1526 | - $settings = array_merge($settings,array('globalUnitSpeed' => $unitspeed)); |
|
| 1521 | + $unitdistance = filter_input(INPUT_POST, 'unitdistance', FILTER_SANITIZE_STRING); |
|
| 1522 | + $settings = array_merge($settings, array('globalUnitDistance' => $unitdistance)); |
|
| 1523 | + $unitaltitude = filter_input(INPUT_POST, 'unitaltitude', FILTER_SANITIZE_STRING); |
|
| 1524 | + $settings = array_merge($settings, array('globalUnitAltitude' => $unitaltitude)); |
|
| 1525 | + $unitspeed = filter_input(INPUT_POST, 'unitspeed', FILTER_SANITIZE_STRING); |
|
| 1526 | + $settings = array_merge($settings, array('globalUnitSpeed' => $unitspeed)); |
|
| 1527 | 1527 | |
| 1528 | - $mappopup = filter_input(INPUT_POST,'mappopup',FILTER_SANITIZE_STRING); |
|
| 1528 | + $mappopup = filter_input(INPUT_POST, 'mappopup', FILTER_SANITIZE_STRING); |
|
| 1529 | 1529 | if ($mappopup == 'mappopup') { |
| 1530 | - $settings = array_merge($settings,array('globalMapPopup' => 'TRUE')); |
|
| 1530 | + $settings = array_merge($settings, array('globalMapPopup' => 'TRUE')); |
|
| 1531 | 1531 | } else { |
| 1532 | - $settings = array_merge($settings,array('globalMapPopup' => 'FALSE')); |
|
| 1532 | + $settings = array_merge($settings, array('globalMapPopup' => 'FALSE')); |
|
| 1533 | 1533 | } |
| 1534 | - $airportpopup = filter_input(INPUT_POST,'airportpopup',FILTER_SANITIZE_STRING); |
|
| 1534 | + $airportpopup = filter_input(INPUT_POST, 'airportpopup', FILTER_SANITIZE_STRING); |
|
| 1535 | 1535 | if ($airportpopup == 'airportpopup') { |
| 1536 | - $settings = array_merge($settings,array('globalAirportPopup' => 'TRUE')); |
|
| 1536 | + $settings = array_merge($settings, array('globalAirportPopup' => 'TRUE')); |
|
| 1537 | 1537 | } else { |
| 1538 | - $settings = array_merge($settings,array('globalAirportPopup' => 'FALSE')); |
|
| 1538 | + $settings = array_merge($settings, array('globalAirportPopup' => 'FALSE')); |
|
| 1539 | 1539 | } |
| 1540 | - $maphistory = filter_input(INPUT_POST,'maphistory',FILTER_SANITIZE_STRING); |
|
| 1540 | + $maphistory = filter_input(INPUT_POST, 'maphistory', FILTER_SANITIZE_STRING); |
|
| 1541 | 1541 | if ($maphistory == 'maphistory') { |
| 1542 | - $settings = array_merge($settings,array('globalMapHistory' => 'TRUE')); |
|
| 1542 | + $settings = array_merge($settings, array('globalMapHistory' => 'TRUE')); |
|
| 1543 | 1543 | } else { |
| 1544 | - $settings = array_merge($settings,array('globalMapHistory' => 'FALSE')); |
|
| 1544 | + $settings = array_merge($settings, array('globalMapHistory' => 'FALSE')); |
|
| 1545 | 1545 | } |
| 1546 | - $maptooltip = filter_input(INPUT_POST,'maptooltip',FILTER_SANITIZE_STRING); |
|
| 1546 | + $maptooltip = filter_input(INPUT_POST, 'maptooltip', FILTER_SANITIZE_STRING); |
|
| 1547 | 1547 | if ($maptooltip == 'maptooltip') { |
| 1548 | - $settings = array_merge($settings,array('globalMapTooltip' => 'TRUE')); |
|
| 1548 | + $settings = array_merge($settings, array('globalMapTooltip' => 'TRUE')); |
|
| 1549 | 1549 | } else { |
| 1550 | - $settings = array_merge($settings,array('globalMapTooltip' => 'FALSE')); |
|
| 1550 | + $settings = array_merge($settings, array('globalMapTooltip' => 'FALSE')); |
|
| 1551 | 1551 | } |
| 1552 | - $flightroute = filter_input(INPUT_POST,'flightroute',FILTER_SANITIZE_STRING); |
|
| 1552 | + $flightroute = filter_input(INPUT_POST, 'flightroute', FILTER_SANITIZE_STRING); |
|
| 1553 | 1553 | if ($flightroute == 'flightroute') { |
| 1554 | - $settings = array_merge($settings,array('globalMapRoute' => 'TRUE')); |
|
| 1554 | + $settings = array_merge($settings, array('globalMapRoute' => 'TRUE')); |
|
| 1555 | 1555 | } else { |
| 1556 | - $settings = array_merge($settings,array('globalMapRoute' => 'FALSE')); |
|
| 1556 | + $settings = array_merge($settings, array('globalMapRoute' => 'FALSE')); |
|
| 1557 | 1557 | } |
| 1558 | - $flightremainingroute = filter_input(INPUT_POST,'flightremainingroute',FILTER_SANITIZE_STRING); |
|
| 1558 | + $flightremainingroute = filter_input(INPUT_POST, 'flightremainingroute', FILTER_SANITIZE_STRING); |
|
| 1559 | 1559 | if ($flightremainingroute == 'flightremainingroute') { |
| 1560 | - $settings = array_merge($settings,array('globalMapRemainingRoute' => 'TRUE')); |
|
| 1560 | + $settings = array_merge($settings, array('globalMapRemainingRoute' => 'TRUE')); |
|
| 1561 | 1561 | } else { |
| 1562 | - $settings = array_merge($settings,array('globalMapRemainingRoute' => 'FALSE')); |
|
| 1562 | + $settings = array_merge($settings, array('globalMapRemainingRoute' => 'FALSE')); |
|
| 1563 | 1563 | } |
| 1564 | - $allflights = filter_input(INPUT_POST,'allflights',FILTER_SANITIZE_STRING); |
|
| 1564 | + $allflights = filter_input(INPUT_POST, 'allflights', FILTER_SANITIZE_STRING); |
|
| 1565 | 1565 | if ($allflights == 'allflights') { |
| 1566 | - $settings = array_merge($settings,array('globalAllFlights' => 'TRUE')); |
|
| 1566 | + $settings = array_merge($settings, array('globalAllFlights' => 'TRUE')); |
|
| 1567 | 1567 | } else { |
| 1568 | - $settings = array_merge($settings,array('globalAllFlights' => 'FALSE')); |
|
| 1568 | + $settings = array_merge($settings, array('globalAllFlights' => 'FALSE')); |
|
| 1569 | 1569 | } |
| 1570 | - $bbox = filter_input(INPUT_POST,'bbox',FILTER_SANITIZE_STRING); |
|
| 1570 | + $bbox = filter_input(INPUT_POST, 'bbox', FILTER_SANITIZE_STRING); |
|
| 1571 | 1571 | if ($bbox == 'bbox') { |
| 1572 | - $settings = array_merge($settings,array('globalMapUseBbox' => 'TRUE')); |
|
| 1572 | + $settings = array_merge($settings, array('globalMapUseBbox' => 'TRUE')); |
|
| 1573 | 1573 | } else { |
| 1574 | - $settings = array_merge($settings,array('globalMapUseBbox' => 'FALSE')); |
|
| 1574 | + $settings = array_merge($settings, array('globalMapUseBbox' => 'FALSE')); |
|
| 1575 | 1575 | } |
| 1576 | - $groundaltitude = filter_input(INPUT_POST,'groundaltitude',FILTER_SANITIZE_STRING); |
|
| 1576 | + $groundaltitude = filter_input(INPUT_POST, 'groundaltitude', FILTER_SANITIZE_STRING); |
|
| 1577 | 1577 | if ($groundaltitude == 'groundaltitude') { |
| 1578 | - $settings = array_merge($settings,array('globalGroundAltitude' => 'TRUE')); |
|
| 1578 | + $settings = array_merge($settings, array('globalGroundAltitude' => 'TRUE')); |
|
| 1579 | 1579 | } else { |
| 1580 | - $settings = array_merge($settings,array('globalGroundAltitude' => 'FALSE')); |
|
| 1580 | + $settings = array_merge($settings, array('globalGroundAltitude' => 'FALSE')); |
|
| 1581 | 1581 | } |
| 1582 | - $waypoints = filter_input(INPUT_POST,'waypoints',FILTER_SANITIZE_STRING); |
|
| 1582 | + $waypoints = filter_input(INPUT_POST, 'waypoints', FILTER_SANITIZE_STRING); |
|
| 1583 | 1583 | if ($waypoints == 'waypoints') { |
| 1584 | - $settings = array_merge($settings,array('globalWaypoints' => 'TRUE')); |
|
| 1584 | + $settings = array_merge($settings, array('globalWaypoints' => 'TRUE')); |
|
| 1585 | 1585 | } else { |
| 1586 | - $settings = array_merge($settings,array('globalWaypoints' => 'FALSE')); |
|
| 1586 | + $settings = array_merge($settings, array('globalWaypoints' => 'FALSE')); |
|
| 1587 | 1587 | } |
| 1588 | - $geoid = filter_input(INPUT_POST,'geoid',FILTER_SANITIZE_STRING); |
|
| 1588 | + $geoid = filter_input(INPUT_POST, 'geoid', FILTER_SANITIZE_STRING); |
|
| 1589 | 1589 | if ($geoid == 'geoid') { |
| 1590 | - $settings = array_merge($settings,array('globalGeoid' => 'TRUE')); |
|
| 1590 | + $settings = array_merge($settings, array('globalGeoid' => 'TRUE')); |
|
| 1591 | 1591 | } else { |
| 1592 | - $settings = array_merge($settings,array('globalGeoid' => 'FALSE')); |
|
| 1592 | + $settings = array_merge($settings, array('globalGeoid' => 'FALSE')); |
|
| 1593 | 1593 | } |
| 1594 | - $geoid_source = filter_input(INPUT_POST,'geoid_source',FILTER_SANITIZE_STRING); |
|
| 1595 | - $settings = array_merge($settings,array('globalGeoidSource' => $geoid_source)); |
|
| 1594 | + $geoid_source = filter_input(INPUT_POST, 'geoid_source', FILTER_SANITIZE_STRING); |
|
| 1595 | + $settings = array_merge($settings, array('globalGeoidSource' => $geoid_source)); |
|
| 1596 | 1596 | |
| 1597 | - $noairlines = filter_input(INPUT_POST,'noairlines',FILTER_SANITIZE_STRING); |
|
| 1597 | + $noairlines = filter_input(INPUT_POST, 'noairlines', FILTER_SANITIZE_STRING); |
|
| 1598 | 1598 | if ($noairlines == 'noairlines') { |
| 1599 | - $settings = array_merge($settings,array('globalNoAirlines' => 'TRUE')); |
|
| 1599 | + $settings = array_merge($settings, array('globalNoAirlines' => 'TRUE')); |
|
| 1600 | 1600 | } else { |
| 1601 | - $settings = array_merge($settings,array('globalNoAirlines' => 'FALSE')); |
|
| 1601 | + $settings = array_merge($settings, array('globalNoAirlines' => 'FALSE')); |
|
| 1602 | 1602 | } |
| 1603 | 1603 | |
| 1604 | - $tsk = filter_input(INPUT_POST,'tsk',FILTER_SANITIZE_STRING); |
|
| 1604 | + $tsk = filter_input(INPUT_POST, 'tsk', FILTER_SANITIZE_STRING); |
|
| 1605 | 1605 | if ($tsk == 'tsk') { |
| 1606 | - $settings = array_merge($settings,array('globalTSK' => 'TRUE')); |
|
| 1606 | + $settings = array_merge($settings, array('globalTSK' => 'TRUE')); |
|
| 1607 | 1607 | } else { |
| 1608 | - $settings = array_merge($settings,array('globalTSK' => 'FALSE')); |
|
| 1608 | + $settings = array_merge($settings, array('globalTSK' => 'FALSE')); |
|
| 1609 | 1609 | } |
| 1610 | 1610 | |
| 1611 | - if (!isset($globalTransaction)) $settings = array_merge($settings,array('globalTransaction' => 'TRUE')); |
|
| 1611 | + if (!isset($globalTransaction)) $settings = array_merge($settings, array('globalTransaction' => 'TRUE')); |
|
| 1612 | 1612 | |
| 1613 | 1613 | // Set some defaults values... |
| 1614 | 1614 | if (!isset($globalAircraftImageSources)) { |
| 1615 | - $globalAircraftImageSources = array('ivaomtl','wikimedia','airportdata','deviantart','flickr','bing','jetphotos','planepictures','planespotters'); |
|
| 1616 | - $settings = array_merge($settings,array('globalAircraftImageSources' => $globalAircraftImageSources)); |
|
| 1615 | + $globalAircraftImageSources = array('ivaomtl', 'wikimedia', 'airportdata', 'deviantart', 'flickr', 'bing', 'jetphotos', 'planepictures', 'planespotters'); |
|
| 1616 | + $settings = array_merge($settings, array('globalAircraftImageSources' => $globalAircraftImageSources)); |
|
| 1617 | 1617 | } |
| 1618 | 1618 | |
| 1619 | 1619 | if (!isset($globalSchedulesSources)) { |
| 1620 | - $globalSchedulesSources = array('flightmapper','costtotravel','flightradar24','flightaware'); |
|
| 1621 | - $settings = array_merge($settings,array('globalSchedulesSources' => $globalSchedulesSources)); |
|
| 1620 | + $globalSchedulesSources = array('flightmapper', 'costtotravel', 'flightradar24', 'flightaware'); |
|
| 1621 | + $settings = array_merge($settings, array('globalSchedulesSources' => $globalSchedulesSources)); |
|
| 1622 | 1622 | } |
| 1623 | 1623 | |
| 1624 | - $settings = array_merge($settings,array('globalInstalled' => 'TRUE')); |
|
| 1624 | + $settings = array_merge($settings, array('globalInstalled' => 'TRUE')); |
|
| 1625 | 1625 | |
| 1626 | 1626 | if ($error == '') settings::modify_settings($settings); |
| 1627 | 1627 | if ($error == '') settings::comment_settings($settings_comment); |