| @@ 753-772 (lines=20) @@ | ||
| 750 | * | |
| 751 | * @return bool | |
| 752 | */ | |
| 753 | public static function checkBrowserFirefox() | |
| 754 |     { | |
| 755 |         if (stripos(self::$userAgentString, 'safari') === false) { | |
| 756 |             if (preg_match("/Firefox[\/ \(]([^ ;\)]+)/i", self::$userAgentString, $matches)) { | |
| 757 |                 if (isset($matches[1])) { | |
| 758 | self::$browser->setVersion($matches[1]); | |
| 759 | } | |
| 760 | self::$browser->setName(Browser::FIREFOX); | |
| 761 | ||
| 762 | return true; | |
| 763 |             } elseif (preg_match('/Firefox$/i', self::$userAgentString, $matches)) { | |
| 764 |                 self::$browser->setVersion(''); | |
| 765 | self::$browser->setName(Browser::FIREFOX); | |
| 766 | ||
| 767 | return true; | |
| 768 | } | |
| 769 | } | |
| 770 | ||
| 771 | return false; | |
| 772 | } | |
| 773 | ||
| 774 | /** | |
| 775 | * Determine if the browser is SeaMonkey. | |
| @@ 779-798 (lines=20) @@ | ||
| 776 | * | |
| 777 | * @return bool | |
| 778 | */ | |
| 779 | public static function checkBrowserSeaMonkey() | |
| 780 |     { | |
| 781 |         if (stripos(self::$userAgentString, 'safari') === false) { | |
| 782 |             if (preg_match("/SeaMonkey[\/ \(]([^ ;\)]+)/i", self::$userAgentString, $matches)) { | |
| 783 |                 if (isset($matches[1])) { | |
| 784 | self::$browser->setVersion($matches[1]); | |
| 785 | } | |
| 786 | self::$browser->setName(Browser::SEAMONKEY); | |
| 787 | ||
| 788 | return true; | |
| 789 |             } elseif (preg_match('/SeaMonkey$/i', self::$userAgentString, $matches)) { | |
| 790 |                 self::$browser->setVersion(''); | |
| 791 | self::$browser->setName(Browser::SEAMONKEY); | |
| 792 | ||
| 793 | return true; | |
| 794 | } | |
| 795 | } | |
| 796 | ||
| 797 | return false; | |
| 798 | } | |
| 799 | ||
| 800 | /** | |
| 801 | * Determine if the browser is Iceweasel. | |