@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | <?php }; if (isset($globalSatellite) && $globalSatellite) { ?><td><div id="ibxsatellite"><h4><?php echo _("Satellites Displayed"); ?></h4><br /><i class="fa fa-spinner fa-pulse fa-fw"></i></div></td><?php } ?> |
47 | 47 | </tr></table></div> |
48 | 48 | <?php |
49 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
49 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
50 | 50 | ?> |
51 | 51 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php"></script> |
52 | 52 | <?php |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
71 | 71 | <?php |
72 | 72 | } |
73 | - } |
|
73 | + } |
|
74 | 74 | ?> |
75 | 75 | |
76 | 76 | <div id="sidebar" class="sidebar collapsed"> |
@@ -81,34 +81,34 @@ discard block |
||
81 | 81 | <li><a href="#" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
82 | 82 | <li><a href="#" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
83 | 83 | <?php |
84 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
84 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
85 | 85 | if (isset($globalArchive) && $globalArchive == TRUE) { |
86 | 86 | ?> |
87 | 87 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
88 | 88 | <?php |
89 | 89 | } |
90 | - } |
|
90 | + } |
|
91 | 91 | ?> |
92 | 92 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
93 | 93 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
94 | 94 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
95 | 95 | <?php |
96 | - if (isset($globalMap3D) && $globalMap3D) { |
|
96 | + if (isset($globalMap3D) && $globalMap3D) { |
|
97 | 97 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
98 | 98 | ?> |
99 | 99 | <li><a href="#" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
100 | 100 | <?php |
101 | - if (isset($globalSatellite) && $globalSatellite) { |
|
101 | + if (isset($globalSatellite) && $globalSatellite) { |
|
102 | 102 | ?> |
103 | 103 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
104 | 104 | <?php |
105 | - } |
|
105 | + } |
|
106 | 106 | } else { |
107 | 107 | ?> |
108 | 108 | <li><a href="#" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
109 | 109 | <?php |
110 | 110 | } |
111 | - } |
|
111 | + } |
|
112 | 112 | ?> |
113 | 113 | </ul> |
114 | 114 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | ?> |
184 | 184 | </div> |
185 | 185 | <?php |
186 | - if (isset($globalArchive) && $globalArchive == TRUE) { |
|
186 | + if (isset($globalArchive) && $globalArchive == TRUE) { |
|
187 | 187 | ?> |
188 | 188 | <div class="sidebar-pane" id="archive"> |
189 | 189 | <h1 class="sidebar-header"><?php echo _("Playback"); ?> <i>Bêta</i><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | </form> |
243 | 243 | </div> |
244 | 244 | <?php |
245 | - } |
|
245 | + } |
|
246 | 246 | ?> |
247 | 247 | <div class="sidebar-pane" id="settings"> |
248 | 248 | <h1 class="sidebar-header"><?php echo _("Settings"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -253,56 +253,56 @@ discard block |
||
253 | 253 | <?php |
254 | 254 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
255 | 255 | else $MapType = $_COOKIE['MapType']; |
256 | - ?> |
|
256 | + ?> |
|
257 | 257 | <?php |
258 | 258 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
259 | - ?> |
|
259 | + ?> |
|
260 | 260 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
261 | 261 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
262 | 262 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
263 | 263 | <?php |
264 | 264 | } |
265 | - ?> |
|
265 | + ?> |
|
266 | 266 | <?php |
267 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
268 | - ?> |
|
267 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
268 | + ?> |
|
269 | 269 | <?php |
270 | - if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
271 | - ?> |
|
270 | + if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
271 | + ?> |
|
272 | 272 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
273 | 273 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
274 | 274 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
275 | 275 | <?php |
276 | - } |
|
277 | - ?> |
|
276 | + } |
|
277 | + ?> |
|
278 | 278 | <?php |
279 | - if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
280 | - ?> |
|
279 | + if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
280 | + ?> |
|
281 | 281 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
282 | 282 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
283 | 283 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
284 | 284 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
285 | 285 | <?php |
286 | - } |
|
287 | - ?> |
|
286 | + } |
|
287 | + ?> |
|
288 | 288 | <?php |
289 | - if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
290 | - ?> |
|
289 | + if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
290 | + ?> |
|
291 | 291 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
292 | 292 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
293 | 293 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
294 | 294 | <?php |
295 | - } |
|
296 | - ?> |
|
295 | + } |
|
296 | + ?> |
|
297 | 297 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
298 | 298 | <?php |
299 | 299 | } |
300 | - ?> |
|
300 | + ?> |
|
301 | 301 | <?php |
302 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
302 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
303 | 303 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
304 | 304 | else $MapBoxId = $_COOKIE['MapTypeId']; |
305 | - ?> |
|
305 | + ?> |
|
306 | 306 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
307 | 307 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
308 | 308 | <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
@@ -316,13 +316,13 @@ discard block |
||
316 | 316 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
317 | 317 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
318 | 318 | <?php |
319 | - } |
|
320 | - ?> |
|
319 | + } |
|
320 | + ?> |
|
321 | 321 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
322 | 322 | </select> |
323 | 323 | </li> |
324 | 324 | <?php |
325 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
325 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
326 | 326 | ?> |
327 | 327 | <li><?php echo _("Type of Terrain:"); ?> |
328 | 328 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -333,10 +333,10 @@ discard block |
||
333 | 333 | </select> |
334 | 334 | </li> |
335 | 335 | <?php |
336 | - } |
|
336 | + } |
|
337 | 337 | ?> |
338 | 338 | <?php |
339 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
339 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
340 | 340 | ?> |
341 | 341 | <?php |
342 | 342 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -353,88 +353,88 @@ discard block |
||
353 | 353 | <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> |
354 | 354 | <?php |
355 | 355 | } |
356 | - } |
|
356 | + } |
|
357 | 357 | ?> |
358 | 358 | <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> |
359 | 359 | <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> |
360 | 360 | <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> |
361 | 361 | <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> |
362 | 362 | <?php |
363 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
363 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
364 | 364 | ?> |
365 | 365 | <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> |
366 | 366 | <?php |
367 | - } |
|
368 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
367 | + } |
|
368 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
369 | 369 | ?> |
370 | 370 | <li><div class="checkbox"><label><input type="checkbox" name="displaysanta" value="1" onclick="clickSanta(this)"><i class="fa fa-snowflake-o" aria-hidden="true"></i> <?php echo _("Show Santa Claus now"); ?> <i class="fa fa-snowflake-o" aria-hidden="true"></i></label></div></li> |
371 | 371 | <?php |
372 | - } |
|
372 | + } |
|
373 | 373 | ?> |
374 | 374 | <?php |
375 | 375 | if (function_exists('array_column')) { |
376 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
377 | - ?> |
|
376 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
377 | + ?> |
|
378 | 378 | <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> |
379 | 379 | <?php |
380 | - } |
|
380 | + } |
|
381 | 381 | } elseif (isset($globalSources)) { |
382 | - $dispolar = false; |
|
383 | - foreach ($globalSources as $testsource) { |
|
384 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
385 | - } |
|
386 | - if ($dispolar) { |
|
387 | - ?> |
|
382 | + $dispolar = false; |
|
383 | + foreach ($globalSources as $testsource) { |
|
384 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
385 | + } |
|
386 | + if ($dispolar) { |
|
387 | + ?> |
|
388 | 388 | <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> |
389 | 389 | <?php |
390 | - } |
|
391 | - } |
|
392 | - ?> |
|
390 | + } |
|
391 | + } |
|
392 | + ?> |
|
393 | 393 | <?php |
394 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
394 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
395 | 395 | ?> |
396 | 396 | |
397 | 397 | <?php |
398 | 398 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
399 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
400 | - ?> |
|
399 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
400 | + ?> |
|
401 | 401 | <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> |
402 | 402 | <?php |
403 | 403 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
404 | - ?> |
|
404 | + ?> |
|
405 | 405 | <li><?php echo _("Aircraft icon color:"); ?> |
406 | 406 | <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'; ?>"> |
407 | 407 | </li> |
408 | 408 | <?php |
409 | 409 | } |
410 | - } |
|
411 | - } |
|
412 | - ?> |
|
410 | + } |
|
411 | + } |
|
412 | + ?> |
|
413 | 413 | <?php |
414 | 414 | if (isset($globalMarine) && $globalMarine === TRUE) { |
415 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
416 | - ?> |
|
415 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
416 | + ?> |
|
417 | 417 | <li><?php echo _("Marine icon color:"); ?> |
418 | 418 | <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'; ?>"> |
419 | 419 | </li> |
420 | 420 | <?php |
421 | - } |
|
422 | - } |
|
423 | - ?> |
|
421 | + } |
|
422 | + } |
|
423 | + ?> |
|
424 | 424 | <?php |
425 | 425 | if (isset($globalTracker) && $globalTracker === TRUE) { |
426 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
427 | - ?> |
|
426 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
427 | + ?> |
|
428 | 428 | <li><?php echo _("Tracker icon color:"); ?> |
429 | 429 | <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'; ?>"> |
430 | 430 | </li> |
431 | 431 | <?php |
432 | - } |
|
433 | - } |
|
434 | - ?> |
|
432 | + } |
|
433 | + } |
|
434 | + ?> |
|
435 | 435 | <?php |
436 | 436 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
437 | - ?> |
|
437 | + ?> |
|
438 | 438 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
439 | 439 | <div class="range"> |
440 | 440 | <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?>"> |
@@ -443,9 +443,9 @@ discard block |
||
443 | 443 | </li> |
444 | 444 | <?php |
445 | 445 | } |
446 | - ?> |
|
446 | + ?> |
|
447 | 447 | <?php |
448 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
448 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
449 | 449 | ?> |
450 | 450 | <?php |
451 | 451 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | </li> |
477 | 477 | <?php |
478 | 478 | } |
479 | - } |
|
479 | + } |
|
480 | 480 | ?> |
481 | 481 | <li><?php echo _("Distance unit:"); ?> |
482 | 482 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -509,19 +509,19 @@ discard block |
||
509 | 509 | <ul> |
510 | 510 | <?php |
511 | 511 | if (!isset($globalAircraft) || $globalAircraft) { |
512 | - ?> |
|
512 | + ?> |
|
513 | 513 | <?php |
514 | 514 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
515 | - ?> |
|
515 | + ?> |
|
516 | 516 | <?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 } ?> |
517 | 517 | <?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 } ?> |
518 | 518 | <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['ShowVMS']) && $_COOKIE['ShowVMS'] == 'true') || !isset($_COOKIE['ShowVMS'])) print 'checked'; ?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
519 | 519 | <?php |
520 | 520 | } |
521 | - ?> |
|
521 | + ?> |
|
522 | 522 | <?php |
523 | 523 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
524 | - ?> |
|
524 | + ?> |
|
525 | 525 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
526 | 526 | <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> |
527 | 527 | <?php } ?> |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | <?php } ?> |
531 | 531 | <?php |
532 | 532 | } |
533 | - ?> |
|
533 | + ?> |
|
534 | 534 | <li><?php echo _("Display airlines:"); ?> |
535 | 535 | <br/> |
536 | 536 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -550,14 +550,14 @@ discard block |
||
550 | 550 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
551 | 551 | } |
552 | 552 | } |
553 | - ?> |
|
553 | + ?> |
|
554 | 554 | </select> |
555 | 555 | </li> |
556 | 556 | <?php |
557 | 557 | $Spotter = new Spotter(); |
558 | 558 | $allalliancenames = $Spotter->getAllAllianceNames(); |
559 | 559 | if (!empty($allalliancenames)) { |
560 | - ?> |
|
560 | + ?> |
|
561 | 561 | <li><?php echo _("Display alliance:"); ?> |
562 | 562 | <br/> |
563 | 563 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -571,18 +571,18 @@ discard block |
||
571 | 571 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
572 | 572 | } |
573 | 573 | } |
574 | - ?> |
|
574 | + ?> |
|
575 | 575 | </select> |
576 | 576 | </li> |
577 | 577 | <?php |
578 | 578 | } |
579 | - ?> |
|
579 | + ?> |
|
580 | 580 | <?php |
581 | 581 | } |
582 | - ?> |
|
582 | + ?> |
|
583 | 583 | <?php |
584 | 584 | if (isset($globalAPRS) && $globalAPRS) { |
585 | - ?> |
|
585 | + ?> |
|
586 | 586 | <li><?php echo _("Display APRS sources name:"); ?> |
587 | 587 | <select class="selectpicker" multiple onchange="sources(this);"> |
588 | 588 | <?php |
@@ -607,18 +607,18 @@ discard block |
||
607 | 607 | } |
608 | 608 | } |
609 | 609 | |
610 | - ?> |
|
610 | + ?> |
|
611 | 611 | </select> |
612 | 612 | </li> |
613 | 613 | <?php |
614 | 614 | } |
615 | - ?> |
|
615 | + ?> |
|
616 | 616 | <?php |
617 | 617 | if (!isset($globalAircraft) && $globalAircraft) { |
618 | - ?> |
|
618 | + ?> |
|
619 | 619 | <?php |
620 | 620 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
621 | - ?> |
|
621 | + ?> |
|
622 | 622 | <li><?php echo _("Display airlines of type:"); ?><br/> |
623 | 623 | <select class="selectpicker" onchange="airlinestype(this);"> |
624 | 624 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -629,14 +629,14 @@ discard block |
||
629 | 629 | </li> |
630 | 630 | <?php |
631 | 631 | } |
632 | - ?> |
|
632 | + ?> |
|
633 | 633 | <li> |
634 | 634 | <?php echo _("Display flight with ident:"); ?> |
635 | 635 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
636 | 636 | </li> |
637 | 637 | <?php |
638 | 638 | } |
639 | - ?> |
|
639 | + ?> |
|
640 | 640 | </ul> |
641 | 641 | </form> |
642 | 642 | <form method="post"> |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | </form> |
646 | 646 | </div> |
647 | 647 | <?php |
648 | - if (isset($globalSatellite) && $globalSatellite) { |
|
648 | + if (isset($globalSatellite) && $globalSatellite) { |
|
649 | 649 | ?> |
650 | 650 | <div class="sidebar-pane" id="satellites"> |
651 | 651 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -685,14 +685,14 @@ discard block |
||
685 | 685 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
686 | 686 | } |
687 | 687 | } |
688 | - ?> |
|
688 | + ?> |
|
689 | 689 | </select> |
690 | 690 | </li> |
691 | 691 | </ul> |
692 | 692 | </form> |
693 | 693 | </div> |
694 | 694 | <?php |
695 | - } |
|
695 | + } |
|
696 | 696 | ?> |
697 | 697 | </div> |
698 | 698 | </div> |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | require_once('require/class.Language.php'); |
5 | 5 | require_once('require/class.Satellite.php'); |
6 | 6 | |
7 | -$trackident = filter_input(INPUT_GET,'trackid',FILTER_SANITIZE_STRING); |
|
7 | +$trackident = filter_input(INPUT_GET, 'trackid', FILTER_SANITIZE_STRING); |
|
8 | 8 | if ($trackident != '') { |
9 | 9 | require_once('require/class.SpotterLive.php'); |
10 | 10 | $SpotterLive = new SpotterLive(); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $spotterid = $Spotter->getSpotterIDBasedOnFlightAwareID($trackident); |
15 | 15 | header('Location: '.$globalURL.'/flightid/'.$spotterid); |
16 | 16 | } else { |
17 | - setcookie('MapTrack',$resulttrackident[0]['flightaware_id']); |
|
17 | + setcookie('MapTrack', $resulttrackident[0]['flightaware_id']); |
|
18 | 18 | } |
19 | 19 | } else { |
20 | 20 | unset($_COOKIE['MapTrack']); |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | <div class="form-group"> |
195 | 195 | <label>From (UTC):</label> |
196 | 196 | <div class='input-group date' id='datetimepicker1'> |
197 | - <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a",$_COOKIE['archive_begin']); ?>" required /> |
|
197 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a", $_COOKIE['archive_begin']); ?>" required /> |
|
198 | 198 | <span class="input-group-addon"> |
199 | 199 | <span class="glyphicon glyphicon-calendar"></span> |
200 | 200 | </span> |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | <div class="form-group"> |
204 | 204 | <label>To (UTC):</label> |
205 | 205 | <div class='input-group date' id='datetimepicker2'> |
206 | - <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a",$_COOKIE['archive_end']); ?>" /> |
|
206 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a", $_COOKIE['archive_end']); ?>" /> |
|
207 | 207 | <span class="input-group-addon"> |
208 | 208 | <span class="glyphicon glyphicon-calendar"></span> |
209 | 209 | </span> |
@@ -327,9 +327,9 @@ discard block |
||
327 | 327 | <li><?php echo _("Type of Terrain:"); ?> |
328 | 328 | <select class="selectpicker" onchange="terrainType(this);"> |
329 | 329 | <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
330 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
331 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
332 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
330 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected'; ?>>ellipsoid</option> |
|
331 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected'; ?>>vr terrain</option> |
|
332 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected'; ?>>ArticDEM</option> |
|
333 | 333 | </select> |
334 | 334 | </li> |
335 | 335 | <?php |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | <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> |
366 | 366 | <?php |
367 | 367 | } |
368 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
368 | + if (time() > mktime(0, 0, 0, 12, 1, date("Y")) && time() < mktime(0, 0, 0, 12, 31, date("Y"))) { |
|
369 | 369 | ?> |
370 | 370 | <li><div class="checkbox"><label><input type="checkbox" name="displaysanta" value="1" onclick="clickSanta(this)"><i class="fa fa-snowflake-o" aria-hidden="true"></i> <?php echo _("Show Santa Claus now"); ?> <i class="fa fa-snowflake-o" aria-hidden="true"></i></label></div></li> |
371 | 371 | <?php |
@@ -541,10 +541,10 @@ discard block |
||
541 | 541 | $Spotter = new Spotter(); |
542 | 542 | $allairlinenames = $Spotter->getAllAirlineNames(); |
543 | 543 | } |
544 | - foreach($allairlinenames as $airline) { |
|
544 | + foreach ($allairlinenames as $airline) { |
|
545 | 545 | $airline_name = $airline['airline_name']; |
546 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
547 | - if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
|
546 | + if (strlen($airline_name) > 30) $airline_name = substr($airline_name, 0, 30).'...'; |
|
547 | + if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'], explode(',', $_COOKIE['filter_Airlines']))) { |
|
548 | 548 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
549 | 549 | } else { |
550 | 550 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
564 | 564 | <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
565 | 565 | <?php |
566 | - foreach($allalliancenames as $alliance) { |
|
566 | + foreach ($allalliancenames as $alliance) { |
|
567 | 567 | $alliance_name = $alliance['alliance']; |
568 | 568 | if (isset($_COOKIE['filter_alliance']) && $_COOKIE['filter_alliance'] == $alliance_name) { |
569 | 569 | echo '<option value="'.$alliance_name.'" selected>'.$alliance_name.'</option>'; |
@@ -599,8 +599,8 @@ discard block |
||
599 | 599 | */ |
600 | 600 | $Source = new Source(); |
601 | 601 | $datasource = $Source->getLocationInfoByType('gs'); |
602 | - foreach($datasource as $src) { |
|
603 | - if (isset($_COOKIE['filter_Sources']) && in_array($src['name'],explode(',',$_COOKIE['filter_Sources']))) { |
|
602 | + foreach ($datasource as $src) { |
|
603 | + if (isset($_COOKIE['filter_Sources']) && in_array($src['name'], explode(',', $_COOKIE['filter_Sources']))) { |
|
604 | 604 | echo '<option value="'.$src['name'].'" selected>'.$src['name'].'</option>'; |
605 | 605 | } else { |
606 | 606 | echo '<option value="'.$src['name'].'">'.$src['name'].'</option>'; |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
680 | 680 | else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
681 | 681 | |
682 | - if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
|
682 | + if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'], explode(',', $_COOKIE['sattypes']))) { |
|
683 | 683 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |
684 | 684 | } else { |
685 | 685 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
@@ -162,11 +162,26 @@ discard block |
||
162 | 162 | <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam();" /><?php echo _("Display NOTAM"); ?></label></div></li> |
163 | 163 | <li><?php echo _("NOTAM scope:"); ?> |
164 | 164 | <select class="selectpicker" onchange="notamscope(this);"> |
165 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
166 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
167 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
168 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
169 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
165 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
166 | + print ' selected'; |
|
167 | +} |
|
168 | +?>>All</option> |
|
169 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
170 | + print ' selected'; |
|
171 | +} |
|
172 | +?>>Airport/Enroute warning</option> |
|
173 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
174 | + print ' selected'; |
|
175 | +} |
|
176 | +?>>Airport warning</option> |
|
177 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
178 | + print ' selected'; |
|
179 | +} |
|
180 | +?>>Navigation warning</option> |
|
181 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
182 | + print ' selected'; |
|
183 | +} |
|
184 | +?>>Enroute warning</option> |
|
170 | 185 | </select |
171 | 186 | </li> |
172 | 187 | </ul> |
@@ -194,7 +209,12 @@ discard block |
||
194 | 209 | <div class="form-group"> |
195 | 210 | <label>From (UTC):</label> |
196 | 211 | <div class='input-group date' id='datetimepicker1'> |
197 | - <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a",$_COOKIE['archive_begin']); ?>" required /> |
|
212 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) { |
|
213 | + print $_POST['start_date']; |
|
214 | +} elseif (isset($_COOKIE['archive_begin'])) { |
|
215 | + print date("m/d/Y h:i a",$_COOKIE['archive_begin']); |
|
216 | +} |
|
217 | +?>" required /> |
|
198 | 218 | <span class="input-group-addon"> |
199 | 219 | <span class="glyphicon glyphicon-calendar"></span> |
200 | 220 | </span> |
@@ -203,7 +223,12 @@ discard block |
||
203 | 223 | <div class="form-group"> |
204 | 224 | <label>To (UTC):</label> |
205 | 225 | <div class='input-group date' id='datetimepicker2'> |
206 | - <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a",$_COOKIE['archive_end']); ?>" /> |
|
226 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) { |
|
227 | + print $_POST['end_date']; |
|
228 | +} elseif (isset($_COOKIE['archive_end'])) { |
|
229 | + print date("m/d/Y h:i a",$_COOKIE['archive_end']); |
|
230 | +} |
|
231 | +?>" /> |
|
207 | 232 | <span class="input-group-addon"> |
208 | 233 | <span class="glyphicon glyphicon-calendar"></span> |
209 | 234 | </span> |
@@ -228,8 +253,20 @@ discard block |
||
228 | 253 | </script> |
229 | 254 | <li><?php echo _("Playback speed:"); ?> |
230 | 255 | <div class="range"> |
231 | - <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) print $_POST['archivespeed']; elseif (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?>"> |
|
232 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
256 | + <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
257 | + print $_POST['archivespeed']; |
|
258 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
259 | + print $_COOKIE['archive_speed']; |
|
260 | +} else { |
|
261 | + print '1'; |
|
262 | +} |
|
263 | +?>"> |
|
264 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
265 | + print $_COOKIE['archive_speed']; |
|
266 | +} else { |
|
267 | + print '1'; |
|
268 | +} |
|
269 | +?></output> |
|
233 | 270 | </div> |
234 | 271 | </li> |
235 | 272 | <li><input type="submit" name="archive" value="Show archive" class="btn btn-primary" /></li> |
@@ -251,15 +288,27 @@ discard block |
||
251 | 288 | <li><?php echo _("Type of Map:"); ?> |
252 | 289 | <select class="selectpicker" onchange="mapType(this);"> |
253 | 290 | <?php |
254 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
255 | - else $MapType = $_COOKIE['MapType']; |
|
291 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
292 | + $MapType = $globalMapProvider; |
|
293 | + } else { |
|
294 | + $MapType = $_COOKIE['MapType']; |
|
295 | + } |
|
256 | 296 | ?> |
257 | 297 | <?php |
258 | 298 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
259 | 299 | ?> |
260 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
261 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
262 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
300 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
301 | + print ' selected'; |
|
302 | +} |
|
303 | +?>>Bing-Aerial</option> |
|
304 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
305 | + print ' selected'; |
|
306 | +} |
|
307 | +?>>Bing-Hybrid</option> |
|
308 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
309 | + print ' selected'; |
|
310 | +} |
|
311 | +?>>Bing-Road</option> |
|
263 | 312 | <?php |
264 | 313 | } |
265 | 314 | ?> |
@@ -269,56 +318,131 @@ discard block |
||
269 | 318 | <?php |
270 | 319 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
271 | 320 | ?> |
272 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
273 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
274 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
321 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
322 | + print ' selected'; |
|
323 | +} |
|
324 | +?>>Here-Aerial</option> |
|
325 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
326 | + print ' selected'; |
|
327 | +} |
|
328 | +?>>Here-Hybrid</option> |
|
329 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
330 | + print ' selected'; |
|
331 | +} |
|
332 | +?>>Here-Road</option> |
|
275 | 333 | <?php |
276 | 334 | } |
277 | 335 | ?> |
278 | 336 | <?php |
279 | 337 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
280 | 338 | ?> |
281 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
282 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
283 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
284 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
339 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
340 | + print ' selected'; |
|
341 | +} |
|
342 | +?>>Google Roadmap</option> |
|
343 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
344 | + print ' selected'; |
|
345 | +} |
|
346 | +?>>Google Satellite</option> |
|
347 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
348 | + print ' selected'; |
|
349 | +} |
|
350 | +?>>Google Hybrid</option> |
|
351 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
352 | + print ' selected'; |
|
353 | +} |
|
354 | +?>>Google Terrain</option> |
|
285 | 355 | <?php |
286 | 356 | } |
287 | 357 | ?> |
288 | 358 | <?php |
289 | 359 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
290 | 360 | ?> |
291 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
292 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
293 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
361 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
362 | + print ' selected'; |
|
363 | +} |
|
364 | +?>>MapQuest-OSM</option> |
|
365 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
366 | + print ' selected'; |
|
367 | +} |
|
368 | +?>>MapQuest-Aerial</option> |
|
369 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
370 | + print ' selected'; |
|
371 | +} |
|
372 | +?>>MapQuest-Hybrid</option> |
|
294 | 373 | <?php |
295 | 374 | } |
296 | 375 | ?> |
297 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
376 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
377 | + print ' selected'; |
|
378 | +} |
|
379 | +?>>Yandex</option> |
|
298 | 380 | <?php |
299 | 381 | } |
300 | 382 | ?> |
301 | 383 | <?php |
302 | 384 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
303 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
304 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
385 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
386 | + $MapBoxId = 'default'; |
|
387 | + } else { |
|
388 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
389 | + } |
|
305 | 390 | ?> |
306 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
307 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
308 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
309 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
310 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
311 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
312 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
313 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
314 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
315 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
316 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
317 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
391 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
392 | + print ' selected'; |
|
393 | +} |
|
394 | +?>>Mapbox default</option> |
|
395 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
396 | + print ' selected'; |
|
397 | +} |
|
398 | +?>>Mapbox streets</option> |
|
399 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
400 | + print ' selected'; |
|
401 | +} |
|
402 | +?>>Mapbox light</option> |
|
403 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
404 | + print ' selected'; |
|
405 | +} |
|
406 | +?>>Mapbox dark</option> |
|
407 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
408 | + print ' selected'; |
|
409 | +} |
|
410 | +?>>Mapbox satellite</option> |
|
411 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
412 | + print ' selected'; |
|
413 | +} |
|
414 | +?>>Mapbox streets-satellite</option> |
|
415 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
416 | + print ' selected'; |
|
417 | +} |
|
418 | +?>>Mapbox streets-basic</option> |
|
419 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
420 | + print ' selected'; |
|
421 | +} |
|
422 | +?>>Mapbox comic</option> |
|
423 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
424 | + print ' selected'; |
|
425 | +} |
|
426 | +?>>Mapbox outdoors</option> |
|
427 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
428 | + print ' selected'; |
|
429 | +} |
|
430 | +?>>Mapbox pencil</option> |
|
431 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
432 | + print ' selected'; |
|
433 | +} |
|
434 | +?>>Mapbox pirates</option> |
|
435 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
436 | + print ' selected'; |
|
437 | +} |
|
438 | +?>>Mapbox emerald</option> |
|
318 | 439 | <?php |
319 | 440 | } |
320 | 441 | ?> |
321 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
442 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
443 | + print ' selected'; |
|
444 | +} |
|
445 | +?>>OpenStreetMap</option> |
|
322 | 446 | </select> |
323 | 447 | </li> |
324 | 448 | <?php |
@@ -326,10 +450,22 @@ discard block |
||
326 | 450 | ?> |
327 | 451 | <li><?php echo _("Type of Terrain:"); ?> |
328 | 452 | <select class="selectpicker" onchange="terrainType(this);"> |
329 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
330 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
331 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
332 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
453 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
454 | + print ' selected'; |
|
455 | +} |
|
456 | +?>>stk terrain</option> |
|
457 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
458 | + print ' selected'; |
|
459 | +} |
|
460 | +?>>ellipsoid</option> |
|
461 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
462 | + print ' selected'; |
|
463 | +} |
|
464 | +?>>vr terrain</option> |
|
465 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') { |
|
466 | + print ' selected'; |
|
467 | +} |
|
468 | +?>>ArticDEM</option> |
|
333 | 469 | </select> |
334 | 470 | </li> |
335 | 471 | <?php |
@@ -341,28 +477,61 @@ discard block |
||
341 | 477 | <?php |
342 | 478 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
343 | 479 | ?> |
344 | - <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> |
|
345 | - <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> |
|
346 | - <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (isset($globalMapRoute) && $globalMapRoute)) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
347 | - <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> |
|
348 | - <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> |
|
480 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
481 | + print 'checked'; |
|
482 | +} |
|
483 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
484 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
485 | + print 'checked'; |
|
486 | +} |
|
487 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
488 | + <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (isset($globalMapRoute) && $globalMapRoute)) { |
|
489 | + print 'checked'; |
|
490 | +} |
|
491 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
492 | + <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)) { |
|
493 | + print 'checked'; |
|
494 | +} |
|
495 | +?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
496 | + <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)) { |
|
497 | + print 'checked'; |
|
498 | +} |
|
499 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
349 | 500 | <?php |
350 | 501 | } |
351 | 502 | if (isset($globalSatellite) && $globalSatellite === TRUE) { |
352 | 503 | ?> |
353 | - <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> |
|
504 | + <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)) { |
|
505 | + print 'checked'; |
|
506 | +} |
|
507 | +?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
354 | 508 | <?php |
355 | 509 | } |
356 | 510 | } |
357 | 511 | ?> |
358 | - <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> |
|
359 | - <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> |
|
360 | - <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> |
|
361 | - <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> |
|
512 | + <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'])) { |
|
513 | + print 'checked'; |
|
514 | +} |
|
515 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
516 | + <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))) { |
|
517 | + print 'checked'; |
|
518 | +} |
|
519 | +?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
520 | + <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))) { |
|
521 | + print 'checked'; |
|
522 | +} |
|
523 | +?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
524 | + <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))) { |
|
525 | + print 'checked'; |
|
526 | +} |
|
527 | +?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
362 | 528 | <?php |
363 | 529 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
364 | 530 | ?> |
365 | - <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> |
|
531 | + <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')) { |
|
532 | + print 'checked'; |
|
533 | +} |
|
534 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
366 | 535 | <?php |
367 | 536 | } |
368 | 537 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -375,17 +544,25 @@ discard block |
||
375 | 544 | if (function_exists('array_column')) { |
376 | 545 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
377 | 546 | ?> |
378 | - <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> |
|
547 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
548 | + print 'checked'; |
|
549 | +} |
|
550 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
379 | 551 | <?php |
380 | 552 | } |
381 | 553 | } elseif (isset($globalSources)) { |
382 | 554 | $dispolar = false; |
383 | 555 | foreach ($globalSources as $testsource) { |
384 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
556 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
557 | + $dispolar = true; |
|
558 | + } |
|
385 | 559 | } |
386 | 560 | if ($dispolar) { |
387 | 561 | ?> |
388 | - <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> |
|
562 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
563 | + print 'checked'; |
|
564 | +} |
|
565 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
389 | 566 | <?php |
390 | 567 | } |
391 | 568 | } |
@@ -398,12 +575,22 @@ discard block |
||
398 | 575 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
399 | 576 | if (extension_loaded('gd') && function_exists('gd_info')) { |
400 | 577 | ?> |
401 | - <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> |
|
578 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
579 | + print 'checked'; |
|
580 | +} |
|
581 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
402 | 582 | <?php |
403 | 583 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
404 | 584 | ?> |
405 | 585 | <li><?php echo _("Aircraft icon color:"); ?> |
406 | - <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'; ?>"> |
|
586 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
587 | + print $_COOKIE['IconColor']; |
|
588 | +} elseif (isset($globalAircraftIconColor)) { |
|
589 | + print $globalAircraftIconColor; |
|
590 | +} else { |
|
591 | + print '1a3151'; |
|
592 | +} |
|
593 | +?>"> |
|
407 | 594 | </li> |
408 | 595 | <?php |
409 | 596 | } |
@@ -415,7 +602,14 @@ discard block |
||
415 | 602 | if (extension_loaded('gd') && function_exists('gd_info')) { |
416 | 603 | ?> |
417 | 604 | <li><?php echo _("Marine icon color:"); ?> |
418 | - <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'; ?>"> |
|
605 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
606 | + print $_COOKIE['MarineIconColor']; |
|
607 | +} elseif (isset($globalMarineIconColor)) { |
|
608 | + print $globalMarineIconColor; |
|
609 | +} else { |
|
610 | + print '1a3151'; |
|
611 | +} |
|
612 | +?>"> |
|
419 | 613 | </li> |
420 | 614 | <?php |
421 | 615 | } |
@@ -426,7 +620,14 @@ discard block |
||
426 | 620 | if (extension_loaded('gd') && function_exists('gd_info')) { |
427 | 621 | ?> |
428 | 622 | <li><?php echo _("Tracker icon color:"); ?> |
429 | - <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'; ?>"> |
|
623 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
624 | + print $_COOKIE['TrackerIconColor']; |
|
625 | +} elseif (isset($globalTrackerIconColor)) { |
|
626 | + print $globalTrackerIconColor; |
|
627 | +} else { |
|
628 | + print '1a3151'; |
|
629 | +} |
|
630 | +?>"> |
|
430 | 631 | </li> |
431 | 632 | <?php |
432 | 633 | } |
@@ -437,8 +638,22 @@ discard block |
||
437 | 638 | ?> |
438 | 639 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
439 | 640 | <div class="range"> |
440 | - <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'; ?>"> |
|
441 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
641 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
642 | + print $_COOKIE['AirportZoom']; |
|
643 | +} elseif (isset($globalAirportZoom)) { |
|
644 | + print $globalAirportZoom; |
|
645 | +} else { |
|
646 | + print '7'; |
|
647 | +} |
|
648 | +?>"> |
|
649 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
650 | + print $_COOKIE['AirportZoom']; |
|
651 | +} elseif (isset($globalAirportZoom)) { |
|
652 | + print $globalAirportZoom; |
|
653 | +} else { |
|
654 | + print '7'; |
|
655 | +} |
|
656 | +?></output> |
|
442 | 657 | </div> |
443 | 658 | </li> |
444 | 659 | <?php |
@@ -450,9 +665,19 @@ discard block |
||
450 | 665 | <?php |
451 | 666 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
452 | 667 | ?> |
453 | - <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Aircraft color"); ?></li> |
|
668 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
669 | + print 'checked'; |
|
670 | +} |
|
671 | +?> ><?php echo _("Force Aircraft color"); ?></li> |
|
454 | 672 | <li><?php echo _("Aircraft icon color:"); ?> |
455 | - <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'; ?>"> |
|
673 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
674 | + print $_COOKIE['IconColor']; |
|
675 | +} elseif (isset($globalAircraftIconColor)) { |
|
676 | + print $globalAircraftIconColor; |
|
677 | +} else { |
|
678 | + print 'ff0000'; |
|
679 | +} |
|
680 | +?>"> |
|
456 | 681 | </li> |
457 | 682 | <?php |
458 | 683 | } |
@@ -460,9 +685,19 @@ discard block |
||
460 | 685 | <?php |
461 | 686 | if (isset($globalMarine) && $globalMarine === TRUE) { |
462 | 687 | ?> |
463 | - <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Marine color"); ?></li> |
|
688 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
689 | + print 'checked'; |
|
690 | +} |
|
691 | +?> ><?php echo _("Force Marine color"); ?></li> |
|
464 | 692 | <li><?php echo _("Marine icon color:"); ?> |
465 | - <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'; ?>"> |
|
693 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
694 | + print $_COOKIE['MarineIconColor']; |
|
695 | +} elseif (isset($globalMarineIconColor)) { |
|
696 | + print $globalMarineIconColor; |
|
697 | +} else { |
|
698 | + print 'ff0000'; |
|
699 | +} |
|
700 | +?>"> |
|
466 | 701 | </li> |
467 | 702 | <?php |
468 | 703 | } |
@@ -470,9 +705,19 @@ discard block |
||
470 | 705 | <?php |
471 | 706 | if (isset($globalTracker) && $globalTracker === TRUE) { |
472 | 707 | ?> |
473 | - <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Tracker color"); ?></li> |
|
708 | + <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') { |
|
709 | + print 'checked'; |
|
710 | +} |
|
711 | +?> ><?php echo _("Force Tracker color"); ?></li> |
|
474 | 712 | <li><?php echo _("Tracker icon color:"); ?> |
475 | - <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'; ?>"> |
|
713 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
714 | + print $_COOKIE['TrackerIconColor']; |
|
715 | +} elseif (isset($globalTrackerIconColor)) { |
|
716 | + print $globalTrackerIconColor; |
|
717 | +} else { |
|
718 | + print 'ff0000'; |
|
719 | +} |
|
720 | +?>"> |
|
476 | 721 | </li> |
477 | 722 | <?php |
478 | 723 | } |
@@ -480,22 +725,46 @@ discard block |
||
480 | 725 | ?> |
481 | 726 | <li><?php echo _("Distance unit:"); ?> |
482 | 727 | <select class="selectpicker" onchange="unitdistance(this);"> |
483 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
484 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
485 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
728 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
729 | + echo ' selected'; |
|
730 | +} |
|
731 | +?>>km</option> |
|
732 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
733 | + echo ' selected'; |
|
734 | +} |
|
735 | +?>>nm</option> |
|
736 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
737 | + echo ' selected'; |
|
738 | +} |
|
739 | +?>>mi</option> |
|
486 | 740 | </select> |
487 | 741 | </li> |
488 | 742 | <li><?php echo _("Altitude unit:"); ?> |
489 | 743 | <select class="selectpicker" onchange="unitaltitude(this);"> |
490 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
491 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
744 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
745 | + echo ' selected'; |
|
746 | +} |
|
747 | +?>>m</option> |
|
748 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
749 | + echo ' selected'; |
|
750 | +} |
|
751 | +?>>feet</option> |
|
492 | 752 | </select> |
493 | 753 | </li> |
494 | 754 | <li><?php echo _("Speed unit:"); ?> |
495 | 755 | <select class="selectpicker" onchange="unitspeed(this);"> |
496 | - <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> |
|
497 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
498 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
756 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
757 | + echo ' selected'; |
|
758 | +} |
|
759 | +?>>km/h</option> |
|
760 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
761 | + echo ' selected'; |
|
762 | +} |
|
763 | +?>>mph</option> |
|
764 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
765 | + echo ' selected'; |
|
766 | +} |
|
767 | +?>>knots</option> |
|
499 | 768 | </select> |
500 | 769 | </li> |
501 | 770 | |
@@ -513,9 +782,18 @@ discard block |
||
513 | 782 | <?php |
514 | 783 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
515 | 784 | ?> |
516 | - <?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 } ?> |
|
517 | - <?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 } ?> |
|
518 | - <?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 } ?> |
|
785 | + <?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'])) { |
|
786 | + print 'checked'; |
|
787 | +} |
|
788 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
789 | + <?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'])) { |
|
790 | + print 'checked'; |
|
791 | +} |
|
792 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
793 | + <?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'])) { |
|
794 | + print 'checked'; |
|
795 | +} |
|
796 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
519 | 797 | <?php |
520 | 798 | } |
521 | 799 | ?> |
@@ -523,10 +801,16 @@ discard block |
||
523 | 801 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
524 | 802 | ?> |
525 | 803 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
526 | - <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> |
|
804 | + <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'])) { |
|
805 | + print 'checked'; |
|
806 | +} |
|
807 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
527 | 808 | <?php } ?> |
528 | 809 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
529 | - <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> |
|
810 | + <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'])) { |
|
811 | + print 'checked'; |
|
812 | +} |
|
813 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
530 | 814 | <?php } ?> |
531 | 815 | <?php |
532 | 816 | } |
@@ -543,7 +827,9 @@ discard block |
||
543 | 827 | } |
544 | 828 | foreach($allairlinenames as $airline) { |
545 | 829 | $airline_name = $airline['airline_name']; |
546 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
830 | + if (strlen($airline_name) > 30) { |
|
831 | + $airline_name = substr($airline_name,0,30).'...'; |
|
832 | + } |
|
547 | 833 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
548 | 834 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
549 | 835 | } else { |
@@ -561,7 +847,10 @@ discard block |
||
561 | 847 | <li><?php echo _("Display alliance:"); ?> |
562 | 848 | <br/> |
563 | 849 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
564 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
850 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
851 | + echo ' selected'; |
|
852 | +} |
|
853 | +?>><?php echo _("All"); ?></option> |
|
565 | 854 | <?php |
566 | 855 | foreach($allalliancenames as $alliance) { |
567 | 856 | $alliance_name = $alliance['alliance']; |
@@ -621,10 +910,22 @@ discard block |
||
621 | 910 | ?> |
622 | 911 | <li><?php echo _("Display airlines of type:"); ?><br/> |
623 | 912 | <select class="selectpicker" onchange="airlinestype(this);"> |
624 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
625 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
626 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
627 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
913 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
914 | + echo ' selected'; |
|
915 | +} |
|
916 | +?>><?php echo _("All"); ?></option> |
|
917 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
918 | + echo ' selected'; |
|
919 | +} |
|
920 | +?>><?php echo _("Passenger"); ?></option> |
|
921 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
922 | + echo ' selected'; |
|
923 | +} |
|
924 | +?>><?php echo _("Cargo"); ?></option> |
|
925 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
926 | + echo ' selected'; |
|
927 | +} |
|
928 | +?>><?php echo _("Military"); ?></option> |
|
628 | 929 | </select> |
629 | 930 | </li> |
630 | 931 | <?php |
@@ -632,7 +933,10 @@ discard block |
||
632 | 933 | ?> |
633 | 934 | <li> |
634 | 935 | <?php echo _("Display flight with ident:"); ?> |
635 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
936 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
937 | + print $_COOKIE['filter_ident']; |
|
938 | +} |
|
939 | +?>" /> |
|
636 | 940 | </li> |
637 | 941 | <?php |
638 | 942 | } |
@@ -651,7 +955,10 @@ discard block |
||
651 | 955 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
652 | 956 | <form> |
653 | 957 | <ul> |
654 | - <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> |
|
958 | + <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'])) { |
|
959 | + print 'checked'; |
|
960 | +} |
|
961 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
655 | 962 | <li><?php echo _("Type:"); ?> |
656 | 963 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
657 | 964 | <?php |
@@ -659,25 +966,45 @@ discard block |
||
659 | 966 | $types = $Satellite->get_tle_types(); |
660 | 967 | foreach ($types as $type) { |
661 | 968 | $type_name = $type['tle_type']; |
662 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
663 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
664 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
665 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
666 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
667 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
668 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
669 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
670 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
671 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
672 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
673 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
674 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
675 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
676 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
677 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
678 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
679 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
680 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
969 | + if ($type_name == 'musson') { |
|
970 | + $type_name = 'Russian LEO Navigation'; |
|
971 | + } else if ($type_name == 'nnss') { |
|
972 | + $type_name = 'Navi Navigation Satellite System'; |
|
973 | + } else if ($type_name == 'sbas') { |
|
974 | + $type_name = 'Satellite-Based Augmentation System'; |
|
975 | + } else if ($type_name == 'glo-ops') { |
|
976 | + $type_name = 'Glonass Operational'; |
|
977 | + } else if ($type_name == 'gps-ops') { |
|
978 | + $type_name = 'GPS Operational'; |
|
979 | + } else if ($type_name == 'argos') { |
|
980 | + $type_name = 'ARGOS Data Collection System'; |
|
981 | + } else if ($type_name == 'tdrss') { |
|
982 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
983 | + } else if ($type_name == 'sarsat') { |
|
984 | + $type_name = 'Search & Rescue'; |
|
985 | + } else if ($type_name == 'dmc') { |
|
986 | + $type_name = 'Disaster Monitoring'; |
|
987 | + } else if ($type_name == 'resource') { |
|
988 | + $type_name = 'Earth Resources'; |
|
989 | + } else if ($type_name == 'stations') { |
|
990 | + $type_name = 'Space Stations'; |
|
991 | + } else if ($type_name == 'geo') { |
|
992 | + $type_name = 'Geostationary'; |
|
993 | + } else if ($type_name == 'amateur') { |
|
994 | + $type_name = 'Amateur Radio'; |
|
995 | + } else if ($type_name == 'x-comm') { |
|
996 | + $type_name = 'Experimental'; |
|
997 | + } else if ($type_name == 'other-comm') { |
|
998 | + $type_name = 'Other Comm'; |
|
999 | + } else if ($type_name == 'science') { |
|
1000 | + $type_name = 'Space & Earth Science'; |
|
1001 | + } else if ($type_name == 'military') { |
|
1002 | + $type_name = 'Miscellaneous Military'; |
|
1003 | + } else if ($type_name == 'radar') { |
|
1004 | + $type_name = 'Radar Calibration'; |
|
1005 | + } else if ($type_name == 'tle-new') { |
|
1006 | + $type_name = 'Last 30 days launches'; |
|
1007 | + } |
|
681 | 1008 | |
682 | 1009 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
683 | 1010 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | try { |
17 | 17 | $sth = $this->db->prepare($query); |
18 | 18 | $sth->execute($query_values); |
19 | - } catch(PDOException $e) { |
|
19 | + } catch (PDOException $e) { |
|
20 | 20 | return "error : ".$e->getMessage(); |
21 | 21 | } |
22 | 22 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
@@ -29,20 +29,20 @@ discard block |
||
29 | 29 | try { |
30 | 30 | $sth = $this->db->prepare($query); |
31 | 31 | $sth->execute($query_values); |
32 | - } catch(PDOException $e) { |
|
32 | + } catch (PDOException $e) { |
|
33 | 33 | return "error : ".$e->getMessage(); |
34 | 34 | } |
35 | 35 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
36 | 36 | return $all; |
37 | 37 | } |
38 | 38 | |
39 | - public function getLocationInfobyNameType($name,$type) { |
|
39 | + public function getLocationInfobyNameType($name, $type) { |
|
40 | 40 | $query = "SELECT * FROM source_location WHERE name = :name AND type = :type"; |
41 | - $query_values = array(':name' => $name,':type' => $type); |
|
41 | + $query_values = array(':name' => $name, ':type' => $type); |
|
42 | 42 | try { |
43 | 43 | $sth = $this->db->prepare($query); |
44 | 44 | $sth->execute($query_values); |
45 | - } catch(PDOException $e) { |
|
45 | + } catch (PDOException $e) { |
|
46 | 46 | return "error : ".$e->getMessage(); |
47 | 47 | } |
48 | 48 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | try { |
56 | 56 | $sth = $this->db->prepare($query); |
57 | 57 | $sth->execute($query_values); |
58 | - } catch(PDOException $e) { |
|
58 | + } catch (PDOException $e) { |
|
59 | 59 | return "error : ".$e->getMessage(); |
60 | 60 | } |
61 | 61 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | public function getLocationInfoByType($type, $coord = array()) { |
66 | 66 | $query = "SELECT * FROM source_location WHERE type = :type"; |
67 | 67 | if (is_array($coord) && !empty($coord)) { |
68 | - $minlong = filter_var($coord[0],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
69 | - $minlat = filter_var($coord[1],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
70 | - $maxlong = filter_var($coord[2],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
71 | - $maxlat = filter_var($coord[3],FILTER_SANITIZE_NUMBER_FLOAT,FILTER_FLAG_ALLOW_FRACTION); |
|
68 | + $minlong = filter_var($coord[0], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
69 | + $minlat = filter_var($coord[1], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
70 | + $maxlong = filter_var($coord[2], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
71 | + $maxlat = filter_var($coord[3], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION); |
|
72 | 72 | $query .= " AND source_location.latitude BETWEEN ".$minlat." AND ".$maxlat." AND source_location.longitude BETWEEN ".$minlong." AND ".$maxlong." AND source_location.latitude <> 0 AND source_location.longitude <> 0"; |
73 | 73 | } |
74 | 74 | $query .= " ORDER BY last_seen DESC"; |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | try { |
78 | 78 | $sth = $this->db->prepare($query); |
79 | 79 | $sth->execute($query_values); |
80 | - } catch(PDOException $e) { |
|
80 | + } catch (PDOException $e) { |
|
81 | 81 | return "error : ".$e->getMessage(); |
82 | 82 | } |
83 | 83 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | try { |
91 | 91 | $sth = $this->db->prepare($query); |
92 | 92 | $sth->execute($query_values); |
93 | - } catch(PDOException $e) { |
|
93 | + } catch (PDOException $e) { |
|
94 | 94 | return "error : ".$e->getMessage(); |
95 | 95 | } |
96 | 96 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
@@ -103,56 +103,56 @@ discard block |
||
103 | 103 | try { |
104 | 104 | $sth = $this->db->prepare($query); |
105 | 105 | $sth->execute($query_values); |
106 | - } catch(PDOException $e) { |
|
106 | + } catch (PDOException $e) { |
|
107 | 107 | return "error : ".$e->getMessage(); |
108 | 108 | } |
109 | 109 | $all = $sth->fetchAll(PDO::FETCH_ASSOC); |
110 | 110 | return $all; |
111 | 111 | } |
112 | 112 | |
113 | - public function addLocation($name,$latitude,$longitude,$altitude,$city,$country,$source,$logo = 'antenna.png',$type = '',$source_id = 0,$location_id = 0,$last_seen = '', $description = '') { |
|
113 | + public function addLocation($name, $latitude, $longitude, $altitude, $city, $country, $source, $logo = 'antenna.png', $type = '', $source_id = 0, $location_id = 0, $last_seen = '', $description = '') { |
|
114 | 114 | if ($last_seen == '') $last_seen = date('Y-m-d H:i:s'); |
115 | 115 | $query = "INSERT INTO source_location (name,latitude,longitude,altitude,country,city,logo,source,type,source_id,last_seen,location_id,description) VALUES (:name,:latitude,:longitude,:altitude,:country,:city,:logo,:source,:type,:source_id,:last_seen,:location_id,:description)"; |
116 | - $query_values = array(':name' => $name,':latitude' => $latitude, ':longitude' => $longitude,':altitude' => $altitude,':city' => $city,':country' => $country,':logo' => $logo,':source' => $source,':type' => $type,':source_id' => $source_id,':last_seen' => $last_seen,':location_id' => $location_id,':description' => $description); |
|
116 | + $query_values = array(':name' => $name, ':latitude' => $latitude, ':longitude' => $longitude, ':altitude' => $altitude, ':city' => $city, ':country' => $country, ':logo' => $logo, ':source' => $source, ':type' => $type, ':source_id' => $source_id, ':last_seen' => $last_seen, ':location_id' => $location_id, ':description' => $description); |
|
117 | 117 | try { |
118 | 118 | $sth = $this->db->prepare($query); |
119 | 119 | $sth->execute($query_values); |
120 | - } catch(PDOException $e) { |
|
120 | + } catch (PDOException $e) { |
|
121 | 121 | echo "error : ".$e->getMessage(); |
122 | 122 | } |
123 | 123 | } |
124 | 124 | |
125 | - public function updateLocation($name,$latitude,$longitude,$altitude,$city,$country,$source,$logo = 'antenna.png',$type = '',$source_id = 0,$location_id = 0,$last_seen = '',$description = '') { |
|
125 | + public function updateLocation($name, $latitude, $longitude, $altitude, $city, $country, $source, $logo = 'antenna.png', $type = '', $source_id = 0, $location_id = 0, $last_seen = '', $description = '') { |
|
126 | 126 | if ($last_seen == '') $last_seen = date('Y-m-d H:i:s'); |
127 | 127 | $query = "UPDATE source_location SET latitude = :latitude,longitude = :longitude,altitude = :altitude,country = :country,city = :city,logo = :logo,type = :type, source_id = :source_id, last_seen = :last_seen,location_id = :location_id, description = :description WHERE name = :name AND source = :source"; |
128 | - $query_values = array(':name' => $name,':latitude' => $latitude, ':longitude' => $longitude,':altitude' => $altitude,':city' => $city,':country' => $country,':logo' => $logo,':source' => $source,':type' => $type,':source_id' => $source_id,':last_seen' => $last_seen,':location_id' => $location_id,':description' => $description); |
|
128 | + $query_values = array(':name' => $name, ':latitude' => $latitude, ':longitude' => $longitude, ':altitude' => $altitude, ':city' => $city, ':country' => $country, ':logo' => $logo, ':source' => $source, ':type' => $type, ':source_id' => $source_id, ':last_seen' => $last_seen, ':location_id' => $location_id, ':description' => $description); |
|
129 | 129 | try { |
130 | 130 | $sth = $this->db->prepare($query); |
131 | 131 | $sth->execute($query_values); |
132 | - } catch(PDOException $e) { |
|
132 | + } catch (PDOException $e) { |
|
133 | 133 | return "error : ".$e->getMessage(); |
134 | 134 | } |
135 | 135 | } |
136 | 136 | |
137 | - public function updateLocationDescByName($name,$source,$source_id = 0,$description = '') { |
|
137 | + public function updateLocationDescByName($name, $source, $source_id = 0, $description = '') { |
|
138 | 138 | $query = "UPDATE source_location SET description = :description WHERE source_id = :source_id AND name = :name AND source = :source"; |
139 | - $query_values = array(':name' => $name,':source' => $source,':source_id' => $source_id,':description' => $description); |
|
139 | + $query_values = array(':name' => $name, ':source' => $source, ':source_id' => $source_id, ':description' => $description); |
|
140 | 140 | try { |
141 | 141 | $sth = $this->db->prepare($query); |
142 | 142 | $sth->execute($query_values); |
143 | - } catch(PDOException $e) { |
|
143 | + } catch (PDOException $e) { |
|
144 | 144 | return "error : ".$e->getMessage(); |
145 | 145 | } |
146 | 146 | } |
147 | 147 | |
148 | - public function updateLocationByLocationID($name,$latitude,$longitude,$altitude,$city,$country,$source,$logo = 'antenna.png',$type = '',$source_id = 0, $location_id,$last_seen = '',$description = '') { |
|
148 | + public function updateLocationByLocationID($name, $latitude, $longitude, $altitude, $city, $country, $source, $logo = 'antenna.png', $type = '', $source_id = 0, $location_id, $last_seen = '', $description = '') { |
|
149 | 149 | if ($last_seen == '') $last_seen = date('Y-m-d H:i:s'); |
150 | 150 | $query = "UPDATE source_location SET latitude = :latitude,longitude = :longitude,altitude = :altitude,country = :country,city = :city,logo = :logo,type = :type, last_seen = :last_seen, description = :description WHERE location_id = :location_id AND source = :source AND source_id = :source_id"; |
151 | - $query_values = array(':source_id' => $source_id,':latitude' => $latitude, ':longitude' => $longitude,':altitude' => $altitude,':city' => $city,':country' => $country,':logo' => $logo,':source' => $source,':type' => $type,':last_seen' => $last_seen,':location_id' => $location_id,':description' => $description); |
|
151 | + $query_values = array(':source_id' => $source_id, ':latitude' => $latitude, ':longitude' => $longitude, ':altitude' => $altitude, ':city' => $city, ':country' => $country, ':logo' => $logo, ':source' => $source, ':type' => $type, ':last_seen' => $last_seen, ':location_id' => $location_id, ':description' => $description); |
|
152 | 152 | try { |
153 | 153 | $sth = $this->db->prepare($query); |
154 | 154 | $sth->execute($query_values); |
155 | - } catch(PDOException $e) { |
|
155 | + } catch (PDOException $e) { |
|
156 | 156 | echo "error : ".$e->getMessage(); |
157 | 157 | } |
158 | 158 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | try { |
164 | 164 | $sth = $this->db->prepare($query); |
165 | 165 | $sth->execute($query_values); |
166 | - } catch(PDOException $e) { |
|
166 | + } catch (PDOException $e) { |
|
167 | 167 | return "error : ".$e->getMessage(); |
168 | 168 | } |
169 | 169 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | try { |
175 | 175 | $sth = $this->db->prepare($query); |
176 | 176 | $sth->execute($query_values); |
177 | - } catch(PDOException $e) { |
|
177 | + } catch (PDOException $e) { |
|
178 | 178 | return "error : ".$e->getMessage(); |
179 | 179 | } |
180 | 180 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | try { |
186 | 186 | $sth = $this->db->prepare($query); |
187 | 187 | $sth->execute($query_values); |
188 | - } catch(PDOException $e) { |
|
188 | + } catch (PDOException $e) { |
|
189 | 189 | return "error : ".$e->getMessage(); |
190 | 190 | } |
191 | 191 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | try { |
196 | 196 | $sth = $this->db->prepare($query); |
197 | 197 | $sth->execute(); |
198 | - } catch(PDOException $e) { |
|
198 | + } catch (PDOException $e) { |
|
199 | 199 | return "error : ".$e->getMessage(); |
200 | 200 | } |
201 | 201 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | try { |
225 | 225 | $sth = $this->db->prepare($query); |
226 | 226 | $sth->execute(array(':type' => $type)); |
227 | - } catch(PDOException $e) { |
|
227 | + } catch (PDOException $e) { |
|
228 | 228 | return "error"; |
229 | 229 | } |
230 | 230 | return "success"; |