@@ -50,30 +50,30 @@ discard block |
||
50 | 50 | |
51 | 51 | |
52 | 52 | function quaternionrotate($heading, $attitude = 0, $bank = 0) { |
53 | - // Assuming the angles are in radians. |
|
54 | - $c1 = cos($heading/2); |
|
55 | - $s1 = sin($heading/2); |
|
56 | - $c2 = cos($attitude/2); |
|
57 | - $s2 = sin($attitude/2); |
|
58 | - $c3 = cos($bank/2); |
|
59 | - $s3 = sin($bank/2); |
|
60 | - $c1c2 = $c1*$c2; |
|
61 | - $s1s2 = $s1*$s2; |
|
62 | - $w =$c1c2*$c3 - $s1s2*$s3; |
|
63 | - $x =$c1c2*$s3 + $s1s2*$c3; |
|
64 | - $y =$s1*$c2*$c3 + $c1*$s2*$s3; |
|
65 | - $z =$c1*$s2*$c3 - $s1*$c2*$s3; |
|
66 | - return array('x' => $x,'y' => $y,'z' => $z,'w' => $w); |
|
53 | + // Assuming the angles are in radians. |
|
54 | + $c1 = cos($heading/2); |
|
55 | + $s1 = sin($heading/2); |
|
56 | + $c2 = cos($attitude/2); |
|
57 | + $s2 = sin($attitude/2); |
|
58 | + $c3 = cos($bank/2); |
|
59 | + $s3 = sin($bank/2); |
|
60 | + $c1c2 = $c1*$c2; |
|
61 | + $s1s2 = $s1*$s2; |
|
62 | + $w =$c1c2*$c3 - $s1s2*$s3; |
|
63 | + $x =$c1c2*$s3 + $s1s2*$c3; |
|
64 | + $y =$s1*$c2*$c3 + $c1*$s2*$s3; |
|
65 | + $z =$c1*$s2*$c3 - $s1*$c2*$s3; |
|
66 | + return array('x' => $x,'y' => $y,'z' => $z,'w' => $w); |
|
67 | 67 | // return array('x' => '0.0','y' => '-0.931','z' => '0.0','w' => '0.365'); |
68 | 68 | |
69 | 69 | } |
70 | 70 | |
71 | 71 | |
72 | 72 | if (isset($_GET['download'])) { |
73 | - if ($_GET['download'] == "true") |
|
74 | - { |
|
73 | + if ($_GET['download'] == "true") |
|
74 | + { |
|
75 | 75 | header('Content-disposition: attachment; filename="flightairmap.json"'); |
76 | - } |
|
76 | + } |
|
77 | 77 | } |
78 | 78 | header('Content-Type: text/javascript'); |
79 | 79 | |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | if (isset($_GET['coord']) && $_GET['coord'] != '') { |
173 | 173 | $coord = explode(',',$_GET['coord']); |
174 | 174 | if (!(filter_var($coord[0],FILTER_VALIDATE_FLOAT) && filter_var($coord[1],FILTER_VALIDATE_FLOAT) && filter_var($coord[2],FILTER_VALIDATE_FLOAT) && filter_var($coord[3],FILTER_VALIDATE_FLOAT) |
175 | - && $coord[0] > -180.0 && $coord[0] < 180.0 && $coord[1] > -90.0 && $coord[1] < 90.0 && $coord[2] > -180.0 && $coord[2] < 180.0 && $coord[3] > -90.0 && $coord[3] < 90.0)) { |
|
175 | + && $coord[0] > -180.0 && $coord[0] < 180.0 && $coord[1] > -90.0 && $coord[1] < 90.0 && $coord[2] > -180.0 && $coord[2] < 180.0 && $coord[3] > -90.0 && $coord[3] < 90.0)) { |
|
176 | 176 | $coord = array(); |
177 | 177 | } |
178 | 178 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | if (isset($_GET['coord']) && $_GET['coord'] != '') { |
183 | 183 | $coord = explode(',',$_GET['coord']); |
184 | 184 | if (!(filter_var($coord[0],FILTER_VALIDATE_FLOAT) && filter_var($coord[1],FILTER_VALIDATE_FLOAT) && filter_var($coord[2],FILTER_VALIDATE_FLOAT) && filter_var($coord[3],FILTER_VALIDATE_FLOAT) |
185 | - && $coord[0] > -180.0 && $coord[0] < 180.0 && $coord[1] > -90.0 && $coord[1] < 90.0 && $coord[2] > -180.0 && $coord[2] < 180.0 && $coord[3] > -90.0 && $coord[3] < 90.0)) { |
|
185 | + && $coord[0] > -180.0 && $coord[0] < 180.0 && $coord[1] > -90.0 && $coord[1] < 90.0 && $coord[2] > -180.0 && $coord[2] < 180.0 && $coord[3] > -90.0 && $coord[3] < 90.0)) { |
|
186 | 186 | $coord = array(); |
187 | 187 | } |
188 | 188 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | if (!((isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') && (isset($_COOKIE['MapTrack']) && $_COOKIE['MapTrack'] != '')) && isset($_GET['coord']) && $_GET['coord'] != '') { |
193 | 193 | $coord = explode(',',$_GET['coord']); |
194 | 194 | if (!(filter_var($coord[0],FILTER_VALIDATE_FLOAT) && filter_var($coord[1],FILTER_VALIDATE_FLOAT) && filter_var($coord[2],FILTER_VALIDATE_FLOAT) && filter_var($coord[3],FILTER_VALIDATE_FLOAT) |
195 | - && $coord[0] > -180.0 && $coord[0] < 180.0 && $coord[1] > -90.0 && $coord[1] < 90.0 && $coord[2] > -180.0 && $coord[2] < 180.0 && $coord[3] > -90.0 && $coord[3] < 90.0)) { |
|
195 | + && $coord[0] > -180.0 && $coord[0] < 180.0 && $coord[1] > -90.0 && $coord[1] < 90.0 && $coord[2] > -180.0 && $coord[2] < 180.0 && $coord[3] > -90.0 && $coord[3] < 90.0)) { |
|
196 | 196 | $coord = array(); |
197 | 197 | } |
198 | 198 | } |
@@ -301,10 +301,10 @@ discard block |
||
301 | 301 | $image = "images/placeholder_thumb.png"; |
302 | 302 | } |
303 | 303 | |
304 | - if (isset($spotter_item['flightaware_id'])) $id = $spotter_item['flightaware_id']; |
|
305 | - elseif (isset($spotter_item['famtrackid'])) $id = $spotter_item['famtrackid']; |
|
306 | - elseif (isset($spotter_item['fammarine_id'])) $id = $spotter_item['fammarine_id']; |
|
307 | - if ($prev_flightaware_id != $id) { |
|
304 | + if (isset($spotter_item['flightaware_id'])) $id = $spotter_item['flightaware_id']; |
|
305 | + elseif (isset($spotter_item['famtrackid'])) $id = $spotter_item['famtrackid']; |
|
306 | + elseif (isset($spotter_item['fammarine_id'])) $id = $spotter_item['fammarine_id']; |
|
307 | + if ($prev_flightaware_id != $id) { |
|
308 | 308 | if ($prev_flightaware_id != '') { |
309 | 309 | /* |
310 | 310 | if ($nblatlong == 1) { |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | $spotter_item['wake_category'] = $aircraft_info[0]['wake_category']; |
385 | 385 | $spotter_item['engine_count'] = $aircraft_info[0]['engine_count']; |
386 | 386 | } else $aircraft_shadow = ''; |
387 | - $output .= ' "billboard" : {"image" : "'.$globalURL.'/images/aircrafts/new/'.$aircraft_shadow.'","scale" : 0.5'; |
|
387 | + $output .= ' "billboard" : {"image" : "'.$globalURL.'/images/aircrafts/new/'.$aircraft_shadow.'","scale" : 0.5'; |
|
388 | 388 | if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true' && isset($_COOKIE['IconColor'])) { |
389 | 389 | $rgb = $Common->hex2rgb($_COOKIE['IconColor']); |
390 | 390 | $output .= ',"color": {"rgba" : ['.$rgb[0].','.$rgb[1].','.$rgb[2].',255]}'; |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | $rgb = $Common->hex2rgb($_COOKIE['IconColor']); |
416 | 416 | $output .= ',"color": {"rgba" : ['.$rgb[0].','.$rgb[1].','.$rgb[2].',255]}'; |
417 | 417 | } |
418 | - $output .= '},'; |
|
418 | + $output .= '},'; |
|
419 | 419 | } elseif (isset($modelsdb[$aircraft_icao]) && $aircraft_icao != '') { |
420 | 420 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/'.$modelsdb[$aircraft_icao].'","scale" : '.$scale.',"minimumPixelSize": '.$minimumpixelsize.''; |
421 | 421 | $output .= ',"heightReference": "'.$heightrelative.'"'; |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | $rgb = $Common->hex2rgb($_COOKIE['IconColor']); |
424 | 424 | $output .= ',"color": {"rgba" : ['.$rgb[0].','.$rgb[1].','.$rgb[2].',255]}'; |
425 | 425 | } |
426 | - $output .= '},'; |
|
426 | + $output .= '},'; |
|
427 | 427 | } elseif ($aircraft_icao != '') { |
428 | 428 | $aircraft_info = $Spotter->getAllAircraftInfo($aircraft_icao); |
429 | 429 | if (isset($aircraft_info[0]['engine_type'])) { |
@@ -19,8 +19,12 @@ discard block |
||
19 | 19 | } |
20 | 20 | $tracker = false; |
21 | 21 | $marine = false; |
22 | -if (isset($_GET['tracker'])) $tracker = true; |
|
23 | -if (isset($_GET['marine'])) $marine = true; |
|
22 | +if (isset($_GET['tracker'])) { |
|
23 | + $tracker = true; |
|
24 | +} |
|
25 | +if (isset($_GET['marine'])) { |
|
26 | + $marine = true; |
|
27 | +} |
|
24 | 28 | if ($tracker) { |
25 | 29 | require_once('require/class.Tracker.php'); |
26 | 30 | require_once('require/class.TrackerLive.php'); |
@@ -77,24 +81,49 @@ discard block |
||
77 | 81 | } |
78 | 82 | header('Content-Type: text/javascript'); |
79 | 83 | |
80 | -if (!isset($globalJsonCompress)) $compress = true; |
|
81 | -else $compress = $globalJsonCompress; |
|
84 | +if (!isset($globalJsonCompress)) { |
|
85 | + $compress = true; |
|
86 | +} else { |
|
87 | + $compress = $globalJsonCompress; |
|
88 | +} |
|
82 | 89 | |
83 | 90 | $from_archive = false; |
84 | 91 | $min = false; |
85 | 92 | $allhistory = false; |
86 | 93 | $filter['source'] = array(); |
87 | -if ((!isset($globalMapVAchoose) || $globalMapVAchoose) && isset($globalVATSIM) && $globalVATSIM && isset($_COOKIE['filter_ShowVATSIM']) && $_COOKIE['filter_ShowVATSIM'] == 'true') $filter['source'] = array_merge($filter['source'],array('vatsimtxt')); |
|
88 | -if ((!isset($globalMapVAchoose) || $globalMapVAchoose) && isset($globalIVAO) && $globalIVAO && isset($_COOKIE['filter_ShowIVAO']) && $_COOKIE['filter_ShowIVAO'] == 'true') $filter['source'] = array_merge($filter['source'],array('whazzup')); |
|
89 | -if ((!isset($globalMapVAchoose) || $globalMapVAchoose) && isset($globalphpVMS) && $globalphpVMS && isset($_COOKIE['filter_ShowVMS']) && $_COOKIE['filter_ShowVMS'] == 'true') $filter['source'] = array_merge($filter['source'],array('phpvmacars')); |
|
90 | -if ((!isset($globalMapchoose) || $globalMapchoose) && isset($globalSBS1) && $globalSBS1 && isset($_COOKIE['filter_ShowSBS1']) && $_COOKIE['filter_ShowSBS1'] == 'true') $filter['source'] = array_merge($filter['source'],array('sbs','famaprs')); |
|
91 | -if ((!isset($globalMapchoose) || $globalMapchoose) && isset($globalAPRS) && $globalAPRS && isset($_COOKIE['filter_ShowAPRS']) && $_COOKIE['filter_ShowAPRS'] == 'true') $filter['source'] = array_merge($filter['source'],array('aprs')); |
|
92 | -if (isset($_COOKIE['filter_ident']) && $_COOKIE['filter_ident'] != '') $filter['ident'] = filter_var($_COOKIE['filter_ident'],FILTER_SANITIZE_STRING); |
|
93 | -if (isset($_COOKIE['filter_mmsi']) && $_COOKIE['filter_mmsi'] != '') $filter['mmsi'] = filter_var($_COOKIE['filter_mmsi'],FILTER_SANITIZE_STRING); |
|
94 | -if (isset($_COOKIE['filter_Airlines']) && $_COOKIE['filter_Airlines'] != '') $filter['airlines'] = filter_var_array(explode(',',$_COOKIE['filter_Airlines']),FILTER_SANITIZE_STRING); |
|
95 | -if (isset($_COOKIE['filter_Sources']) && $_COOKIE['filter_Sources'] != '') $filter['source_aprs'] = filter_var_array(explode(',',$_COOKIE['filter_Sources']),FILTER_SANITIZE_STRING); |
|
96 | -if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] != 'all') $filter['airlinestype'] = filter_var($_COOKIE['filter_airlinestype'],FILTER_SANITIZE_STRING); |
|
97 | -if (isset($_COOKIE['filter_alliance']) && $_COOKIE['filter_alliance'] != 'all') $filter['alliance'] = filter_var($_COOKIE['filter_alliance'],FILTER_SANITIZE_STRING); |
|
94 | +if ((!isset($globalMapVAchoose) || $globalMapVAchoose) && isset($globalVATSIM) && $globalVATSIM && isset($_COOKIE['filter_ShowVATSIM']) && $_COOKIE['filter_ShowVATSIM'] == 'true') { |
|
95 | + $filter['source'] = array_merge($filter['source'],array('vatsimtxt')); |
|
96 | +} |
|
97 | +if ((!isset($globalMapVAchoose) || $globalMapVAchoose) && isset($globalIVAO) && $globalIVAO && isset($_COOKIE['filter_ShowIVAO']) && $_COOKIE['filter_ShowIVAO'] == 'true') { |
|
98 | + $filter['source'] = array_merge($filter['source'],array('whazzup')); |
|
99 | +} |
|
100 | +if ((!isset($globalMapVAchoose) || $globalMapVAchoose) && isset($globalphpVMS) && $globalphpVMS && isset($_COOKIE['filter_ShowVMS']) && $_COOKIE['filter_ShowVMS'] == 'true') { |
|
101 | + $filter['source'] = array_merge($filter['source'],array('phpvmacars')); |
|
102 | +} |
|
103 | +if ((!isset($globalMapchoose) || $globalMapchoose) && isset($globalSBS1) && $globalSBS1 && isset($_COOKIE['filter_ShowSBS1']) && $_COOKIE['filter_ShowSBS1'] == 'true') { |
|
104 | + $filter['source'] = array_merge($filter['source'],array('sbs','famaprs')); |
|
105 | +} |
|
106 | +if ((!isset($globalMapchoose) || $globalMapchoose) && isset($globalAPRS) && $globalAPRS && isset($_COOKIE['filter_ShowAPRS']) && $_COOKIE['filter_ShowAPRS'] == 'true') { |
|
107 | + $filter['source'] = array_merge($filter['source'],array('aprs')); |
|
108 | +} |
|
109 | +if (isset($_COOKIE['filter_ident']) && $_COOKIE['filter_ident'] != '') { |
|
110 | + $filter['ident'] = filter_var($_COOKIE['filter_ident'],FILTER_SANITIZE_STRING); |
|
111 | +} |
|
112 | +if (isset($_COOKIE['filter_mmsi']) && $_COOKIE['filter_mmsi'] != '') { |
|
113 | + $filter['mmsi'] = filter_var($_COOKIE['filter_mmsi'],FILTER_SANITIZE_STRING); |
|
114 | +} |
|
115 | +if (isset($_COOKIE['filter_Airlines']) && $_COOKIE['filter_Airlines'] != '') { |
|
116 | + $filter['airlines'] = filter_var_array(explode(',',$_COOKIE['filter_Airlines']),FILTER_SANITIZE_STRING); |
|
117 | +} |
|
118 | +if (isset($_COOKIE['filter_Sources']) && $_COOKIE['filter_Sources'] != '') { |
|
119 | + $filter['source_aprs'] = filter_var_array(explode(',',$_COOKIE['filter_Sources']),FILTER_SANITIZE_STRING); |
|
120 | +} |
|
121 | +if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] != 'all') { |
|
122 | + $filter['airlinestype'] = filter_var($_COOKIE['filter_airlinestype'],FILTER_SANITIZE_STRING); |
|
123 | +} |
|
124 | +if (isset($_COOKIE['filter_alliance']) && $_COOKIE['filter_alliance'] != 'all') { |
|
125 | + $filter['alliance'] = filter_var($_COOKIE['filter_alliance'],FILTER_SANITIZE_STRING); |
|
126 | +} |
|
98 | 127 | /* |
99 | 128 | if (isset($globalMapPopup) && !$globalMapPopup && !(isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true')) { |
100 | 129 | $min = true; |
@@ -218,8 +247,12 @@ discard block |
||
218 | 247 | } else { |
219 | 248 | $flightcnt = $SpotterLive->getLiveSpotterCount($filter); |
220 | 249 | } |
221 | - if ($flightcnt == '') $flightcnt = 0; |
|
222 | -} else $flightcnt = 0; |
|
250 | + if ($flightcnt == '') { |
|
251 | + $flightcnt = 0; |
|
252 | + } |
|
253 | + } else { |
|
254 | + $flightcnt = 0; |
|
255 | +} |
|
223 | 256 | |
224 | 257 | $sqltime = round(microtime(true)-$begintime,2); |
225 | 258 | $minitime = time(); |
@@ -265,7 +298,9 @@ discard block |
||
265 | 298 | $gltf2 = false; |
266 | 299 | $scale = 1.0; |
267 | 300 | $minimumpixelsize = 20; |
268 | -if (isset($archivespeed)) $speed = $archivespeed; |
|
301 | +if (isset($archivespeed)) { |
|
302 | + $speed = $archivespeed; |
|
303 | +} |
|
269 | 304 | $output = '['; |
270 | 305 | if ($tracker) { |
271 | 306 | $output .= '{"id" : "document", "name" : "tracker","version" : "1.0"'; |
@@ -301,9 +336,13 @@ discard block |
||
301 | 336 | $image = "images/placeholder_thumb.png"; |
302 | 337 | } |
303 | 338 | |
304 | - if (isset($spotter_item['flightaware_id'])) $id = $spotter_item['flightaware_id']; |
|
305 | - elseif (isset($spotter_item['famtrackid'])) $id = $spotter_item['famtrackid']; |
|
306 | - elseif (isset($spotter_item['fammarine_id'])) $id = $spotter_item['fammarine_id']; |
|
339 | + if (isset($spotter_item['flightaware_id'])) { |
|
340 | + $id = $spotter_item['flightaware_id']; |
|
341 | + } elseif (isset($spotter_item['famtrackid'])) { |
|
342 | + $id = $spotter_item['famtrackid']; |
|
343 | + } elseif (isset($spotter_item['fammarine_id'])) { |
|
344 | + $id = $spotter_item['fammarine_id']; |
|
345 | + } |
|
307 | 346 | if ($prev_flightaware_id != $id) { |
308 | 347 | if ($prev_flightaware_id != '') { |
309 | 348 | /* |
@@ -329,7 +368,9 @@ discard block |
||
329 | 368 | $output .= '"flightcnt": "'.$flightcnt.'",'; |
330 | 369 | $output .= '"onground": %onground%,'; |
331 | 370 | $output .= '"lastupdate": "'.$lastupdate.'",'; |
332 | - if (isset($spotter_item['format_source'])) $output .= '"format": "'.$spotter_item['format_source'].'",'; |
|
371 | + if (isset($spotter_item['format_source'])) { |
|
372 | + $output .= '"format": "'.$spotter_item['format_source'].'",'; |
|
373 | + } |
|
333 | 374 | if ($tracker) { |
334 | 375 | $output.= '"type": "tracker"'; |
335 | 376 | } elseif ($marine) { |
@@ -351,7 +392,9 @@ discard block |
||
351 | 392 | } |
352 | 393 | } |
353 | 394 | } |
354 | - if ($ident != '') $output.= '"ident": "'.$ident.'",'; |
|
395 | + if ($ident != '') { |
|
396 | + $output.= '"ident": "'.$ident.'",'; |
|
397 | + } |
|
355 | 398 | } |
356 | 399 | $output.= '"gltf2": %gltf2%,'; |
357 | 400 | $output.= '"type": "flight"'; |
@@ -383,7 +426,9 @@ discard block |
||
383 | 426 | $spotter_item['engine_type'] = $aircraft_info[0]['engine_type']; |
384 | 427 | $spotter_item['wake_category'] = $aircraft_info[0]['wake_category']; |
385 | 428 | $spotter_item['engine_count'] = $aircraft_info[0]['engine_count']; |
386 | - } else $aircraft_shadow = ''; |
|
429 | + } else { |
|
430 | + $aircraft_shadow = ''; |
|
431 | + } |
|
387 | 432 | $output .= ' "billboard" : {"image" : "'.$globalURL.'/images/aircrafts/new/'.$aircraft_shadow.'","scale" : 0.5'; |
388 | 433 | if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true' && isset($_COOKIE['IconColor'])) { |
389 | 434 | $rgb = $Common->hex2rgb($_COOKIE['IconColor']); |
@@ -391,7 +436,9 @@ discard block |
||
391 | 436 | } |
392 | 437 | $output .= '},'; |
393 | 438 | } |
394 | - } else $output .= ' "billboard" : {"image" : "data:image/png;base64,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","scale" : 0.5},'; |
|
439 | + } else { |
|
440 | + $output .= ' "billboard" : {"image" : "data:image/png;base64,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","scale" : 0.5},'; |
|
441 | + } |
|
395 | 442 | } elseif ($one3dmodel) { |
396 | 443 | if (isset($globalMap3DForceModel) && $globalMap3DForceModel != '') { |
397 | 444 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/'.$globalMap3DForceModel.'","scale" : '.$scale.',"minimumPixelSize": '.$minimumpixelsize.''; |
@@ -431,7 +478,9 @@ discard block |
||
431 | 478 | $spotter_item['engine_type'] = $aircraft_info[0]['engine_type']; |
432 | 479 | $spotter_item['wake_category'] = $aircraft_info[0]['wake_category']; |
433 | 480 | $spotter_item['engine_count'] = $aircraft_info[0]['engine_count']; |
434 | - } else $aircraft_shadow = ''; |
|
481 | + } else { |
|
482 | + $aircraft_shadow = ''; |
|
483 | + } |
|
435 | 484 | if ($aircraft_shadow != '') { |
436 | 485 | if (isset($modelsdb2[$aircraft_shadow])) { |
437 | 486 | $output .= '"model": {"gltf" : "'.$globalURL.'/models/gltf2/'.$modelsdb2[$aircraft_shadow]['glb'].'","scale" : '.$scale.',"minimumPixelSize": '.$modelsdb2[$aircraft_shadow]['size']; |
@@ -586,7 +635,9 @@ discard block |
||
586 | 635 | } |
587 | 636 | $output .= '},'; |
588 | 637 | //if ($spotter_item['aircraft_shadow'] != '') $output .= '"aircraft_shadow": "'.$spotter_item['aircraft_shadow'].'",'; |
589 | - if ($spotter_item['aircraft_icao'] != '') $output .= '"aircraft_icao": "'.$spotter_item['aircraft_icao'].'",'; |
|
638 | + if ($spotter_item['aircraft_icao'] != '') { |
|
639 | + $output .= '"aircraft_icao": "'.$spotter_item['aircraft_icao'].'",'; |
|
640 | + } |
|
590 | 641 | $modelsdb[$aircraft_icao] = 'Cesium_Air.glb'; |
591 | 642 | } |
592 | 643 | } elseif (isset($spotter_item['format_source']) && $spotter_item['format_source'] == 'aprs') { |
@@ -608,7 +659,9 @@ discard block |
||
608 | 659 | } |
609 | 660 | $output .= '},'; |
610 | 661 | //if ($spotter_item['aircraft_shadow'] != '') $output .= '"aircraft_shadow": "'.$spotter_item['aircraft_shadow'].'",'; |
611 | - if ($spotter_item['aircraft_icao'] != '') $output .= '"aircraft_icao": "'.$spotter_item['aircraft_icao'].'",'; |
|
662 | + if ($spotter_item['aircraft_icao'] != '') { |
|
663 | + $output .= '"aircraft_icao": "'.$spotter_item['aircraft_icao'].'",'; |
|
664 | + } |
|
612 | 665 | $modelsdb[$aircraft_icao] = 'Cesium_Air.glb'; |
613 | 666 | } |
614 | 667 | } else { |
@@ -621,7 +674,9 @@ discard block |
||
621 | 674 | } |
622 | 675 | $output .= '},'; |
623 | 676 | //if ($spotter_item['aircraft_shadow'] != '') $output .= '"aircraft_shadow": "'.$spotter_item['aircraft_shadow'].'",'; |
624 | - if ($spotter_item['aircraft_icao'] != '') $output .= '"aircraft_icao": "'.$spotter_item['aircraft_icao'].'",'; |
|
677 | + if ($spotter_item['aircraft_icao'] != '') { |
|
678 | + $output .= '"aircraft_icao": "'.$spotter_item['aircraft_icao'].'",'; |
|
679 | + } |
|
625 | 680 | $modelsdb[$aircraft_icao] = 'Cesium_Air.glb'; |
626 | 681 | } |
627 | 682 | } elseif ($tracker && isset($spotter_item['type'])) { |
@@ -725,8 +780,11 @@ discard block |
||
725 | 780 | $output .= '},'; |
726 | 781 | } |
727 | 782 | } |
728 | - if (isset($onground) && $onground) $output = str_replace('%onground%','true',$output); |
|
729 | - else $output = str_replace('%onground%','false',$output); |
|
783 | + if (isset($onground) && $onground) { |
|
784 | + $output = str_replace('%onground%','true',$output); |
|
785 | + } else { |
|
786 | + $output = str_replace('%onground%','false',$output); |
|
787 | + } |
|
730 | 788 | |
731 | 789 | // $output .= '"heightReference": "CLAMP_TO_GROUND",'; |
732 | 790 | //$output .= '"heightReference": "'.$heightrelative.'",'; |
@@ -739,9 +797,15 @@ discard block |
||
739 | 797 | // $output .= '"interpolationDegree" : 5,'; |
740 | 798 | // $output .= '"epoch" : "'.date("c",strtotime($spotter_item['date'])).'", '; |
741 | 799 | $output .= '"cartographicDegrees": ['; |
742 | - if ($minitime > strtotime($spotter_item['date'])) $minitime = strtotime($spotter_item['date']); |
|
743 | - if (isset($_COOKIE['MapTrack']) && $id == $_COOKIE['MapTrack'] && $minitracktime > strtotime($spotter_item['date'])) $minitracktime = strtotime($spotter_item['date']); |
|
744 | - if ($maxitime < strtotime($spotter_item['date'])) $maxitime = strtotime($spotter_item['date']); |
|
800 | + if ($minitime > strtotime($spotter_item['date'])) { |
|
801 | + $minitime = strtotime($spotter_item['date']); |
|
802 | + } |
|
803 | + if (isset($_COOKIE['MapTrack']) && $id == $_COOKIE['MapTrack'] && $minitracktime > strtotime($spotter_item['date'])) { |
|
804 | + $minitracktime = strtotime($spotter_item['date']); |
|
805 | + } |
|
806 | + if ($maxitime < strtotime($spotter_item['date'])) { |
|
807 | + $maxitime = strtotime($spotter_item['date']); |
|
808 | + } |
|
745 | 809 | $output .= '"'.date("c",strtotime($spotter_item['date'])).'", '; |
746 | 810 | $output .= $spotter_item['longitude'].', '; |
747 | 811 | $output .= $spotter_item['latitude']; |
@@ -764,7 +828,9 @@ discard block |
||
764 | 828 | $output .= ', '.round($spotter_item['altitude']*30.48); |
765 | 829 | $prevalt = round($spotter_item['altitude']*30.48); |
766 | 830 | } |
767 | - } else $output .= ', 0'; |
|
831 | + } else { |
|
832 | + $output .= ', 0'; |
|
833 | + } |
|
768 | 834 | //$orientation = '"orientation" : { '; |
769 | 835 | //$orientation .= '"unitQuaternion": ['; |
770 | 836 | //$quat = quaternionrotate(deg2rad($spotter_item['heading']),deg2rad(0),deg2rad(0)); |
@@ -772,13 +838,18 @@ discard block |
||
772 | 838 | } else { |
773 | 839 | $nblatlong = $nblatlong+1; |
774 | 840 | $output .= ',"'.date("c",strtotime($spotter_item['date'])).'", '; |
775 | - if ($maxitime < strtotime($spotter_item['date'])) $maxitime = strtotime($spotter_item['date']); |
|
841 | + if ($maxitime < strtotime($spotter_item['date'])) { |
|
842 | + $maxitime = strtotime($spotter_item['date']); |
|
843 | + } |
|
776 | 844 | if ($spotter_item['ground_speed'] == 0) { |
777 | 845 | $output .= $prevlong.', '; |
778 | 846 | $output .= $prevlat; |
779 | 847 | //if (!$marine && (!isset($onground) || !$onground)) $output .= ', '.$prevalt; |
780 | - if (!$marine) $output .= ', '.$prevalt; |
|
781 | - else $output .= ', 0'; |
|
848 | + if (!$marine) { |
|
849 | + $output .= ', '.$prevalt; |
|
850 | + } else { |
|
851 | + $output .= ', 0'; |
|
852 | + } |
|
782 | 853 | } else { |
783 | 854 | $output .= $spotter_item['longitude'].', '; |
784 | 855 | $output .= $spotter_item['latitude']; |
@@ -791,14 +862,17 @@ discard block |
||
791 | 862 | $output .= ', 0'; |
792 | 863 | } |
793 | 864 | } else { |
794 | - if (isset($spotter_item['real_altitude']) && $spotter_item['real_altitude'] != '') $output .= ', '.round($spotter_item['real_altitude']*0.3048); |
|
795 | - elseif ($tracker) { |
|
865 | + if (isset($spotter_item['real_altitude']) && $spotter_item['real_altitude'] != '') { |
|
866 | + $output .= ', '.round($spotter_item['real_altitude']*0.3048); |
|
867 | + } elseif ($tracker) { |
|
796 | 868 | $output .= ', '.round($spotter_item['altitude']*0.3048); |
797 | 869 | } else { |
798 | 870 | $output .= ', '.round($spotter_item['altitude']*30.48); |
799 | 871 | } |
800 | 872 | } |
801 | - } else $output .= ', 0'; |
|
873 | + } else { |
|
874 | + $output .= ', 0'; |
|
875 | + } |
|
802 | 876 | } |
803 | 877 | //$quat = quaternionrotate(deg2rad($spotter_item['heading']),deg2rad(0),deg2rad(0)); |
804 | 878 | //$orientation .= ',"'.date("c",strtotime($spotter_item['date'])).'",'.$quat['x'].','.$quat['y'].','.$quat['z'].','.$quat['w']; |
@@ -819,9 +893,10 @@ discard block |
||
819 | 893 | } else { |
820 | 894 | $output = str_replace('%minitime%',date("c",time()-$globalLiveInterval),$output); |
821 | 895 | } |
896 | + } else { |
|
897 | + $output = str_replace('%minitime%',date("c",$minitime),$output); |
|
822 | 898 | } |
823 | - else $output = str_replace('%minitime%',date("c",$minitime),$output); |
|
824 | -} elseif (isset($_COOKIE['MapTrack']) && $_COOKIE['MapTrack'] != '' && $minitracktime != $minitracktime_begin) { |
|
899 | + } elseif (isset($_COOKIE['MapTrack']) && $_COOKIE['MapTrack'] != '' && $minitracktime != $minitracktime_begin) { |
|
825 | 900 | $output = str_replace('%minitime%',date("c",$minitracktime),$output); |
826 | 901 | } else { |
827 | 902 | $output = str_replace('%minitime%',date("c",$minitime),$output); |
@@ -831,7 +906,10 @@ discard block |
||
831 | 906 | } else { |
832 | 907 | $output = str_replace('%maxitime%',date("c",$maxitime),$output); |
833 | 908 | } |
834 | -if ($gltf2) $output = str_replace('%gltf2%','true',$output); |
|
835 | -else $output = str_replace('%gltf2%','false',$output); |
|
909 | +if ($gltf2) { |
|
910 | + $output = str_replace('%gltf2%','true',$output); |
|
911 | +} else { |
|
912 | + $output = str_replace('%gltf2%','false',$output); |
|
913 | +} |
|
836 | 914 | print $output; |
837 | 915 | ?> |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | <?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 } ?> |
50 | 50 | </tr></table></div> |
51 | 51 | <?php |
52 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
52 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
53 | 53 | ?> |
54 | 54 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script> |
55 | 55 | <?php |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
74 | 74 | <?php |
75 | 75 | } |
76 | - } |
|
76 | + } |
|
77 | 77 | ?> |
78 | 78 | |
79 | 79 | <div id="sidebar" class="sidebar collapsed"> |
@@ -84,34 +84,34 @@ discard block |
||
84 | 84 | <li><a href="" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
85 | 85 | <li><a href="" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
86 | 86 | <?php |
87 | - //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) { |
|
87 | + //if ((isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') || (isset($globalBeta) && $globalBeta === TRUE)) { |
|
88 | 88 | if (isset($globalArchive) && $globalArchive == TRUE) { |
89 | 89 | ?> |
90 | 90 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
91 | 91 | <?php |
92 | 92 | } |
93 | - //} |
|
93 | + //} |
|
94 | 94 | ?> |
95 | 95 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
96 | 96 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
97 | 97 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
98 | 98 | <?php |
99 | - if (isset($globalMap3D) && $globalMap3D) { |
|
99 | + if (isset($globalMap3D) && $globalMap3D) { |
|
100 | 100 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
101 | 101 | ?> |
102 | 102 | <li><a href="" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
103 | 103 | <?php |
104 | 104 | } else { |
105 | - if (isset($globalSatellite) && $globalSatellite) { |
|
105 | + if (isset($globalSatellite) && $globalSatellite) { |
|
106 | 106 | ?> |
107 | 107 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
108 | 108 | <?php |
109 | - } |
|
109 | + } |
|
110 | 110 | ?> |
111 | 111 | <li><a href="" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
112 | 112 | <?php |
113 | 113 | } |
114 | - } |
|
114 | + } |
|
115 | 115 | ?> |
116 | 116 | </ul> |
117 | 117 | |
@@ -260,72 +260,72 @@ discard block |
||
260 | 260 | <?php |
261 | 261 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
262 | 262 | else $MapType = $_COOKIE['MapType']; |
263 | - ?> |
|
263 | + ?> |
|
264 | 264 | <?php |
265 | 265 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
266 | - ?> |
|
266 | + ?> |
|
267 | 267 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
268 | 268 | <?php |
269 | 269 | } else { |
270 | - if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
271 | - ?> |
|
270 | + if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
|
271 | + ?> |
|
272 | 272 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
273 | 273 | <?php |
274 | - } |
|
275 | - ?> |
|
274 | + } |
|
275 | + ?> |
|
276 | 276 | <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option> |
277 | 277 | <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option> |
278 | 278 | <?php |
279 | - if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
280 | - ?> |
|
279 | + if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
|
280 | + ?> |
|
281 | 281 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
282 | 282 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
283 | 283 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
284 | 284 | <?php |
285 | - } |
|
286 | - ?> |
|
285 | + } |
|
286 | + ?> |
|
287 | 287 | <?php |
288 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
289 | - ?> |
|
288 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
289 | + ?> |
|
290 | 290 | <?php |
291 | 291 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
292 | - ?> |
|
292 | + ?> |
|
293 | 293 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
294 | 294 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
295 | 295 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
296 | 296 | <?php |
297 | 297 | } |
298 | - ?> |
|
298 | + ?> |
|
299 | 299 | <?php |
300 | 300 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
301 | - ?> |
|
301 | + ?> |
|
302 | 302 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
303 | 303 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
304 | 304 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
305 | 305 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
306 | 306 | <?php |
307 | 307 | } |
308 | - ?> |
|
308 | + ?> |
|
309 | 309 | <?php |
310 | 310 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
311 | - ?> |
|
311 | + ?> |
|
312 | 312 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
313 | 313 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
314 | 314 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
315 | 315 | <?php |
316 | 316 | } |
317 | - ?> |
|
317 | + ?> |
|
318 | 318 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
319 | 319 | <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
320 | 320 | <?php |
321 | - } |
|
322 | - ?> |
|
321 | + } |
|
322 | + ?> |
|
323 | 323 | <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option> |
324 | 324 | <?php |
325 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
325 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
326 | 326 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
327 | 327 | else $MapBoxId = $_COOKIE['MapTypeId']; |
328 | - ?> |
|
328 | + ?> |
|
329 | 329 | <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> |
330 | 330 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
331 | 331 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
@@ -340,16 +340,16 @@ discard block |
||
340 | 340 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
341 | 341 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
342 | 342 | <?php |
343 | - } |
|
344 | - ?> |
|
343 | + } |
|
344 | + ?> |
|
345 | 345 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
346 | 346 | <?php |
347 | 347 | } |
348 | - ?> |
|
348 | + ?> |
|
349 | 349 | </select> |
350 | 350 | </li> |
351 | 351 | <?php |
352 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
352 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d' && (!isset($globalMapOffline) || $globalMapOffline === FALSE)) { |
|
353 | 353 | ?> |
354 | 354 | <li><?php echo _("Type of Terrain:"); ?> |
355 | 355 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -360,10 +360,10 @@ discard block |
||
360 | 360 | </select> |
361 | 361 | </li> |
362 | 362 | <?php |
363 | - } |
|
363 | + } |
|
364 | 364 | ?> |
365 | 365 | <?php |
366 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
366 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
367 | 367 | ?> |
368 | 368 | <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') print 'checked'; ?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
369 | 369 | |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | <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> |
387 | 387 | <?php |
388 | 388 | } |
389 | - } |
|
389 | + } |
|
390 | 390 | ?> |
391 | 391 | <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> |
392 | 392 | <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> |
@@ -405,80 +405,80 @@ discard block |
||
405 | 405 | } |
406 | 406 | ?> |
407 | 407 | <?php |
408 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
408 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
409 | 409 | ?> |
410 | 410 | <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> |
411 | 411 | <li><div class="checkbox"><label><input type="checkbox" name="one3dmodel" value="1" onclick="useOne3Dmodel(this)" <?php if ((isset($_COOKIE['one3dmodel']) && $_COOKIE['one3dmodel'] == 'true') || (!isset($_COOKIE['one3dmodel']) && isset($globalMap3DOneModel) && $globalMap3DOneModel)) print 'checked'; ?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
412 | 412 | <?php |
413 | - } |
|
414 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
413 | + } |
|
414 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
415 | 415 | ?> |
416 | 416 | <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> |
417 | 417 | <?php |
418 | - } |
|
418 | + } |
|
419 | 419 | ?> |
420 | 420 | <?php |
421 | 421 | if (function_exists('array_column')) { |
422 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
423 | - ?> |
|
422 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
423 | + ?> |
|
424 | 424 | <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> |
425 | 425 | <?php |
426 | - } |
|
426 | + } |
|
427 | 427 | } elseif (isset($globalSources)) { |
428 | - $dispolar = false; |
|
429 | - foreach ($globalSources as $testsource) { |
|
430 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
431 | - } |
|
432 | - if ($dispolar) { |
|
433 | - ?> |
|
428 | + $dispolar = false; |
|
429 | + foreach ($globalSources as $testsource) { |
|
430 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
431 | + } |
|
432 | + if ($dispolar) { |
|
433 | + ?> |
|
434 | 434 | <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> |
435 | 435 | <?php |
436 | - } |
|
437 | - } |
|
438 | - ?> |
|
436 | + } |
|
437 | + } |
|
438 | + ?> |
|
439 | 439 | <?php |
440 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
440 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
441 | 441 | ?> |
442 | 442 | |
443 | 443 | <?php |
444 | 444 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
445 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
446 | - ?> |
|
445 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
446 | + ?> |
|
447 | 447 | <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> |
448 | 448 | <?php |
449 | 449 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
450 | - ?> |
|
450 | + ?> |
|
451 | 451 | <li><?php echo _("Aircraft icon color:"); ?><input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print '1a3151'; ?>"></li> |
452 | 452 | <?php |
453 | 453 | } |
454 | - } |
|
455 | - } |
|
456 | - ?> |
|
454 | + } |
|
455 | + } |
|
456 | + ?> |
|
457 | 457 | <?php |
458 | 458 | if (isset($globalMarine) && $globalMarine === TRUE) { |
459 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
460 | - ?> |
|
459 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
460 | + ?> |
|
461 | 461 | <li><?php echo _("Marine icon color:"); ?> |
462 | 462 | <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'; ?>"> |
463 | 463 | </li> |
464 | 464 | <?php |
465 | - } |
|
466 | - } |
|
467 | - ?> |
|
465 | + } |
|
466 | + } |
|
467 | + ?> |
|
468 | 468 | <?php |
469 | 469 | if (isset($globalTracker) && $globalTracker === TRUE) { |
470 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
471 | - ?> |
|
470 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
471 | + ?> |
|
472 | 472 | <li><?php echo _("Tracker icon color:"); ?> |
473 | 473 | <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'; ?>"> |
474 | 474 | </li> |
475 | 475 | <?php |
476 | - } |
|
477 | - } |
|
478 | - ?> |
|
476 | + } |
|
477 | + } |
|
478 | + ?> |
|
479 | 479 | <?php |
480 | 480 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
481 | - ?> |
|
481 | + ?> |
|
482 | 482 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
483 | 483 | <div class="range"> |
484 | 484 | <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'; ?>"> |
@@ -487,9 +487,9 @@ discard block |
||
487 | 487 | </li> |
488 | 488 | <?php |
489 | 489 | } |
490 | - ?> |
|
490 | + ?> |
|
491 | 491 | <?php |
492 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
492 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
493 | 493 | ?> |
494 | 494 | <li><?php echo _("Set scaling factor for rendering resolution:"); ?> |
495 | 495 | <div class="range"> |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | </li> |
528 | 528 | <?php |
529 | 529 | } |
530 | - } |
|
530 | + } |
|
531 | 531 | ?> |
532 | 532 | <li><?php echo _("Distance unit:"); ?> |
533 | 533 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -560,19 +560,19 @@ discard block |
||
560 | 560 | <ul> |
561 | 561 | <?php |
562 | 562 | if (!isset($globalAircraft) || $globalAircraft) { |
563 | - ?> |
|
563 | + ?> |
|
564 | 564 | <?php |
565 | 565 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
566 | - ?> |
|
566 | + ?> |
|
567 | 567 | <?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 } ?> |
568 | 568 | <?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 } ?> |
569 | 569 | <?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 } ?> |
570 | 570 | <?php |
571 | 571 | } |
572 | - ?> |
|
572 | + ?> |
|
573 | 573 | <?php |
574 | 574 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
575 | - ?> |
|
575 | + ?> |
|
576 | 576 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
577 | 577 | <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> |
578 | 578 | <?php } ?> |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | <?php } ?> |
582 | 582 | <?php |
583 | 583 | } |
584 | - ?> |
|
584 | + ?> |
|
585 | 585 | <li><?php echo _("Display airlines:"); ?> |
586 | 586 | <br/> |
587 | 587 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -601,14 +601,14 @@ discard block |
||
601 | 601 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
602 | 602 | } |
603 | 603 | } |
604 | - ?> |
|
604 | + ?> |
|
605 | 605 | </select> |
606 | 606 | </li> |
607 | 607 | <?php |
608 | 608 | $Spotter = new Spotter(); |
609 | 609 | $allalliancenames = $Spotter->getAllAllianceNames(); |
610 | 610 | if (!empty($allalliancenames)) { |
611 | - ?> |
|
611 | + ?> |
|
612 | 612 | <li><?php echo _("Display alliance:"); ?> |
613 | 613 | <br/> |
614 | 614 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -622,18 +622,18 @@ discard block |
||
622 | 622 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
623 | 623 | } |
624 | 624 | } |
625 | - ?> |
|
625 | + ?> |
|
626 | 626 | </select> |
627 | 627 | </li> |
628 | 628 | <?php |
629 | 629 | } |
630 | - ?> |
|
630 | + ?> |
|
631 | 631 | <?php |
632 | 632 | } |
633 | - ?> |
|
633 | + ?> |
|
634 | 634 | <?php |
635 | 635 | if (isset($globalAPRS) && $globalAPRS) { |
636 | - ?> |
|
636 | + ?> |
|
637 | 637 | <li><?php echo _("Display APRS sources name:"); ?> |
638 | 638 | <select class="selectpicker" multiple onchange="sources(this);"> |
639 | 639 | <?php |
@@ -657,18 +657,18 @@ discard block |
||
657 | 657 | echo '<option value="'.$src['name'].'">'.$src['name'].'</option>'; |
658 | 658 | } |
659 | 659 | } |
660 | - ?> |
|
660 | + ?> |
|
661 | 661 | </select> |
662 | 662 | </li> |
663 | 663 | <?php |
664 | 664 | } |
665 | - ?> |
|
665 | + ?> |
|
666 | 666 | <?php |
667 | 667 | if (!isset($globalAircraft) || $globalAircraft) { |
668 | - ?> |
|
668 | + ?> |
|
669 | 669 | <?php |
670 | - if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
671 | - ?> |
|
670 | + if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
|
671 | + ?> |
|
672 | 672 | <li><?php echo _("Display airlines of type:"); ?><br/> |
673 | 673 | <select class="selectpicker" onchange="airlinestype(this);"> |
674 | 674 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -678,21 +678,21 @@ discard block |
||
678 | 678 | </select> |
679 | 679 | </li> |
680 | 680 | <?php |
681 | - } |
|
682 | - ?> |
|
681 | + } |
|
682 | + ?> |
|
683 | 683 | <?php |
684 | 684 | } |
685 | - ?> |
|
685 | + ?> |
|
686 | 686 | <?php |
687 | 687 | if (isset($globalMarine) && $globalMarine) { |
688 | - ?> |
|
688 | + ?> |
|
689 | 689 | <li> |
690 | 690 | <?php echo _("Display vessels with MMSI:"); ?> |
691 | 691 | <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
692 | 692 | </li> |
693 | 693 | <?php |
694 | 694 | } |
695 | - ?> |
|
695 | + ?> |
|
696 | 696 | <li> |
697 | 697 | <?php echo _("Display with ident:"); ?> |
698 | 698 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
@@ -705,7 +705,7 @@ discard block |
||
705 | 705 | </form> |
706 | 706 | </div> |
707 | 707 | <?php |
708 | - if (isset($globalSatellite) && $globalSatellite) { |
|
708 | + if (isset($globalSatellite) && $globalSatellite) { |
|
709 | 709 | ?> |
710 | 710 | <div class="sidebar-pane" id="satellites"> |
711 | 711 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -745,14 +745,14 @@ discard block |
||
745 | 745 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
746 | 746 | } |
747 | 747 | } |
748 | - ?> |
|
748 | + ?> |
|
749 | 749 | </select> |
750 | 750 | </li> |
751 | 751 | </ul> |
752 | 752 | </form> |
753 | 753 | </div> |
754 | 754 | <?php |
755 | - } |
|
755 | + } |
|
756 | 756 | ?> |
757 | 757 | </div> |
758 | 758 | </div> |
@@ -51,7 +51,10 @@ discard block |
||
51 | 51 | <?php |
52 | 52 | if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
53 | 53 | ?> |
54 | -<script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) print '?tsk='.$tsk; ?>"></script> |
|
54 | +<script src="<?php echo $globalURL; ?>/js/map.3d.js.php<?php if (isset($tsk)) { |
|
55 | + print '?tsk='.$tsk; |
|
56 | +} |
|
57 | +?>"></script> |
|
55 | 58 | <?php |
56 | 59 | if (!isset($globalAircraft) || $globalAircraft) { |
57 | 60 | ?> |
@@ -141,8 +144,14 @@ discard block |
||
141 | 144 | ?> |
142 | 145 | <form> |
143 | 146 | <ul> |
144 | - <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') print 'checked'; ?> /><?php echo _("Display waypoints"); ?></label></div></li> |
|
145 | - <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') print 'checked'; ?> /><?php echo _("Display airspace"); ?></label></div></li> |
|
147 | + <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') { |
|
148 | + print 'checked'; |
|
149 | +} |
|
150 | +?> /><?php echo _("Display waypoints"); ?></label></div></li> |
|
151 | + <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') { |
|
152 | + print 'checked'; |
|
153 | +} |
|
154 | +?> /><?php echo _("Display airspace"); ?></label></div></li> |
|
146 | 155 | </ul> |
147 | 156 | </form> |
148 | 157 | <?php |
@@ -150,8 +159,14 @@ discard block |
||
150 | 159 | ?> |
151 | 160 | <form> |
152 | 161 | <ul> |
153 | - <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') print 'checked'; ?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li> |
|
154 | - <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') print 'checked'; ?> /><?php echo _("Display airspace"); ?> Beta</label></div></li> |
|
162 | + <li><div class="checkbox"><label><input type="checkbox" name="waypoints" value="1" onclick="showWaypoints(this);" <?php if (isset($_COOKIE['waypoints']) && $_COOKIE['waypoints'] == 'true') { |
|
163 | + print 'checked'; |
|
164 | +} |
|
165 | +?> /><?php echo _("Display waypoints"); ?> Beta</label></div></li> |
|
166 | + <li><div class="checkbox"><label><input type="checkbox" name="airspace" value="1" onclick="showAirspace(this);" <?php if (isset($_COOKIE['airspace']) && $_COOKIE['airspace'] == 'true') { |
|
167 | + print 'checked'; |
|
168 | +} |
|
169 | +?> /><?php echo _("Display airspace"); ?> Beta</label></div></li> |
|
155 | 170 | </ul> |
156 | 171 | <p>This layers are in Beta, this can and will crash.</p> |
157 | 172 | </form> |
@@ -162,14 +177,32 @@ discard block |
||
162 | 177 | <h1>NOTAM</h1> |
163 | 178 | <form> |
164 | 179 | <ul> |
165 | - <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') print 'checked'; ?> /><?php echo _("Display NOTAM"); ?></label></div></li> |
|
180 | + <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam(this);" <?php if (isset($_COOKIE['notam']) && $_COOKIE['notam'] == 'true') { |
|
181 | + print 'checked'; |
|
182 | +} |
|
183 | +?> /><?php echo _("Display NOTAM"); ?></label></div></li> |
|
166 | 184 | <li><?php echo _("NOTAM scope:"); ?> |
167 | 185 | <select class="selectpicker" onchange="notamscope(this);"> |
168 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
169 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
170 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
171 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
172 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
186 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
187 | + print ' selected'; |
|
188 | +} |
|
189 | +?>>All</option> |
|
190 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
191 | + print ' selected'; |
|
192 | +} |
|
193 | +?>>Airport/Enroute warning</option> |
|
194 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
195 | + print ' selected'; |
|
196 | +} |
|
197 | +?>>Airport warning</option> |
|
198 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
199 | + print ' selected'; |
|
200 | +} |
|
201 | +?>>Navigation warning</option> |
|
202 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
203 | + print ' selected'; |
|
204 | +} |
|
205 | +?>>Enroute warning</option> |
|
173 | 206 | </select |
174 | 207 | </li> |
175 | 208 | </ul> |
@@ -197,7 +230,10 @@ discard block |
||
197 | 230 | <div class="form-group"> |
198 | 231 | <label><?php echo _("From:"); ?></label> |
199 | 232 | <div class='input-group date' id='datetimepicker1'> |
200 | - <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC'; ?>" required /> |
|
233 | + <input type='text' id="start_date" name="start_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_begin']) && $_COOKIE['archive_begin'] != '') { |
|
234 | + print date("Y-m-d H:i",$_COOKIE['archive_begin']).' UTC'; |
|
235 | +} |
|
236 | +?>" required /> |
|
201 | 237 | <span class="input-group-addon"> |
202 | 238 | <span class="glyphicon glyphicon-calendar"></span> |
203 | 239 | </span> |
@@ -206,7 +242,10 @@ discard block |
||
206 | 242 | <div class="form-group"> |
207 | 243 | <label><?php echo _("To:"); ?></label> |
208 | 244 | <div class='input-group date' id='datetimepicker2'> |
209 | - <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC'; ?>" /> |
|
245 | + <input type='text' id="end_date" name="end_date" class="form-control" autocomplete="off" value="<?php if (isset($_COOKIE['archive_end']) && $_COOKIE['archive_end'] != '') { |
|
246 | + print date("Y-m-d H:i",$_COOKIE['archive_end']).' UTC'; |
|
247 | +} |
|
248 | +?>" /> |
|
210 | 249 | <span class="input-group-addon"> |
211 | 250 | <span class="glyphicon glyphicon-calendar"></span> |
212 | 251 | </span> |
@@ -238,8 +277,20 @@ discard block |
||
238 | 277 | </script> |
239 | 278 | <li><?php echo _("Playback speed:"); ?> |
240 | 279 | <div class="range"> |
241 | - <input type="range" min="0" max="50" step="1" id="archivespeed" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) print $_POST['archivespeed']; elseif (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?>"> |
|
242 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
280 | + <input type="range" min="0" max="50" step="1" id="archivespeed" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
281 | + print $_POST['archivespeed']; |
|
282 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
283 | + print $_COOKIE['archive_speed']; |
|
284 | +} else { |
|
285 | + print '1'; |
|
286 | +} |
|
287 | +?>"> |
|
288 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
289 | + print $_COOKIE['archive_speed']; |
|
290 | +} else { |
|
291 | + print '1'; |
|
292 | +} |
|
293 | +?></output> |
|
243 | 294 | </div> |
244 | 295 | </li> |
245 | 296 | <li><button type="button" onclick="addarchive(begindate,enddate);" class="btn btn-primary"><?php echo _("Show archive"); ?></button></li> |
@@ -258,29 +309,53 @@ discard block |
||
258 | 309 | <li><?php echo _("Type of Map:"); ?> |
259 | 310 | <select class="selectpicker" onchange="mapType(this);"> |
260 | 311 | <?php |
261 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
262 | - else $MapType = $_COOKIE['MapType']; |
|
312 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
313 | + $MapType = $globalMapProvider; |
|
314 | + } else { |
|
315 | + $MapType = $_COOKIE['MapType']; |
|
316 | + } |
|
263 | 317 | ?> |
264 | 318 | <?php |
265 | 319 | if (isset($globalMapOffline) && $globalMapOffline === TRUE) { |
266 | 320 | ?> |
267 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
|
321 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
322 | + print ' selected'; |
|
323 | +} |
|
324 | +?>>Natural Earth (local)</option> |
|
268 | 325 | <?php |
269 | 326 | } else { |
270 | 327 | if (file_exists(dirname(__FILE__).'/js/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml')) { |
271 | 328 | ?> |
272 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth (local)</option> |
|
329 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
330 | + print ' selected'; |
|
331 | +} |
|
332 | +?>>Natural Earth (local)</option> |
|
273 | 333 | <?php |
274 | 334 | } |
275 | 335 | ?> |
276 | - <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') print ' selected'; ?>>ArcGIS Streetmap</option> |
|
277 | - <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') print ' selected'; ?>>ArcGIS Satellite</option> |
|
336 | + <option value="ArcGIS-Streetmap"<?php if ($MapType == 'ArcGIS-Streetmap') { |
|
337 | + print ' selected'; |
|
338 | +} |
|
339 | +?>>ArcGIS Streetmap</option> |
|
340 | + <option value="ArcGIS-Satellite"<?php if ($MapType == 'ArcGIS-Satellite') { |
|
341 | + print ' selected'; |
|
342 | +} |
|
343 | +?>>ArcGIS Satellite</option> |
|
278 | 344 | <?php |
279 | 345 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
280 | 346 | ?> |
281 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
282 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
283 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
347 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
348 | + print ' selected'; |
|
349 | +} |
|
350 | +?>>Bing-Aerial</option> |
|
351 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
352 | + print ' selected'; |
|
353 | +} |
|
354 | +?>>Bing-Hybrid</option> |
|
355 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
356 | + print ' selected'; |
|
357 | +} |
|
358 | +?>>Bing-Road</option> |
|
284 | 359 | <?php |
285 | 360 | } |
286 | 361 | ?> |
@@ -290,59 +365,143 @@ discard block |
||
290 | 365 | <?php |
291 | 366 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
292 | 367 | ?> |
293 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
294 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
295 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
368 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
369 | + print ' selected'; |
|
370 | +} |
|
371 | +?>>Here-Aerial</option> |
|
372 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
373 | + print ' selected'; |
|
374 | +} |
|
375 | +?>>Here-Hybrid</option> |
|
376 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
377 | + print ' selected'; |
|
378 | +} |
|
379 | +?>>Here-Road</option> |
|
296 | 380 | <?php |
297 | 381 | } |
298 | 382 | ?> |
299 | 383 | <?php |
300 | 384 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
301 | 385 | ?> |
302 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
303 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
304 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
305 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
386 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
387 | + print ' selected'; |
|
388 | +} |
|
389 | +?>>Google Roadmap</option> |
|
390 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
391 | + print ' selected'; |
|
392 | +} |
|
393 | +?>>Google Satellite</option> |
|
394 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
395 | + print ' selected'; |
|
396 | +} |
|
397 | +?>>Google Hybrid</option> |
|
398 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
399 | + print ' selected'; |
|
400 | +} |
|
401 | +?>>Google Terrain</option> |
|
306 | 402 | <?php |
307 | 403 | } |
308 | 404 | ?> |
309 | 405 | <?php |
310 | 406 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
311 | 407 | ?> |
312 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
313 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
314 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
408 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
409 | + print ' selected'; |
|
410 | +} |
|
411 | +?>>MapQuest-OSM</option> |
|
412 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
413 | + print ' selected'; |
|
414 | +} |
|
415 | +?>>MapQuest-Aerial</option> |
|
416 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
417 | + print ' selected'; |
|
418 | +} |
|
419 | +?>>MapQuest-Hybrid</option> |
|
315 | 420 | <?php |
316 | 421 | } |
317 | 422 | ?> |
318 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
319 | - <option value="offline"<?php if ($MapType == 'offline') print ' selected'; ?>>Natural Earth</option> |
|
423 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
424 | + print ' selected'; |
|
425 | +} |
|
426 | +?>>Yandex</option> |
|
427 | + <option value="offline"<?php if ($MapType == 'offline') { |
|
428 | + print ' selected'; |
|
429 | +} |
|
430 | +?>>Natural Earth</option> |
|
320 | 431 | <?php |
321 | 432 | } |
322 | 433 | ?> |
323 | - <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') print ' selected'; ?>>National Geographic Street</option> |
|
434 | + <option value="NatGeo-Street"<?php if ($MapType == 'NatGeo-Street') { |
|
435 | + print ' selected'; |
|
436 | +} |
|
437 | +?>>National Geographic Street</option> |
|
324 | 438 | <?php |
325 | 439 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
326 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
327 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
440 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
441 | + $MapBoxId = 'default'; |
|
442 | + } else { |
|
443 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
444 | + } |
|
328 | 445 | ?> |
329 | - <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') print ' selected'; ?>>Mapbox GL</option> |
|
330 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
331 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
332 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
333 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
334 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
335 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
336 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
337 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
338 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
339 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
340 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
341 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
446 | + <option value="MapboxGL"<?php if ($MapType == 'MapboxGL') { |
|
447 | + print ' selected'; |
|
448 | +} |
|
449 | +?>>Mapbox GL</option> |
|
450 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
451 | + print ' selected'; |
|
452 | +} |
|
453 | +?>>Mapbox default</option> |
|
454 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
455 | + print ' selected'; |
|
456 | +} |
|
457 | +?>>Mapbox streets</option> |
|
458 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
459 | + print ' selected'; |
|
460 | +} |
|
461 | +?>>Mapbox light</option> |
|
462 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
463 | + print ' selected'; |
|
464 | +} |
|
465 | +?>>Mapbox dark</option> |
|
466 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
467 | + print ' selected'; |
|
468 | +} |
|
469 | +?>>Mapbox satellite</option> |
|
470 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
471 | + print ' selected'; |
|
472 | +} |
|
473 | +?>>Mapbox streets-satellite</option> |
|
474 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
475 | + print ' selected'; |
|
476 | +} |
|
477 | +?>>Mapbox streets-basic</option> |
|
478 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
479 | + print ' selected'; |
|
480 | +} |
|
481 | +?>>Mapbox comic</option> |
|
482 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
483 | + print ' selected'; |
|
484 | +} |
|
485 | +?>>Mapbox outdoors</option> |
|
486 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
487 | + print ' selected'; |
|
488 | +} |
|
489 | +?>>Mapbox pencil</option> |
|
490 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
491 | + print ' selected'; |
|
492 | +} |
|
493 | +?>>Mapbox pirates</option> |
|
494 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
495 | + print ' selected'; |
|
496 | +} |
|
497 | +?>>Mapbox emerald</option> |
|
342 | 498 | <?php |
343 | 499 | } |
344 | 500 | ?> |
345 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
501 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
502 | + print ' selected'; |
|
503 | +} |
|
504 | +?>>OpenStreetMap</option> |
|
346 | 505 | <?php |
347 | 506 | } |
348 | 507 | ?> |
@@ -353,10 +512,22 @@ discard block |
||
353 | 512 | ?> |
354 | 513 | <li><?php echo _("Type of Terrain:"); ?> |
355 | 514 | <select class="selectpicker" onchange="terrainType(this);"> |
356 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
357 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
358 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
359 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
515 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
516 | + print ' selected'; |
|
517 | +} |
|
518 | +?>>stk terrain</option> |
|
519 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
520 | + print ' selected'; |
|
521 | +} |
|
522 | +?>>ellipsoid</option> |
|
523 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
524 | + print ' selected'; |
|
525 | +} |
|
526 | +?>>vr terrain</option> |
|
527 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') { |
|
528 | + print ' selected'; |
|
529 | +} |
|
530 | +?>>ArticDEM</option> |
|
360 | 531 | </select> |
361 | 532 | </li> |
362 | 533 | <?php |
@@ -365,50 +536,98 @@ discard block |
||
365 | 536 | <?php |
366 | 537 | if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
367 | 538 | ?> |
368 | - <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') print 'checked'; ?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
|
539 | + <li><div class="checkbox"><label><input type="checkbox" name="display2dbuildings" value="1" onclick="clickDisplay2DBuildings(this)" <?php if (isset($_COOKIE['Map2DBuildings']) && $_COOKIE['Map2DBuildings'] == 'true') { |
|
540 | + print 'checked'; |
|
541 | +} |
|
542 | +?> ><?php echo _("Display 2.5D buidings on map"); ?></label></div></li> |
|
369 | 543 | |
370 | 544 | <?php |
371 | 545 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
372 | 546 | ?> |
373 | - <!--<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>--> |
|
374 | - <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> |
|
375 | - <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (!isset($_COOKIE['MapRoute']) && isset($globalMapRoute) && $globalMapRoute)) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
376 | - <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> |
|
377 | - <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> |
|
547 | + <!--<li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
548 | + print 'checked'; |
|
549 | +} |
|
550 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li>--> |
|
551 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
552 | + print 'checked'; |
|
553 | +} |
|
554 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
555 | + <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (!isset($_COOKIE['MapRoute']) && isset($globalMapRoute) && $globalMapRoute)) { |
|
556 | + print 'checked'; |
|
557 | +} |
|
558 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
559 | + <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)) { |
|
560 | + print 'checked'; |
|
561 | +} |
|
562 | +?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
563 | + <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)) { |
|
564 | + print 'checked'; |
|
565 | +} |
|
566 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
378 | 567 | <?php |
379 | 568 | } elseif (!isset($globalTracker) || $globalTracker === TRUE) { |
380 | 569 | ?> |
381 | - <li><div class="checkbox"><label><input type="checkbox" name="mapmatching" value="1" onclick="clickMapMatching(this)" <?php if ((isset($_COOKIE['mapmatching']) && $_COOKIE['mapmatching'] == 'true') || (!isset($_COOKIE['mapmatching']) && isset($globalMapMatching) && $globalMapMatching)) print 'checked'; ?> ><?php echo _("Enable map matching"); ?></label></div></li> |
|
570 | + <li><div class="checkbox"><label><input type="checkbox" name="mapmatching" value="1" onclick="clickMapMatching(this)" <?php if ((isset($_COOKIE['mapmatching']) && $_COOKIE['mapmatching'] == 'true') || (!isset($_COOKIE['mapmatching']) && isset($globalMapMatching) && $globalMapMatching)) { |
|
571 | + print 'checked'; |
|
572 | +} |
|
573 | +?> ><?php echo _("Enable map matching"); ?></label></div></li> |
|
382 | 574 | <?php |
383 | 575 | } |
384 | 576 | if (isset($globalSatellite) && $globalSatellite === TRUE) { |
385 | 577 | ?> |
386 | - <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> |
|
578 | + <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)) { |
|
579 | + print 'checked'; |
|
580 | +} |
|
581 | +?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
387 | 582 | <?php |
388 | 583 | } |
389 | 584 | } |
390 | 585 | ?> |
391 | - <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> |
|
392 | - <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> |
|
393 | - <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> |
|
394 | - <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> |
|
586 | + <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'])) { |
|
587 | + print 'checked'; |
|
588 | +} |
|
589 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
590 | + <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))) { |
|
591 | + print 'checked'; |
|
592 | +} |
|
593 | +?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
594 | + <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))) { |
|
595 | + print 'checked'; |
|
596 | +} |
|
597 | +?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
598 | + <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))) { |
|
599 | + print 'checked'; |
|
600 | +} |
|
601 | +?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
395 | 602 | <?php |
396 | 603 | if (isset($globalFires)) { |
397 | 604 | ?> |
398 | - <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) print 'checked'; ?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
605 | + <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) { |
|
606 | + print 'checked'; |
|
607 | +} |
|
608 | +?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
399 | 609 | <?php |
400 | 610 | } |
401 | 611 | if (isset($globalMap3D) && $globalMap3D) { |
402 | 612 | ?> |
403 | - <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if (isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') print 'checked'; ?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li> |
|
613 | + <li><div class="checkbox"><label><input type="checkbox" name="singlemodel" value="1" onclick="clickSingleModel(this)" <?php if (isset($_COOKIE['singlemodel']) && $_COOKIE['singlemodel'] == 'true') { |
|
614 | + print 'checked'; |
|
615 | +} |
|
616 | +?> ><?php echo _("Only display selected flight on 3D mode"); ?></label></div></li> |
|
404 | 617 | <?php |
405 | 618 | } |
406 | 619 | ?> |
407 | 620 | <?php |
408 | 621 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
409 | 622 | ?> |
410 | - <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> |
|
411 | - <li><div class="checkbox"><label><input type="checkbox" name="one3dmodel" value="1" onclick="useOne3Dmodel(this)" <?php if ((isset($_COOKIE['one3dmodel']) && $_COOKIE['one3dmodel'] == 'true') || (!isset($_COOKIE['one3dmodel']) && isset($globalMap3DOneModel) && $globalMap3DOneModel)) print 'checked'; ?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
|
623 | + <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')) { |
|
624 | + print 'checked'; |
|
625 | +} |
|
626 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
627 | + <li><div class="checkbox"><label><input type="checkbox" name="one3dmodel" value="1" onclick="useOne3Dmodel(this)" <?php if ((isset($_COOKIE['one3dmodel']) && $_COOKIE['one3dmodel'] == 'true') || (!isset($_COOKIE['one3dmodel']) && isset($globalMap3DOneModel) && $globalMap3DOneModel)) { |
|
628 | + print 'checked'; |
|
629 | +} |
|
630 | +?> ><?php echo _("Use same 3D model for all aircraft (use fewer resources)"); ?></label></div></li> |
|
412 | 631 | <?php |
413 | 632 | } |
414 | 633 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -421,17 +640,25 @@ discard block |
||
421 | 640 | if (function_exists('array_column')) { |
422 | 641 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
423 | 642 | ?> |
424 | - <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> |
|
643 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
644 | + print 'checked'; |
|
645 | +} |
|
646 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
425 | 647 | <?php |
426 | 648 | } |
427 | 649 | } elseif (isset($globalSources)) { |
428 | 650 | $dispolar = false; |
429 | 651 | foreach ($globalSources as $testsource) { |
430 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
652 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
653 | + $dispolar = true; |
|
654 | + } |
|
431 | 655 | } |
432 | 656 | if ($dispolar) { |
433 | 657 | ?> |
434 | - <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> |
|
658 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
659 | + print 'checked'; |
|
660 | +} |
|
661 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
435 | 662 | <?php |
436 | 663 | } |
437 | 664 | } |
@@ -444,11 +671,21 @@ discard block |
||
444 | 671 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
445 | 672 | if (extension_loaded('gd') && function_exists('gd_info')) { |
446 | 673 | ?> |
447 | - <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> |
|
674 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
675 | + print 'checked'; |
|
676 | +} |
|
677 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
448 | 678 | <?php |
449 | 679 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
450 | 680 | ?> |
451 | - <li><?php echo _("Aircraft icon color:"); ?><input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print '1a3151'; ?>"></li> |
|
681 | + <li><?php echo _("Aircraft icon color:"); ?><input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
682 | + print $_COOKIE['IconColor']; |
|
683 | +} elseif (isset($globalAircraftIconColor)) { |
|
684 | + print $globalAircraftIconColor; |
|
685 | +} else { |
|
686 | + print '1a3151'; |
|
687 | +} |
|
688 | +?>"></li> |
|
452 | 689 | <?php |
453 | 690 | } |
454 | 691 | } |
@@ -459,7 +696,14 @@ discard block |
||
459 | 696 | if (extension_loaded('gd') && function_exists('gd_info')) { |
460 | 697 | ?> |
461 | 698 | <li><?php echo _("Marine icon color:"); ?> |
462 | - <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'; ?>"> |
|
699 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
700 | + print $_COOKIE['MarineIconColor']; |
|
701 | +} elseif (isset($globalMarineIconColor)) { |
|
702 | + print $globalMarineIconColor; |
|
703 | +} else { |
|
704 | + print '1a3151'; |
|
705 | +} |
|
706 | +?>"> |
|
463 | 707 | </li> |
464 | 708 | <?php |
465 | 709 | } |
@@ -470,7 +714,14 @@ discard block |
||
470 | 714 | if (extension_loaded('gd') && function_exists('gd_info')) { |
471 | 715 | ?> |
472 | 716 | <li><?php echo _("Tracker icon color:"); ?> |
473 | - <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'; ?>"> |
|
717 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
718 | + print $_COOKIE['TrackerIconColor']; |
|
719 | +} elseif (isset($globalTrackerIconColor)) { |
|
720 | + print $globalTrackerIconColor; |
|
721 | +} else { |
|
722 | + print '1a3151'; |
|
723 | +} |
|
724 | +?>"> |
|
474 | 725 | </li> |
475 | 726 | <?php |
476 | 727 | } |
@@ -481,8 +732,22 @@ discard block |
||
481 | 732 | ?> |
482 | 733 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
483 | 734 | <div class="range"> |
484 | - <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'; ?>"> |
|
485 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
735 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
736 | + print $_COOKIE['AirportZoom']; |
|
737 | +} elseif (isset($globalAirportZoom)) { |
|
738 | + print $globalAirportZoom; |
|
739 | +} else { |
|
740 | + print '7'; |
|
741 | +} |
|
742 | +?>"> |
|
743 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
744 | + print $_COOKIE['AirportZoom']; |
|
745 | +} elseif (isset($globalAirportZoom)) { |
|
746 | + print $globalAirportZoom; |
|
747 | +} else { |
|
748 | + print '7'; |
|
749 | +} |
|
750 | +?></output> |
|
486 | 751 | </div> |
487 | 752 | </li> |
488 | 753 | <?php |
@@ -493,17 +758,40 @@ discard block |
||
493 | 758 | ?> |
494 | 759 | <li><?php echo _("Set scaling factor for rendering resolution:"); ?> |
495 | 760 | <div class="range"> |
496 | - <input type="range" min="0.5" max="2" step="0.5" name="resolutionscale" onchange="scale.value=value;resolutionScale(resolutionscale.value);" value="<?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?>"> |
|
497 | - <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) print $_COOKIE['resolutionScale']; else print '1'; ?></output> |
|
761 | + <input type="range" min="0.5" max="2" step="0.5" name="resolutionscale" onchange="scale.value=value;resolutionScale(resolutionscale.value);" value="<?php if (isset($_COOKIE['resolutionScale'])) { |
|
762 | + print $_COOKIE['resolutionScale']; |
|
763 | +} else { |
|
764 | + print '1'; |
|
765 | +} |
|
766 | +?>"> |
|
767 | + <output id="scale"><?php if (isset($_COOKIE['resolutionScale'])) { |
|
768 | + print $_COOKIE['resolutionScale']; |
|
769 | +} else { |
|
770 | + print '1'; |
|
771 | +} |
|
772 | +?></output> |
|
498 | 773 | </div> |
499 | 774 | </li> |
500 | 775 | <?php |
501 | 776 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
502 | 777 | ?> |
503 | - <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') print 'checked'; ?> ><?php echo _("Use airlines liveries"); ?></li> |
|
504 | - <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"); ?> |
|
778 | + <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') { |
|
779 | + print 'checked'; |
|
780 | +} |
|
781 | +?> ><?php echo _("Use airlines liveries"); ?></li> |
|
782 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
783 | + print 'checked'; |
|
784 | +} |
|
785 | +?> ><?php echo _("Force Aircraft color"); ?> |
|
505 | 786 | <!--<li><?php echo _("Aircraft icon color:"); ?>--> |
506 | - <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'; ?>"> |
|
787 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
788 | + print $_COOKIE['IconColor']; |
|
789 | +} elseif (isset($globalAircraftIconColor)) { |
|
790 | + print $globalAircraftIconColor; |
|
791 | +} else { |
|
792 | + print 'ff0000'; |
|
793 | +} |
|
794 | +?>"> |
|
507 | 795 | </li> |
508 | 796 | <?php |
509 | 797 | } |
@@ -511,9 +799,19 @@ discard block |
||
511 | 799 | <?php |
512 | 800 | if (isset($globalMarine) && $globalMarine === TRUE) { |
513 | 801 | ?> |
514 | - <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"); ?> |
|
802 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
803 | + print 'checked'; |
|
804 | +} |
|
805 | +?> ><?php echo _("Force Marine color"); ?> |
|
515 | 806 | <!--<li><?php echo _("Marine icon color:"); ?>--> |
516 | - <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'; ?>"> |
|
807 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
808 | + print $_COOKIE['MarineIconColor']; |
|
809 | +} elseif (isset($globalMarineIconColor)) { |
|
810 | + print $globalMarineIconColor; |
|
811 | +} else { |
|
812 | + print 'ff0000'; |
|
813 | +} |
|
814 | +?>"> |
|
517 | 815 | </li> |
518 | 816 | <?php |
519 | 817 | } |
@@ -521,9 +819,19 @@ discard block |
||
521 | 819 | <?php |
522 | 820 | if (isset($globalTracker) && $globalTracker === TRUE) { |
523 | 821 | ?> |
524 | - <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"); ?> |
|
822 | + <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') { |
|
823 | + print 'checked'; |
|
824 | +} |
|
825 | +?> ><?php echo _("Force Tracker color"); ?> |
|
525 | 826 | <!--<li><?php echo _("Tracker icon color:"); ?>--> |
526 | - <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'; ?>"> |
|
827 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
828 | + print $_COOKIE['TrackerIconColor']; |
|
829 | +} elseif (isset($globalTrackerIconColor)) { |
|
830 | + print $globalTrackerIconColor; |
|
831 | +} else { |
|
832 | + print 'ff0000'; |
|
833 | +} |
|
834 | +?>"> |
|
527 | 835 | </li> |
528 | 836 | <?php |
529 | 837 | } |
@@ -531,22 +839,46 @@ discard block |
||
531 | 839 | ?> |
532 | 840 | <li><?php echo _("Distance unit:"); ?> |
533 | 841 | <select class="selectpicker" onchange="unitdistance(this);"> |
534 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
535 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
536 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
842 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
843 | + echo ' selected'; |
|
844 | +} |
|
845 | +?>>km</option> |
|
846 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
847 | + echo ' selected'; |
|
848 | +} |
|
849 | +?>>nm</option> |
|
850 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
851 | + echo ' selected'; |
|
852 | +} |
|
853 | +?>>mi</option> |
|
537 | 854 | </select> |
538 | 855 | </li> |
539 | 856 | <li><?php echo _("Altitude unit:"); ?> |
540 | 857 | <select class="selectpicker" onchange="unitaltitude(this);"> |
541 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
542 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
858 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
859 | + echo ' selected'; |
|
860 | +} |
|
861 | +?>>m</option> |
|
862 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
863 | + echo ' selected'; |
|
864 | +} |
|
865 | +?>>feet</option> |
|
543 | 866 | </select> |
544 | 867 | </li> |
545 | 868 | <li><?php echo _("Speed unit:"); ?> |
546 | 869 | <select class="selectpicker" onchange="unitspeed(this);"> |
547 | - <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> |
|
548 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
549 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
870 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
871 | + echo ' selected'; |
|
872 | +} |
|
873 | +?>>km/h</option> |
|
874 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
875 | + echo ' selected'; |
|
876 | +} |
|
877 | +?>>mph</option> |
|
878 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
879 | + echo ' selected'; |
|
880 | +} |
|
881 | +?>>knots</option> |
|
550 | 882 | </select> |
551 | 883 | </li> |
552 | 884 | |
@@ -564,9 +896,18 @@ discard block |
||
564 | 896 | <?php |
565 | 897 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
566 | 898 | ?> |
567 | - <?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 } ?> |
|
568 | - <?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 } ?> |
|
569 | - <?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 } ?> |
|
899 | + <?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'])) { |
|
900 | + print 'checked'; |
|
901 | +} |
|
902 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
903 | + <?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'])) { |
|
904 | + print 'checked'; |
|
905 | +} |
|
906 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
907 | + <?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'])) { |
|
908 | + print 'checked'; |
|
909 | +} |
|
910 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
570 | 911 | <?php |
571 | 912 | } |
572 | 913 | ?> |
@@ -574,10 +915,16 @@ discard block |
||
574 | 915 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
575 | 916 | ?> |
576 | 917 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
577 | - <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> |
|
918 | + <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'])) { |
|
919 | + print 'checked'; |
|
920 | +} |
|
921 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
578 | 922 | <?php } ?> |
579 | 923 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
580 | - <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> |
|
924 | + <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'])) { |
|
925 | + print 'checked'; |
|
926 | +} |
|
927 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
581 | 928 | <?php } ?> |
582 | 929 | <?php |
583 | 930 | } |
@@ -594,7 +941,9 @@ discard block |
||
594 | 941 | } |
595 | 942 | foreach($allairlinenames as $airline) { |
596 | 943 | $airline_name = $airline['airline_name']; |
597 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
944 | + if (strlen($airline_name) > 30) { |
|
945 | + $airline_name = substr($airline_name,0,30).'...'; |
|
946 | + } |
|
598 | 947 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
599 | 948 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
600 | 949 | } else { |
@@ -612,7 +961,10 @@ discard block |
||
612 | 961 | <li><?php echo _("Display alliance:"); ?> |
613 | 962 | <br/> |
614 | 963 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
615 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
964 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
965 | + echo ' selected'; |
|
966 | +} |
|
967 | +?>><?php echo _("All"); ?></option> |
|
616 | 968 | <?php |
617 | 969 | foreach($allalliancenames as $alliance) { |
618 | 970 | $alliance_name = $alliance['alliance']; |
@@ -671,10 +1023,22 @@ discard block |
||
671 | 1023 | ?> |
672 | 1024 | <li><?php echo _("Display airlines of type:"); ?><br/> |
673 | 1025 | <select class="selectpicker" onchange="airlinestype(this);"> |
674 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
675 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
676 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
677 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
1026 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
1027 | + echo ' selected'; |
|
1028 | +} |
|
1029 | +?>><?php echo _("All"); ?></option> |
|
1030 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
1031 | + echo ' selected'; |
|
1032 | +} |
|
1033 | +?>><?php echo _("Passenger"); ?></option> |
|
1034 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
1035 | + echo ' selected'; |
|
1036 | +} |
|
1037 | +?>><?php echo _("Cargo"); ?></option> |
|
1038 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
1039 | + echo ' selected'; |
|
1040 | +} |
|
1041 | +?>><?php echo _("Military"); ?></option> |
|
678 | 1042 | </select> |
679 | 1043 | </li> |
680 | 1044 | <?php |
@@ -688,14 +1052,20 @@ discard block |
||
688 | 1052 | ?> |
689 | 1053 | <li> |
690 | 1054 | <?php echo _("Display vessels with MMSI:"); ?> |
691 | - <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) print $_COOKIE['filter_mmsi']; ?>" /> |
|
1055 | + <input type="text" name="mmsifilter" onchange="mmsifilter();" id="mmsifilter" value="<?php if (isset($_COOKIE['filter_mmsi'])) { |
|
1056 | + print $_COOKIE['filter_mmsi']; |
|
1057 | +} |
|
1058 | +?>" /> |
|
692 | 1059 | </li> |
693 | 1060 | <?php |
694 | 1061 | } |
695 | 1062 | ?> |
696 | 1063 | <li> |
697 | 1064 | <?php echo _("Display with ident:"); ?> |
698 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
1065 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
1066 | + print $_COOKIE['filter_ident']; |
|
1067 | +} |
|
1068 | +?>" /> |
|
699 | 1069 | </li> |
700 | 1070 | </ul> |
701 | 1071 | </form> |
@@ -711,7 +1081,10 @@ discard block |
||
711 | 1081 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
712 | 1082 | <form> |
713 | 1083 | <ul> |
714 | - <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> |
|
1084 | + <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'])) { |
|
1085 | + print 'checked'; |
|
1086 | +} |
|
1087 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
715 | 1088 | <li><?php echo _("Type:"); ?> |
716 | 1089 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
717 | 1090 | <?php |
@@ -719,25 +1092,45 @@ discard block |
||
719 | 1092 | $types = $Satellite->get_tle_types(); |
720 | 1093 | foreach ($types as $type) { |
721 | 1094 | $type_name = $type['tle_type']; |
722 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
723 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
724 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
725 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
726 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
727 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
728 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
729 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
730 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
731 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
732 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
733 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
734 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
735 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
736 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
737 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
738 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
739 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
740 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
1095 | + if ($type_name == 'musson') { |
|
1096 | + $type_name = 'Russian LEO Navigation'; |
|
1097 | + } else if ($type_name == 'nnss') { |
|
1098 | + $type_name = 'Navi Navigation Satellite System'; |
|
1099 | + } else if ($type_name == 'sbas') { |
|
1100 | + $type_name = 'Satellite-Based Augmentation System'; |
|
1101 | + } else if ($type_name == 'glo-ops') { |
|
1102 | + $type_name = 'Glonass Operational'; |
|
1103 | + } else if ($type_name == 'gps-ops') { |
|
1104 | + $type_name = 'GPS Operational'; |
|
1105 | + } else if ($type_name == 'argos') { |
|
1106 | + $type_name = 'ARGOS Data Collection System'; |
|
1107 | + } else if ($type_name == 'tdrss') { |
|
1108 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
1109 | + } else if ($type_name == 'sarsat') { |
|
1110 | + $type_name = 'Search & Rescue'; |
|
1111 | + } else if ($type_name == 'dmc') { |
|
1112 | + $type_name = 'Disaster Monitoring'; |
|
1113 | + } else if ($type_name == 'resource') { |
|
1114 | + $type_name = 'Earth Resources'; |
|
1115 | + } else if ($type_name == 'stations') { |
|
1116 | + $type_name = 'Space Stations'; |
|
1117 | + } else if ($type_name == 'geo') { |
|
1118 | + $type_name = 'Geostationary'; |
|
1119 | + } else if ($type_name == 'amateur') { |
|
1120 | + $type_name = 'Amateur Radio'; |
|
1121 | + } else if ($type_name == 'x-comm') { |
|
1122 | + $type_name = 'Experimental'; |
|
1123 | + } else if ($type_name == 'other-comm') { |
|
1124 | + $type_name = 'Other Comm'; |
|
1125 | + } else if ($type_name == 'science') { |
|
1126 | + $type_name = 'Space & Earth Science'; |
|
1127 | + } else if ($type_name == 'military') { |
|
1128 | + $type_name = 'Miscellaneous Military'; |
|
1129 | + } else if ($type_name == 'radar') { |
|
1130 | + $type_name = 'Radar Calibration'; |
|
1131 | + } else if ($type_name == 'tle-new') { |
|
1132 | + $type_name = 'Last 30 days launches'; |
|
1133 | + } |
|
741 | 1134 | |
742 | 1135 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
743 | 1136 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |