| @@ 714-733 (lines=20) @@ | ||
| 711 | * |
|
| 712 | * @return bool |
|
| 713 | */ |
|
| 714 | public static function checkBrowserFirefox() |
|
| 715 | { |
|
| 716 | if (stripos(self::$userAgentString, 'safari') === false) { |
|
| 717 | if (preg_match("/Firefox[\/ \(]([^ ;\)]+)/i", self::$userAgentString, $matches)) { |
|
| 718 | if (isset($matches[1])) { |
|
| 719 | self::$browser->setVersion($matches[1]); |
|
| 720 | } |
|
| 721 | self::$browser->setName(Browser::FIREFOX); |
|
| 722 | ||
| 723 | return true; |
|
| 724 | } elseif (preg_match('/Firefox$/i', self::$userAgentString, $matches)) { |
|
| 725 | self::$browser->setVersion(''); |
|
| 726 | self::$browser->setName(Browser::FIREFOX); |
|
| 727 | ||
| 728 | return true; |
|
| 729 | } |
|
| 730 | } |
|
| 731 | ||
| 732 | return false; |
|
| 733 | } |
|
| 734 | ||
| 735 | /** |
|
| 736 | * Determine if the browser is SeaMonkey. |
|
| @@ 740-759 (lines=20) @@ | ||
| 737 | * |
|
| 738 | * @return bool |
|
| 739 | */ |
|
| 740 | public static function checkBrowserSeaMonkey() |
|
| 741 | { |
|
| 742 | if (stripos(self::$userAgentString, 'safari') === false) { |
|
| 743 | if (preg_match("/SeaMonkey[\/ \(]([^ ;\)]+)/i", self::$userAgentString, $matches)) { |
|
| 744 | if (isset($matches[1])) { |
|
| 745 | self::$browser->setVersion($matches[1]); |
|
| 746 | } |
|
| 747 | self::$browser->setName(Browser::SEAMONKEY); |
|
| 748 | ||
| 749 | return true; |
|
| 750 | } elseif (preg_match('/SeaMonkey$/i', self::$userAgentString, $matches)) { |
|
| 751 | self::$browser->setVersion(''); |
|
| 752 | self::$browser->setName(Browser::SEAMONKEY); |
|
| 753 | ||
| 754 | return true; |
|
| 755 | } |
|
| 756 | } |
|
| 757 | ||
| 758 | return false; |
|
| 759 | } |
|
| 760 | ||
| 761 | /** |
|
| 762 | * Determine if the browser is Iceweasel. |
|