@@ -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 | <?php |
62 | 65 | if (!isset($globalAircraft) || $globalAircraft) { |
63 | 66 | ?> |
@@ -135,9 +138,18 @@ discard block |
||
135 | 138 | <h1>Weather</h1> |
136 | 139 | <ul> |
137 | 140 | |
138 | - <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> |
|
139 | - <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> |
|
140 | - <!-- <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> --> |
|
141 | + <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') { |
|
142 | + print 'checked'; |
|
143 | +} |
|
144 | +?> /><?php echo _("Weather Winds"); ?></label></div></li> |
|
145 | + <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') { |
|
146 | + print 'checked'; |
|
147 | +} |
|
148 | +?> /><?php echo _("Ocean surface currents"); ?></label></div></li> |
|
149 | + <!-- <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') { |
|
150 | + print 'checked'; |
|
151 | +} |
|
152 | +?> /><?php echo _("Weather Waves height background"); ?></label></div></li> --> |
|
141 | 153 | |
142 | 154 | <?php |
143 | 155 | if (isset($globalOpenWeatherMapKey) && $globalOpenWeatherMapKey != '') { |
@@ -156,7 +168,10 @@ discard block |
||
156 | 168 | ?> |
157 | 169 | <h1>Weather</h1> |
158 | 170 | <ul> |
159 | - <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 weather on 3D map"); ?></label></div></li> |
|
171 | + <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))) { |
|
172 | + print 'checked'; |
|
173 | +} |
|
174 | +?> ><?php echo _("Display weather on 3D map"); ?></label></div></li> |
|
160 | 175 | </ul> |
161 | 176 | <?php |
162 | 177 | } |
@@ -173,13 +188,22 @@ discard block |
||
173 | 188 | <?php |
174 | 189 | if (!isset($globalAircraft) || $globalAircraft) { |
175 | 190 | ?> |
176 | - <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> |
|
177 | - <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> |
|
191 | + <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') { |
|
192 | + print 'checked'; |
|
193 | +} |
|
194 | +?> /><?php echo _("Display waypoints"); ?></label></div></li> |
|
195 | + <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') { |
|
196 | + print 'checked'; |
|
197 | +} |
|
198 | +?> /><?php echo _("Display airspace"); ?></label></div></li> |
|
178 | 199 | <?php |
179 | 200 | } |
180 | 201 | if (isset($globalMarine) && $globalMarine) { |
181 | 202 | ?> |
182 | - <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> |
|
203 | + <li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') { |
|
204 | + print 'checked'; |
|
205 | +} |
|
206 | +?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li> |
|
183 | 207 | <?php |
184 | 208 | } |
185 | 209 | ?> |
@@ -194,13 +218,22 @@ discard block |
||
194 | 218 | <?php |
195 | 219 | if (!isset($globalAircraft) || $globalAircraft) { |
196 | 220 | ?> |
197 | - <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> |
|
198 | - <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> |
|
221 | + <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') { |
|
222 | + print 'checked'; |
|
223 | +} |
|
224 | +?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li> |
|
225 | + <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') { |
|
226 | + print 'checked'; |
|
227 | +} |
|
228 | +?> /><?php echo _("Display airspace"); ?> Beta</label></div></li> |
|
199 | 229 | <?php |
200 | 230 | } |
201 | 231 | if (isset($globalMarine) && $globalMarine) { |
202 | 232 | ?> |
203 | - <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> |
|
233 | + <li><div class="checkbox"><label><input type="checkbox" name="openseamap" value="1" onclick="clickOpenSeaMap(this);" <?php if (isset($_COOKIE['openseamap']) && $_COOKIE['openseamap'] == 'true') { |
|
234 | + print 'checked'; |
|
235 | +} |
|
236 | +?> /><?php echo _("Display OpenSeaMap"); ?></label></div></li> |
|
204 | 237 | <?php |
205 | 238 | } |
206 | 239 | ?> |
@@ -215,14 +248,32 @@ discard block |
||
215 | 248 | <h1>NOTAM</h1> |
216 | 249 | <form> |
217 | 250 | <ul> |
218 | - <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> |
|
251 | + <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') { |
|
252 | + print 'checked'; |
|
253 | +} |
|
254 | +?> /><?php echo _("Display NOTAM"); ?></label></div></li> |
|
219 | 255 | <li><?php echo _("NOTAM scope:"); ?> |
220 | 256 | <select class="selectpicker" onchange="notamscope(this);"> |
221 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
222 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
223 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
224 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
225 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
257 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
258 | + print ' selected'; |
|
259 | +} |
|
260 | +?>>All</option> |
|
261 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
262 | + print ' selected'; |
|
263 | +} |
|
264 | +?>>Airport/Enroute warning</option> |
|
265 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
266 | + print ' selected'; |
|
267 | +} |
|
268 | +?>>Airport warning</option> |
|
269 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
270 | + print ' selected'; |
|
271 | +} |
|
272 | +?>>Navigation warning</option> |
|
273 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
274 | + print ' selected'; |
|
275 | +} |
|
276 | +?>>Enroute warning</option> |
|
226 | 277 | </select |
227 | 278 | </li> |
228 | 279 | </ul> |
@@ -250,7 +301,10 @@ discard block |
||
250 | 301 | <div class="form-group"> |
251 | 302 | <label><?php echo _("From:"); ?></label> |
252 | 303 | <div class='input-group date' id='datetimepicker1'> |
253 | - <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 /> |
|
304 | + <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') { |
|
305 | + print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC'; |
|
306 | +} |
|
307 | +?>" required /> |
|
254 | 308 | <span class="input-group-addon"> |
255 | 309 | <span class="glyphicon glyphicon-calendar"></span> |
256 | 310 | </span> |
@@ -259,7 +313,10 @@ discard block |
||
259 | 313 | <div class="form-group"> |
260 | 314 | <label><?php echo _("To:"); ?></label> |
261 | 315 | <div class='input-group date' id='datetimepicker2'> |
262 | - <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'; ?>" /> |
|
316 | + <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') { |
|
317 | + print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC'; |
|
318 | +} |
|
319 | +?>" /> |
|
263 | 320 | <span class="input-group-addon"> |
264 | 321 | <span class="glyphicon glyphicon-calendar"></span> |
265 | 322 | </span> |
@@ -291,8 +348,20 @@ discard block |
||
291 | 348 | </script> |
292 | 349 | <li><?php echo _("Playback speed:"); ?> |
293 | 350 | <div class="range"> |
294 | - <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'; ?>"> |
|
295 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
351 | + <input type="range" min="0" max="50" step="1" id="archivespeed" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
352 | + print $_POST['archivespeed']; |
|
353 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
354 | + print $_COOKIE['archive_speed']; |
|
355 | +} else { |
|
356 | + print '1'; |
|
357 | +} |
|
358 | +?>"> |
|
359 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
360 | + print $_COOKIE['archive_speed']; |
|
361 | +} else { |
|
362 | + print '1'; |
|
363 | +} |
|
364 | +?></output> |
|
296 | 365 | </div> |
297 | 366 | </li> |
298 | 367 | <?php |
@@ -321,14 +390,20 @@ discard block |
||
321 | 390 | <li><?php echo _("Type of Map:"); ?> |
322 | 391 | <?php |
323 | 392 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
324 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
325 | - else $MapType = $_COOKIE['MapType']; |
|
393 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
394 | + $MapType = $globalMapProvider; |
|
395 | + } else { |
|
396 | + $MapType = $_COOKIE['MapType']; |
|
397 | + } |
|
326 | 398 | ?> |
327 | 399 | <select class="selectpicker" onchange="mapType(this);"> |
328 | 400 | <?php |
329 | 401 | } else { |
330 | - if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') $MapType = $globalMapProvider; |
|
331 | - else $MapType = $_COOKIE['MapType3D']; |
|
402 | + if (!isset($_COOKIE['MapType3D']) || $_COOKIE['MapType3D'] == '') { |
|
403 | + $MapType = $globalMapProvider; |
|
404 | + } else { |
|
405 | + $MapType = $_COOKIE['MapType3D']; |
|
406 | + } |
|
332 | 407 | ?> |
333 | 408 | <select class="selectpicker" onchange="mapType3D(this);"> |
334 | 409 | <?php |
@@ -337,24 +412,48 @@ discard block |
||
337 | 412 | <?php |
338 | 413 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
339 | 414 | ?> |
340 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
|
415 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
416 | + print ' selected'; |
|
417 | +} |
|
418 | +?>>Natural Earth (local)</option> |
|
341 | 419 | <?php |
342 | 420 | } else { |
343 | 421 | if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
344 | 422 | ?> |
345 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
|
423 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
424 | + print ' selected'; |
|
425 | +} |
|
426 | +?>>Natural Earth (local)</option> |
|
346 | 427 | <?php |
347 | 428 | } |
348 | 429 | ?> |
349 | - <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option> |
|
350 | - <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option> |
|
351 | - <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') print ' selected'; ?>>ArcGIS Ocean</option> |
|
430 | + <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') { |
|
431 | + print ' selected'; |
|
432 | +} |
|
433 | +?>>ArcGIS Streetmap</option> |
|
434 | + <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') { |
|
435 | + print ' selected'; |
|
436 | +} |
|
437 | +?>>ArcGIS Satellite</option> |
|
438 | + <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Ocean') { |
|
439 | + print ' selected'; |
|
440 | +} |
|
441 | +?>>ArcGIS Ocean</option> |
|
352 | 442 | <?php |
353 | 443 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
354 | 444 | ?> |
355 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
356 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
357 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
445 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
446 | + print ' selected'; |
|
447 | +} |
|
448 | +?>>Bing-Aerial</option> |
|
449 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
450 | + print ' selected'; |
|
451 | +} |
|
452 | +?>>Bing-Hybrid</option> |
|
453 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
454 | + print ' selected'; |
|
455 | +} |
|
456 | +?>>Bing-Road</option> |
|
358 | 457 | <?php |
359 | 458 | } |
360 | 459 | ?> |
@@ -364,59 +463,143 @@ discard block |
||
364 | 463 | <?php |
365 | 464 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
366 | 465 | ?> |
367 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
368 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
369 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
466 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
467 | + print ' selected'; |
|
468 | +} |
|
469 | +?>>Here-Aerial</option> |
|
470 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
471 | + print ' selected'; |
|
472 | +} |
|
473 | +?>>Here-Hybrid</option> |
|
474 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
475 | + print ' selected'; |
|
476 | +} |
|
477 | +?>>Here-Road</option> |
|
370 | 478 | <?php |
371 | 479 | } |
372 | 480 | ?> |
373 | 481 | <?php |
374 | 482 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
375 | 483 | ?> |
376 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
377 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
378 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
379 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
484 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
485 | + print ' selected'; |
|
486 | +} |
|
487 | +?>>Google Roadmap</option> |
|
488 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
489 | + print ' selected'; |
|
490 | +} |
|
491 | +?>>Google Satellite</option> |
|
492 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
493 | + print ' selected'; |
|
494 | +} |
|
495 | +?>>Google Hybrid</option> |
|
496 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
497 | + print ' selected'; |
|
498 | +} |
|
499 | +?>>Google Terrain</option> |
|
380 | 500 | <?php |
381 | 501 | } |
382 | 502 | ?> |
383 | 503 | <?php |
384 | 504 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
385 | 505 | ?> |
386 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
387 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
388 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
506 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
507 | + print ' selected'; |
|
508 | +} |
|
509 | +?>>MapQuest-OSM</option> |
|
510 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
511 | + print ' selected'; |
|
512 | +} |
|
513 | +?>>MapQuest-Aerial</option> |
|
514 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
515 | + print ' selected'; |
|
516 | +} |
|
517 | +?>>MapQuest-Hybrid</option> |
|
389 | 518 | <?php |
390 | 519 | } |
391 | 520 | ?> |
392 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
393 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
|
521 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
522 | + print ' selected'; |
|
523 | +} |
|
524 | +?>>Yandex</option> |
|
525 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
526 | + print ' selected'; |
|
527 | +} |
|
528 | +?>>Natural Earth</option> |
|
394 | 529 | <?php |
395 | 530 | } |
396 | 531 | ?> |
397 | - <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option> |
|
532 | + <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') { |
|
533 | + print ' selected'; |
|
534 | +} |
|
535 | +?>>National Geographic Street</option> |
|
398 | 536 | <?php |
399 | 537 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
400 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
401 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
538 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
539 | + $MapBoxId = 'default'; |
|
540 | + } else { |
|
541 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
542 | + } |
|
402 | 543 | ?> |
403 | - <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> |
|
404 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
405 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
406 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
407 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
408 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
409 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
410 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
411 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
412 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
413 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
414 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
415 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
544 | + <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') { |
|
545 | + print ' selected'; |
|
546 | +} |
|
547 | +?>>Mapbox GL</option> |
|
548 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
549 | + print ' selected'; |
|
550 | +} |
|
551 | +?>>Mapbox default</option> |
|
552 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
553 | + print ' selected'; |
|
554 | +} |
|
555 | +?>>Mapbox streets</option> |
|
556 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
557 | + print ' selected'; |
|
558 | +} |
|
559 | +?>>Mapbox light</option> |
|
560 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
561 | + print ' selected'; |
|
562 | +} |
|
563 | +?>>Mapbox dark</option> |
|
564 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
565 | + print ' selected'; |
|
566 | +} |
|
567 | +?>>Mapbox satellite</option> |
|
568 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
569 | + print ' selected'; |
|
570 | +} |
|
571 | +?>>Mapbox streets-satellite</option> |
|
572 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
573 | + print ' selected'; |
|
574 | +} |
|
575 | +?>>Mapbox streets-basic</option> |
|
576 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
577 | + print ' selected'; |
|
578 | +} |
|
579 | +?>>Mapbox comic</option> |
|
580 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
581 | + print ' selected'; |
|
582 | +} |
|
583 | +?>>Mapbox outdoors</option> |
|
584 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
585 | + print ' selected'; |
|
586 | +} |
|
587 | +?>>Mapbox pencil</option> |
|
588 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
589 | + print ' selected'; |
|
590 | +} |
|
591 | +?>>Mapbox pirates</option> |
|
592 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
593 | + print ' selected'; |
|
594 | +} |
|
595 | +?>>Mapbox emerald</option> |
|
416 | 596 | <?php |
417 | 597 | } |
418 | 598 | ?> |
419 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
599 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
600 | + print ' selected'; |
|
601 | +} |
|
602 | +?>>OpenStreetMap</option> |
|
420 | 603 | <?php |
421 | 604 | } |
422 | 605 | ?> |
@@ -427,10 +610,22 @@ discard block |
||
427 | 610 | ?> |
428 | 611 | <li><?php echo _("Type of Terrain:"); ?> |
429 | 612 | <select class="selectpicker" onchange="terrainType(this);"> |
430 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
431 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
432 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
433 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
613 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
614 | + print ' selected'; |
|
615 | +} |
|
616 | +?>>stk terrain</option> |
|
617 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
618 | + print ' selected'; |
|
619 | +} |
|
620 | +?>>ellipsoid</option> |
|
621 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
622 | + print ' selected'; |
|
623 | +} |
|
624 | +?>>vr terrain</option> |
|
625 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') { |
|
626 | + print ' selected'; |
|
627 | +} |
|
628 | +?>>ArticDEM</option> |
|
434 | 629 | </select> |
435 | 630 | </li> |
436 | 631 | <?php |
@@ -440,59 +635,116 @@ discard block |
||
440 | 635 | <?php |
441 | 636 | if (isset($globalMap3D) && $globalMap3D) { |
442 | 637 | ?> |
443 | - <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> |
|
638 | + <li><div class="checkbox"><label><input type="checkbox" name="synchro2d3d" value="1" onclick="clickSyncMap2D3D(this)" <?php if (isset($_COOKIE['Map2D3DSync']) && $_COOKIE['Map2D3DSync'] == 'true') { |
|
639 | + print 'checked'; |
|
640 | +} |
|
641 | +?> ><?php echo _("Use same type of map for 2D & 3D"); ?></label></div></li> |
|
444 | 642 | <?php |
445 | 643 | } |
446 | 644 | ?> |
447 | 645 | <?php |
448 | 646 | if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
449 | 647 | ?> |
450 | - <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> |
|
648 | + <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') { |
|
649 | + print 'checked'; |
|
650 | +} |
|
651 | +?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
|
451 | 652 | |
452 | 653 | <?php |
453 | 654 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
454 | 655 | ?> |
455 | - <!--<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>--> |
|
456 | - <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> |
|
457 | - <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> |
|
458 | - <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> |
|
459 | - <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> |
|
656 | + <!--<li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
657 | + print 'checked'; |
|
658 | +} |
|
659 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li>--> |
|
660 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
661 | + print 'checked'; |
|
662 | +} |
|
663 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
664 | + <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)) { |
|
665 | + print 'checked'; |
|
666 | +} |
|
667 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
668 | + <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)) { |
|
669 | + print 'checked'; |
|
670 | +} |
|
671 | +?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
672 | + <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)) { |
|
673 | + print 'checked'; |
|
674 | +} |
|
675 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
460 | 676 | <?php |
461 | 677 | } elseif (!isset($globalTracker) || $globalTracker === TRUE) { |
462 | 678 | ?> |
463 | - <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> |
|
679 | + <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)) { |
|
680 | + print 'checked'; |
|
681 | +} |
|
682 | +?> ><?php echo _("Enable map matching"); ?></label></div></li> |
|
464 | 683 | <?php |
465 | 684 | } |
466 | 685 | if (isset($globalSatellite) && $globalSatellite === TRUE) { |
467 | 686 | ?> |
468 | - <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> |
|
687 | + <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)) { |
|
688 | + print 'checked'; |
|
689 | +} |
|
690 | +?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
469 | 691 | <?php |
470 | 692 | } |
471 | 693 | } |
472 | 694 | ?> |
473 | - <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> |
|
474 | - <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> |
|
475 | - <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> |
|
476 | - <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> |
|
695 | + <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'])) { |
|
696 | + print 'checked'; |
|
697 | +} |
|
698 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
699 | + <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))) { |
|
700 | + print 'checked'; |
|
701 | +} |
|
702 | +?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
703 | + <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))) { |
|
704 | + print 'checked'; |
|
705 | +} |
|
706 | +?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
707 | + <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))) { |
|
708 | + print 'checked'; |
|
709 | +} |
|
710 | +?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
477 | 711 | <?php |
478 | 712 | if (isset($globalFires)) { |
479 | 713 | ?> |
480 | - <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> |
|
714 | + <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))) { |
|
715 | + print 'checked'; |
|
716 | +} |
|
717 | +?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
481 | 718 | <?php |
482 | 719 | } |
483 | 720 | if (isset($globalMap3D) && $globalMap3D) { |
484 | 721 | ?> |
485 | - <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if (isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') print 'checked'; ?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li> |
|
722 | + <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if (isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') { |
|
723 | + print 'checked'; |
|
724 | +} |
|
725 | +?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li> |
|
486 | 726 | <?php |
487 | 727 | } |
488 | 728 | ?> |
489 | 729 | <?php |
490 | 730 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
491 | 731 | ?> |
492 | - <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> |
|
493 | - <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> |
|
494 | - <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> |
|
495 | - <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> |
|
732 | + <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')) { |
|
733 | + print 'checked'; |
|
734 | +} |
|
735 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
736 | + <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')) { |
|
737 | + print 'checked'; |
|
738 | +} |
|
739 | +?> ><?php echo _("Use shadows"); ?></label></div></li> |
|
740 | + <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)) { |
|
741 | + print 'checked'; |
|
742 | +} |
|
743 | +?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
|
744 | + <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'])) { |
|
745 | + print 'checked'; |
|
746 | +} |
|
747 | +?> ><?php echo _("Display realtime data in infobox"); ?></label></div></li> |
|
496 | 748 | <?php |
497 | 749 | } |
498 | 750 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -505,17 +757,25 @@ discard block |
||
505 | 757 | if (function_exists('array_column')) { |
506 | 758 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
507 | 759 | ?> |
508 | - <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> |
|
760 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
761 | + print 'checked'; |
|
762 | +} |
|
763 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
509 | 764 | <?php |
510 | 765 | } |
511 | 766 | } elseif (isset($globalSources)) { |
512 | 767 | $dispolar = false; |
513 | 768 | foreach ($globalSources as $testsource) { |
514 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
769 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
770 | + $dispolar = true; |
|
771 | + } |
|
515 | 772 | } |
516 | 773 | if ($dispolar) { |
517 | 774 | ?> |
518 | - <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> |
|
775 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
776 | + print 'checked'; |
|
777 | +} |
|
778 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
519 | 779 | <?php |
520 | 780 | } |
521 | 781 | } |
@@ -528,11 +788,21 @@ discard block |
||
528 | 788 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
529 | 789 | if (extension_loaded('gd') && function_exists('gd_info')) { |
530 | 790 | ?> |
531 | - <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> |
|
791 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
792 | + print 'checked'; |
|
793 | +} |
|
794 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
532 | 795 | <?php |
533 | 796 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
534 | 797 | ?> |
535 | - <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> |
|
798 | + <li><?php echo _("Aircraft icon color:"); ?><input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
799 | + print $_COOKIE['IconColor']; |
|
800 | +} elseif (isset($globalAircraftIconColor)) { |
|
801 | + print $globalAircraftIconColor; |
|
802 | +} else { |
|
803 | + print '1a3151'; |
|
804 | +} |
|
805 | +?>"></li> |
|
536 | 806 | <?php |
537 | 807 | } |
538 | 808 | } |
@@ -543,7 +813,14 @@ discard block |
||
543 | 813 | if (extension_loaded('gd') && function_exists('gd_info')) { |
544 | 814 | ?> |
545 | 815 | <li><?php echo _("Marine icon color:"); ?> |
546 | - <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'; ?>"> |
|
816 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
817 | + print $_COOKIE['MarineIconColor']; |
|
818 | +} elseif (isset($globalMarineIconColor)) { |
|
819 | + print $globalMarineIconColor; |
|
820 | +} else { |
|
821 | + print '1a3151'; |
|
822 | +} |
|
823 | +?>"> |
|
547 | 824 | </li> |
548 | 825 | <?php |
549 | 826 | } |
@@ -554,7 +831,14 @@ discard block |
||
554 | 831 | if (extension_loaded('gd') && function_exists('gd_info')) { |
555 | 832 | ?> |
556 | 833 | <li><?php echo _("Tracker icon color:"); ?> |
557 | - <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'; ?>"> |
|
834 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
835 | + print $_COOKIE['TrackerIconColor']; |
|
836 | +} elseif (isset($globalTrackerIconColor)) { |
|
837 | + print $globalTrackerIconColor; |
|
838 | +} else { |
|
839 | + print '1a3151'; |
|
840 | +} |
|
841 | +?>"> |
|
558 | 842 | </li> |
559 | 843 | <?php |
560 | 844 | } |
@@ -565,8 +849,22 @@ discard block |
||
565 | 849 | ?> |
566 | 850 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
567 | 851 | <div class="range"> |
568 | - <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'; ?>"> |
|
569 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
852 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
853 | + print $_COOKIE['AirportZoom']; |
|
854 | +} elseif (isset($globalAirportZoom)) { |
|
855 | + print $globalAirportZoom; |
|
856 | +} else { |
|
857 | + print '7'; |
|
858 | +} |
|
859 | +?>"> |
|
860 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
861 | + print $_COOKIE['AirportZoom']; |
|
862 | +} elseif (isset($globalAirportZoom)) { |
|
863 | + print $globalAirportZoom; |
|
864 | +} else { |
|
865 | + print '7'; |
|
866 | +} |
|
867 | +?></output> |
|
570 | 868 | </div> |
571 | 869 | </li> |
572 | 870 | <?php |
@@ -577,17 +875,40 @@ discard block |
||
577 | 875 | ?> |
578 | 876 | <li><?php echo _("Set scaling factor for rendering resolution:"); ?> |
579 | 877 | <div class="range"> |
580 | - <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'; ?>"> |
|
581 | - <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?></output> |
|
878 | + <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'])) { |
|
879 | + print $_COOKIE['resolutionScale']; |
|
880 | +} else { |
|
881 | + print '1'; |
|
882 | +} |
|
883 | +?>"> |
|
884 | + <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) { |
|
885 | + print $_COOKIE['resolutionScale']; |
|
886 | +} else { |
|
887 | + print '1'; |
|
888 | +} |
|
889 | +?></output> |
|
582 | 890 | </div> |
583 | 891 | </li> |
584 | 892 | <?php |
585 | 893 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
586 | 894 | ?> |
587 | - <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> |
|
588 | - <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"); ?> |
|
895 | + <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') { |
|
896 | + print 'checked'; |
|
897 | +} |
|
898 | +?> > <?php echo _("Use airlines liveries"); ?></li> |
|
899 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
900 | + print 'checked'; |
|
901 | +} |
|
902 | +?> > <?php echo _("Force Aircraft color"); ?> |
|
589 | 903 | <!--<li><?php echo _("Aircraft icon color:"); ?>--> |
590 | - <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'; ?>"> |
|
904 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
905 | + print $_COOKIE['IconColor']; |
|
906 | +} elseif (isset($globalAircraftIconColor)) { |
|
907 | + print $globalAircraftIconColor; |
|
908 | +} else { |
|
909 | + print 'ff0000'; |
|
910 | +} |
|
911 | +?>"> |
|
591 | 912 | </li> |
592 | 913 | <?php |
593 | 914 | } |
@@ -595,9 +916,19 @@ discard block |
||
595 | 916 | <?php |
596 | 917 | if (isset($globalMarine) && $globalMarine === TRUE) { |
597 | 918 | ?> |
598 | - <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"); ?> |
|
919 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
920 | + print 'checked'; |
|
921 | +} |
|
922 | +?> ><?php echo _("Force Marine color"); ?> |
|
599 | 923 | <!--<li><?php echo _("Marine icon color:"); ?>--> |
600 | - <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'; ?>"> |
|
924 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
925 | + print $_COOKIE['MarineIconColor']; |
|
926 | +} elseif (isset($globalMarineIconColor)) { |
|
927 | + print $globalMarineIconColor; |
|
928 | +} else { |
|
929 | + print 'ff0000'; |
|
930 | +} |
|
931 | +?>"> |
|
601 | 932 | </li> |
602 | 933 | <?php |
603 | 934 | } |
@@ -605,9 +936,19 @@ discard block |
||
605 | 936 | <?php |
606 | 937 | if (isset($globalTracker) && $globalTracker === TRUE) { |
607 | 938 | ?> |
608 | - <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"); ?> |
|
939 | + <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') { |
|
940 | + print 'checked'; |
|
941 | +} |
|
942 | +?> ><?php echo _("Force Tracker color"); ?> |
|
609 | 943 | <!--<li><?php echo _("Tracker icon color:"); ?>--> |
610 | - <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'; ?>"> |
|
944 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
945 | + print $_COOKIE['TrackerIconColor']; |
|
946 | +} elseif (isset($globalTrackerIconColor)) { |
|
947 | + print $globalTrackerIconColor; |
|
948 | +} else { |
|
949 | + print 'ff0000'; |
|
950 | +} |
|
951 | +?>"> |
|
611 | 952 | </li> |
612 | 953 | <?php |
613 | 954 | } |
@@ -615,22 +956,46 @@ discard block |
||
615 | 956 | ?> |
616 | 957 | <li><?php echo _("Distance unit:"); ?> |
617 | 958 | <select class="selectpicker" onchange="unitdistance(this);"> |
618 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
619 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
620 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
959 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
960 | + echo ' selected'; |
|
961 | +} |
|
962 | +?>>km</option> |
|
963 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
964 | + echo ' selected'; |
|
965 | +} |
|
966 | +?>>nm</option> |
|
967 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
968 | + echo ' selected'; |
|
969 | +} |
|
970 | +?>>mi</option> |
|
621 | 971 | </select> |
622 | 972 | </li> |
623 | 973 | <li><?php echo _("Altitude unit:"); ?> |
624 | 974 | <select class="selectpicker" onchange="unitaltitude(this);"> |
625 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
626 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
975 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
976 | + echo ' selected'; |
|
977 | +} |
|
978 | +?>>m</option> |
|
979 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
980 | + echo ' selected'; |
|
981 | +} |
|
982 | +?>>feet</option> |
|
627 | 983 | </select> |
628 | 984 | </li> |
629 | 985 | <li><?php echo _("Speed unit:"); ?> |
630 | 986 | <select class="selectpicker" onchange="unitspeed(this);"> |
631 | - <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> |
|
632 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
633 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
987 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
988 | + echo ' selected'; |
|
989 | +} |
|
990 | +?>>km/h</option> |
|
991 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
992 | + echo ' selected'; |
|
993 | +} |
|
994 | +?>>mph</option> |
|
995 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
996 | + echo ' selected'; |
|
997 | +} |
|
998 | +?>>knots</option> |
|
634 | 999 | </select> |
635 | 1000 | </li> |
636 | 1001 | |
@@ -648,9 +1013,18 @@ discard block |
||
648 | 1013 | <?php |
649 | 1014 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
650 | 1015 | ?> |
651 | - <?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 } ?> |
|
652 | - <?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 } ?> |
|
653 | - <?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 } ?> |
|
1016 | + <?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'])) { |
|
1017 | + print 'checked'; |
|
1018 | +} |
|
1019 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
1020 | + <?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'])) { |
|
1021 | + print 'checked'; |
|
1022 | +} |
|
1023 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
1024 | + <?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'])) { |
|
1025 | + print 'checked'; |
|
1026 | +} |
|
1027 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
654 | 1028 | <?php |
655 | 1029 | } |
656 | 1030 | ?> |
@@ -658,10 +1032,16 @@ discard block |
||
658 | 1032 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
659 | 1033 | ?> |
660 | 1034 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
661 | - <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> |
|
1035 | + <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'])) { |
|
1036 | + print 'checked'; |
|
1037 | +} |
|
1038 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
662 | 1039 | <?php } ?> |
663 | 1040 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
664 | - <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> |
|
1041 | + <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'])) { |
|
1042 | + print 'checked'; |
|
1043 | +} |
|
1044 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
665 | 1045 | <?php } ?> |
666 | 1046 | <?php |
667 | 1047 | } |
@@ -678,7 +1058,9 @@ discard block |
||
678 | 1058 | } |
679 | 1059 | foreach($allairlinenames as $airline) { |
680 | 1060 | $airline_name = $airline['airline_name']; |
681 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
1061 | + if (strlen($airline_name) > 30) { |
|
1062 | + $airline_name = substr($airline_name,0,30).'...'; |
|
1063 | + } |
|
682 | 1064 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
683 | 1065 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
684 | 1066 | } else { |
@@ -696,7 +1078,10 @@ discard block |
||
696 | 1078 | <li><?php echo _("Display alliance:"); ?> |
697 | 1079 | <br/> |
698 | 1080 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
699 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
1081 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
1082 | + echo ' selected'; |
|
1083 | +} |
|
1084 | +?>><?php echo _("All"); ?></option> |
|
700 | 1085 | <?php |
701 | 1086 | foreach($allalliancenames as $alliance) { |
702 | 1087 | $alliance_name = $alliance['alliance']; |
@@ -755,10 +1140,22 @@ discard block |
||
755 | 1140 | ?> |
756 | 1141 | <li><?php echo _("Display airlines of type:"); ?><br/> |
757 | 1142 | <select class="selectpicker" onchange="airlinestype(this);"> |
758 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
759 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
760 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
761 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
1143 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
1144 | + echo ' selected'; |
|
1145 | +} |
|
1146 | +?>><?php echo _("All"); ?></option> |
|
1147 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
1148 | + echo ' selected'; |
|
1149 | +} |
|
1150 | +?>><?php echo _("Passenger"); ?></option> |
|
1151 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
1152 | + echo ' selected'; |
|
1153 | +} |
|
1154 | +?>><?php echo _("Cargo"); ?></option> |
|
1155 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
1156 | + echo ' selected'; |
|
1157 | +} |
|
1158 | +?>><?php echo _("Military"); ?></option> |
|
762 | 1159 | </select> |
763 | 1160 | </li> |
764 | 1161 | <?php |
@@ -772,7 +1169,10 @@ discard block |
||
772 | 1169 | ?> |
773 | 1170 | <li> |
774 | 1171 | <?php echo _("Display vessels with MMSI:"); ?> |
775 | - <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
|
1172 | + <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) { |
|
1173 | + print $_COOKIE['filter_mmsi']; |
|
1174 | +} |
|
1175 | +?>" /> |
|
776 | 1176 | </li> |
777 | 1177 | <?php |
778 | 1178 | if (isset($globalVM) && $globalVM) { |
@@ -803,7 +1203,10 @@ discard block |
||
803 | 1203 | ?> |
804 | 1204 | <li> |
805 | 1205 | <?php echo _("Display with ident:"); ?> |
806 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
1206 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
1207 | + print $_COOKIE['filter_ident']; |
|
1208 | +} |
|
1209 | +?>" /> |
|
807 | 1210 | </li> |
808 | 1211 | </ul> |
809 | 1212 | </form> |
@@ -819,7 +1222,10 @@ discard block |
||
819 | 1222 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
820 | 1223 | <form> |
821 | 1224 | <ul> |
822 | - <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> |
|
1225 | + <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'])) { |
|
1226 | + print 'checked'; |
|
1227 | +} |
|
1228 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
823 | 1229 | <li><?php echo _("Type:"); ?> |
824 | 1230 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
825 | 1231 | <?php |
@@ -827,25 +1233,45 @@ discard block |
||
827 | 1233 | $types = $Satellite->get_tle_types(); |
828 | 1234 | foreach ($types as $type) { |
829 | 1235 | $type_name = $type['tle_type']; |
830 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
831 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
832 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
833 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
834 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
835 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
836 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
837 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
838 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
839 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
840 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
841 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
842 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
843 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
844 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
845 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
846 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
847 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
848 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
1236 | + if ($type_name == 'musson') { |
|
1237 | + $type_name = 'Russian LEO Navigation'; |
|
1238 | + } else if ($type_name == 'nnss') { |
|
1239 | + $type_name = 'Navi Navigation Satellite System'; |
|
1240 | + } else if ($type_name == 'sbas') { |
|
1241 | + $type_name = 'Satellite-Based Augmentation System'; |
|
1242 | + } else if ($type_name == 'glo-ops') { |
|
1243 | + $type_name = 'Glonass Operational'; |
|
1244 | + } else if ($type_name == 'gps-ops') { |
|
1245 | + $type_name = 'GPS Operational'; |
|
1246 | + } else if ($type_name == 'argos') { |
|
1247 | + $type_name = 'ARGOS Data Collection System'; |
|
1248 | + } else if ($type_name == 'tdrss') { |
|
1249 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
1250 | + } else if ($type_name == 'sarsat') { |
|
1251 | + $type_name = 'Search & Rescue'; |
|
1252 | + } else if ($type_name == 'dmc') { |
|
1253 | + $type_name = 'Disaster Monitoring'; |
|
1254 | + } else if ($type_name == 'resource') { |
|
1255 | + $type_name = 'Earth Resources'; |
|
1256 | + } else if ($type_name == 'stations') { |
|
1257 | + $type_name = 'Space Stations'; |
|
1258 | + } else if ($type_name == 'geo') { |
|
1259 | + $type_name = 'Geostationary'; |
|
1260 | + } else if ($type_name == 'amateur') { |
|
1261 | + $type_name = 'Amateur Radio'; |
|
1262 | + } else if ($type_name == 'x-comm') { |
|
1263 | + $type_name = 'Experimental'; |
|
1264 | + } else if ($type_name == 'other-comm') { |
|
1265 | + $type_name = 'Other Comm'; |
|
1266 | + } else if ($type_name == 'science') { |
|
1267 | + $type_name = 'Space & Earth Science'; |
|
1268 | + } else if ($type_name == 'military') { |
|
1269 | + $type_name = 'Miscellaneous Military'; |
|
1270 | + } else if ($type_name == 'radar') { |
|
1271 | + $type_name = 'Radar Calibration'; |
|
1272 | + } else if ($type_name == 'tle-new') { |
|
1273 | + $type_name = 'Last 30 days launches'; |
|
1274 | + } |
|
849 | 1275 | |
850 | 1276 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
851 | 1277 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |