@@ -7,13 +7,13 @@ discard block |
||
| 7 | 7 | //protected $cookies = array(); |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | - * Get data from form result |
|
| 11 | - * @param String $url form URL |
|
| 12 | - * @param String $type type of submit form method (get or post) |
|
| 13 | - * @param String|Array $data values form post method |
|
| 14 | - * @param Array $headers header to submit with the form |
|
| 15 | - * @return String the result |
|
| 16 | - */ |
|
| 10 | + * Get data from form result |
|
| 11 | + * @param String $url form URL |
|
| 12 | + * @param String $type type of submit form method (get or post) |
|
| 13 | + * @param String|Array $data values form post method |
|
| 14 | + * @param Array $headers header to submit with the form |
|
| 15 | + * @return String the result |
|
| 16 | + */ |
|
| 17 | 17 | public function getData($url, $type = 'get', $data = '', $headers = '',$cookie = '',$referer = '',$timeout = '',$useragent = '') { |
| 18 | 18 | global $globalProxy, $globalForceIPv4; |
| 19 | 19 | $ch = curl_init(); |
@@ -107,10 +107,10 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * Convert a HTML table to an array |
|
| 111 | - * @param String $data HTML page |
|
| 112 | - * @return Array array of the tables in HTML page |
|
| 113 | - */ |
|
| 110 | + * Convert a HTML table to an array |
|
| 111 | + * @param String $data HTML page |
|
| 112 | + * @return Array array of the tables in HTML page |
|
| 113 | + */ |
|
| 114 | 114 | public function table2array($data) { |
| 115 | 115 | if (!is_string($data)) return array(); |
| 116 | 116 | if ($data == '') return array(); |
@@ -144,10 +144,10 @@ discard block |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * Convert <p> part of a HTML page to an array |
|
| 148 | - * @param String $data HTML page |
|
| 149 | - * @return Array array of the <p> in HTML page |
|
| 150 | - */ |
|
| 147 | + * Convert <p> part of a HTML page to an array |
|
| 148 | + * @param String $data HTML page |
|
| 149 | + * @return Array array of the <p> in HTML page |
|
| 150 | + */ |
|
| 151 | 151 | public function text2array($data) { |
| 152 | 152 | $html = str_get_html($data); |
| 153 | 153 | if ($html === false) return array(); |
@@ -162,14 +162,14 @@ discard block |
||
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
| 165 | - * Give distance between 2 coordonnates |
|
| 166 | - * @param Float $lat latitude of first point |
|
| 167 | - * @param Float $lon longitude of first point |
|
| 168 | - * @param Float $latc latitude of second point |
|
| 169 | - * @param Float $lonc longitude of second point |
|
| 170 | - * @param String $unit km else no unit used |
|
| 171 | - * @return Float Distance in $unit |
|
| 172 | - */ |
|
| 165 | + * Give distance between 2 coordonnates |
|
| 166 | + * @param Float $lat latitude of first point |
|
| 167 | + * @param Float $lon longitude of first point |
|
| 168 | + * @param Float $latc latitude of second point |
|
| 169 | + * @param Float $lonc longitude of second point |
|
| 170 | + * @param String $unit km else no unit used |
|
| 171 | + * @return Float Distance in $unit |
|
| 172 | + */ |
|
| 173 | 173 | public function distance($lat, $lon, $latc, $lonc, $unit = 'km') { |
| 174 | 174 | if ($lat == $latc && $lon == $lonc) return 0; |
| 175 | 175 | $dist = rad2deg(acos(sin(deg2rad(floatval($lat)))*sin(deg2rad(floatval($latc)))+ cos(deg2rad(floatval($lat)))*cos(deg2rad(floatval($latc)))*cos(deg2rad(floatval($lon)-floatval($lonc)))))*60*1.1515; |
@@ -187,11 +187,11 @@ discard block |
||
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | - * Check is distance realistic |
|
| 191 | - * @param int $timeDifference the time between the reception of both messages |
|
| 192 | - * @param float $distance distance covered |
|
| 193 | - * @return whether distance is realistic |
|
| 194 | - */ |
|
| 190 | + * Check is distance realistic |
|
| 191 | + * @param int $timeDifference the time between the reception of both messages |
|
| 192 | + * @param float $distance distance covered |
|
| 193 | + * @return whether distance is realistic |
|
| 194 | + */ |
|
| 195 | 195 | public function withinThreshold ($timeDifference, $distance) { |
| 196 | 196 | $x = abs($timeDifference); |
| 197 | 197 | $d = abs($distance); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | public function isInteger($input){ |
| 212 | - return(ctype_digit(strval($input))); |
|
| 212 | + return(ctype_digit(strval($input))); |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | |
@@ -240,11 +240,11 @@ discard block |
||
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
| 243 | - * Copy folder contents |
|
| 244 | - * @param string $source Source path |
|
| 245 | - * @param string $dest Destination path |
|
| 246 | - * @return bool Returns true on success, false on failure |
|
| 247 | - */ |
|
| 243 | + * Copy folder contents |
|
| 244 | + * @param string $source Source path |
|
| 245 | + * @param string $dest Destination path |
|
| 246 | + * @return bool Returns true on success, false on failure |
|
| 247 | + */ |
|
| 248 | 248 | public function xcopy($source, $dest) |
| 249 | 249 | { |
| 250 | 250 | $files = glob($source.'*.*'); |
@@ -256,20 +256,20 @@ discard block |
||
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | - * Check if an url exist |
|
| 260 | - * @param String $url url to check |
|
| 261 | - * @return bool Return true on succes false on failure |
|
| 262 | - */ |
|
| 259 | + * Check if an url exist |
|
| 260 | + * @param String $url url to check |
|
| 261 | + * @return bool Return true on succes false on failure |
|
| 262 | + */ |
|
| 263 | 263 | public function urlexist($url){ |
| 264 | 264 | $headers=get_headers($url); |
| 265 | 265 | return stripos($headers[0],"200 OK")?true:false; |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | 268 | /** |
| 269 | - * Convert hexa to string |
|
| 270 | - * @param String $hex data in hexa |
|
| 271 | - * @return String Return result |
|
| 272 | - */ |
|
| 269 | + * Convert hexa to string |
|
| 270 | + * @param String $hex data in hexa |
|
| 271 | + * @return String Return result |
|
| 272 | + */ |
|
| 273 | 273 | public function hex2str($hex) { |
| 274 | 274 | $str = ''; |
| 275 | 275 | $hexln = strlen($hex); |
@@ -278,10 +278,10 @@ discard block |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
| 281 | - * Convert hexa color to rgb |
|
| 282 | - * @param String $hex data in hexa |
|
| 283 | - * @return String Return result |
|
| 284 | - */ |
|
| 281 | + * Convert hexa color to rgb |
|
| 282 | + * @param String $hex data in hexa |
|
| 283 | + * @return String Return result |
|
| 284 | + */ |
|
| 285 | 285 | public function hex2rgb($hex) { |
| 286 | 286 | $hex = str_replace('#','',$hex); |
| 287 | 287 | return sscanf($hex, "%02x%02x%02x"); |
@@ -359,9 +359,9 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | /** |
| 362 | - * Returns list of available locales |
|
| 363 | - * |
|
| 364 | - * @return array |
|
| 362 | + * Returns list of available locales |
|
| 363 | + * |
|
| 364 | + * @return array |
|
| 365 | 365 | */ |
| 366 | 366 | public function listLocaleDir() |
| 367 | 367 | { |
@@ -456,100 +456,100 @@ discard block |
||
| 456 | 456 | public function remove_accents($string) { |
| 457 | 457 | if ( !preg_match('/[\x80-\xff]/', $string) ) return $string; |
| 458 | 458 | $chars = array( |
| 459 | - // Decompositions for Latin-1 Supplement |
|
| 460 | - chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', |
|
| 461 | - chr(195).chr(130) => 'A', chr(195).chr(131) => 'A', |
|
| 462 | - chr(195).chr(132) => 'A', chr(195).chr(133) => 'A', |
|
| 463 | - chr(195).chr(135) => 'C', chr(195).chr(136) => 'E', |
|
| 464 | - chr(195).chr(137) => 'E', chr(195).chr(138) => 'E', |
|
| 465 | - chr(195).chr(139) => 'E', chr(195).chr(140) => 'I', |
|
| 466 | - chr(195).chr(141) => 'I', chr(195).chr(142) => 'I', |
|
| 467 | - chr(195).chr(143) => 'I', chr(195).chr(145) => 'N', |
|
| 468 | - chr(195).chr(146) => 'O', chr(195).chr(147) => 'O', |
|
| 469 | - chr(195).chr(148) => 'O', chr(195).chr(149) => 'O', |
|
| 470 | - chr(195).chr(150) => 'O', chr(195).chr(153) => 'U', |
|
| 471 | - chr(195).chr(154) => 'U', chr(195).chr(155) => 'U', |
|
| 472 | - chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y', |
|
| 473 | - chr(195).chr(159) => 's', chr(195).chr(160) => 'a', |
|
| 474 | - chr(195).chr(161) => 'a', chr(195).chr(162) => 'a', |
|
| 475 | - chr(195).chr(163) => 'a', chr(195).chr(164) => 'a', |
|
| 476 | - chr(195).chr(165) => 'a', chr(195).chr(167) => 'c', |
|
| 477 | - chr(195).chr(168) => 'e', chr(195).chr(169) => 'e', |
|
| 478 | - chr(195).chr(170) => 'e', chr(195).chr(171) => 'e', |
|
| 479 | - chr(195).chr(172) => 'i', chr(195).chr(173) => 'i', |
|
| 480 | - chr(195).chr(174) => 'i', chr(195).chr(175) => 'i', |
|
| 481 | - chr(195).chr(177) => 'n', chr(195).chr(178) => 'o', |
|
| 482 | - chr(195).chr(179) => 'o', chr(195).chr(180) => 'o', |
|
| 483 | - chr(195).chr(181) => 'o', chr(195).chr(182) => 'o', |
|
| 484 | - chr(195).chr(182) => 'o', chr(195).chr(185) => 'u', |
|
| 485 | - chr(195).chr(186) => 'u', chr(195).chr(187) => 'u', |
|
| 486 | - chr(195).chr(188) => 'u', chr(195).chr(189) => 'y', |
|
| 487 | - chr(195).chr(191) => 'y', |
|
| 488 | - // Decompositions for Latin Extended-A |
|
| 489 | - chr(196).chr(128) => 'A', chr(196).chr(129) => 'a', |
|
| 490 | - chr(196).chr(130) => 'A', chr(196).chr(131) => 'a', |
|
| 491 | - chr(196).chr(132) => 'A', chr(196).chr(133) => 'a', |
|
| 492 | - chr(196).chr(134) => 'C', chr(196).chr(135) => 'c', |
|
| 493 | - chr(196).chr(136) => 'C', chr(196).chr(137) => 'c', |
|
| 494 | - chr(196).chr(138) => 'C', chr(196).chr(139) => 'c', |
|
| 495 | - chr(196).chr(140) => 'C', chr(196).chr(141) => 'c', |
|
| 496 | - chr(196).chr(142) => 'D', chr(196).chr(143) => 'd', |
|
| 497 | - chr(196).chr(144) => 'D', chr(196).chr(145) => 'd', |
|
| 498 | - chr(196).chr(146) => 'E', chr(196).chr(147) => 'e', |
|
| 499 | - chr(196).chr(148) => 'E', chr(196).chr(149) => 'e', |
|
| 500 | - chr(196).chr(150) => 'E', chr(196).chr(151) => 'e', |
|
| 501 | - chr(196).chr(152) => 'E', chr(196).chr(153) => 'e', |
|
| 502 | - chr(196).chr(154) => 'E', chr(196).chr(155) => 'e', |
|
| 503 | - chr(196).chr(156) => 'G', chr(196).chr(157) => 'g', |
|
| 504 | - chr(196).chr(158) => 'G', chr(196).chr(159) => 'g', |
|
| 505 | - chr(196).chr(160) => 'G', chr(196).chr(161) => 'g', |
|
| 506 | - chr(196).chr(162) => 'G', chr(196).chr(163) => 'g', |
|
| 507 | - chr(196).chr(164) => 'H', chr(196).chr(165) => 'h', |
|
| 508 | - chr(196).chr(166) => 'H', chr(196).chr(167) => 'h', |
|
| 509 | - chr(196).chr(168) => 'I', chr(196).chr(169) => 'i', |
|
| 510 | - chr(196).chr(170) => 'I', chr(196).chr(171) => 'i', |
|
| 511 | - chr(196).chr(172) => 'I', chr(196).chr(173) => 'i', |
|
| 512 | - chr(196).chr(174) => 'I', chr(196).chr(175) => 'i', |
|
| 513 | - chr(196).chr(176) => 'I', chr(196).chr(177) => 'i', |
|
| 514 | - chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij', |
|
| 515 | - chr(196).chr(180) => 'J', chr(196).chr(181) => 'j', |
|
| 516 | - chr(196).chr(182) => 'K', chr(196).chr(183) => 'k', |
|
| 517 | - chr(196).chr(184) => 'k', chr(196).chr(185) => 'L', |
|
| 518 | - chr(196).chr(186) => 'l', chr(196).chr(187) => 'L', |
|
| 519 | - chr(196).chr(188) => 'l', chr(196).chr(189) => 'L', |
|
| 520 | - chr(196).chr(190) => 'l', chr(196).chr(191) => 'L', |
|
| 521 | - chr(197).chr(128) => 'l', chr(197).chr(129) => 'L', |
|
| 522 | - chr(197).chr(130) => 'l', chr(197).chr(131) => 'N', |
|
| 523 | - chr(197).chr(132) => 'n', chr(197).chr(133) => 'N', |
|
| 524 | - chr(197).chr(134) => 'n', chr(197).chr(135) => 'N', |
|
| 525 | - chr(197).chr(136) => 'n', chr(197).chr(137) => 'N', |
|
| 526 | - chr(197).chr(138) => 'n', chr(197).chr(139) => 'N', |
|
| 527 | - chr(197).chr(140) => 'O', chr(197).chr(141) => 'o', |
|
| 528 | - chr(197).chr(142) => 'O', chr(197).chr(143) => 'o', |
|
| 529 | - chr(197).chr(144) => 'O', chr(197).chr(145) => 'o', |
|
| 530 | - chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe', |
|
| 531 | - chr(197).chr(148) => 'R',chr(197).chr(149) => 'r', |
|
| 532 | - chr(197).chr(150) => 'R',chr(197).chr(151) => 'r', |
|
| 533 | - chr(197).chr(152) => 'R',chr(197).chr(153) => 'r', |
|
| 534 | - chr(197).chr(154) => 'S',chr(197).chr(155) => 's', |
|
| 535 | - chr(197).chr(156) => 'S',chr(197).chr(157) => 's', |
|
| 536 | - chr(197).chr(158) => 'S',chr(197).chr(159) => 's', |
|
| 537 | - chr(197).chr(160) => 'S', chr(197).chr(161) => 's', |
|
| 538 | - chr(197).chr(162) => 'T', chr(197).chr(163) => 't', |
|
| 539 | - chr(197).chr(164) => 'T', chr(197).chr(165) => 't', |
|
| 540 | - chr(197).chr(166) => 'T', chr(197).chr(167) => 't', |
|
| 541 | - chr(197).chr(168) => 'U', chr(197).chr(169) => 'u', |
|
| 542 | - chr(197).chr(170) => 'U', chr(197).chr(171) => 'u', |
|
| 543 | - chr(197).chr(172) => 'U', chr(197).chr(173) => 'u', |
|
| 544 | - chr(197).chr(174) => 'U', chr(197).chr(175) => 'u', |
|
| 545 | - chr(197).chr(176) => 'U', chr(197).chr(177) => 'u', |
|
| 546 | - chr(197).chr(178) => 'U', chr(197).chr(179) => 'u', |
|
| 547 | - chr(197).chr(180) => 'W', chr(197).chr(181) => 'w', |
|
| 548 | - chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y', |
|
| 549 | - chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z', |
|
| 550 | - chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z', |
|
| 551 | - chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z', |
|
| 552 | - chr(197).chr(190) => 'z', chr(197).chr(191) => 's' |
|
| 459 | + // Decompositions for Latin-1 Supplement |
|
| 460 | + chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', |
|
| 461 | + chr(195).chr(130) => 'A', chr(195).chr(131) => 'A', |
|
| 462 | + chr(195).chr(132) => 'A', chr(195).chr(133) => 'A', |
|
| 463 | + chr(195).chr(135) => 'C', chr(195).chr(136) => 'E', |
|
| 464 | + chr(195).chr(137) => 'E', chr(195).chr(138) => 'E', |
|
| 465 | + chr(195).chr(139) => 'E', chr(195).chr(140) => 'I', |
|
| 466 | + chr(195).chr(141) => 'I', chr(195).chr(142) => 'I', |
|
| 467 | + chr(195).chr(143) => 'I', chr(195).chr(145) => 'N', |
|
| 468 | + chr(195).chr(146) => 'O', chr(195).chr(147) => 'O', |
|
| 469 | + chr(195).chr(148) => 'O', chr(195).chr(149) => 'O', |
|
| 470 | + chr(195).chr(150) => 'O', chr(195).chr(153) => 'U', |
|
| 471 | + chr(195).chr(154) => 'U', chr(195).chr(155) => 'U', |
|
| 472 | + chr(195).chr(156) => 'U', chr(195).chr(157) => 'Y', |
|
| 473 | + chr(195).chr(159) => 's', chr(195).chr(160) => 'a', |
|
| 474 | + chr(195).chr(161) => 'a', chr(195).chr(162) => 'a', |
|
| 475 | + chr(195).chr(163) => 'a', chr(195).chr(164) => 'a', |
|
| 476 | + chr(195).chr(165) => 'a', chr(195).chr(167) => 'c', |
|
| 477 | + chr(195).chr(168) => 'e', chr(195).chr(169) => 'e', |
|
| 478 | + chr(195).chr(170) => 'e', chr(195).chr(171) => 'e', |
|
| 479 | + chr(195).chr(172) => 'i', chr(195).chr(173) => 'i', |
|
| 480 | + chr(195).chr(174) => 'i', chr(195).chr(175) => 'i', |
|
| 481 | + chr(195).chr(177) => 'n', chr(195).chr(178) => 'o', |
|
| 482 | + chr(195).chr(179) => 'o', chr(195).chr(180) => 'o', |
|
| 483 | + chr(195).chr(181) => 'o', chr(195).chr(182) => 'o', |
|
| 484 | + chr(195).chr(182) => 'o', chr(195).chr(185) => 'u', |
|
| 485 | + chr(195).chr(186) => 'u', chr(195).chr(187) => 'u', |
|
| 486 | + chr(195).chr(188) => 'u', chr(195).chr(189) => 'y', |
|
| 487 | + chr(195).chr(191) => 'y', |
|
| 488 | + // Decompositions for Latin Extended-A |
|
| 489 | + chr(196).chr(128) => 'A', chr(196).chr(129) => 'a', |
|
| 490 | + chr(196).chr(130) => 'A', chr(196).chr(131) => 'a', |
|
| 491 | + chr(196).chr(132) => 'A', chr(196).chr(133) => 'a', |
|
| 492 | + chr(196).chr(134) => 'C', chr(196).chr(135) => 'c', |
|
| 493 | + chr(196).chr(136) => 'C', chr(196).chr(137) => 'c', |
|
| 494 | + chr(196).chr(138) => 'C', chr(196).chr(139) => 'c', |
|
| 495 | + chr(196).chr(140) => 'C', chr(196).chr(141) => 'c', |
|
| 496 | + chr(196).chr(142) => 'D', chr(196).chr(143) => 'd', |
|
| 497 | + chr(196).chr(144) => 'D', chr(196).chr(145) => 'd', |
|
| 498 | + chr(196).chr(146) => 'E', chr(196).chr(147) => 'e', |
|
| 499 | + chr(196).chr(148) => 'E', chr(196).chr(149) => 'e', |
|
| 500 | + chr(196).chr(150) => 'E', chr(196).chr(151) => 'e', |
|
| 501 | + chr(196).chr(152) => 'E', chr(196).chr(153) => 'e', |
|
| 502 | + chr(196).chr(154) => 'E', chr(196).chr(155) => 'e', |
|
| 503 | + chr(196).chr(156) => 'G', chr(196).chr(157) => 'g', |
|
| 504 | + chr(196).chr(158) => 'G', chr(196).chr(159) => 'g', |
|
| 505 | + chr(196).chr(160) => 'G', chr(196).chr(161) => 'g', |
|
| 506 | + chr(196).chr(162) => 'G', chr(196).chr(163) => 'g', |
|
| 507 | + chr(196).chr(164) => 'H', chr(196).chr(165) => 'h', |
|
| 508 | + chr(196).chr(166) => 'H', chr(196).chr(167) => 'h', |
|
| 509 | + chr(196).chr(168) => 'I', chr(196).chr(169) => 'i', |
|
| 510 | + chr(196).chr(170) => 'I', chr(196).chr(171) => 'i', |
|
| 511 | + chr(196).chr(172) => 'I', chr(196).chr(173) => 'i', |
|
| 512 | + chr(196).chr(174) => 'I', chr(196).chr(175) => 'i', |
|
| 513 | + chr(196).chr(176) => 'I', chr(196).chr(177) => 'i', |
|
| 514 | + chr(196).chr(178) => 'IJ',chr(196).chr(179) => 'ij', |
|
| 515 | + chr(196).chr(180) => 'J', chr(196).chr(181) => 'j', |
|
| 516 | + chr(196).chr(182) => 'K', chr(196).chr(183) => 'k', |
|
| 517 | + chr(196).chr(184) => 'k', chr(196).chr(185) => 'L', |
|
| 518 | + chr(196).chr(186) => 'l', chr(196).chr(187) => 'L', |
|
| 519 | + chr(196).chr(188) => 'l', chr(196).chr(189) => 'L', |
|
| 520 | + chr(196).chr(190) => 'l', chr(196).chr(191) => 'L', |
|
| 521 | + chr(197).chr(128) => 'l', chr(197).chr(129) => 'L', |
|
| 522 | + chr(197).chr(130) => 'l', chr(197).chr(131) => 'N', |
|
| 523 | + chr(197).chr(132) => 'n', chr(197).chr(133) => 'N', |
|
| 524 | + chr(197).chr(134) => 'n', chr(197).chr(135) => 'N', |
|
| 525 | + chr(197).chr(136) => 'n', chr(197).chr(137) => 'N', |
|
| 526 | + chr(197).chr(138) => 'n', chr(197).chr(139) => 'N', |
|
| 527 | + chr(197).chr(140) => 'O', chr(197).chr(141) => 'o', |
|
| 528 | + chr(197).chr(142) => 'O', chr(197).chr(143) => 'o', |
|
| 529 | + chr(197).chr(144) => 'O', chr(197).chr(145) => 'o', |
|
| 530 | + chr(197).chr(146) => 'OE',chr(197).chr(147) => 'oe', |
|
| 531 | + chr(197).chr(148) => 'R',chr(197).chr(149) => 'r', |
|
| 532 | + chr(197).chr(150) => 'R',chr(197).chr(151) => 'r', |
|
| 533 | + chr(197).chr(152) => 'R',chr(197).chr(153) => 'r', |
|
| 534 | + chr(197).chr(154) => 'S',chr(197).chr(155) => 's', |
|
| 535 | + chr(197).chr(156) => 'S',chr(197).chr(157) => 's', |
|
| 536 | + chr(197).chr(158) => 'S',chr(197).chr(159) => 's', |
|
| 537 | + chr(197).chr(160) => 'S', chr(197).chr(161) => 's', |
|
| 538 | + chr(197).chr(162) => 'T', chr(197).chr(163) => 't', |
|
| 539 | + chr(197).chr(164) => 'T', chr(197).chr(165) => 't', |
|
| 540 | + chr(197).chr(166) => 'T', chr(197).chr(167) => 't', |
|
| 541 | + chr(197).chr(168) => 'U', chr(197).chr(169) => 'u', |
|
| 542 | + chr(197).chr(170) => 'U', chr(197).chr(171) => 'u', |
|
| 543 | + chr(197).chr(172) => 'U', chr(197).chr(173) => 'u', |
|
| 544 | + chr(197).chr(174) => 'U', chr(197).chr(175) => 'u', |
|
| 545 | + chr(197).chr(176) => 'U', chr(197).chr(177) => 'u', |
|
| 546 | + chr(197).chr(178) => 'U', chr(197).chr(179) => 'u', |
|
| 547 | + chr(197).chr(180) => 'W', chr(197).chr(181) => 'w', |
|
| 548 | + chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y', |
|
| 549 | + chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z', |
|
| 550 | + chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z', |
|
| 551 | + chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z', |
|
| 552 | + chr(197).chr(190) => 'z', chr(197).chr(191) => 's' |
|
| 553 | 553 | ); |
| 554 | 554 | $string = strtr($string, $chars); |
| 555 | 555 | return $string; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | <div id="showdetails" class="showdetails"></div> |
| 37 | 37 | <div id="infobox" class="infobox"><h4><?php echo _("Aircrafts detected"); ?></h4><br /><i class="fa fa-spinner fa-pulse fa-fw"></i></div> |
| 38 | 38 | <?php |
| 39 | - if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
| 39 | + if ((!isset($_COOKIE['MapFormat']) && isset($globalMap3Ddefault) && $globalMap3Ddefault) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d')) { |
|
| 40 | 40 | |
| 41 | 41 | ?> |
| 42 | 42 | <script src="<?php echo $globalURL; ?>/js/map.3d.js.php"></script> |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | <script src="<?php echo $globalURL; ?>/js/map-marine.3d.js.php"></script> |
| 57 | 57 | <?php |
| 58 | 58 | } |
| 59 | - } |
|
| 59 | + } |
|
| 60 | 60 | ?> |
| 61 | 61 | <div id="dialog" title="<?php echo _("Session has timed-out"); ?>"> |
| 62 | 62 | <p><?php echo _("In order to save data consumption web page times out after 30 minutes. Close this dialog to continue."); ?></p> |
@@ -70,34 +70,34 @@ discard block |
||
| 70 | 70 | <li><a href="#" onclick="getUserLocation(); return false;" title="<?php echo _("Plot your Location"); ?>"><i class="fa fa-map-marker"></i></a></li> |
| 71 | 71 | <li><a href="#" onclick="getCompassDirection(); return false;" title="<?php echo _("Compass Mode"); ?>"><i class="fa fa-compass"></i></a></li> |
| 72 | 72 | <?php |
| 73 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 73 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 74 | 74 | if (isset($globalArchive) && $globalArchive == TRUE) { |
| 75 | 75 | ?> |
| 76 | 76 | <li><a href="#archive" role="tab" title="<?php echo _("Archive"); ?>"><i class="fa fa-archive"></i></a></li> |
| 77 | 77 | <?php |
| 78 | 78 | } |
| 79 | - } |
|
| 79 | + } |
|
| 80 | 80 | ?> |
| 81 | 81 | <li><a href="#home" role="tab" title="<?php echo _("Layers"); ?>"><i class="fa fa-map"></i></a></li> |
| 82 | 82 | <li><a href="#filters" role="tab" title="<?php echo _("Filters"); ?>"><i class="fa fa-filter"></i></a></li> |
| 83 | 83 | <li><a href="#settings" role="tab" title="<?php echo _("Settings"); ?>"><i class="fa fa-gears"></i></a></li> |
| 84 | 84 | <?php |
| 85 | - if (isset($globalMap3D) && $globalMap3D) { |
|
| 85 | + if (isset($globalMap3D) && $globalMap3D) { |
|
| 86 | 86 | if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
| 87 | 87 | ?> |
| 88 | 88 | <li><a href="#" onclick="show3D(); return false;" role="tab" title="3D"><b>3D</b></a></li> |
| 89 | 89 | <?php |
| 90 | - } else { |
|
| 91 | - if (isset($globalMapSatellites) && $globalMapSatellites) { |
|
| 90 | + } else { |
|
| 91 | + if (isset($globalMapSatellites) && $globalMapSatellites) { |
|
| 92 | 92 | ?> |
| 93 | 93 | <li><a href="#satellites" role="tab" title="<?php echo _("Satellites"); ?>"><i class="satellite"></i></a></li> |
| 94 | 94 | <?php |
| 95 | - } |
|
| 95 | + } |
|
| 96 | 96 | ?> |
| 97 | 97 | <li><a href="#" onclick="show2D(); return false;" role="tab" title="2D"><b>2D</b></a></li> |
| 98 | 98 | <?php |
| 99 | 99 | } |
| 100 | - } |
|
| 100 | + } |
|
| 101 | 101 | ?> |
| 102 | 102 | </ul> |
| 103 | 103 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | ?> |
| 172 | 172 | </div> |
| 173 | 173 | <?php |
| 174 | - if (isset($globalArchive) && $globalArchive == TRUE) { |
|
| 174 | + if (isset($globalArchive) && $globalArchive == TRUE) { |
|
| 175 | 175 | ?> |
| 176 | 176 | <div class="sidebar-pane" id="archive"> |
| 177 | 177 | <h1 class="sidebar-header"><?php echo _("Playback"); ?> <i>Bêta</i><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | </form> |
| 232 | 232 | </div> |
| 233 | 233 | <?php |
| 234 | - } |
|
| 234 | + } |
|
| 235 | 235 | ?> |
| 236 | 236 | <div class="sidebar-pane" id="settings"> |
| 237 | 237 | <h1 class="sidebar-header"><?php echo _("Settings"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -242,56 +242,56 @@ discard block |
||
| 242 | 242 | <?php |
| 243 | 243 | if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
| 244 | 244 | else $MapType = $_COOKIE['MapType']; |
| 245 | - ?> |
|
| 245 | + ?> |
|
| 246 | 246 | <?php |
| 247 | 247 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
| 248 | - ?> |
|
| 248 | + ?> |
|
| 249 | 249 | <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
| 250 | 250 | <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
| 251 | 251 | <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
| 252 | 252 | <?php |
| 253 | 253 | } |
| 254 | - ?> |
|
| 254 | + ?> |
|
| 255 | 255 | <?php |
| 256 | - if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
| 257 | - ?> |
|
| 256 | + if ((!isset($_COOKIE['MapFormat']) && (!isset($globalMap3Ddefault) || !$globalMap3Ddefault)) || (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] != '3d')) { |
|
| 257 | + ?> |
|
| 258 | 258 | <?php |
| 259 | - if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
| 260 | - ?> |
|
| 259 | + if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
|
| 260 | + ?> |
|
| 261 | 261 | <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
| 262 | 262 | <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
| 263 | 263 | <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
| 264 | 264 | <?php |
| 265 | - } |
|
| 266 | - ?> |
|
| 265 | + } |
|
| 266 | + ?> |
|
| 267 | 267 | <?php |
| 268 | - if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
| 269 | - ?> |
|
| 268 | + if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
|
| 269 | + ?> |
|
| 270 | 270 | <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
| 271 | 271 | <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
| 272 | 272 | <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
| 273 | 273 | <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
| 274 | 274 | <?php |
| 275 | - } |
|
| 276 | - ?> |
|
| 275 | + } |
|
| 276 | + ?> |
|
| 277 | 277 | <?php |
| 278 | - if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
| 279 | - ?> |
|
| 278 | + if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
|
| 279 | + ?> |
|
| 280 | 280 | <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
| 281 | 281 | <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
| 282 | 282 | <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
| 283 | 283 | <?php |
| 284 | - } |
|
| 285 | - ?> |
|
| 284 | + } |
|
| 285 | + ?> |
|
| 286 | 286 | <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
| 287 | 287 | <?php |
| 288 | 288 | } |
| 289 | - ?> |
|
| 289 | + ?> |
|
| 290 | 290 | <?php |
| 291 | - if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
| 291 | + if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
|
| 292 | 292 | if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
| 293 | 293 | else $MapBoxId = $_COOKIE['MapTypeId']; |
| 294 | - ?> |
|
| 294 | + ?> |
|
| 295 | 295 | <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
| 296 | 296 | <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
| 297 | 297 | <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
@@ -305,13 +305,13 @@ discard block |
||
| 305 | 305 | <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
| 306 | 306 | <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
| 307 | 307 | <?php |
| 308 | - } |
|
| 309 | - ?> |
|
| 308 | + } |
|
| 309 | + ?> |
|
| 310 | 310 | <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
| 311 | 311 | </select> |
| 312 | 312 | </li> |
| 313 | 313 | <?php |
| 314 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 314 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 315 | 315 | ?> |
| 316 | 316 | <li><?php echo _("Type of Terrain:"); ?> |
| 317 | 317 | <select class="selectpicker" onchange="terrainType(this);"> |
@@ -321,10 +321,10 @@ discard block |
||
| 321 | 321 | </select> |
| 322 | 322 | </li> |
| 323 | 323 | <?php |
| 324 | - } |
|
| 324 | + } |
|
| 325 | 325 | ?> |
| 326 | 326 | <?php |
| 327 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 327 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 328 | 328 | ?> |
| 329 | 329 | |
| 330 | 330 | <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> |
@@ -332,59 +332,59 @@ discard block |
||
| 332 | 332 | <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || !isset($_COOKIE['MapRoute'])) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
| 333 | 333 | <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> |
| 334 | 334 | <?php |
| 335 | - } |
|
| 335 | + } |
|
| 336 | 336 | ?> |
| 337 | 337 | <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true') print 'checked'; ?> ><?php echo _("Display airports on map"); ?></label></div></li> |
| 338 | 338 | <?php |
| 339 | - if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 339 | + if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 340 | 340 | ?> |
| 341 | 341 | <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> |
| 342 | 342 | <?php |
| 343 | - } |
|
| 344 | - if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
| 343 | + } |
|
| 344 | + if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
|
| 345 | 345 | ?> |
| 346 | 346 | <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> |
| 347 | 347 | <?php |
| 348 | - } |
|
| 348 | + } |
|
| 349 | 349 | ?> |
| 350 | 350 | |
| 351 | 351 | <?php |
| 352 | 352 | if (function_exists('array_column')) { |
| 353 | - if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
| 354 | - ?> |
|
| 353 | + if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
|
| 354 | + ?> |
|
| 355 | 355 | <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> |
| 356 | 356 | <?php |
| 357 | - } |
|
| 357 | + } |
|
| 358 | 358 | } elseif (isset($globalSources)) { |
| 359 | - $dispolar = false; |
|
| 360 | - foreach ($globalSources as $testsource) { |
|
| 361 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
| 362 | - } |
|
| 363 | - if ($dispolar) { |
|
| 364 | - ?> |
|
| 359 | + $dispolar = false; |
|
| 360 | + foreach ($globalSources as $testsource) { |
|
| 361 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
| 362 | + } |
|
| 363 | + if ($dispolar) { |
|
| 364 | + ?> |
|
| 365 | 365 | <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> |
| 366 | 366 | <?php |
| 367 | - } |
|
| 368 | - } |
|
| 369 | - ?> |
|
| 367 | + } |
|
| 368 | + } |
|
| 369 | + ?> |
|
| 370 | 370 | <?php |
| 371 | - if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 371 | + if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
|
| 372 | 372 | ?> |
| 373 | 373 | |
| 374 | 374 | <?php |
| 375 | - if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 376 | - ?> |
|
| 375 | + if (extension_loaded('gd') && function_exists('gd_info')) { |
|
| 376 | + ?> |
|
| 377 | 377 | <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> |
| 378 | 378 | <?php |
| 379 | 379 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
| 380 | - ?> |
|
| 380 | + ?> |
|
| 381 | 381 | <li><?php echo _("Aircraft icon color:"); ?> |
| 382 | 382 | <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'; ?>"> |
| 383 | 383 | </li> |
| 384 | 384 | <?php |
| 385 | - } |
|
| 386 | - } |
|
| 387 | - ?> |
|
| 385 | + } |
|
| 386 | + } |
|
| 387 | + ?> |
|
| 388 | 388 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
| 389 | 389 | <div class="range"> |
| 390 | 390 | <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'; ?>"> |
@@ -392,14 +392,14 @@ discard block |
||
| 392 | 392 | </div> |
| 393 | 393 | </li> |
| 394 | 394 | <?php |
| 395 | - } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
| 395 | + } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
|
| 396 | 396 | ?> |
| 397 | 397 | <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Aircraft color"); ?></li> |
| 398 | 398 | <li><?php echo _("Aircraft icon color:"); ?> |
| 399 | 399 | <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'; ?>"> |
| 400 | 400 | </li> |
| 401 | 401 | <?php |
| 402 | - } |
|
| 402 | + } |
|
| 403 | 403 | ?> |
| 404 | 404 | <li><?php echo _("Distance unit:"); ?> |
| 405 | 405 | <select class="selectpicker" onchange="unitdistance(this);"> |
@@ -432,16 +432,16 @@ discard block |
||
| 432 | 432 | <ul> |
| 433 | 433 | <?php |
| 434 | 434 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
| 435 | - ?> |
|
| 435 | + ?> |
|
| 436 | 436 | <?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 } ?> |
| 437 | 437 | <?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 } ?> |
| 438 | 438 | <?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 } ?> |
| 439 | 439 | <?php |
| 440 | 440 | } |
| 441 | - ?> |
|
| 441 | + ?> |
|
| 442 | 442 | <?php |
| 443 | 443 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
| 444 | - ?> |
|
| 444 | + ?> |
|
| 445 | 445 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
| 446 | 446 | <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> |
| 447 | 447 | <?php } ?> |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | <?php } ?> |
| 451 | 451 | <?php |
| 452 | 452 | } |
| 453 | - ?> |
|
| 453 | + ?> |
|
| 454 | 454 | <li><?php echo _("Display airlines:"); ?> |
| 455 | 455 | <br/> |
| 456 | 456 | <select class="selectpicker" multiple onchange="airlines(this);" id="display_airlines"> |
@@ -470,14 +470,14 @@ discard block |
||
| 470 | 470 | echo '<option value="'.$airline['airline_icao'].'">'.$airline_name.'</option>'; |
| 471 | 471 | } |
| 472 | 472 | } |
| 473 | - ?> |
|
| 473 | + ?> |
|
| 474 | 474 | </select> |
| 475 | 475 | </li> |
| 476 | 476 | <?php |
| 477 | 477 | $Spotter = new Spotter(); |
| 478 | 478 | $allalliancenames = $Spotter->getAllAllianceNames(); |
| 479 | 479 | if (!empty($allalliancenames)) { |
| 480 | - ?> |
|
| 480 | + ?> |
|
| 481 | 481 | <li><?php echo _("Display alliance:"); ?> |
| 482 | 482 | <br/> |
| 483 | 483 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
@@ -491,15 +491,15 @@ discard block |
||
| 491 | 491 | echo '<option value="'.$alliance_name.'">'.$alliance_name.'</option>'; |
| 492 | 492 | } |
| 493 | 493 | } |
| 494 | - ?> |
|
| 494 | + ?> |
|
| 495 | 495 | </select> |
| 496 | 496 | </li> |
| 497 | 497 | <?php |
| 498 | 498 | } |
| 499 | - ?> |
|
| 499 | + ?> |
|
| 500 | 500 | <?php |
| 501 | 501 | if (isset($globalAPRS) && $globalAPRS) { |
| 502 | - ?> |
|
| 502 | + ?> |
|
| 503 | 503 | <li><?php echo _("Display APRS sources name:"); ?> |
| 504 | 504 | <select class="selectpicker" multiple onchange="sources(this);"> |
| 505 | 505 | <?php |
@@ -511,15 +511,15 @@ discard block |
||
| 511 | 511 | echo '<option value="'.$source['source_name'].'">'.$source['source_name'].'</option>'; |
| 512 | 512 | } |
| 513 | 513 | } |
| 514 | - ?> |
|
| 514 | + ?> |
|
| 515 | 515 | </select> |
| 516 | 516 | </li> |
| 517 | 517 | <?php |
| 518 | 518 | } |
| 519 | - ?> |
|
| 519 | + ?> |
|
| 520 | 520 | <?php |
| 521 | 521 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS)) { |
| 522 | - ?> |
|
| 522 | + ?> |
|
| 523 | 523 | <li><?php echo _("Display airlines of type:"); ?><br/> |
| 524 | 524 | <select class="selectpicker" onchange="airlinestype(this);"> |
| 525 | 525 | <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | </li> |
| 531 | 531 | <?php |
| 532 | 532 | } |
| 533 | - ?> |
|
| 533 | + ?> |
|
| 534 | 534 | <li> |
| 535 | 535 | <?php echo _("Display flight with ident:"); ?> |
| 536 | 536 | <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | </form> |
| 544 | 544 | </div> |
| 545 | 545 | <?php |
| 546 | - if (isset($globalMapSatellites) && $globalMapSatellites && isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 546 | + if (isset($globalMapSatellites) && $globalMapSatellites && isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
|
| 547 | 547 | ?> |
| 548 | 548 | <div class="sidebar-pane" id="satellites"> |
| 549 | 549 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
@@ -583,14 +583,14 @@ discard block |
||
| 583 | 583 | print '<option value="'.$type['tle_type'].'">'.$type_name.'</option>'; |
| 584 | 584 | } |
| 585 | 585 | } |
| 586 | - ?> |
|
| 586 | + ?> |
|
| 587 | 587 | </select> |
| 588 | 588 | </li> |
| 589 | 589 | </ul> |
| 590 | 590 | </form> |
| 591 | 591 | </div> |
| 592 | 592 | <?php |
| 593 | - } |
|
| 593 | + } |
|
| 594 | 594 | ?> |
| 595 | 595 | </div> |
| 596 | 596 | </div> |