| @@ 382-396 (lines=15) @@ | ||
| 379 | * | |
| 380 | * @return bool | |
| 381 | */ | |
| 382 | public static function checkBrowserSamsung() | |
| 383 |     { | |
| 384 |         if (stripos(self::$userAgentString, 'SamsungBrowser') !== false) { | |
| 385 |             $aresult = explode('/', stristr(self::$userAgentString, 'SamsungBrowser')); | |
| 386 |             if (isset($aresult[1])) { | |
| 387 |                 $aversion = explode(' ', $aresult[1]); | |
| 388 | self::$browser->setVersion($aversion[0]); | |
| 389 | } | |
| 390 | self::$browser->setName(Browser::SAMSUNG_BROWSER); | |
| 391 | ||
| 392 | return true; | |
| 393 | } | |
| 394 | ||
| 395 | return false; | |
| 396 | } | |
| 397 | ||
| 398 | /** | |
| 399 | * Determine if the browser is Chrome. | |
| @@ 433-447 (lines=15) @@ | ||
| 430 | * | |
| 431 | * @return bool | |
| 432 | */ | |
| 433 | public static function checkBrowserVivaldi() | |
| 434 |     { | |
| 435 |         if (stripos(self::$userAgentString, 'Vivaldi') !== false) { | |
| 436 |             $aresult = explode('/', stristr(self::$userAgentString, 'Vivaldi')); | |
| 437 |             if (isset($aresult[1])) { | |
| 438 |                 $aversion = explode(' ', $aresult[1]); | |
| 439 | self::$browser->setVersion($aversion[0]); | |
| 440 | } | |
| 441 | self::$browser->setName(Browser::VIVALDI); | |
| 442 | ||
| 443 | return true; | |
| 444 | } | |
| 445 | ||
| 446 | return false; | |
| 447 | } | |
| 448 | ||
| 449 | /** | |
| 450 | * Determine if the browser is Microsoft Edge. | |
| @@ 474-488 (lines=15) @@ | ||
| 471 | * | |
| 472 | * @return bool | |
| 473 | */ | |
| 474 | public static function checkBrowserGsa() | |
| 475 |     { | |
| 476 |         if (stripos(self::$userAgentString, 'GSA') !== false) { | |
| 477 |             $aresult = explode('/', stristr(self::$userAgentString, 'GSA')); | |
| 478 |             if (isset($aresult[1])) { | |
| 479 |                 $aversion = explode(' ', $aresult[1]); | |
| 480 | self::$browser->setVersion($aversion[0]); | |
| 481 | } | |
| 482 | self::$browser->setName(Browser::GSA); | |
| 483 | ||
| 484 | return true; | |
| 485 | } | |
| 486 | ||
| 487 | return false; | |
| 488 | } | |
| 489 | ||
| 490 | /** | |
| 491 | * Determine if the browser is WebTv. | |
| @@ 495-509 (lines=15) @@ | ||
| 492 | * | |
| 493 | * @return bool | |
| 494 | */ | |
| 495 | public static function checkBrowserWebTv() | |
| 496 |     { | |
| 497 |         if (stripos(self::$userAgentString, 'webtv') !== false) { | |
| 498 |             $aresult = explode('/', stristr(self::$userAgentString, 'webtv')); | |
| 499 |             if (isset($aresult[1])) { | |
| 500 |                 $aversion = explode(' ', $aresult[1]); | |
| 501 | self::$browser->setVersion($aversion[0]); | |
| 502 | } | |
| 503 | self::$browser->setName(Browser::WEBTV); | |
| 504 | ||
| 505 | return true; | |
| 506 | } | |
| 507 | ||
| 508 | return false; | |
| 509 | } | |
| 510 | ||
| 511 | /** | |
| 512 | * Determine if the browser is NetPositive. | |
| @@ 537-551 (lines=15) @@ | ||
| 534 | * | |
| 535 | * @return bool | |
| 536 | */ | |
| 537 | public static function checkBrowserGaleon() | |
| 538 |     { | |
| 539 |         if (stripos(self::$userAgentString, 'galeon') !== false) { | |
| 540 |             $aresult = explode(' ', stristr(self::$userAgentString, 'galeon')); | |
| 541 |             $aversion = explode('/', $aresult[0]); | |
| 542 |             if (isset($aversion[1])) { | |
| 543 | self::$browser->setVersion($aversion[1]); | |
| 544 | } | |
| 545 | self::$browser->setName(Browser::GALEON); | |
| 546 | ||
| 547 | return true; | |
| 548 | } | |
| 549 | ||
| 550 | return false; | |
| 551 | } | |
| 552 | ||
| 553 | /** | |
| 554 | * Determine if the browser is Konqueror. | |
| @@ 558-572 (lines=15) @@ | ||
| 555 | * | |
| 556 | * @return bool | |
| 557 | */ | |
| 558 | public static function checkBrowserKonqueror() | |
| 559 |     { | |
| 560 |         if (stripos(self::$userAgentString, 'Konqueror') !== false) { | |
| 561 |             $aresult = explode(' ', stristr(self::$userAgentString, 'Konqueror')); | |
| 562 |             $aversion = explode('/', $aresult[0]); | |
| 563 |             if (isset($aversion[1])) { | |
| 564 | self::$browser->setVersion($aversion[1]); | |
| 565 | } | |
| 566 | self::$browser->setName(Browser::KONQUEROR); | |
| 567 | ||
| 568 | return true; | |
| 569 | } | |
| 570 | ||
| 571 | return false; | |
| 572 | } | |
| 573 | ||
| 574 | /** | |
| 575 | * Determine if the browser is iCab. | |
| @@ 579-592 (lines=14) @@ | ||
| 576 | * | |
| 577 | * @return bool | |
| 578 | */ | |
| 579 | public static function checkBrowserIcab() | |
| 580 |     { | |
| 581 |         if (stripos(self::$userAgentString, 'icab') !== false) { | |
| 582 |             $aversion = explode(' ', stristr(str_replace('/', ' ', self::$userAgentString), 'icab')); | |
| 583 |             if (isset($aversion[1])) { | |
| 584 | self::$browser->setVersion($aversion[1]); | |
| 585 | } | |
| 586 | self::$browser->setName(Browser::ICAB); | |
| 587 | ||
| 588 | return true; | |
| 589 | } | |
| 590 | ||
| 591 | return false; | |
| 592 | } | |
| 593 | ||
| 594 | /** | |
| 595 | * Determine if the browser is OmniWeb. | |
| @@ 599-611 (lines=13) @@ | ||
| 596 | * | |
| 597 | * @return bool | |
| 598 | */ | |
| 599 | public static function checkBrowserOmniWeb() | |
| 600 |     { | |
| 601 |         if (stripos(self::$userAgentString, 'omniweb') !== false) { | |
| 602 |             $aresult = explode('/', stristr(self::$userAgentString, 'omniweb')); | |
| 603 |             $aversion = explode(' ', isset($aresult[1]) ? $aresult[1] : ''); | |
| 604 | self::$browser->setVersion($aversion[0]); | |
| 605 | self::$browser->setName(Browser::OMNIWEB); | |
| 606 | ||
| 607 | return true; | |
| 608 | } | |
| 609 | ||
| 610 | return false; | |
| 611 | } | |
| 612 | ||
| 613 | /** | |
| 614 | * Determine if the browser is Phoenix. | |
| @@ 805-819 (lines=15) @@ | ||
| 802 | * | |
| 803 | * @return bool | |
| 804 | */ | |
| 805 | public static function checkBrowserIceweasel() | |
| 806 |     { | |
| 807 |         if (stripos(self::$userAgentString, 'Iceweasel') !== false) { | |
| 808 |             $aresult = explode('/', stristr(self::$userAgentString, 'Iceweasel')); | |
| 809 |             if (isset($aresult[1])) { | |
| 810 |                 $aversion = explode(' ', $aresult[1]); | |
| 811 | self::$browser->setVersion($aversion[0]); | |
| 812 | } | |
| 813 | self::$browser->setName(Browser::ICEWEASEL); | |
| 814 | ||
| 815 | return true; | |
| 816 | } | |
| 817 | ||
| 818 | return false; | |
| 819 | } | |
| 820 | ||
| 821 | /** | |
| 822 | * Determine if the browser is Mozilla. | |
| @@ 867-879 (lines=13) @@ | ||
| 864 | * | |
| 865 | * @return bool | |
| 866 | */ | |
| 867 | public static function checkBrowserLynx() | |
| 868 |     { | |
| 869 |         if (stripos(self::$userAgentString, 'lynx') !== false) { | |
| 870 |             $aresult = explode('/', stristr(self::$userAgentString, 'Lynx')); | |
| 871 |             $aversion = explode(' ', (isset($aresult[1]) ? $aresult[1] : '')); | |
| 872 | self::$browser->setVersion($aversion[0]); | |
| 873 | self::$browser->setName(Browser::LYNX); | |
| 874 | ||
| 875 | return true; | |
| 876 | } | |
| 877 | ||
| 878 | return false; | |
| 879 | } | |
| 880 | ||
| 881 | /** | |
| 882 | * Determine if the browser is Amaya. | |
| @@ 886-900 (lines=15) @@ | ||
| 883 | * | |
| 884 | * @return bool | |
| 885 | */ | |
| 886 | public static function checkBrowserAmaya() | |
| 887 |     { | |
| 888 |         if (stripos(self::$userAgentString, 'amaya') !== false) { | |
| 889 |             $aresult = explode('/', stristr(self::$userAgentString, 'Amaya')); | |
| 890 |             if (isset($aresult[1])) { | |
| 891 |                 $aversion = explode(' ', $aresult[1]); | |
| 892 | self::$browser->setVersion($aversion[0]); | |
| 893 | } | |
| 894 | self::$browser->setName(Browser::AMAYA); | |
| 895 | ||
| 896 | return true; | |
| 897 | } | |
| 898 | ||
| 899 | return false; | |
| 900 | } | |
| 901 | ||
| 902 | /** | |
| 903 | * Determine if the browser is Safari. | |
| @@ 930-944 (lines=15) @@ | ||
| 927 | * | |
| 928 | * @return bool | |
| 929 | */ | |
| 930 | public static function checkBrowserYandex() | |
| 931 |     { | |
| 932 |         if (stripos(self::$userAgentString, 'YaBrowser') !== false) { | |
| 933 |             $aresult = explode('/', stristr(self::$userAgentString, 'YaBrowser')); | |
| 934 |             if (isset($aresult[1])) { | |
| 935 |                 $aversion = explode(' ', $aresult[1]); | |
| 936 | self::$browser->setVersion($aversion[0]); | |
| 937 | } | |
| 938 | self::$browser->setName(Browser::YANDEX); | |
| 939 | ||
| 940 | return true; | |
| 941 | } | |
| 942 | ||
| 943 | return false; | |
| 944 | } | |
| 945 | ||
| 946 | /** | |
| 947 | * Determine if the browser is Comodo Dragon / Ice Dragon / Chromodo. | |
| @@ 951-965 (lines=15) @@ | ||
| 948 | * | |
| 949 | * @return bool | |
| 950 | */ | |
| 951 | public static function checkBrowserDragon() | |
| 952 |     { | |
| 953 |         if (stripos(self::$userAgentString, 'Dragon') !== false) { | |
| 954 |             $aresult = explode('/', stristr(self::$userAgentString, 'Dragon')); | |
| 955 |             if (isset($aresult[1])) { | |
| 956 |                 $aversion = explode(' ', $aresult[1]); | |
| 957 | self::$browser->setVersion($aversion[0]); | |
| 958 | } | |
| 959 | self::$browser->setName(Browser::DRAGON); | |
| 960 | ||
| 961 | return true; | |
| 962 | } | |
| 963 | ||
| 964 | return false; | |
| 965 | } | |
| 966 | ||
| 967 | /** | |
| 968 | * Determine if the browser is Android. | |