@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -9,8 +9,10 @@ |
||
| 9 | 9 | if ($airline_icao == '' && isset($_COOKIE['stats_airline_icao'])) { |
| 10 | 10 | $airline_icao = $_COOKIE['stats_airline_icao']; |
| 11 | 11 | } elseif ($airline_icao == '' && isset($globalFilter)) { |
| 12 | - if (isset($globalFilter['airline'])) $airline_icao = $globalFilter['airline'][0]; |
|
| 13 | -} |
|
| 12 | + if (isset($globalFilter['airline'])) { |
|
| 13 | + $airline_icao = $globalFilter['airline'][0]; |
|
| 14 | + } |
|
| 15 | + } |
|
| 14 | 16 | setcookie('stats_airline_icao',$airline_icao); |
| 15 | 17 | |
| 16 | 18 | require_once('header.php'); |
@@ -108,11 +108,26 @@ discard block |
||
| 108 | 108 | <li><div class="checkbox"><label><input type="checkbox" name="notam" value="1" onclick="showNotam();" /><?php echo _("NOTAM"); ?></label></div></li> |
| 109 | 109 | <li><?php echo _("NOTAM scope:"); ?> |
| 110 | 110 | <select class="selectpicker" onchange="notamscope(this);"> |
| 111 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
| 112 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
| 113 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
| 114 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
| 115 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
| 111 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
| 112 | + print ' selected'; |
|
| 113 | +} |
|
| 114 | +?>>All</option> |
|
| 115 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
| 116 | + print ' selected'; |
|
| 117 | +} |
|
| 118 | +?>>Airport/Enroute warning</option> |
|
| 119 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
| 120 | + print ' selected'; |
|
| 121 | +} |
|
| 122 | +?>>Airport warning</option> |
|
| 123 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
| 124 | + print ' selected'; |
|
| 125 | +} |
|
| 126 | +?>>Navigation warning</option> |
|
| 127 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
| 128 | + print ' selected'; |
|
| 129 | +} |
|
| 130 | +?>>Enroute warning</option> |
|
| 116 | 131 | </select |
| 117 | 132 | </li> |
| 118 | 133 | <?php |
@@ -133,7 +148,10 @@ discard block |
||
| 133 | 148 | <div class="form-group"> |
| 134 | 149 | <label>From (UTC):</label> |
| 135 | 150 | <div class='input-group date' id='datetimepicker1'> |
| 136 | - <input type='text' name="start_date" class="form-control" value="<?php if (isset($_COOKIE['archive_begin'])) print date("d/m/Y h:i a",$_COOKIE['archive_begin']); ?>" required /> |
|
| 151 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_COOKIE['archive_begin'])) { |
|
| 152 | + print date("d/m/Y h:i a",$_COOKIE['archive_begin']); |
|
| 153 | +} |
|
| 154 | +?>" required /> |
|
| 137 | 155 | <span class="input-group-addon"> |
| 138 | 156 | <span class="glyphicon glyphicon-calendar"></span> |
| 139 | 157 | </span> |
@@ -142,7 +160,10 @@ discard block |
||
| 142 | 160 | <div class="form-group"> |
| 143 | 161 | <label>To (UTC):</label> |
| 144 | 162 | <div class='input-group date' id='datetimepicker2'> |
| 145 | - <input type='text' name="end_date" class="form-control" value="<?php if (isset($_COOKIE['archive_end'])) print date("d/m/Y h:i a",$_COOKIE['archive_end']); ?>" /> |
|
| 163 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_COOKIE['archive_end'])) { |
|
| 164 | + print date("d/m/Y h:i a",$_COOKIE['archive_end']); |
|
| 165 | +} |
|
| 166 | +?>" /> |
|
| 146 | 167 | <span class="input-group-addon"> |
| 147 | 168 | <span class="glyphicon glyphicon-calendar"></span> |
| 148 | 169 | </span> |
@@ -165,8 +186,18 @@ discard block |
||
| 165 | 186 | |
| 166 | 187 | <li><?php echo _("Playback speed:"); ?> |
| 167 | 188 | <div class="range"> |
| 168 | - <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?>"> |
|
| 169 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
| 189 | + <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_COOKIE['archive_speed'])) { |
|
| 190 | + print $_COOKIE['archive_speed']; |
|
| 191 | +} else { |
|
| 192 | + print '1'; |
|
| 193 | +} |
|
| 194 | +?>"> |
|
| 195 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
| 196 | + print $_COOKIE['archive_speed']; |
|
| 197 | +} else { |
|
| 198 | + print '1'; |
|
| 199 | +} |
|
| 200 | +?></output> |
|
| 170 | 201 | </div> |
| 171 | 202 | </li> |
| 172 | 203 | |
@@ -187,15 +218,27 @@ discard block |
||
| 187 | 218 | <li><?php echo _("Type of Map:"); ?> |
| 188 | 219 | <select class="selectpicker" onchange="mapType(this);"> |
| 189 | 220 | <?php |
| 190 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
| 191 | - else $MapType = $_COOKIE['MapType']; |
|
| 221 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
| 222 | + $MapType = $globalMapProvider; |
|
| 223 | + } else { |
|
| 224 | + $MapType = $_COOKIE['MapType']; |
|
| 225 | + } |
|
| 192 | 226 | ?> |
| 193 | 227 | <?php |
| 194 | 228 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
| 195 | 229 | ?> |
| 196 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
| 197 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
| 198 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
| 230 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
| 231 | + print ' selected'; |
|
| 232 | +} |
|
| 233 | +?>>Bing-Aerial</option> |
|
| 234 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
| 235 | + print ' selected'; |
|
| 236 | +} |
|
| 237 | +?>>Bing-Hybrid</option> |
|
| 238 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
| 239 | + print ' selected'; |
|
| 240 | +} |
|
| 241 | +?>>Bing-Road</option> |
|
| 199 | 242 | <?php |
| 200 | 243 | } |
| 201 | 244 | ?> |
@@ -205,56 +248,131 @@ discard block |
||
| 205 | 248 | <?php |
| 206 | 249 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
| 207 | 250 | ?> |
| 208 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
| 209 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
| 210 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
| 251 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
| 252 | + print ' selected'; |
|
| 253 | +} |
|
| 254 | +?>>Here-Aerial</option> |
|
| 255 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
| 256 | + print ' selected'; |
|
| 257 | +} |
|
| 258 | +?>>Here-Hybrid</option> |
|
| 259 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
| 260 | + print ' selected'; |
|
| 261 | +} |
|
| 262 | +?>>Here-Road</option> |
|
| 211 | 263 | <?php |
| 212 | 264 | } |
| 213 | 265 | ?> |
| 214 | 266 | <?php |
| 215 | 267 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
| 216 | 268 | ?> |
| 217 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
| 218 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
| 219 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
| 220 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
| 269 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
| 270 | + print ' selected'; |
|
| 271 | +} |
|
| 272 | +?>>Google Roadmap</option> |
|
| 273 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
| 274 | + print ' selected'; |
|
| 275 | +} |
|
| 276 | +?>>Google Satellite</option> |
|
| 277 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
| 278 | + print ' selected'; |
|
| 279 | +} |
|
| 280 | +?>>Google Hybrid</option> |
|
| 281 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
| 282 | + print ' selected'; |
|
| 283 | +} |
|
| 284 | +?>>Google Terrain</option> |
|
| 221 | 285 | <?php |
| 222 | 286 | } |
| 223 | 287 | ?> |
| 224 | 288 | <?php |
| 225 | 289 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
| 226 | 290 | ?> |
| 227 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
| 228 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
| 229 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
| 291 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
| 292 | + print ' selected'; |
|
| 293 | +} |
|
| 294 | +?>>MapQuest-OSM</option> |
|
| 295 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
| 296 | + print ' selected'; |
|
| 297 | +} |
|
| 298 | +?>>MapQuest-Aerial</option> |
|
| 299 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
| 300 | + print ' selected'; |
|
| 301 | +} |
|
| 302 | +?>>MapQuest-Hybrid</option> |
|
| 230 | 303 | <?php |
| 231 | 304 | } |
| 232 | 305 | ?> |
| 233 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
| 306 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
| 307 | + print ' selected'; |
|
| 308 | +} |
|
| 309 | +?>>Yandex</option> |
|
| 234 | 310 | <?php |
| 235 | 311 | } |
| 236 | 312 | ?> |
| 237 | 313 | <?php |
| 238 | 314 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
| 239 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
| 240 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
| 315 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
| 316 | + $MapBoxId = 'default'; |
|
| 317 | + } else { |
|
| 318 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
| 319 | + } |
|
| 241 | 320 | ?> |
| 242 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
| 243 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
| 244 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
| 245 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
| 246 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
| 247 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
| 248 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
| 249 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
| 250 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
| 251 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
| 252 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
| 253 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
| 321 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
| 322 | + print ' selected'; |
|
| 323 | +} |
|
| 324 | +?>>Mapbox default</option> |
|
| 325 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
| 326 | + print ' selected'; |
|
| 327 | +} |
|
| 328 | +?>>Mapbox streets</option> |
|
| 329 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
| 330 | + print ' selected'; |
|
| 331 | +} |
|
| 332 | +?>>Mapbox light</option> |
|
| 333 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
| 334 | + print ' selected'; |
|
| 335 | +} |
|
| 336 | +?>>Mapbox dark</option> |
|
| 337 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
| 338 | + print ' selected'; |
|
| 339 | +} |
|
| 340 | +?>>Mapbox satellite</option> |
|
| 341 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
| 342 | + print ' selected'; |
|
| 343 | +} |
|
| 344 | +?>>Mapbox streets-satellite</option> |
|
| 345 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
| 346 | + print ' selected'; |
|
| 347 | +} |
|
| 348 | +?>>Mapbox streets-basic</option> |
|
| 349 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
| 350 | + print ' selected'; |
|
| 351 | +} |
|
| 352 | +?>>Mapbox comic</option> |
|
| 353 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
| 354 | + print ' selected'; |
|
| 355 | +} |
|
| 356 | +?>>Mapbox outdoors</option> |
|
| 357 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
| 358 | + print ' selected'; |
|
| 359 | +} |
|
| 360 | +?>>Mapbox pencil</option> |
|
| 361 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
| 362 | + print ' selected'; |
|
| 363 | +} |
|
| 364 | +?>>Mapbox pirates</option> |
|
| 365 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
| 366 | + print ' selected'; |
|
| 367 | +} |
|
| 368 | +?>>Mapbox emerald</option> |
|
| 254 | 369 | <?php |
| 255 | 370 | } |
| 256 | 371 | ?> |
| 257 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
| 372 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
| 373 | + print ' selected'; |
|
| 374 | +} |
|
| 375 | +?>>OpenStreetMap</option> |
|
| 258 | 376 | </select> |
| 259 | 377 | </li> |
| 260 | 378 | <?php |
@@ -262,9 +380,18 @@ discard block |
||
| 262 | 380 | ?> |
| 263 | 381 | <li><?php echo _("Type of Terrain:"); ?> |
| 264 | 382 | <select class="selectpicker" onchange="terrainType(this);"> |
| 265 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
| 266 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
| 267 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
| 383 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
| 384 | + print ' selected'; |
|
| 385 | +} |
|
| 386 | +?>>stk terrain</option> |
|
| 387 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
| 388 | + print ' selected'; |
|
| 389 | +} |
|
| 390 | +?>>ellipsoid</option> |
|
| 391 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
| 392 | + print ' selected'; |
|
| 393 | +} |
|
| 394 | +?>>vr terrain</option> |
|
| 268 | 395 | </select> |
| 269 | 396 | </li> |
| 270 | 397 | <?php |
@@ -274,18 +401,36 @@ discard block |
||
| 274 | 401 | if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
| 275 | 402 | ?> |
| 276 | 403 | |
| 277 | - <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> |
|
| 278 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true') || !isset($_COOKIE['flightpath'])) print 'checked'; ?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
| 279 | - <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || !isset($_COOKIE['MapRoute'])) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
| 280 | - <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> |
|
| 404 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
| 405 | + print 'checked'; |
|
| 406 | +} |
|
| 407 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
| 408 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true') || !isset($_COOKIE['flightpath'])) { |
|
| 409 | + print 'checked'; |
|
| 410 | +} |
|
| 411 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
| 412 | + <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || !isset($_COOKIE['MapRoute'])) { |
|
| 413 | + print 'checked'; |
|
| 414 | +} |
|
| 415 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
| 416 | + <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)) { |
|
| 417 | + print 'checked'; |
|
| 418 | +} |
|
| 419 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
| 281 | 420 | <?php |
| 282 | 421 | } |
| 283 | 422 | ?> |
| 284 | - <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true') print 'checked'; ?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
| 423 | + <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true') { |
|
| 424 | + print 'checked'; |
|
| 425 | +} |
|
| 426 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
| 285 | 427 | <?php |
| 286 | 428 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
| 287 | 429 | ?> |
| 288 | - <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> |
|
| 430 | + <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')) { |
|
| 431 | + print 'checked'; |
|
| 432 | +} |
|
| 433 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
| 289 | 434 | <?php |
| 290 | 435 | } |
| 291 | 436 | ?> |
@@ -294,17 +439,25 @@ discard block |
||
| 294 | 439 | if (function_exists('array_column')) { |
| 295 | 440 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
| 296 | 441 | ?> |
| 297 | - <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> |
|
| 442 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
| 443 | + print 'checked'; |
|
| 444 | +} |
|
| 445 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
| 298 | 446 | <?php |
| 299 | 447 | } |
| 300 | 448 | } elseif (isset($globalSources)) { |
| 301 | 449 | $dispolar = false; |
| 302 | 450 | foreach ($globalSources as $testsource) { |
| 303 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
| 451 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
| 452 | + $dispolar = true; |
|
| 453 | + } |
|
| 304 | 454 | } |
| 305 | 455 | if ($dispolar) { |
| 306 | 456 | ?> |
| 307 | - <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> |
|
| 457 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
| 458 | + print 'checked'; |
|
| 459 | +} |
|
| 460 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
| 308 | 461 | <?php |
| 309 | 462 | } |
| 310 | 463 | } |
@@ -316,12 +469,22 @@ discard block |
||
| 316 | 469 | <?php |
| 317 | 470 | if (extension_loaded('gd') && function_exists('gd_info')) { |
| 318 | 471 | ?> |
| 319 | - <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> |
|
| 472 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
| 473 | + print 'checked'; |
|
| 474 | +} |
|
| 475 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
| 320 | 476 | <?php |
| 321 | 477 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
| 322 | 478 | ?> |
| 323 | 479 | <li><?php echo _("Aircraft icon color:"); ?> |
| 324 | - <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'; ?>"> |
|
| 480 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
| 481 | + print $_COOKIE['IconColor']; |
|
| 482 | +} elseif (isset($globalAircraftIconColor)) { |
|
| 483 | + print $globalAircraftIconColor; |
|
| 484 | +} else { |
|
| 485 | + print '1a3151'; |
|
| 486 | +} |
|
| 487 | +?>"> |
|
| 325 | 488 | </li> |
| 326 | 489 | <?php |
| 327 | 490 | } |
@@ -329,8 +492,22 @@ discard block |
||
| 329 | 492 | ?> |
| 330 | 493 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
| 331 | 494 | <div class="range"> |
| 332 | - <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'; ?>"> |
|
| 333 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
| 495 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
| 496 | + print $_COOKIE['AirportZoom']; |
|
| 497 | +} elseif (isset($globalAirportZoom)) { |
|
| 498 | + print $globalAirportZoom; |
|
| 499 | +} else { |
|
| 500 | + print '7'; |
|
| 501 | +} |
|
| 502 | +?>"> |
|
| 503 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
| 504 | + print $_COOKIE['AirportZoom']; |
|
| 505 | +} elseif (isset($globalAirportZoom)) { |
|
| 506 | + print $globalAirportZoom; |
|
| 507 | +} else { |
|
| 508 | + print '7'; |
|
| 509 | +} |
|
| 510 | +?></output> |
|
| 334 | 511 | </div> |
| 335 | 512 | </li> |
| 336 | 513 | <?php |
@@ -339,9 +516,18 @@ discard block |
||
| 339 | 516 | <?php |
| 340 | 517 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
| 341 | 518 | ?> |
| 342 | - <?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 } ?> |
|
| 343 | - <?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 } ?> |
|
| 344 | - <?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 } ?> |
|
| 519 | + <?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'])) { |
|
| 520 | + print 'checked'; |
|
| 521 | +} |
|
| 522 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
| 523 | + <?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'])) { |
|
| 524 | + print 'checked'; |
|
| 525 | +} |
|
| 526 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
| 527 | + <?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'])) { |
|
| 528 | + print 'checked'; |
|
| 529 | +} |
|
| 530 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
| 345 | 531 | <?php |
| 346 | 532 | } |
| 347 | 533 | ?> |
@@ -349,10 +535,16 @@ discard block |
||
| 349 | 535 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
| 350 | 536 | ?> |
| 351 | 537 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
| 352 | - <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> |
|
| 538 | + <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'])) { |
|
| 539 | + print 'checked'; |
|
| 540 | +} |
|
| 541 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
| 353 | 542 | <?php } ?> |
| 354 | 543 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
| 355 | - <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> |
|
| 544 | + <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'])) { |
|
| 545 | + print 'checked'; |
|
| 546 | +} |
|
| 547 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
| 356 | 548 | <?php } ?> |
| 357 | 549 | <?php |
| 358 | 550 | } |
@@ -363,7 +555,9 @@ discard block |
||
| 363 | 555 | $Spotter = new Spotter(); |
| 364 | 556 | foreach($Spotter->getAllAirlineNames() as $airline) { |
| 365 | 557 | $airline_name = $airline['airline_name']; |
| 366 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
| 558 | + if (strlen($airline_name) > 30) { |
|
| 559 | + $airline_name = substr($airline_name,0,30).'...'; |
|
| 560 | + } |
|
| 367 | 561 | if (isset($_COOKIE['Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['Airlines']))) { |
| 368 | 562 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
| 369 | 563 | } else { |
@@ -398,10 +592,22 @@ discard block |
||
| 398 | 592 | ?> |
| 399 | 593 | <li><?php echo _("Display airlines of type:"); ?> |
| 400 | 594 | <select class="selectpicker" onchange="airlinestype(this);"> |
| 401 | - <option value="all"<?php if (!isset($_COOKIE['airlinestype']) || $_COOKIE['airlinestype'] == 'all' || $_COOKIE['airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
| 402 | - <option value="passenger"<?php if (isset($_COOKIE['airlinestype']) && $_COOKIE['airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
| 403 | - <option value="cargo"<?php if (isset($_COOKIE['airlinestype']) && $_COOKIE['airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
| 404 | - <option value="military"<?php if (isset($_COOKIE['airlinestype']) && $_COOKIE['airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
| 595 | + <option value="all"<?php if (!isset($_COOKIE['airlinestype']) || $_COOKIE['airlinestype'] == 'all' || $_COOKIE['airlinestype'] == '') { |
|
| 596 | + echo ' selected'; |
|
| 597 | +} |
|
| 598 | +?>><?php echo _("All"); ?></option> |
|
| 599 | + <option value="passenger"<?php if (isset($_COOKIE['airlinestype']) && $_COOKIE['airlinestype'] == 'passenger') { |
|
| 600 | + echo ' selected'; |
|
| 601 | +} |
|
| 602 | +?>><?php echo _("Passenger"); ?></option> |
|
| 603 | + <option value="cargo"<?php if (isset($_COOKIE['airlinestype']) && $_COOKIE['airlinestype'] == 'cargo') { |
|
| 604 | + echo ' selected'; |
|
| 605 | +} |
|
| 606 | +?>><?php echo _("Cargo"); ?></option> |
|
| 607 | + <option value="military"<?php if (isset($_COOKIE['airlinestype']) && $_COOKIE['airlinestype'] == 'military') { |
|
| 608 | + echo ' selected'; |
|
| 609 | +} |
|
| 610 | +?>><?php echo _("Military"); ?></option> |
|
| 405 | 611 | </select> |
| 406 | 612 | </li> |
| 407 | 613 | <?php |
@@ -409,22 +615,46 @@ discard block |
||
| 409 | 615 | ?> |
| 410 | 616 | <li><?php echo _("Distance unit:"); ?> |
| 411 | 617 | <select class="selectpicker" onchange="unitdistance(this);"> |
| 412 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
| 413 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
| 414 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
| 618 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
| 619 | + echo ' selected'; |
|
| 620 | +} |
|
| 621 | +?>>km</option> |
|
| 622 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
| 623 | + echo ' selected'; |
|
| 624 | +} |
|
| 625 | +?>>nm</option> |
|
| 626 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
| 627 | + echo ' selected'; |
|
| 628 | +} |
|
| 629 | +?>>mi</option> |
|
| 415 | 630 | </select> |
| 416 | 631 | </li> |
| 417 | 632 | <li><?php echo _("Altitude unit:"); ?> |
| 418 | 633 | <select class="selectpicker" onchange="unitaltitude(this);"> |
| 419 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
| 420 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
| 634 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
| 635 | + echo ' selected'; |
|
| 636 | +} |
|
| 637 | +?>>m</option> |
|
| 638 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
| 639 | + echo ' selected'; |
|
| 640 | +} |
|
| 641 | +?>>feet</option> |
|
| 421 | 642 | </select> |
| 422 | 643 | </li> |
| 423 | 644 | <li><?php echo _("Speed unit:"); ?> |
| 424 | 645 | <select class="selectpicker" onchange="unitspeed(this);"> |
| 425 | - <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> |
|
| 426 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
| 427 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
| 646 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
| 647 | + echo ' selected'; |
|
| 648 | +} |
|
| 649 | +?>>km/h</option> |
|
| 650 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
| 651 | + echo ' selected'; |
|
| 652 | +} |
|
| 653 | +?>>mph</option> |
|
| 654 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
| 655 | + echo ' selected'; |
|
| 656 | +} |
|
| 657 | +?>>knots</option> |
|
| 428 | 658 | </select> |
| 429 | 659 | </li> |
| 430 | 660 | </ul> |
@@ -438,7 +668,10 @@ discard block |
||
| 438 | 668 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
| 439 | 669 | <form> |
| 440 | 670 | <ul> |
| 441 | - <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if (isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') print 'checked'; ?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
| 671 | + <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if (isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') { |
|
| 672 | + print 'checked'; |
|
| 673 | +} |
|
| 674 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
| 442 | 675 | <li><?php echo _("Type:"); ?> |
| 443 | 676 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
| 444 | 677 | <?php |
@@ -446,25 +679,45 @@ discard block |
||
| 446 | 679 | $types = $Satellite->get_tle_types(); |
| 447 | 680 | foreach ($types as $type) { |
| 448 | 681 | $type_name = $type['tle_type']; |
| 449 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
| 450 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
| 451 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
| 452 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
| 453 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
| 454 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
| 455 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
| 456 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
| 457 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
| 458 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
| 459 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
| 460 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
| 461 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
| 462 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
| 463 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
| 464 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
| 465 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
| 466 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
| 467 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
| 682 | + if ($type_name == 'musson') { |
|
| 683 | + $type_name = 'Russian LEO Navigation'; |
|
| 684 | + } else if ($type_name == 'nnss') { |
|
| 685 | + $type_name = 'Navi Navigation Satellite System'; |
|
| 686 | + } else if ($type_name == 'sbas') { |
|
| 687 | + $type_name = 'Satellite-Based Augmentation System'; |
|
| 688 | + } else if ($type_name == 'glo-ops') { |
|
| 689 | + $type_name = 'Glonass Operational'; |
|
| 690 | + } else if ($type_name == 'gps-ops') { |
|
| 691 | + $type_name = 'GPS Operational'; |
|
| 692 | + } else if ($type_name == 'argos') { |
|
| 693 | + $type_name = 'ARGOS Data Collection System'; |
|
| 694 | + } else if ($type_name == 'tdrss') { |
|
| 695 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
| 696 | + } else if ($type_name == 'sarsat') { |
|
| 697 | + $type_name = 'Search & Rescue'; |
|
| 698 | + } else if ($type_name == 'dmc') { |
|
| 699 | + $type_name = 'Disaster Monitoring'; |
|
| 700 | + } else if ($type_name == 'resource') { |
|
| 701 | + $type_name = 'Earth Resources'; |
|
| 702 | + } else if ($type_name == 'stations') { |
|
| 703 | + $type_name = 'Space Stations'; |
|
| 704 | + } else if ($type_name == 'geo') { |
|
| 705 | + $type_name = 'Geostationary'; |
|
| 706 | + } else if ($type_name == 'amateur') { |
|
| 707 | + $type_name = 'Amateur Radio'; |
|
| 708 | + } else if ($type_name == 'x-comm') { |
|
| 709 | + $type_name = 'Experimental'; |
|
| 710 | + } else if ($type_name == 'other-comm') { |
|
| 711 | + $type_name = 'Other Comm'; |
|
| 712 | + } else if ($type_name == 'science') { |
|
| 713 | + $type_name = 'Space & Earth Science'; |
|
| 714 | + } else if ($type_name == 'military') { |
|
| 715 | + $type_name = 'Miscellaneous Military'; |
|
| 716 | + } else if ($type_name == 'radar') { |
|
| 717 | + $type_name = 'Radar Calibration'; |
|
| 718 | + } else if ($type_name == 'tle-new') { |
|
| 719 | + $type_name = 'Last 30 days launches'; |
|
| 720 | + } |
|
| 468 | 721 | |
| 469 | 722 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
| 470 | 723 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |