@@ -57,7 +57,10 @@ discard block |
||
57 | 57 | <?php |
58 | 58 | if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
59 | 59 | ?> |
60 | -<script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script> |
|
60 | +<script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) { |
|
61 | + print '?tsk='.$tsk; |
|
62 | +} |
|
63 | +?>"></script> |
|
61 | 64 | <script src="<?php echo $globalURL; ?>/js/meuusjs.1.0.3.min.js"></script> |
62 | 65 | <script src="<?php echo $globalURL; ?>/js/map.3d.weather.js"></script> |
63 | 66 | <?php |
@@ -137,10 +140,22 @@ discard block |
||
137 | 140 | <h1>Weather</h1> |
138 | 141 | <ul> |
139 | 142 | |
140 | - <li><div class="checkbox"><label><input type="checkbox" name="wind" value="1" onclick="clickWind(this);" <?php if (isset($_COOKIE['weather_wind']) && $_COOKIE['weather_wind'] == 'true') print 'checked'; ?> /><?php echo _("Weather Winds"); ?></label></div></li> |
|
141 | - <li><div class="checkbox"><label><input type="checkbox" name="wave" value="1" onclick="clickWave(this);" <?php if (isset($_COOKIE['weather_wave']) && $_COOKIE['weather_wave'] == 'true') print 'checked'; ?> /><?php echo _("Ocean surface currents"); ?></label></div></li> |
|
142 | - <li><div class="checkbox"><label><input type="checkbox" name="fire" value="1" onclick="clickFire(this);" <?php if (isset($_COOKIE['weather_fire']) && $_COOKIE['weather_fire'] == 'true') print 'checked'; ?> /><?php echo _("NASA Fire Hotspots"); ?></label></div></li> |
|
143 | - <!-- <li><div class="checkbox"><label><input type="checkbox" name="backwave" value="1" onclick="clickBackWave(this);" <?php if (isset($_COOKIE['weather_backwave']) && $_COOKIE['weather_backwave'] == 'true') print 'checked'; ?> /><?php echo _("Weather Waves height background"); ?></label></div></li> --> |
|
143 | + <li><div class="checkbox"><label><input type="checkbox" name="wind" value="1" onclick="clickWind(this);" <?php if (isset($_COOKIE['weather_wind']) && $_COOKIE['weather_wind'] == 'true') { |
|
144 | + print 'checked'; |
|
145 | +} |
|
146 | +?> /><?php echo _("Weather Winds"); ?></label></div></li> |
|
147 | + <li><div class="checkbox"><label><input type="checkbox" name="wave" value="1" onclick="clickWave(this);" <?php if (isset($_COOKIE['weather_wave']) && $_COOKIE['weather_wave'] == 'true') { |
|
148 | + print 'checked'; |
|
149 | +} |
|
150 | +?> /><?php echo _("Ocean surface currents"); ?></label></div></li> |
|
151 | + <li><div class="checkbox"><label><input type="checkbox" name="fire" value="1" onclick="clickFire(this);" <?php if (isset($_COOKIE['weather_fire']) && $_COOKIE['weather_fire'] == 'true') { |
|
152 | + print 'checked'; |
|
153 | +} |
|
154 | +?> /><?php echo _("NASA Fire Hotspots"); ?></label></div></li> |
|
155 | + <!-- <li><div class="checkbox"><label><input type="checkbox" name="backwave" value="1" onclick="clickBackWave(this);" <?php if (isset($_COOKIE['weather_backwave']) && $_COOKIE['weather_backwave'] == 'true') { |
|
156 | + print 'checked'; |
|
157 | +} |
|
158 | +?> /><?php echo _("Weather Waves height background"); ?></label></div></li> --> |
|
144 | 159 | |
145 | 160 | <?php |
146 | 161 | if (isset($globalOpenWeatherMapKey) && $globalOpenWeatherMapKey != '') { |
@@ -162,12 +177,18 @@ discard block |
||
162 | 177 | <?php |
163 | 178 | if (isset($globalMETAR) && isset($globalMETARcycle) && $globalMETAR && $globalMETARcycle) { |
164 | 179 | ?> |
165 | - <li><div class="checkbox"><label><input type="checkbox" name="displayweather" value="1" onclick="clickDisplayWeather(this)" <?php if ((isset($_COOKIE['show_Weather']) && $_COOKIE['show_Weather'] == 'true') || (!isset($_COOKIE['show_Weather']) && (isset($globalMapWeather) && $globalMapWeather === TRUE))) print 'checked'; ?> ><?php echo _("Display 3D weather"); ?></label></div></li> |
|
180 | + <li><div class="checkbox"><label><input type="checkbox" name="displayweather" value="1" onclick="clickDisplayWeather(this)" <?php if ((isset($_COOKIE['show_Weather']) && $_COOKIE['show_Weather'] == 'true') || (!isset($_COOKIE['show_Weather']) && (isset($globalMapWeather) && $globalMapWeather === TRUE))) { |
|
181 | + print 'checked'; |
|
182 | +} |
|
183 | +?> ><?php echo _("Display 3D weather"); ?></label></div></li> |
|
166 | 184 | <!-- <li><div class="checkbox"><label><input type="checkbox" name="displayrain" value="1" onclick="clickDisplayRain(this)" ><?php echo _("Display rain on 3D map"); ?></label></div></li>--> |
167 | 185 | <?php |
168 | 186 | } |
169 | 187 | ?> |
170 | - <li><div class="checkbox"><label><input type="checkbox" name="fire" value="1" onclick="clickFire(this);" <?php if (isset($_COOKIE['weather_fire']) && $_COOKIE['weather_fire'] == 'true') print 'checked'; ?> /><?php echo _("NASA Fire Hotspots"); ?></label></div></li> |
|
188 | + <li><div class="checkbox"><label><input type="checkbox" name="fire" value="1" onclick="clickFire(this);" <?php if (isset($_COOKIE['weather_fire']) && $_COOKIE['weather_fire'] == 'true') { |
|
189 | + print 'checked'; |
|
190 | +} |
|
191 | +?> /><?php echo _("NASA Fire Hotspots"); ?></label></div></li> |
|
171 | 192 | </ul> |
172 | 193 | <?php |
173 | 194 | } |
@@ -183,13 +204,22 @@ discard block |
||
183 | 204 | <?php |
184 | 205 | if (!isset($globalAircraft) || $globalAircraft) { |
185 | 206 | ?> |
186 | - <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') print 'checked'; ?> /><?php echo _("Display waypoints"); ?></label></div></li> |
|
187 | - <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') print 'checked'; ?> /><?php echo _("Display airspace"); ?></label></div></li> |
|
207 | + <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') { |
|
208 | + print 'checked'; |
|
209 | +} |
|
210 | +?> /><?php echo _("Display waypoints"); ?></label></div></li> |
|
211 | + <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') { |
|
212 | + print 'checked'; |
|
213 | +} |
|
214 | +?> /><?php echo _("Display airspace"); ?></label></div></li> |
|
188 | 215 | <?php |
189 | 216 | } |
190 | 217 | if (isset($globalMarine) && $globalMarine) { |
191 | 218 | ?> |
192 | - <li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') print 'checked'; ?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li> |
|
219 | + <li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') { |
|
220 | + print 'checked'; |
|
221 | +} |
|
222 | +?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li> |
|
193 | 223 | <?php |
194 | 224 | } |
195 | 225 | ?> |
@@ -204,13 +234,22 @@ discard block |
||
204 | 234 | <?php |
205 | 235 | if (!isset($globalAircraft) || $globalAircraft) { |
206 | 236 | ?> |
207 | - <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') print 'checked'; ?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li> |
|
208 | - <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') print 'checked'; ?> /><?php echo _("Display airspace"); ?> Beta</label></div></li> |
|
237 | + <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') { |
|
238 | + print 'checked'; |
|
239 | +} |
|
240 | +?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li> |
|
241 | + <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') { |
|
242 | + print 'checked'; |
|
243 | +} |
|
244 | +?> /><?php echo _("Display airspace"); ?> Beta</label></div></li> |
|
209 | 245 | <?php |
210 | 246 | } |
211 | 247 | if (isset($globalMarine) && $globalMarine) { |
212 | 248 | ?> |
213 | - <li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') print 'checked'; ?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li> |
|
249 | + <li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') { |
|
250 | + print 'checked'; |
|
251 | +} |
|
252 | +?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li> |
|
214 | 253 | <?php |
215 | 254 | } |
216 | 255 | ?> |
@@ -225,14 +264,32 @@ discard block |
||
225 | 264 | <h1>NOTAM</h1> |
226 | 265 | <form> |
227 | 266 | <ul> |
228 | - <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') print 'checked'; ?> /><?php echo _("Display NOTAM"); ?></label></div></li> |
|
267 | + <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') { |
|
268 | + print 'checked'; |
|
269 | +} |
|
270 | +?> /><?php echo _("Display NOTAM"); ?></label></div></li> |
|
229 | 271 | <li><?php echo _("NOTAM scope:"); ?> |
230 | 272 | <select class="selectpicker" onchange="notamscope(this);"> |
231 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
232 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
233 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
234 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
235 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
273 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
274 | + print ' selected'; |
|
275 | +} |
|
276 | +?>>All</option> |
|
277 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
278 | + print ' selected'; |
|
279 | +} |
|
280 | +?>>Airport/Enroute warning</option> |
|
281 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
282 | + print ' selected'; |
|
283 | +} |
|
284 | +?>>Airport warning</option> |
|
285 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
286 | + print ' selected'; |
|
287 | +} |
|
288 | +?>>Navigation warning</option> |
|
289 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
290 | + print ' selected'; |
|
291 | +} |
|
292 | +?>>Enroute warning</option> |
|
236 | 293 | </select |
237 | 294 | </li> |
238 | 295 | </ul> |
@@ -260,7 +317,10 @@ discard block |
||
260 | 317 | <div class="form-group"> |
261 | 318 | <label><?php echo _("From:"); ?></label> |
262 | 319 | <div class='input-group date' id='datetimepicker1'> |
263 | - <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC'; ?>" required /> |
|
320 | + <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') { |
|
321 | + print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC'; |
|
322 | +} |
|
323 | +?>" required /> |
|
264 | 324 | <span class="input-group-addon"> |
265 | 325 | <span class="glyphicon glyphicon-calendar"></span> |
266 | 326 | </span> |
@@ -269,7 +329,10 @@ discard block |
||
269 | 329 | <div class="form-group"> |
270 | 330 | <label><?php echo _("To:"); ?></label> |
271 | 331 | <div class='input-group date' id='datetimepicker2'> |
272 | - <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC'; ?>" /> |
|
332 | + <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') { |
|
333 | + print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC'; |
|
334 | +} |
|
335 | +?>" /> |
|
273 | 336 | <span class="input-group-addon"> |
274 | 337 | <span class="glyphicon glyphicon-calendar"></span> |
275 | 338 | </span> |
@@ -301,8 +364,20 @@ discard block |
||
301 | 364 | </script> |
302 | 365 | <li><?php echo _("Playback speed:"); ?> |
303 | 366 | <div class="range"> |
304 | - <input type="range" min="0" max="50" step="1" id="archivespeed" 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'; ?>"> |
|
305 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
367 | + <input type="range" min="0" max="50" step="1" id="archivespeed" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
368 | + print $_POST['archivespeed']; |
|
369 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
370 | + print $_COOKIE['archive_speed']; |
|
371 | +} else { |
|
372 | + print '1'; |
|
373 | +} |
|
374 | +?>"> |
|
375 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
376 | + print $_COOKIE['archive_speed']; |
|
377 | +} else { |
|
378 | + print '1'; |
|
379 | +} |
|
380 | +?></output> |
|
306 | 381 | </div> |
307 | 382 | </li> |
308 | 383 | <?php |
@@ -331,14 +406,20 @@ discard block |
||
331 | 406 | <li><?php echo _("Type of Map:"); ?> |
332 | 407 | <?php |
333 | 408 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
334 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
335 | - else $MapType = $_COOKIE['MapType']; |
|
409 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
410 | + $MapType = $globalMapProvider; |
|
411 | + } else { |
|
412 | + $MapType = $_COOKIE['MapType']; |
|
413 | + } |
|
336 | 414 | ?> |
337 | 415 | <select class="selectpicker" onchange="mapType(this);"> |
338 | 416 | <?php |
339 | 417 | } else { |
340 | - if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') $MapType = $globalMapProvider; |
|
341 | - else $MapType = $_COOKIE['MapType3D']; |
|
418 | + if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') { |
|
419 | + $MapType = $globalMapProvider; |
|
420 | + } else { |
|
421 | + $MapType = $_COOKIE['MapType3D']; |
|
422 | + } |
|
342 | 423 | ?> |
343 | 424 | <select class="selectpicker" onchange="mapType3D(this);"> |
344 | 425 | <?php |
@@ -347,24 +428,48 @@ discard block |
||
347 | 428 | <?php |
348 | 429 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
349 | 430 | ?> |
350 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
|
431 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
432 | + print ' selected'; |
|
433 | +} |
|
434 | +?>>Natural Earth (local)</option> |
|
351 | 435 | <?php |
352 | 436 | } else { |
353 | 437 | if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
354 | 438 | ?> |
355 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
|
439 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
440 | + print ' selected'; |
|
441 | +} |
|
442 | +?>>Natural Earth (local)</option> |
|
356 | 443 | <?php |
357 | 444 | } |
358 | 445 | ?> |
359 | - <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option> |
|
360 | - <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option> |
|
361 | - <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') print ' selected'; ?>>ArcGIS Ocean</option> |
|
446 | + <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') { |
|
447 | + print ' selected'; |
|
448 | +} |
|
449 | +?>>ArcGIS Streetmap</option> |
|
450 | + <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') { |
|
451 | + print ' selected'; |
|
452 | +} |
|
453 | +?>>ArcGIS Satellite</option> |
|
454 | + <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') { |
|
455 | + print ' selected'; |
|
456 | +} |
|
457 | +?>>ArcGIS Ocean</option> |
|
362 | 458 | <?php |
363 | 459 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
364 | 460 | ?> |
365 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
366 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
367 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
461 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
462 | + print ' selected'; |
|
463 | +} |
|
464 | +?>>Bing-Aerial</option> |
|
465 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
466 | + print ' selected'; |
|
467 | +} |
|
468 | +?>>Bing-Hybrid</option> |
|
469 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
470 | + print ' selected'; |
|
471 | +} |
|
472 | +?>>Bing-Road</option> |
|
368 | 473 | <?php |
369 | 474 | } |
370 | 475 | ?> |
@@ -374,59 +479,143 @@ discard block |
||
374 | 479 | <?php |
375 | 480 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
376 | 481 | ?> |
377 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
378 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
379 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
482 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
483 | + print ' selected'; |
|
484 | +} |
|
485 | +?>>Here-Aerial</option> |
|
486 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
487 | + print ' selected'; |
|
488 | +} |
|
489 | +?>>Here-Hybrid</option> |
|
490 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
491 | + print ' selected'; |
|
492 | +} |
|
493 | +?>>Here-Road</option> |
|
380 | 494 | <?php |
381 | 495 | } |
382 | 496 | ?> |
383 | 497 | <?php |
384 | 498 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
385 | 499 | ?> |
386 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
387 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
388 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
389 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
500 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
501 | + print ' selected'; |
|
502 | +} |
|
503 | +?>>Google Roadmap</option> |
|
504 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
505 | + print ' selected'; |
|
506 | +} |
|
507 | +?>>Google Satellite</option> |
|
508 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
509 | + print ' selected'; |
|
510 | +} |
|
511 | +?>>Google Hybrid</option> |
|
512 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
513 | + print ' selected'; |
|
514 | +} |
|
515 | +?>>Google Terrain</option> |
|
390 | 516 | <?php |
391 | 517 | } |
392 | 518 | ?> |
393 | 519 | <?php |
394 | 520 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
395 | 521 | ?> |
396 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
397 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
398 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
522 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
523 | + print ' selected'; |
|
524 | +} |
|
525 | +?>>MapQuest-OSM</option> |
|
526 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
527 | + print ' selected'; |
|
528 | +} |
|
529 | +?>>MapQuest-Aerial</option> |
|
530 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
531 | + print ' selected'; |
|
532 | +} |
|
533 | +?>>MapQuest-Hybrid</option> |
|
399 | 534 | <?php |
400 | 535 | } |
401 | 536 | ?> |
402 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
403 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
|
537 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
538 | + print ' selected'; |
|
539 | +} |
|
540 | +?>>Yandex</option> |
|
541 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
542 | + print ' selected'; |
|
543 | +} |
|
544 | +?>>Natural Earth</option> |
|
404 | 545 | <?php |
405 | 546 | } |
406 | 547 | ?> |
407 | - <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option> |
|
548 | + <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') { |
|
549 | + print ' selected'; |
|
550 | +} |
|
551 | +?>>National Geographic Street</option> |
|
408 | 552 | <?php |
409 | 553 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
410 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
411 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
554 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
555 | + $MapBoxId = 'default'; |
|
556 | + } else { |
|
557 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
558 | + } |
|
412 | 559 | ?> |
413 | - <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> |
|
414 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
415 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
416 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
417 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
418 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
419 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
420 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
421 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
422 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
423 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
424 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
425 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
560 | + <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') { |
|
561 | + print ' selected'; |
|
562 | +} |
|
563 | +?>>Mapbox GL</option> |
|
564 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
565 | + print ' selected'; |
|
566 | +} |
|
567 | +?>>Mapbox default</option> |
|
568 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
569 | + print ' selected'; |
|
570 | +} |
|
571 | +?>>Mapbox streets</option> |
|
572 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
573 | + print ' selected'; |
|
574 | +} |
|
575 | +?>>Mapbox light</option> |
|
576 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
577 | + print ' selected'; |
|
578 | +} |
|
579 | +?>>Mapbox dark</option> |
|
580 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
581 | + print ' selected'; |
|
582 | +} |
|
583 | +?>>Mapbox satellite</option> |
|
584 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
585 | + print ' selected'; |
|
586 | +} |
|
587 | +?>>Mapbox streets-satellite</option> |
|
588 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
589 | + print ' selected'; |
|
590 | +} |
|
591 | +?>>Mapbox streets-basic</option> |
|
592 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
593 | + print ' selected'; |
|
594 | +} |
|
595 | +?>>Mapbox comic</option> |
|
596 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
597 | + print ' selected'; |
|
598 | +} |
|
599 | +?>>Mapbox outdoors</option> |
|
600 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
601 | + print ' selected'; |
|
602 | +} |
|
603 | +?>>Mapbox pencil</option> |
|
604 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
605 | + print ' selected'; |
|
606 | +} |
|
607 | +?>>Mapbox pirates</option> |
|
608 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
609 | + print ' selected'; |
|
610 | +} |
|
611 | +?>>Mapbox emerald</option> |
|
426 | 612 | <?php |
427 | 613 | } |
428 | 614 | ?> |
429 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
615 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
616 | + print ' selected'; |
|
617 | +} |
|
618 | +?>>OpenStreetMap</option> |
|
430 | 619 | <?php |
431 | 620 | } |
432 | 621 | ?> |
@@ -437,10 +626,22 @@ discard block |
||
437 | 626 | ?> |
438 | 627 | <li><?php echo _("Type of Terrain:"); ?> |
439 | 628 | <select class="selectpicker" onchange="terrainType(this);"> |
440 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
441 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
442 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
443 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
629 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
630 | + print ' selected'; |
|
631 | +} |
|
632 | +?>>stk terrain</option> |
|
633 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
634 | + print ' selected'; |
|
635 | +} |
|
636 | +?>>ellipsoid</option> |
|
637 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
638 | + print ' selected'; |
|
639 | +} |
|
640 | +?>>vr terrain</option> |
|
641 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') { |
|
642 | + print ' selected'; |
|
643 | +} |
|
644 | +?>>ArticDEM</option> |
|
444 | 645 | </select> |
445 | 646 | </li> |
446 | 647 | <?php |
@@ -450,60 +651,120 @@ discard block |
||
450 | 651 | <?php |
451 | 652 | if (isset($globalMap3D) && $globalMap3D) { |
452 | 653 | ?> |
453 | - <li><div class="checkbox"><label><input type="checkbox" name="synchro2d3d" value="1" onclick="clickSyncMap2D3D(this)" <?php if (isset($_COOKIE['Map2D3DSync']) && $_COOKIE['Map2D3DSync'] == 'true') print 'checked'; ?> ><?php echo _("Use same type of map for 2D & 3D"); ?></label></div></li> |
|
654 | + <li><div class="checkbox"><label><input type="checkbox" name="synchro2d3d" value="1" onclick="clickSyncMap2D3D(this)" <?php if (isset($_COOKIE['Map2D3DSync']) && $_COOKIE['Map2D3DSync'] == 'true') { |
|
655 | + print 'checked'; |
|
656 | +} |
|
657 | +?> ><?php echo _("Use same type of map for 2D & 3D"); ?></label></div></li> |
|
454 | 658 | <?php |
455 | 659 | } |
456 | 660 | ?> |
457 | 661 | <?php |
458 | 662 | if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
459 | 663 | ?> |
460 | - <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') print 'checked'; ?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
|
664 | + <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') { |
|
665 | + print 'checked'; |
|
666 | +} |
|
667 | +?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
|
461 | 668 | |
462 | 669 | <?php |
463 | 670 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
464 | 671 | ?> |
465 | - <!--<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>--> |
|
466 | - <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> |
|
467 | - <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']) && isset($globalMapRoute) && $globalMapRoute)) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
468 | - <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> |
|
469 | - <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> |
|
672 | + <!--<li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
673 | + print 'checked'; |
|
674 | +} |
|
675 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li>--> |
|
676 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
677 | + print 'checked'; |
|
678 | +} |
|
679 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
680 | + <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']) && isset($globalMapRoute) && $globalMapRoute)) { |
|
681 | + print 'checked'; |
|
682 | +} |
|
683 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
684 | + <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)) { |
|
685 | + print 'checked'; |
|
686 | +} |
|
687 | +?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
688 | + <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)) { |
|
689 | + print 'checked'; |
|
690 | +} |
|
691 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
470 | 692 | <?php |
471 | 693 | } elseif (!isset($globalTracker) || $globalTracker === TRUE) { |
472 | 694 | ?> |
473 | - <li><div class="checkbox"><label><input type="checkbox" name="mapmatching" value="1" onclick="clickMapMatching(this)" <?php if ((isset($_COOKIE['mapmatching']) && $_COOKIE['mapmatching'] == 'true') || (!isset($_COOKIE['mapmatching']) && isset($globalMapMatching) && $globalMapMatching)) print 'checked'; ?> ><?php echo _("Enable map matching"); ?></label></div></li> |
|
695 | + <li><div class="checkbox"><label><input type="checkbox" name="mapmatching" value="1" onclick="clickMapMatching(this)" <?php if ((isset($_COOKIE['mapmatching']) && $_COOKIE['mapmatching'] == 'true') || (!isset($_COOKIE['mapmatching']) && isset($globalMapMatching) && $globalMapMatching)) { |
|
696 | + print 'checked'; |
|
697 | +} |
|
698 | +?> ><?php echo _("Enable map matching"); ?></label></div></li> |
|
474 | 699 | <?php |
475 | 700 | } |
476 | 701 | if (isset($globalSatellite) && $globalSatellite === TRUE) { |
477 | 702 | ?> |
478 | - <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> |
|
703 | + <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)) { |
|
704 | + print 'checked'; |
|
705 | +} |
|
706 | +?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
479 | 707 | <?php |
480 | 708 | } |
481 | 709 | } |
482 | 710 | ?> |
483 | - <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> |
|
484 | - <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> |
|
485 | - <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> |
|
486 | - <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> |
|
711 | + <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'])) { |
|
712 | + print 'checked'; |
|
713 | +} |
|
714 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
715 | + <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))) { |
|
716 | + print 'checked'; |
|
717 | +} |
|
718 | +?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
719 | + <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))) { |
|
720 | + print 'checked'; |
|
721 | +} |
|
722 | +?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
723 | + <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))) { |
|
724 | + print 'checked'; |
|
725 | +} |
|
726 | +?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
487 | 727 | <?php |
488 | 728 | if (isset($globalFires) && $globalFires) { |
489 | 729 | ?> |
490 | - <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) print 'checked'; ?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
730 | + <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) { |
|
731 | + print 'checked'; |
|
732 | +} |
|
733 | +?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
491 | 734 | <?php |
492 | 735 | } |
493 | 736 | if (isset($globalMap3D) && $globalMap3D) { |
494 | 737 | ?> |
495 | - <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if ((isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') || (!isset($_COOKIE['singlemodel']) && isset($globalMap3DSelected) && $globalMap3DSelected)) print 'checked'; ?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li> |
|
738 | + <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if ((isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') || (!isset($_COOKIE['singlemodel']) && isset($globalMap3DSelected) && $globalMap3DSelected)) { |
|
739 | + print 'checked'; |
|
740 | +} |
|
741 | +?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li> |
|
496 | 742 | <?php |
497 | 743 | } |
498 | 744 | ?> |
499 | 745 | <?php |
500 | 746 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
501 | 747 | ?> |
502 | - <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> |
|
503 | - <li><div class="checkbox"><label><input type="checkbox" name="shadows" value="1" onclick="clickShadows(this)" <?php if ((!isset($_COOKIE['map3dnoshadows']) && (!isset($globalMap3DShadows) || $globalMap3DShadows)) || (isset($_COOKIE['map3dnoshadows']) && $_COOKIE['map3dnoshadows'] == 'false')) print 'checked'; ?> ><?php echo _("Use shadows"); ?></label></div></li> |
|
504 | - <li><div class="checkbox"><label><input type="checkbox" name="truelight" value="1" onclick="clickTrueLight(this)" <?php if ((!isset($_COOKIE['truelight']) && (!isset($globalMap3DTrueLight) || $globalMap3DTrueLight)) || (isset($_COOKIE['truelight']) && $_COOKIE['truelight'] == 'false')) print 'checked'; ?> ><?php echo _("Enable globe sun lighting"); ?></label></div></li> |
|
505 | - <li><div class="checkbox"><label><input type="checkbox" name="one3dmodel" value="1" onclick="useOne3Dmodel(this)" <?php if ((isset($_COOKIE['one3dmodel']) && $_COOKIE['one3dmodel'] == 'true') || (!isset($_COOKIE['one3dmodel']) && isset($globalMap3DOneModel) && $globalMap3DOneModel)) print 'checked'; ?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
|
506 | - <li><div class="checkbox"><label><input type="checkbox" name="updaterealtime" value="1" onclick="clickUpdateRealtime(this)" <?php if ((isset($_COOKIE['updaterealtime']) && $_COOKIE['updaterealtime'] == 'true') || !isset($_COOKIE['updaterealtime'])) print 'checked'; ?> ><?php echo _("Display realtime data in infobox"); ?></label></div></li> |
|
748 | + <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')) { |
|
749 | + print 'checked'; |
|
750 | +} |
|
751 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
752 | + <li><div class="checkbox"><label><input type="checkbox" name="shadows" value="1" onclick="clickShadows(this)" <?php if ((!isset($_COOKIE['map3dnoshadows']) && (!isset($globalMap3DShadows) || $globalMap3DShadows)) || (isset($_COOKIE['map3dnoshadows']) && $_COOKIE['map3dnoshadows'] == 'false')) { |
|
753 | + print 'checked'; |
|
754 | +} |
|
755 | +?> ><?php echo _("Use shadows"); ?></label></div></li> |
|
756 | + <li><div class="checkbox"><label><input type="checkbox" name="truelight" value="1" onclick="clickTrueLight(this)" <?php if ((!isset($_COOKIE['truelight']) && (!isset($globalMap3DTrueLight) || $globalMap3DTrueLight)) || (isset($_COOKIE['truelight']) && $_COOKIE['truelight'] == 'false')) { |
|
757 | + print 'checked'; |
|
758 | +} |
|
759 | +?> ><?php echo _("Enable globe sun lighting"); ?></label></div></li> |
|
760 | + <li><div class="checkbox"><label><input type="checkbox" name="one3dmodel" value="1" onclick="useOne3Dmodel(this)" <?php if ((isset($_COOKIE['one3dmodel']) && $_COOKIE['one3dmodel'] == 'true') || (!isset($_COOKIE['one3dmodel']) && isset($globalMap3DOneModel) && $globalMap3DOneModel)) { |
|
761 | + print 'checked'; |
|
762 | +} |
|
763 | +?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
|
764 | + <li><div class="checkbox"><label><input type="checkbox" name="updaterealtime" value="1" onclick="clickUpdateRealtime(this)" <?php if ((isset($_COOKIE['updaterealtime']) && $_COOKIE['updaterealtime'] == 'true') || !isset($_COOKIE['updaterealtime'])) { |
|
765 | + print 'checked'; |
|
766 | +} |
|
767 | +?> ><?php echo _("Display realtime data in infobox"); ?></label></div></li> |
|
507 | 768 | <?php |
508 | 769 | } |
509 | 770 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -516,17 +777,25 @@ discard block |
||
516 | 777 | if (function_exists('array_column')) { |
517 | 778 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
518 | 779 | ?> |
519 | - <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> |
|
780 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
781 | + print 'checked'; |
|
782 | +} |
|
783 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
520 | 784 | <?php |
521 | 785 | } |
522 | 786 | } elseif (isset($globalSources)) { |
523 | 787 | $dispolar = false; |
524 | 788 | foreach ($globalSources as $testsource) { |
525 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
789 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
790 | + $dispolar = true; |
|
791 | + } |
|
526 | 792 | } |
527 | 793 | if ($dispolar) { |
528 | 794 | ?> |
529 | - <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> |
|
795 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
796 | + print 'checked'; |
|
797 | +} |
|
798 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
530 | 799 | <?php |
531 | 800 | } |
532 | 801 | } |
@@ -539,11 +808,21 @@ discard block |
||
539 | 808 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
540 | 809 | if (extension_loaded('gd') && function_exists('gd_info')) { |
541 | 810 | ?> |
542 | - <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> |
|
811 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
812 | + print 'checked'; |
|
813 | +} |
|
814 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
543 | 815 | <?php |
544 | 816 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
545 | 817 | ?> |
546 | - <li><?php echo _("Aircraft icon color:"); ?><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'; ?>"></li> |
|
818 | + <li><?php echo _("Aircraft icon color:"); ?><input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
819 | + print $_COOKIE['IconColor']; |
|
820 | +} elseif (isset($globalAircraftIconColor)) { |
|
821 | + print $globalAircraftIconColor; |
|
822 | +} else { |
|
823 | + print '1a3151'; |
|
824 | +} |
|
825 | +?>"></li> |
|
547 | 826 | <?php |
548 | 827 | } |
549 | 828 | } |
@@ -554,7 +833,14 @@ discard block |
||
554 | 833 | if (extension_loaded('gd') && function_exists('gd_info')) { |
555 | 834 | ?> |
556 | 835 | <li><?php echo _("Marine icon color:"); ?> |
557 | - <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'; ?>"> |
|
836 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
837 | + print $_COOKIE['MarineIconColor']; |
|
838 | +} elseif (isset($globalMarineIconColor)) { |
|
839 | + print $globalMarineIconColor; |
|
840 | +} else { |
|
841 | + print '1a3151'; |
|
842 | +} |
|
843 | +?>"> |
|
558 | 844 | </li> |
559 | 845 | <?php |
560 | 846 | } |
@@ -565,7 +851,14 @@ discard block |
||
565 | 851 | if (extension_loaded('gd') && function_exists('gd_info')) { |
566 | 852 | ?> |
567 | 853 | <li><?php echo _("Tracker icon color:"); ?> |
568 | - <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'; ?>"> |
|
854 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
855 | + print $_COOKIE['TrackerIconColor']; |
|
856 | +} elseif (isset($globalTrackerIconColor)) { |
|
857 | + print $globalTrackerIconColor; |
|
858 | +} else { |
|
859 | + print '1a3151'; |
|
860 | +} |
|
861 | +?>"> |
|
569 | 862 | </li> |
570 | 863 | <?php |
571 | 864 | } |
@@ -576,8 +869,22 @@ discard block |
||
576 | 869 | ?> |
577 | 870 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
578 | 871 | <div class="range"> |
579 | - <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'; ?>"> |
|
580 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
872 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
873 | + print $_COOKIE['AirportZoom']; |
|
874 | +} elseif (isset($globalAirportZoom)) { |
|
875 | + print $globalAirportZoom; |
|
876 | +} else { |
|
877 | + print '7'; |
|
878 | +} |
|
879 | +?>"> |
|
880 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
881 | + print $_COOKIE['AirportZoom']; |
|
882 | +} elseif (isset($globalAirportZoom)) { |
|
883 | + print $globalAirportZoom; |
|
884 | +} else { |
|
885 | + print '7'; |
|
886 | +} |
|
887 | +?></output> |
|
581 | 888 | </div> |
582 | 889 | </li> |
583 | 890 | <?php |
@@ -588,17 +895,40 @@ discard block |
||
588 | 895 | ?> |
589 | 896 | <li><?php echo _("Set scaling factor for rendering resolution:"); ?> |
590 | 897 | <div class="range"> |
591 | - <input type="range" min="0.5" max="2" step="0.5" name="resolutionscale" onchange="scale.value=value;resolutionScale(resolutionscale.value);" value="<?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?>"> |
|
592 | - <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?></output> |
|
898 | + <input type="range" min="0.5" max="2" step="0.5" name="resolutionscale" onchange="scale.value=value;resolutionScale(resolutionscale.value);" value="<?php if (isset($_COOKIE['resolutionScale'])) { |
|
899 | + print $_COOKIE['resolutionScale']; |
|
900 | +} else { |
|
901 | + print '1'; |
|
902 | +} |
|
903 | +?>"> |
|
904 | + <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) { |
|
905 | + print $_COOKIE['resolutionScale']; |
|
906 | +} else { |
|
907 | + print '1'; |
|
908 | +} |
|
909 | +?></output> |
|
593 | 910 | </div> |
594 | 911 | </li> |
595 | 912 | <?php |
596 | 913 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
597 | 914 | ?> |
598 | - <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') print 'checked'; ?> > <?php echo _("Use airlines liveries"); ?></li> |
|
599 | - <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"); ?> |
|
915 | + <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') { |
|
916 | + print 'checked'; |
|
917 | +} |
|
918 | +?> > <?php echo _("Use airlines liveries"); ?></li> |
|
919 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
920 | + print 'checked'; |
|
921 | +} |
|
922 | +?> > <?php echo _("Force Aircraft color"); ?> |
|
600 | 923 | <!--<li><?php echo _("Aircraft icon color:"); ?>--> |
601 | - <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'; ?>"> |
|
924 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
925 | + print $_COOKIE['IconColor']; |
|
926 | +} elseif (isset($globalAircraftIconColor)) { |
|
927 | + print $globalAircraftIconColor; |
|
928 | +} else { |
|
929 | + print 'ff0000'; |
|
930 | +} |
|
931 | +?>"> |
|
602 | 932 | </li> |
603 | 933 | <?php |
604 | 934 | } |
@@ -606,9 +936,19 @@ discard block |
||
606 | 936 | <?php |
607 | 937 | if (isset($globalMarine) && $globalMarine === TRUE) { |
608 | 938 | ?> |
609 | - <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"); ?> |
|
939 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
940 | + print 'checked'; |
|
941 | +} |
|
942 | +?> ><?php echo _("Force Marine color"); ?> |
|
610 | 943 | <!--<li><?php echo _("Marine icon color:"); ?>--> |
611 | - <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'; ?>"> |
|
944 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
945 | + print $_COOKIE['MarineIconColor']; |
|
946 | +} elseif (isset($globalMarineIconColor)) { |
|
947 | + print $globalMarineIconColor; |
|
948 | +} else { |
|
949 | + print 'ff0000'; |
|
950 | +} |
|
951 | +?>"> |
|
612 | 952 | </li> |
613 | 953 | <?php |
614 | 954 | } |
@@ -616,9 +956,19 @@ discard block |
||
616 | 956 | <?php |
617 | 957 | if (isset($globalTracker) && $globalTracker === TRUE) { |
618 | 958 | ?> |
619 | - <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"); ?> |
|
959 | + <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') { |
|
960 | + print 'checked'; |
|
961 | +} |
|
962 | +?> ><?php echo _("Force Tracker color"); ?> |
|
620 | 963 | <!--<li><?php echo _("Tracker icon color:"); ?>--> |
621 | - <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'; ?>"> |
|
964 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
965 | + print $_COOKIE['TrackerIconColor']; |
|
966 | +} elseif (isset($globalTrackerIconColor)) { |
|
967 | + print $globalTrackerIconColor; |
|
968 | +} else { |
|
969 | + print 'ff0000'; |
|
970 | +} |
|
971 | +?>"> |
|
622 | 972 | </li> |
623 | 973 | <?php |
624 | 974 | } |
@@ -626,29 +976,62 @@ discard block |
||
626 | 976 | ?> |
627 | 977 | <li><?php echo _("Distance unit:"); ?> |
628 | 978 | <select class="selectpicker" onchange="unitdistance(this);"> |
629 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
630 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
631 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
979 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
980 | + echo ' selected'; |
|
981 | +} |
|
982 | +?>>km</option> |
|
983 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
984 | + echo ' selected'; |
|
985 | +} |
|
986 | +?>>nm</option> |
|
987 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
988 | + echo ' selected'; |
|
989 | +} |
|
990 | +?>>mi</option> |
|
632 | 991 | </select> |
633 | 992 | </li> |
634 | 993 | <li><?php echo _("Altitude unit:"); ?> |
635 | 994 | <select class="selectpicker" onchange="unitaltitude(this);"> |
636 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
637 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
995 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
996 | + echo ' selected'; |
|
997 | +} |
|
998 | +?>>m</option> |
|
999 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
1000 | + echo ' selected'; |
|
1001 | +} |
|
1002 | +?>>feet</option> |
|
638 | 1003 | </select> |
639 | 1004 | </li> |
640 | 1005 | <li><?php echo _("Speed unit:"); ?> |
641 | 1006 | <select class="selectpicker" onchange="unitspeed(this);"> |
642 | - <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> |
|
643 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
644 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
1007 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
1008 | + echo ' selected'; |
|
1009 | +} |
|
1010 | +?>>km/h</option> |
|
1011 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
1012 | + echo ' selected'; |
|
1013 | +} |
|
1014 | +?>>mph</option> |
|
1015 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
1016 | + echo ' selected'; |
|
1017 | +} |
|
1018 | +?>>knots</option> |
|
645 | 1019 | </select> |
646 | 1020 | </li> |
647 | 1021 | <li><?php echo _("Coordinate unit:"); ?> |
648 | 1022 | <select class="selectpicker" onchange="unitcoordinate(this);"> |
649 | - <option value="dd"<?php if ((!isset($_COOKIE['unitcoordinate']) && (!isset($globalUnitCoordinate) || (isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dd'))) || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dd')) echo ' selected'; ?>>DD</option> |
|
650 | - <option value="dms"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dms') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dms')) echo ' selected'; ?>>DMS</option> |
|
651 | - <option value="dm"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dm') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dm')) echo ' selected'; ?>>DM</option> |
|
1023 | + <option value="dd"<?php if ((!isset($_COOKIE['unitcoordinate']) && (!isset($globalUnitCoordinate) || (isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dd'))) || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dd')) { |
|
1024 | + echo ' selected'; |
|
1025 | +} |
|
1026 | +?>>DD</option> |
|
1027 | + <option value="dms"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dms') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dms')) { |
|
1028 | + echo ' selected'; |
|
1029 | +} |
|
1030 | +?>>DMS</option> |
|
1031 | + <option value="dm"<?php if ((!isset($_COOKIE['unitcoordinate']) && isset($globalUnitCoordinate) && $globalUnitCoordinate == 'dm') || (isset($_COOKIE['unitcoordinate']) && $_COOKIE['unitcoordinate'] == 'dm')) { |
|
1032 | + echo ' selected'; |
|
1033 | +} |
|
1034 | +?>>DM</option> |
|
652 | 1035 | </select> |
653 | 1036 | </li> |
654 | 1037 | |
@@ -666,9 +1049,18 @@ discard block |
||
666 | 1049 | <?php |
667 | 1050 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
668 | 1051 | ?> |
669 | - <?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['filter_ShowVATSIM']) && $_COOKIE['filter_ShowVATSIM'] == 'true') || !isset($_COOKIE['filter_ShowVATSIM'])) print 'checked'; ?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
670 | - <?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['filter_ShowIVAO']) && $_COOKIE['filter_ShowIVAO'] == 'true') || !isset($_COOKIE['filter_ShowIVAO'])) print 'checked'; ?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
671 | - <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['filter_ShowVMS']) && $_COOKIE['filter_ShowVMS'] == 'true') || !isset($_COOKIE['filter_ShowVMS'])) print 'checked'; ?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
1052 | + <?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['filter_ShowVATSIM']) && $_COOKIE['filter_ShowVATSIM'] == 'true') || !isset($_COOKIE['filter_ShowVATSIM'])) { |
|
1053 | + print 'checked'; |
|
1054 | +} |
|
1055 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
1056 | + <?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['filter_ShowIVAO']) && $_COOKIE['filter_ShowIVAO'] == 'true') || !isset($_COOKIE['filter_ShowIVAO'])) { |
|
1057 | + print 'checked'; |
|
1058 | +} |
|
1059 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
1060 | + <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['filter_ShowVMS']) && $_COOKIE['filter_ShowVMS'] == 'true') || !isset($_COOKIE['filter_ShowVMS'])) { |
|
1061 | + print 'checked'; |
|
1062 | +} |
|
1063 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
672 | 1064 | <?php |
673 | 1065 | } |
674 | 1066 | ?> |
@@ -676,12 +1068,21 @@ discard block |
||
676 | 1068 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
677 | 1069 | ?> |
678 | 1070 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
679 | - <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['filter_ShowSBS1']) && $_COOKIE['filter_ShowSBS1'] == 'true') || !isset($_COOKIE['filter_ShowSBS1'])) print 'checked'; ?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
1071 | + <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['filter_ShowSBS1']) && $_COOKIE['filter_ShowSBS1'] == 'true') || !isset($_COOKIE['filter_ShowSBS1'])) { |
|
1072 | + print 'checked'; |
|
1073 | +} |
|
1074 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
680 | 1075 | <?php } ?> |
681 | 1076 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
682 | - <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['filter_ShowAPRS']) && $_COOKIE['filter_ShowAPRS'] == 'true') || !isset($_COOKIE['filter_ShowAPRS'])) print 'checked'; ?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
1077 | + <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['filter_ShowAPRS']) && $_COOKIE['filter_ShowAPRS'] == 'true') || !isset($_COOKIE['filter_ShowAPRS'])) { |
|
1078 | + print 'checked'; |
|
1079 | +} |
|
1080 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
683 | 1081 | <?php } ?> |
684 | - <li><div class="checkbox"><label><input type="checkbox" name="blocked" value="1" onclick="clickBlocked(this)" <?php if (isset($_COOKIE['filter_blocked']) && $_COOKIE['filter_blocked'] == 'true') print 'checked'; ?> ><?php echo _("Only display FAA ASDI blocked aircrafts"); ?></label></div></li> |
|
1082 | + <li><div class="checkbox"><label><input type="checkbox" name="blocked" value="1" onclick="clickBlocked(this)" <?php if (isset($_COOKIE['filter_blocked']) && $_COOKIE['filter_blocked'] == 'true') { |
|
1083 | + print 'checked'; |
|
1084 | +} |
|
1085 | +?> ><?php echo _("Only display FAA ASDI blocked aircrafts"); ?></label></div></li> |
|
685 | 1086 | <?php |
686 | 1087 | } |
687 | 1088 | ?> |
@@ -697,7 +1098,9 @@ discard block |
||
697 | 1098 | } |
698 | 1099 | foreach($allairlinenames as $airline) { |
699 | 1100 | $airline_name = $airline['airline_name']; |
700 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
1101 | + if (strlen($airline_name) > 30) { |
|
1102 | + $airline_name = substr($airline_name,0,30).'...'; |
|
1103 | + } |
|
701 | 1104 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
702 | 1105 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
703 | 1106 | } else { |
@@ -715,7 +1118,10 @@ discard block |
||
715 | 1118 | <li><?php echo _("Display alliance:"); ?> |
716 | 1119 | <br/> |
717 | 1120 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
718 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
1121 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
1122 | + echo ' selected'; |
|
1123 | +} |
|
1124 | +?>><?php echo _("All"); ?></option> |
|
719 | 1125 | <?php |
720 | 1126 | foreach($allalliancenames as $alliance) { |
721 | 1127 | $alliance_name = $alliance['alliance']; |
@@ -774,10 +1180,22 @@ discard block |
||
774 | 1180 | ?> |
775 | 1181 | <li><?php echo _("Display airlines of type:"); ?><br/> |
776 | 1182 | <select class="selectpicker" onchange="airlinestype(this);"> |
777 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
778 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
779 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
780 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
1183 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
1184 | + echo ' selected'; |
|
1185 | +} |
|
1186 | +?>><?php echo _("All"); ?></option> |
|
1187 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
1188 | + echo ' selected'; |
|
1189 | +} |
|
1190 | +?>><?php echo _("Passenger"); ?></option> |
|
1191 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
1192 | + echo ' selected'; |
|
1193 | +} |
|
1194 | +?>><?php echo _("Cargo"); ?></option> |
|
1195 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
1196 | + echo ' selected'; |
|
1197 | +} |
|
1198 | +?>><?php echo _("Military"); ?></option> |
|
781 | 1199 | </select> |
782 | 1200 | </li> |
783 | 1201 | <?php |
@@ -791,7 +1209,10 @@ discard block |
||
791 | 1209 | ?> |
792 | 1210 | <li> |
793 | 1211 | <?php echo _("Display vessels with MMSI:"); ?> |
794 | - <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
|
1212 | + <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) { |
|
1213 | + print $_COOKIE['filter_mmsi']; |
|
1214 | +} |
|
1215 | +?>" /> |
|
795 | 1216 | </li> |
796 | 1217 | <?php |
797 | 1218 | if (isset($globalVM) && $globalVM) { |
@@ -822,7 +1243,10 @@ discard block |
||
822 | 1243 | ?> |
823 | 1244 | <li> |
824 | 1245 | <?php echo _("Display with ident:"); ?> |
825 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
1246 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
1247 | + print $_COOKIE['filter_ident']; |
|
1248 | +} |
|
1249 | +?>" /> |
|
826 | 1250 | </li> |
827 | 1251 | </ul> |
828 | 1252 | </form> |
@@ -838,7 +1262,10 @@ discard block |
||
838 | 1262 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
839 | 1263 | <form> |
840 | 1264 | <ul> |
841 | - <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> |
|
1265 | + <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'])) { |
|
1266 | + print 'checked'; |
|
1267 | +} |
|
1268 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
842 | 1269 | <li><?php echo _("Type:"); ?> |
843 | 1270 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
844 | 1271 | <?php |
@@ -846,25 +1273,45 @@ discard block |
||
846 | 1273 | $types = $Satellite->get_tle_types(); |
847 | 1274 | foreach ($types as $type) { |
848 | 1275 | $type_name = $type['tle_type']; |
849 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
850 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
851 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
852 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
853 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
854 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
855 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
856 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
857 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
858 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
859 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
860 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
861 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
862 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
863 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
864 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
865 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
866 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
867 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
1276 | + if ($type_name == 'musson') { |
|
1277 | + $type_name = 'Russian LEO Navigation'; |
|
1278 | + } else if ($type_name == 'nnss') { |
|
1279 | + $type_name = 'Navi Navigation Satellite System'; |
|
1280 | + } else if ($type_name == 'sbas') { |
|
1281 | + $type_name = 'Satellite-Based Augmentation System'; |
|
1282 | + } else if ($type_name == 'glo-ops') { |
|
1283 | + $type_name = 'Glonass Operational'; |
|
1284 | + } else if ($type_name == 'gps-ops') { |
|
1285 | + $type_name = 'GPS Operational'; |
|
1286 | + } else if ($type_name == 'argos') { |
|
1287 | + $type_name = 'ARGOS Data Collection System'; |
|
1288 | + } else if ($type_name == 'tdrss') { |
|
1289 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
1290 | + } else if ($type_name == 'sarsat') { |
|
1291 | + $type_name = 'Search & Rescue'; |
|
1292 | + } else if ($type_name == 'dmc') { |
|
1293 | + $type_name = 'Disaster Monitoring'; |
|
1294 | + } else if ($type_name == 'resource') { |
|
1295 | + $type_name = 'Earth Resources'; |
|
1296 | + } else if ($type_name == 'stations') { |
|
1297 | + $type_name = 'Space Stations'; |
|
1298 | + } else if ($type_name == 'geo') { |
|
1299 | + $type_name = 'Geostationary'; |
|
1300 | + } else if ($type_name == 'amateur') { |
|
1301 | + $type_name = 'Amateur Radio'; |
|
1302 | + } else if ($type_name == 'x-comm') { |
|
1303 | + $type_name = 'Experimental'; |
|
1304 | + } else if ($type_name == 'other-comm') { |
|
1305 | + $type_name = 'Other Comm'; |
|
1306 | + } else if ($type_name == 'science') { |
|
1307 | + $type_name = 'Space & Earth Science'; |
|
1308 | + } else if ($type_name == 'military') { |
|
1309 | + $type_name = 'Miscellaneous Military'; |
|
1310 | + } else if ($type_name == 'radar') { |
|
1311 | + $type_name = 'Radar Calibration'; |
|
1312 | + } else if ($type_name == 'tle-new') { |
|
1313 | + $type_name = 'Last 30 days launches'; |
|
1314 | + } |
|
868 | 1315 | |
869 | 1316 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
870 | 1317 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |