@@ -20,17 +20,17 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | $spotter_array = array(); |
| 22 | 22 | if (isset($_COOKIE['sattypes']) && $_COOKIE['sattypes'] != '') { |
| 23 | - $sattypes = explode(',',$_COOKIE['sattypes']); |
|
| 23 | + $sattypes = explode(',', $_COOKIE['sattypes']); |
|
| 24 | 24 | foreach ($sattypes as $sattype) { |
| 25 | - $spotter_array = array_merge($Satellite->position_all_type($sattype,$timeb-$globalLiveInterval,$timeb),$spotter_array); |
|
| 25 | + $spotter_array = array_merge($Satellite->position_all_type($sattype, $timeb - $globalLiveInterval, $timeb), $spotter_array); |
|
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | 28 | if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) { |
| 29 | - $spotter_array = array_merge($Satellite->position('ISS (ZARYA)',time()-$globalLiveInterval,time()),$spotter_array); |
|
| 30 | - $spotter_array = array_merge($Satellite->position('TIANGONG 1',time()-$globalLiveInterval,time()),$spotter_array); |
|
| 31 | - $spotter_array = array_merge($Satellite->position('TIANGONG-2',time()-$globalLiveInterval,time()),$spotter_array); |
|
| 29 | + $spotter_array = array_merge($Satellite->position('ISS (ZARYA)', time() - $globalLiveInterval, time()), $spotter_array); |
|
| 30 | + $spotter_array = array_merge($Satellite->position('TIANGONG 1', time() - $globalLiveInterval, time()), $spotter_array); |
|
| 31 | + $spotter_array = array_merge($Satellite->position('TIANGONG-2', time() - $globalLiveInterval, time()), $spotter_array); |
|
| 32 | 32 | } |
| 33 | -$spotter_array = array_unique($spotter_array,SORT_REGULAR); |
|
| 33 | +$spotter_array = array_unique($spotter_array, SORT_REGULAR); |
|
| 34 | 34 | /* |
| 35 | 35 | $modelsdb = array(); |
| 36 | 36 | if (file_exists('models/space/space_modelsdb')) { |
@@ -54,14 +54,14 @@ discard block |
||
| 54 | 54 | // $output .= ',"clock": {"interval" : "'.date("c",time()-$globalLiveInterval).'/'.date("c").'","currentTime" : "'.date("c",time() - $globalLiveInterval).'","multiplier" : 1,"range" : "LOOP_STOP","step": "SYSTEM_CLOCK_MULTIPLIER"}'; |
| 55 | 55 | |
| 56 | 56 | // $output .= ',"clock": {"interval" : "'.date("c",time()-$globalLiveInterval).'/'.date("c").'","currentTime" : "'.date("c",time() - $globalLiveInterval).'","multiplier" : 1,"range" : "UNBOUNDED","step": "SYSTEM_CLOCK_MULTIPLIER"}'; |
| 57 | -$output .= ',"clock": {"currentTime" : "'.date("c",time() - $globalLiveInterval).'","multiplier" : 1,"range" : "UNBOUNDED","step": "SYSTEM_CLOCK_MULTIPLIER"}'; |
|
| 57 | +$output .= ',"clock": {"currentTime" : "'.date("c", time() - $globalLiveInterval).'","multiplier" : 1,"range" : "UNBOUNDED","step": "SYSTEM_CLOCK_MULTIPLIER"}'; |
|
| 58 | 58 | //$output .= ',"clock": {"currentTime" : "%minitime%","multiplier" : 1,"range" : "UNBOUNDED","step": "SYSTEM_CLOCK_MULTIPLIER"}'; |
| 59 | 59 | |
| 60 | 60 | // $output .= ',"clock": {"interval" : "'.date("c",time()-$globalLiveInterval).'/'.date("c").'","currentTime" : "'.date("c",time() - $globalLiveInterval).'","multiplier" : 1,"step": "SYSTEM_CLOCK_MULTIPLIER"}'; |
| 61 | 61 | $output .= '},'; |
| 62 | 62 | if (!empty($spotter_array) && is_array($spotter_array)) |
| 63 | 63 | { |
| 64 | - foreach($spotter_array as $spotter_item) |
|
| 64 | + foreach ($spotter_array as $spotter_item) |
|
| 65 | 65 | { |
| 66 | 66 | $j++; |
| 67 | 67 | date_default_timezone_set('UTC'); |
@@ -115,23 +115,23 @@ discard block |
||
| 115 | 115 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/cubiesat.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 116 | 116 | } elseif ($spotter_item['name'] == 'TERRA') { |
| 117 | 117 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/terra.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 118 | - } elseif (strpos($spotter_item['name'],'O3B') !== false) { |
|
| 118 | + } elseif (strpos($spotter_item['name'], 'O3B') !== false) { |
|
| 119 | 119 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/o3b.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 120 | - } elseif (strpos($spotter_item['name'],'GLOBALSTAR') !== false) { |
|
| 120 | + } elseif (strpos($spotter_item['name'], 'GLOBALSTAR') !== false) { |
|
| 121 | 121 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/globalstar.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 122 | - } elseif (strpos($spotter_item['name'],'GPS') !== false) { |
|
| 122 | + } elseif (strpos($spotter_item['name'], 'GPS') !== false) { |
|
| 123 | 123 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/gps.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 124 | - } elseif (strpos($spotter_item['name'],'GENESIS') !== false) { |
|
| 124 | + } elseif (strpos($spotter_item['name'], 'GENESIS') !== false) { |
|
| 125 | 125 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/genesis.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 126 | - } elseif (strpos($spotter_item['name'],'OSCAR 7') !== false) { |
|
| 126 | + } elseif (strpos($spotter_item['name'], 'OSCAR 7') !== false) { |
|
| 127 | 127 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/oscar7.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 128 | - } elseif (strpos($spotter_item['name'],'FLOCK') !== false) { |
|
| 128 | + } elseif (strpos($spotter_item['name'], 'FLOCK') !== false) { |
|
| 129 | 129 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/cubesat.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 130 | - } elseif (strpos($spotter_item['name'],'PLEIADES') !== false) { |
|
| 130 | + } elseif (strpos($spotter_item['name'], 'PLEIADES') !== false) { |
|
| 131 | 131 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/pleiades.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 132 | - } elseif (strpos($spotter_item['name'],'DUCHIFAT') !== false) { |
|
| 132 | + } elseif (strpos($spotter_item['name'], 'DUCHIFAT') !== false) { |
|
| 133 | 133 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/duchifat.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 134 | - } elseif (strpos($spotter_item['name'],'FORMOSAT-2') !== false) { |
|
| 134 | + } elseif (strpos($spotter_item['name'], 'FORMOSAT-2') !== false) { |
|
| 135 | 135 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/formosat2.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
| 136 | 136 | } elseif ($spotter_item['type'] == 'iridium') { |
| 137 | 137 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/space/iridium.glb'.'","scale" : 1.0,"minimumPixelSize": 25,"maximunPixelSize": 300 },'; |
@@ -153,14 +153,14 @@ discard block |
||
| 153 | 153 | // $output .= '"epoch" : "'.date("c",strtotime($spotter_item['date'])).'", '; |
| 154 | 154 | $output .= '"interpolationAlgorithm":"HERMITE","interpolationDegree":3,'; |
| 155 | 155 | $output .= '"cartographicDegrees": ['; |
| 156 | - $output .= '"'.date("c",$spotter_item['timestamp']).'", '; |
|
| 156 | + $output .= '"'.date("c", $spotter_item['timestamp']).'", '; |
|
| 157 | 157 | $output .= $spotter_item['longitude'].', '; |
| 158 | 158 | $output .= $spotter_item['latitude'].', '; |
| 159 | 159 | $output .= $spotter_item['altitude']*1000; |
| 160 | 160 | $orientation = '"orientation" : { '; |
| 161 | 161 | $orientation .= '"unitQuaternion": ['; |
| 162 | 162 | } else { |
| 163 | - $output .= ',"'.date("c",$spotter_item['timestamp']).'", '; |
|
| 163 | + $output .= ',"'.date("c", $spotter_item['timestamp']).'", '; |
|
| 164 | 164 | $output .= $spotter_item['longitude'].', '; |
| 165 | 165 | $output .= $spotter_item['latitude'].', '; |
| 166 | 166 | $output .= $spotter_item['altitude']*1000; |
@@ -162,11 +162,26 @@ discard block |
||
| 162 | 162 | <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam();" /><?php echo _("Display NOTAM"); ?></label></div></li> |
| 163 | 163 | <li><?php echo _("NOTAM scope:"); ?> |
| 164 | 164 | <select class="selectpicker" onchange="notamscope(this);"> |
| 165 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
| 166 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
| 167 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
| 168 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
| 169 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
| 165 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
| 166 | + print ' selected'; |
|
| 167 | +} |
|
| 168 | +?>>All</option> |
|
| 169 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
| 170 | + print ' selected'; |
|
| 171 | +} |
|
| 172 | +?>>Airport/Enroute warning</option> |
|
| 173 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
| 174 | + print ' selected'; |
|
| 175 | +} |
|
| 176 | +?>>Airport warning</option> |
|
| 177 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
| 178 | + print ' selected'; |
|
| 179 | +} |
|
| 180 | +?>>Navigation warning</option> |
|
| 181 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
| 182 | + print ' selected'; |
|
| 183 | +} |
|
| 184 | +?>>Enroute warning</option> |
|
| 170 | 185 | </select |
| 171 | 186 | </li> |
| 172 | 187 | </ul> |
@@ -194,7 +209,12 @@ discard block |
||
| 194 | 209 | <div class="form-group"> |
| 195 | 210 | <label>From (UTC):</label> |
| 196 | 211 | <div class='input-group date' id='datetimepicker1'> |
| 197 | - <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a",$_COOKIE['archive_begin']); ?>" required /> |
|
| 212 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) { |
|
| 213 | + print $_POST['start_date']; |
|
| 214 | +} elseif (isset($_COOKIE['archive_begin'])) { |
|
| 215 | + print date("m/d/Y h:i a",$_COOKIE['archive_begin']); |
|
| 216 | +} |
|
| 217 | +?>" required /> |
|
| 198 | 218 | <span class="input-group-addon"> |
| 199 | 219 | <span class="glyphicon glyphicon-calendar"></span> |
| 200 | 220 | </span> |
@@ -203,7 +223,12 @@ discard block |
||
| 203 | 223 | <div class="form-group"> |
| 204 | 224 | <label>To (UTC):</label> |
| 205 | 225 | <div class='input-group date' id='datetimepicker2'> |
| 206 | - <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a",$_COOKIE['archive_end']); ?>" /> |
|
| 226 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) { |
|
| 227 | + print $_POST['end_date']; |
|
| 228 | +} elseif (isset($_COOKIE['archive_end'])) { |
|
| 229 | + print date("m/d/Y h:i a",$_COOKIE['archive_end']); |
|
| 230 | +} |
|
| 231 | +?>" /> |
|
| 207 | 232 | <span class="input-group-addon"> |
| 208 | 233 | <span class="glyphicon glyphicon-calendar"></span> |
| 209 | 234 | </span> |
@@ -229,8 +254,20 @@ discard block |
||
| 229 | 254 | |
| 230 | 255 | <li><?php echo _("Playback speed:"); ?> |
| 231 | 256 | <div class="range"> |
| 232 | - <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) print $_POST['archivespeed']; elseif (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?>"> |
|
| 233 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
| 257 | + <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
| 258 | + print $_POST['archivespeed']; |
|
| 259 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
| 260 | + print $_COOKIE['archive_speed']; |
|
| 261 | +} else { |
|
| 262 | + print '1'; |
|
| 263 | +} |
|
| 264 | +?>"> |
|
| 265 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
| 266 | + print $_COOKIE['archive_speed']; |
|
| 267 | +} else { |
|
| 268 | + print '1'; |
|
| 269 | +} |
|
| 270 | +?></output> |
|
| 234 | 271 | </div> |
| 235 | 272 | </li> |
| 236 | 273 | <li><input type="submit" name="archive" value="Show archive" class="btn btn-primary" /></li> |
@@ -252,15 +289,27 @@ discard block |
||
| 252 | 289 | <li><?php echo _("Type of Map:"); ?> |
| 253 | 290 | <select class="selectpicker" onchange="mapType(this);"> |
| 254 | 291 | <?php |
| 255 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
| 256 | - else $MapType = $_COOKIE['MapType']; |
|
| 292 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
| 293 | + $MapType = $globalMapProvider; |
|
| 294 | + } else { |
|
| 295 | + $MapType = $_COOKIE['MapType']; |
|
| 296 | + } |
|
| 257 | 297 | ?> |
| 258 | 298 | <?php |
| 259 | 299 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
| 260 | 300 | ?> |
| 261 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
| 262 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
| 263 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
| 301 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
| 302 | + print ' selected'; |
|
| 303 | +} |
|
| 304 | +?>>Bing-Aerial</option> |
|
| 305 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
| 306 | + print ' selected'; |
|
| 307 | +} |
|
| 308 | +?>>Bing-Hybrid</option> |
|
| 309 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
| 310 | + print ' selected'; |
|
| 311 | +} |
|
| 312 | +?>>Bing-Road</option> |
|
| 264 | 313 | <?php |
| 265 | 314 | } |
| 266 | 315 | ?> |
@@ -270,56 +319,131 @@ discard block |
||
| 270 | 319 | <?php |
| 271 | 320 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
| 272 | 321 | ?> |
| 273 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
| 274 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
| 275 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
| 322 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
| 323 | + print ' selected'; |
|
| 324 | +} |
|
| 325 | +?>>Here-Aerial</option> |
|
| 326 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
| 327 | + print ' selected'; |
|
| 328 | +} |
|
| 329 | +?>>Here-Hybrid</option> |
|
| 330 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
| 331 | + print ' selected'; |
|
| 332 | +} |
|
| 333 | +?>>Here-Road</option> |
|
| 276 | 334 | <?php |
| 277 | 335 | } |
| 278 | 336 | ?> |
| 279 | 337 | <?php |
| 280 | 338 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
| 281 | 339 | ?> |
| 282 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
| 283 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
| 284 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
| 285 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
| 340 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
| 341 | + print ' selected'; |
|
| 342 | +} |
|
| 343 | +?>>Google Roadmap</option> |
|
| 344 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
| 345 | + print ' selected'; |
|
| 346 | +} |
|
| 347 | +?>>Google Satellite</option> |
|
| 348 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
| 349 | + print ' selected'; |
|
| 350 | +} |
|
| 351 | +?>>Google Hybrid</option> |
|
| 352 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
| 353 | + print ' selected'; |
|
| 354 | +} |
|
| 355 | +?>>Google Terrain</option> |
|
| 286 | 356 | <?php |
| 287 | 357 | } |
| 288 | 358 | ?> |
| 289 | 359 | <?php |
| 290 | 360 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
| 291 | 361 | ?> |
| 292 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
| 293 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
| 294 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
| 362 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
| 363 | + print ' selected'; |
|
| 364 | +} |
|
| 365 | +?>>MapQuest-OSM</option> |
|
| 366 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
| 367 | + print ' selected'; |
|
| 368 | +} |
|
| 369 | +?>>MapQuest-Aerial</option> |
|
| 370 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
| 371 | + print ' selected'; |
|
| 372 | +} |
|
| 373 | +?>>MapQuest-Hybrid</option> |
|
| 295 | 374 | <?php |
| 296 | 375 | } |
| 297 | 376 | ?> |
| 298 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
| 377 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
| 378 | + print ' selected'; |
|
| 379 | +} |
|
| 380 | +?>>Yandex</option> |
|
| 299 | 381 | <?php |
| 300 | 382 | } |
| 301 | 383 | ?> |
| 302 | 384 | <?php |
| 303 | 385 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
| 304 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
| 305 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
| 386 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
| 387 | + $MapBoxId = 'default'; |
|
| 388 | + } else { |
|
| 389 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
| 390 | + } |
|
| 306 | 391 | ?> |
| 307 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
| 308 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
| 309 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
| 310 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
| 311 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
| 312 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
| 313 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
| 314 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
| 315 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
| 316 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
| 317 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
| 318 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
| 392 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
| 393 | + print ' selected'; |
|
| 394 | +} |
|
| 395 | +?>>Mapbox default</option> |
|
| 396 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
| 397 | + print ' selected'; |
|
| 398 | +} |
|
| 399 | +?>>Mapbox streets</option> |
|
| 400 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
| 401 | + print ' selected'; |
|
| 402 | +} |
|
| 403 | +?>>Mapbox light</option> |
|
| 404 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
| 405 | + print ' selected'; |
|
| 406 | +} |
|
| 407 | +?>>Mapbox dark</option> |
|
| 408 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
| 409 | + print ' selected'; |
|
| 410 | +} |
|
| 411 | +?>>Mapbox satellite</option> |
|
| 412 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
| 413 | + print ' selected'; |
|
| 414 | +} |
|
| 415 | +?>>Mapbox streets-satellite</option> |
|
| 416 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
| 417 | + print ' selected'; |
|
| 418 | +} |
|
| 419 | +?>>Mapbox streets-basic</option> |
|
| 420 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
| 421 | + print ' selected'; |
|
| 422 | +} |
|
| 423 | +?>>Mapbox comic</option> |
|
| 424 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
| 425 | + print ' selected'; |
|
| 426 | +} |
|
| 427 | +?>>Mapbox outdoors</option> |
|
| 428 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
| 429 | + print ' selected'; |
|
| 430 | +} |
|
| 431 | +?>>Mapbox pencil</option> |
|
| 432 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
| 433 | + print ' selected'; |
|
| 434 | +} |
|
| 435 | +?>>Mapbox pirates</option> |
|
| 436 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
| 437 | + print ' selected'; |
|
| 438 | +} |
|
| 439 | +?>>Mapbox emerald</option> |
|
| 319 | 440 | <?php |
| 320 | 441 | } |
| 321 | 442 | ?> |
| 322 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
| 443 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
| 444 | + print ' selected'; |
|
| 445 | +} |
|
| 446 | +?>>OpenStreetMap</option> |
|
| 323 | 447 | </select> |
| 324 | 448 | </li> |
| 325 | 449 | <?php |
@@ -327,10 +451,22 @@ discard block |
||
| 327 | 451 | ?> |
| 328 | 452 | <li><?php echo _("Type of Terrain:"); ?> |
| 329 | 453 | <select class="selectpicker" onchange="terrainType(this);"> |
| 330 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
| 331 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
| 332 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
| 333 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
| 454 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
| 455 | + print ' selected'; |
|
| 456 | +} |
|
| 457 | +?>>stk terrain</option> |
|
| 458 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
| 459 | + print ' selected'; |
|
| 460 | +} |
|
| 461 | +?>>ellipsoid</option> |
|
| 462 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
| 463 | + print ' selected'; |
|
| 464 | +} |
|
| 465 | +?>>vr terrain</option> |
|
| 466 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') { |
|
| 467 | + print ' selected'; |
|
| 468 | +} |
|
| 469 | +?>>ArticDEM</option> |
|
| 334 | 470 | </select> |
| 335 | 471 | </li> |
| 336 | 472 | <?php |
@@ -342,28 +478,61 @@ discard block |
||
| 342 | 478 | <?php |
| 343 | 479 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
| 344 | 480 | ?> |
| 345 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') print 'checked'; ?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
| 346 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) print 'checked'; ?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
| 347 | - <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (isset($globalMapRoute) && $globalMapRoute)) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
| 348 | - <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || !isset($_COOKIE['MapRemainingRoute']) || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) print 'checked'; ?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
| 349 | - <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) print 'checked'; ?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
| 481 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
| 482 | + print 'checked'; |
|
| 483 | +} |
|
| 484 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
| 485 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
| 486 | + print 'checked'; |
|
| 487 | +} |
|
| 488 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
| 489 | + <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (isset($globalMapRoute) && $globalMapRoute)) { |
|
| 490 | + print 'checked'; |
|
| 491 | +} |
|
| 492 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
| 493 | + <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || !isset($_COOKIE['MapRemainingRoute']) || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) { |
|
| 494 | + print 'checked'; |
|
| 495 | +} |
|
| 496 | +?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
| 497 | + <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) { |
|
| 498 | + print 'checked'; |
|
| 499 | +} |
|
| 500 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
| 350 | 501 | <?php |
| 351 | 502 | } |
| 352 | 503 | if (isset($globalSatellite) && $globalSatellite === TRUE) { |
| 353 | 504 | ?> |
| 354 | - <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> |
|
| 505 | + <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)) { |
|
| 506 | + print 'checked'; |
|
| 507 | +} |
|
| 508 | +?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
| 355 | 509 | <?php |
| 356 | 510 | } |
| 357 | 511 | } |
| 358 | 512 | ?> |
| 359 | - <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> |
|
| 360 | - <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> |
|
| 361 | - <li><div class="checkbox"><label><input type="checkbox" name="displayweatherstation" value="1" onclick="clickDisplayWeatherStation(this)" <?php if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') || (!isset($_COOKIE['show_WeatherStation']) && (!isset($globalMapWeatherStation) || $globalMapWeatherStation === TRUE))) print 'checked'; ?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
| 362 | - <li><div class="checkbox"><label><input type="checkbox" name="displaylightning" value="1" onclick="clickDisplayLightning(this)" <?php if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') || (!isset($_COOKIE['show_Lightning']) && (!isset($globalMapLightning) || $globalMapLightning === TRUE))) print 'checked'; ?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
| 513 | + <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'])) { |
|
| 514 | + print 'checked'; |
|
| 515 | +} |
|
| 516 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
| 517 | + <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))) { |
|
| 518 | + print 'checked'; |
|
| 519 | +} |
|
| 520 | +?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
| 521 | + <li><div class="checkbox"><label><input type="checkbox" name="displayweatherstation" value="1" onclick="clickDisplayWeatherStation(this)" <?php if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') || (!isset($_COOKIE['show_WeatherStation']) && (!isset($globalMapWeatherStation) || $globalMapWeatherStation === TRUE))) { |
|
| 522 | + print 'checked'; |
|
| 523 | +} |
|
| 524 | +?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
| 525 | + <li><div class="checkbox"><label><input type="checkbox" name="displaylightning" value="1" onclick="clickDisplayLightning(this)" <?php if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') || (!isset($_COOKIE['show_Lightning']) && (!isset($globalMapLightning) || $globalMapLightning === TRUE))) { |
|
| 526 | + print 'checked'; |
|
| 527 | +} |
|
| 528 | +?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
| 363 | 529 | <?php |
| 364 | 530 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
| 365 | 531 | ?> |
| 366 | - <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> |
|
| 532 | + <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')) { |
|
| 533 | + print 'checked'; |
|
| 534 | +} |
|
| 535 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
| 367 | 536 | <?php |
| 368 | 537 | } |
| 369 | 538 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -377,17 +546,25 @@ discard block |
||
| 377 | 546 | if (function_exists('array_column')) { |
| 378 | 547 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
| 379 | 548 | ?> |
| 380 | - <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> |
|
| 549 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
| 550 | + print 'checked'; |
|
| 551 | +} |
|
| 552 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
| 381 | 553 | <?php |
| 382 | 554 | } |
| 383 | 555 | } elseif (isset($globalSources)) { |
| 384 | 556 | $dispolar = false; |
| 385 | 557 | foreach ($globalSources as $testsource) { |
| 386 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
| 558 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
| 559 | + $dispolar = true; |
|
| 560 | + } |
|
| 387 | 561 | } |
| 388 | 562 | if ($dispolar) { |
| 389 | 563 | ?> |
| 390 | - <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> |
|
| 564 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
| 565 | + print 'checked'; |
|
| 566 | +} |
|
| 567 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
| 391 | 568 | <?php |
| 392 | 569 | } |
| 393 | 570 | } |
@@ -400,12 +577,22 @@ discard block |
||
| 400 | 577 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
| 401 | 578 | if (extension_loaded('gd') && function_exists('gd_info')) { |
| 402 | 579 | ?> |
| 403 | - <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> |
|
| 580 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
| 581 | + print 'checked'; |
|
| 582 | +} |
|
| 583 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
| 404 | 584 | <?php |
| 405 | 585 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
| 406 | 586 | ?> |
| 407 | 587 | <li><?php echo _("Aircraft icon color:"); ?> |
| 408 | - <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'; ?>"> |
|
| 588 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
| 589 | + print $_COOKIE['IconColor']; |
|
| 590 | +} elseif (isset($globalAircraftIconColor)) { |
|
| 591 | + print $globalAircraftIconColor; |
|
| 592 | +} else { |
|
| 593 | + print '1a3151'; |
|
| 594 | +} |
|
| 595 | +?>"> |
|
| 409 | 596 | </li> |
| 410 | 597 | <?php |
| 411 | 598 | } |
@@ -417,7 +604,14 @@ discard block |
||
| 417 | 604 | if (extension_loaded('gd') && function_exists('gd_info')) { |
| 418 | 605 | ?> |
| 419 | 606 | <li><?php echo _("Marine icon color:"); ?> |
| 420 | - <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'; ?>"> |
|
| 607 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
| 608 | + print $_COOKIE['MarineIconColor']; |
|
| 609 | +} elseif (isset($globalMarineIconColor)) { |
|
| 610 | + print $globalMarineIconColor; |
|
| 611 | +} else { |
|
| 612 | + print '1a3151'; |
|
| 613 | +} |
|
| 614 | +?>"> |
|
| 421 | 615 | </li> |
| 422 | 616 | <?php |
| 423 | 617 | } |
@@ -428,7 +622,14 @@ discard block |
||
| 428 | 622 | if (extension_loaded('gd') && function_exists('gd_info')) { |
| 429 | 623 | ?> |
| 430 | 624 | <li><?php echo _("Tracker icon color:"); ?> |
| 431 | - <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'; ?>"> |
|
| 625 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
| 626 | + print $_COOKIE['TrackerIconColor']; |
|
| 627 | +} elseif (isset($globalTrackerIconColor)) { |
|
| 628 | + print $globalTrackerIconColor; |
|
| 629 | +} else { |
|
| 630 | + print '1a3151'; |
|
| 631 | +} |
|
| 632 | +?>"> |
|
| 432 | 633 | </li> |
| 433 | 634 | <?php |
| 434 | 635 | } |
@@ -439,8 +640,22 @@ discard block |
||
| 439 | 640 | ?> |
| 440 | 641 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
| 441 | 642 | <div class="range"> |
| 442 | - <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'; ?>"> |
|
| 443 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
| 643 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
| 644 | + print $_COOKIE['AirportZoom']; |
|
| 645 | +} elseif (isset($globalAirportZoom)) { |
|
| 646 | + print $globalAirportZoom; |
|
| 647 | +} else { |
|
| 648 | + print '7'; |
|
| 649 | +} |
|
| 650 | +?>"> |
|
| 651 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
| 652 | + print $_COOKIE['AirportZoom']; |
|
| 653 | +} elseif (isset($globalAirportZoom)) { |
|
| 654 | + print $globalAirportZoom; |
|
| 655 | +} else { |
|
| 656 | + print '7'; |
|
| 657 | +} |
|
| 658 | +?></output> |
|
| 444 | 659 | </div> |
| 445 | 660 | </li> |
| 446 | 661 | <?php |
@@ -452,9 +667,19 @@ discard block |
||
| 452 | 667 | <?php |
| 453 | 668 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
| 454 | 669 | ?> |
| 455 | - <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Aircraft color"); ?></li> |
|
| 670 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
| 671 | + print 'checked'; |
|
| 672 | +} |
|
| 673 | +?> ><?php echo _("Force Aircraft color"); ?></li> |
|
| 456 | 674 | <li><?php echo _("Aircraft icon color:"); ?> |
| 457 | - <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 'ff0000'; ?>"> |
|
| 675 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
| 676 | + print $_COOKIE['IconColor']; |
|
| 677 | +} elseif (isset($globalAircraftIconColor)) { |
|
| 678 | + print $globalAircraftIconColor; |
|
| 679 | +} else { |
|
| 680 | + print 'ff0000'; |
|
| 681 | +} |
|
| 682 | +?>"> |
|
| 458 | 683 | </li> |
| 459 | 684 | <?php |
| 460 | 685 | } |
@@ -462,9 +687,19 @@ discard block |
||
| 462 | 687 | <?php |
| 463 | 688 | if (isset($globalMarine) && $globalMarine === TRUE) { |
| 464 | 689 | ?> |
| 465 | - <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Marine color"); ?></li> |
|
| 690 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
| 691 | + print 'checked'; |
|
| 692 | +} |
|
| 693 | +?> ><?php echo _("Force Marine color"); ?></li> |
|
| 466 | 694 | <li><?php echo _("Marine icon color:"); ?> |
| 467 | - <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 'ff0000'; ?>"> |
|
| 695 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
| 696 | + print $_COOKIE['MarineIconColor']; |
|
| 697 | +} elseif (isset($globalMarineIconColor)) { |
|
| 698 | + print $globalMarineIconColor; |
|
| 699 | +} else { |
|
| 700 | + print 'ff0000'; |
|
| 701 | +} |
|
| 702 | +?>"> |
|
| 468 | 703 | </li> |
| 469 | 704 | <?php |
| 470 | 705 | } |
@@ -472,9 +707,19 @@ discard block |
||
| 472 | 707 | <?php |
| 473 | 708 | if (isset($globalTracker) && $globalTracker === TRUE) { |
| 474 | 709 | ?> |
| 475 | - <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Tracker color"); ?></li> |
|
| 710 | + <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') { |
|
| 711 | + print 'checked'; |
|
| 712 | +} |
|
| 713 | +?> ><?php echo _("Force Tracker color"); ?></li> |
|
| 476 | 714 | <li><?php echo _("Tracker icon color:"); ?> |
| 477 | - <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 'ff0000'; ?>"> |
|
| 715 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
| 716 | + print $_COOKIE['TrackerIconColor']; |
|
| 717 | +} elseif (isset($globalTrackerIconColor)) { |
|
| 718 | + print $globalTrackerIconColor; |
|
| 719 | +} else { |
|
| 720 | + print 'ff0000'; |
|
| 721 | +} |
|
| 722 | +?>"> |
|
| 478 | 723 | </li> |
| 479 | 724 | <?php |
| 480 | 725 | } |
@@ -482,22 +727,46 @@ discard block |
||
| 482 | 727 | ?> |
| 483 | 728 | <li><?php echo _("Distance unit:"); ?> |
| 484 | 729 | <select class="selectpicker" onchange="unitdistance(this);"> |
| 485 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
| 486 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
| 487 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
| 730 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
| 731 | + echo ' selected'; |
|
| 732 | +} |
|
| 733 | +?>>km</option> |
|
| 734 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
| 735 | + echo ' selected'; |
|
| 736 | +} |
|
| 737 | +?>>nm</option> |
|
| 738 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
| 739 | + echo ' selected'; |
|
| 740 | +} |
|
| 741 | +?>>mi</option> |
|
| 488 | 742 | </select> |
| 489 | 743 | </li> |
| 490 | 744 | <li><?php echo _("Altitude unit:"); ?> |
| 491 | 745 | <select class="selectpicker" onchange="unitaltitude(this);"> |
| 492 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
| 493 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
| 746 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
| 747 | + echo ' selected'; |
|
| 748 | +} |
|
| 749 | +?>>m</option> |
|
| 750 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
| 751 | + echo ' selected'; |
|
| 752 | +} |
|
| 753 | +?>>feet</option> |
|
| 494 | 754 | </select> |
| 495 | 755 | </li> |
| 496 | 756 | <li><?php echo _("Speed unit:"); ?> |
| 497 | 757 | <select class="selectpicker" onchange="unitspeed(this);"> |
| 498 | - <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) echo ' selected'; ?>>km/h</option> |
|
| 499 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
| 500 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
| 758 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
| 759 | + echo ' selected'; |
|
| 760 | +} |
|
| 761 | +?>>km/h</option> |
|
| 762 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
| 763 | + echo ' selected'; |
|
| 764 | +} |
|
| 765 | +?>>mph</option> |
|
| 766 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
| 767 | + echo ' selected'; |
|
| 768 | +} |
|
| 769 | +?>>knots</option> |
|
| 501 | 770 | </select> |
| 502 | 771 | </li> |
| 503 | 772 | |
@@ -515,9 +784,18 @@ discard block |
||
| 515 | 784 | <?php |
| 516 | 785 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
| 517 | 786 | ?> |
| 518 | - <?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 } ?> |
|
| 519 | - <?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 } ?> |
|
| 520 | - <?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 } ?> |
|
| 787 | + <?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'])) { |
|
| 788 | + print 'checked'; |
|
| 789 | +} |
|
| 790 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
| 791 | + <?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'])) { |
|
| 792 | + print 'checked'; |
|
| 793 | +} |
|
| 794 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
| 795 | + <?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'])) { |
|
| 796 | + print 'checked'; |
|
| 797 | +} |
|
| 798 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
| 521 | 799 | <?php |
| 522 | 800 | } |
| 523 | 801 | ?> |
@@ -525,10 +803,16 @@ discard block |
||
| 525 | 803 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
| 526 | 804 | ?> |
| 527 | 805 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
| 528 | - <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> |
|
| 806 | + <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'])) { |
|
| 807 | + print 'checked'; |
|
| 808 | +} |
|
| 809 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
| 529 | 810 | <?php } ?> |
| 530 | 811 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
| 531 | - <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['ShowAPRS']) && $_COOKIE['ShowAPRS'] == 'true') || !isset($_COOKIE['ShowAPRS'])) print 'checked'; ?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
| 812 | + <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['ShowAPRS']) && $_COOKIE['ShowAPRS'] == 'true') || !isset($_COOKIE['ShowAPRS'])) { |
|
| 813 | + print 'checked'; |
|
| 814 | +} |
|
| 815 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
| 532 | 816 | <?php } ?> |
| 533 | 817 | <?php |
| 534 | 818 | } |
@@ -545,7 +829,9 @@ discard block |
||
| 545 | 829 | } |
| 546 | 830 | foreach($allairlinenames as $airline) { |
| 547 | 831 | $airline_name = $airline['airline_name']; |
| 548 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
| 832 | + if (strlen($airline_name) > 30) { |
|
| 833 | + $airline_name = substr($airline_name,0,30).'...'; |
|
| 834 | + } |
|
| 549 | 835 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
| 550 | 836 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
| 551 | 837 | } else { |
@@ -563,7 +849,10 @@ discard block |
||
| 563 | 849 | <li><?php echo _("Display alliance:"); ?> |
| 564 | 850 | <br/> |
| 565 | 851 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
| 566 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
| 852 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
| 853 | + echo ' selected'; |
|
| 854 | +} |
|
| 855 | +?>><?php echo _("All"); ?></option> |
|
| 567 | 856 | <?php |
| 568 | 857 | foreach($allalliancenames as $alliance) { |
| 569 | 858 | $alliance_name = $alliance['alliance']; |
@@ -610,10 +899,22 @@ discard block |
||
| 610 | 899 | ?> |
| 611 | 900 | <li><?php echo _("Display airlines of type:"); ?><br/> |
| 612 | 901 | <select class="selectpicker" onchange="airlinestype(this);"> |
| 613 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
| 614 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
| 615 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
| 616 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
| 902 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
| 903 | + echo ' selected'; |
|
| 904 | +} |
|
| 905 | +?>><?php echo _("All"); ?></option> |
|
| 906 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
| 907 | + echo ' selected'; |
|
| 908 | +} |
|
| 909 | +?>><?php echo _("Passenger"); ?></option> |
|
| 910 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
| 911 | + echo ' selected'; |
|
| 912 | +} |
|
| 913 | +?>><?php echo _("Cargo"); ?></option> |
|
| 914 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
| 915 | + echo ' selected'; |
|
| 916 | +} |
|
| 917 | +?>><?php echo _("Military"); ?></option> |
|
| 617 | 918 | </select> |
| 618 | 919 | </li> |
| 619 | 920 | <?php |
@@ -621,7 +922,10 @@ discard block |
||
| 621 | 922 | ?> |
| 622 | 923 | <li> |
| 623 | 924 | <?php echo _("Display flight with ident:"); ?> |
| 624 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
| 925 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
| 926 | + print $_COOKIE['filter_ident']; |
|
| 927 | +} |
|
| 928 | +?>" /> |
|
| 625 | 929 | </li> |
| 626 | 930 | <?php |
| 627 | 931 | } |
@@ -640,7 +944,10 @@ discard block |
||
| 640 | 944 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
| 641 | 945 | <form> |
| 642 | 946 | <ul> |
| 643 | - <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) print 'checked'; ?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
| 947 | + <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) { |
|
| 948 | + print 'checked'; |
|
| 949 | +} |
|
| 950 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
| 644 | 951 | <li><?php echo _("Type:"); ?> |
| 645 | 952 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
| 646 | 953 | <?php |
@@ -648,25 +955,45 @@ discard block |
||
| 648 | 955 | $types = $Satellite->get_tle_types(); |
| 649 | 956 | foreach ($types as $type) { |
| 650 | 957 | $type_name = $type['tle_type']; |
| 651 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
| 652 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
| 653 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
| 654 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
| 655 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
| 656 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
| 657 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
| 658 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
| 659 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
| 660 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
| 661 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
| 662 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
| 663 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
| 664 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
| 665 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
| 666 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
| 667 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
| 668 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
| 669 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
| 958 | + if ($type_name == 'musson') { |
|
| 959 | + $type_name = 'Russian LEO Navigation'; |
|
| 960 | + } else if ($type_name == 'nnss') { |
|
| 961 | + $type_name = 'Navi Navigation Satellite System'; |
|
| 962 | + } else if ($type_name == 'sbas') { |
|
| 963 | + $type_name = 'Satellite-Based Augmentation System'; |
|
| 964 | + } else if ($type_name == 'glo-ops') { |
|
| 965 | + $type_name = 'Glonass Operational'; |
|
| 966 | + } else if ($type_name == 'gps-ops') { |
|
| 967 | + $type_name = 'GPS Operational'; |
|
| 968 | + } else if ($type_name == 'argos') { |
|
| 969 | + $type_name = 'ARGOS Data Collection System'; |
|
| 970 | + } else if ($type_name == 'tdrss') { |
|
| 971 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
| 972 | + } else if ($type_name == 'sarsat') { |
|
| 973 | + $type_name = 'Search & Rescue'; |
|
| 974 | + } else if ($type_name == 'dmc') { |
|
| 975 | + $type_name = 'Disaster Monitoring'; |
|
| 976 | + } else if ($type_name == 'resource') { |
|
| 977 | + $type_name = 'Earth Resources'; |
|
| 978 | + } else if ($type_name == 'stations') { |
|
| 979 | + $type_name = 'Space Stations'; |
|
| 980 | + } else if ($type_name == 'geo') { |
|
| 981 | + $type_name = 'Geostationary'; |
|
| 982 | + } else if ($type_name == 'amateur') { |
|
| 983 | + $type_name = 'Amateur Radio'; |
|
| 984 | + } else if ($type_name == 'x-comm') { |
|
| 985 | + $type_name = 'Experimental'; |
|
| 986 | + } else if ($type_name == 'other-comm') { |
|
| 987 | + $type_name = 'Other Comm'; |
|
| 988 | + } else if ($type_name == 'science') { |
|
| 989 | + $type_name = 'Space & Earth Science'; |
|
| 990 | + } else if ($type_name == 'military') { |
|
| 991 | + $type_name = 'Miscellaneous Military'; |
|
| 992 | + } else if ($type_name == 'radar') { |
|
| 993 | + $type_name = 'Radar Calibration'; |
|
| 994 | + } else if ($type_name == 'tle-new') { |
|
| 995 | + $type_name = 'Last 30 days launches'; |
|
| 996 | + } |
|
| 670 | 997 | |
| 671 | 998 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
| 672 | 999 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |