| @@ 746-758 (lines=13) @@ | ||
| 743 | * Determine if the browser is WebTv or not (last updated 1.7) |
|
| 744 | * @return boolean True if the browser is WebTv otherwise false |
|
| 745 | */ |
|
| 746 | protected function checkBrowserWebTv() |
|
| 747 | { |
|
| 748 | if (stripos($this->_agent, 'webtv') !== false) { |
|
| 749 | $aresult = explode('/', stristr($this->_agent, 'webtv')); |
|
| 750 | if (isset($aresult[1])) { |
|
| 751 | $aversion = explode(' ', $aresult[1]); |
|
| 752 | $this->setVersion($aversion[0]); |
|
| 753 | $this->setBrowser(self::BROWSER_WEBTV); |
|
| 754 | return true; |
|
| 755 | } |
|
| 756 | } |
|
| 757 | return false; |
|
| 758 | } |
|
| 759 | ||
| 760 | /** |
|
| 761 | * Determine if the browser is NetPositive or not (last updated 1.7) |
|
| @@ 782-794 (lines=13) @@ | ||
| 779 | * Determine if the browser is Galeon or not (last updated 1.7) |
|
| 780 | * @return boolean True if the browser is Galeon otherwise false |
|
| 781 | */ |
|
| 782 | protected function checkBrowserGaleon() |
|
| 783 | { |
|
| 784 | if (stripos($this->_agent, 'galeon') !== false) { |
|
| 785 | $aresult = explode(' ', stristr($this->_agent, 'galeon')); |
|
| 786 | $aversion = explode('/', $aresult[0]); |
|
| 787 | if (isset($aversion[1])) { |
|
| 788 | $this->setVersion($aversion[1]); |
|
| 789 | $this->setBrowser(self::BROWSER_GALEON); |
|
| 790 | return true; |
|
| 791 | } |
|
| 792 | } |
|
| 793 | return false; |
|
| 794 | } |
|
| 795 | ||
| 796 | /** |
|
| 797 | * Determine if the browser is Konqueror or not (last updated 1.7) |
|
| @@ 800-812 (lines=13) @@ | ||
| 797 | * Determine if the browser is Konqueror or not (last updated 1.7) |
|
| 798 | * @return boolean True if the browser is Konqueror otherwise false |
|
| 799 | */ |
|
| 800 | protected function checkBrowserKonqueror() |
|
| 801 | { |
|
| 802 | if (stripos($this->_agent, 'Konqueror') !== false) { |
|
| 803 | $aresult = explode(' ', stristr($this->_agent, 'Konqueror')); |
|
| 804 | $aversion = explode('/', $aresult[0]); |
|
| 805 | if (isset($aversion[1])) { |
|
| 806 | $this->setVersion($aversion[1]); |
|
| 807 | $this->setBrowser(self::BROWSER_KONQUEROR); |
|
| 808 | return true; |
|
| 809 | } |
|
| 810 | } |
|
| 811 | return false; |
|
| 812 | } |
|
| 813 | ||
| 814 | /** |
|
| 815 | * Determine if the browser is iCab or not (last updated 1.7) |
|
| @@ 818-829 (lines=12) @@ | ||
| 815 | * Determine if the browser is iCab or not (last updated 1.7) |
|
| 816 | * @return boolean True if the browser is iCab otherwise false |
|
| 817 | */ |
|
| 818 | protected function checkBrowserIcab() |
|
| 819 | { |
|
| 820 | if (stripos($this->_agent, 'icab') !== false) { |
|
| 821 | $aversion = explode(' ', stristr(str_replace('/', ' ', $this->_agent), 'icab')); |
|
| 822 | if (isset($aversion[1])) { |
|
| 823 | $this->setVersion($aversion[1]); |
|
| 824 | $this->setBrowser(self::BROWSER_ICAB); |
|
| 825 | return true; |
|
| 826 | } |
|
| 827 | } |
|
| 828 | return false; |
|
| 829 | } |
|
| 830 | ||
| 831 | /** |
|
| 832 | * Determine if the browser is OmniWeb or not (last updated 1.7) |
|
| @@ 835-845 (lines=11) @@ | ||
| 832 | * Determine if the browser is OmniWeb or not (last updated 1.7) |
|
| 833 | * @return boolean True if the browser is OmniWeb otherwise false |
|
| 834 | */ |
|
| 835 | protected function checkBrowserOmniWeb() |
|
| 836 | { |
|
| 837 | if (stripos($this->_agent, 'omniweb') !== false) { |
|
| 838 | $aresult = explode('/', stristr($this->_agent, 'omniweb')); |
|
| 839 | $aversion = explode(' ', isset($aresult[1]) ? $aresult[1] : ""); |
|
| 840 | $this->setVersion($aversion[0]); |
|
| 841 | $this->setBrowser(self::BROWSER_OMNIWEB); |
|
| 842 | return true; |
|
| 843 | } |
|
| 844 | return false; |
|
| 845 | } |
|
| 846 | ||
| 847 | /** |
|
| 848 | * Determine if the browser is Phoenix or not (last updated 1.7) |
|
| @@ 851-862 (lines=12) @@ | ||
| 848 | * Determine if the browser is Phoenix or not (last updated 1.7) |
|
| 849 | * @return boolean True if the browser is Phoenix otherwise false |
|
| 850 | */ |
|
| 851 | protected function checkBrowserPhoenix() |
|
| 852 | { |
|
| 853 | if (stripos($this->_agent, 'Phoenix') !== false) { |
|
| 854 | $aversion = explode('/', stristr($this->_agent, 'Phoenix')); |
|
| 855 | if (isset($aversion[1])) { |
|
| 856 | $this->setVersion($aversion[1]); |
|
| 857 | $this->setBrowser(self::BROWSER_PHOENIX); |
|
| 858 | return true; |
|
| 859 | } |
|
| 860 | } |
|
| 861 | return false; |
|
| 862 | } |
|
| 863 | ||
| 864 | /** |
|
| 865 | * Determine if the browser is Firebird or not (last updated 1.7) |
|
| @@ 868-879 (lines=12) @@ | ||
| 865 | * Determine if the browser is Firebird or not (last updated 1.7) |
|
| 866 | * @return boolean True if the browser is Firebird otherwise false |
|
| 867 | */ |
|
| 868 | protected function checkBrowserFirebird() |
|
| 869 | { |
|
| 870 | if (stripos($this->_agent, 'Firebird') !== false) { |
|
| 871 | $aversion = explode('/', stristr($this->_agent, 'Firebird')); |
|
| 872 | if (isset($aversion[1])) { |
|
| 873 | $this->setVersion($aversion[1]); |
|
| 874 | $this->setBrowser(self::BROWSER_FIREBIRD); |
|
| 875 | return true; |
|
| 876 | } |
|
| 877 | } |
|
| 878 | return false; |
|
| 879 | } |
|
| 880 | ||
| 881 | /** |
|
| 882 | * Determine if the browser is Netscape Navigator 9+ or not (last updated 1.7) |
|
| @@ 979-991 (lines=13) @@ | ||
| 976 | * Determine if the browser is Firefox or not (last updated 1.7) |
|
| 977 | * @return boolean True if the browser is Firefox otherwise false |
|
| 978 | */ |
|
| 979 | protected function checkBrowserIceweasel() |
|
| 980 | { |
|
| 981 | if (stripos($this->_agent, 'Iceweasel') !== false) { |
|
| 982 | $aresult = explode('/', stristr($this->_agent, 'Iceweasel')); |
|
| 983 | if (isset($aresult[1])) { |
|
| 984 | $aversion = explode(' ', $aresult[1]); |
|
| 985 | $this->setVersion($aversion[0]); |
|
| 986 | $this->setBrowser(self::BROWSER_ICEWEASEL); |
|
| 987 | return true; |
|
| 988 | } |
|
| 989 | } |
|
| 990 | return false; |
|
| 991 | } |
|
| 992 | ||
| 993 | /** |
|
| 994 | * Determine if the browser is Mozilla or not (last updated 1.7) |
|
| @@ 1022-1032 (lines=11) @@ | ||
| 1019 | * Determine if the browser is Lynx or not (last updated 1.7) |
|
| 1020 | * @return boolean True if the browser is Lynx otherwise false |
|
| 1021 | */ |
|
| 1022 | protected function checkBrowserLynx() |
|
| 1023 | { |
|
| 1024 | if (stripos($this->_agent, 'lynx') !== false) { |
|
| 1025 | $aresult = explode('/', stristr($this->_agent, 'Lynx')); |
|
| 1026 | $aversion = explode(' ', (isset($aresult[1]) ? $aresult[1] : "")); |
|
| 1027 | $this->setVersion($aversion[0]); |
|
| 1028 | $this->setBrowser(self::BROWSER_LYNX); |
|
| 1029 | return true; |
|
| 1030 | } |
|
| 1031 | return false; |
|
| 1032 | } |
|
| 1033 | ||
| 1034 | /** |
|
| 1035 | * Determine if the browser is Amaya or not (last updated 1.7) |
|
| @@ 1038-1050 (lines=13) @@ | ||
| 1035 | * Determine if the browser is Amaya or not (last updated 1.7) |
|
| 1036 | * @return boolean True if the browser is Amaya otherwise false |
|
| 1037 | */ |
|
| 1038 | protected function checkBrowserAmaya() |
|
| 1039 | { |
|
| 1040 | if (stripos($this->_agent, 'amaya') !== false) { |
|
| 1041 | $aresult = explode('/', stristr($this->_agent, 'Amaya')); |
|
| 1042 | if (isset($aresult[1])) { |
|
| 1043 | $aversion = explode(' ', $aresult[1]); |
|
| 1044 | $this->setVersion($aversion[0]); |
|
| 1045 | $this->setBrowser(self::BROWSER_AMAYA); |
|
| 1046 | return true; |
|
| 1047 | } |
|
| 1048 | } |
|
| 1049 | return false; |
|
| 1050 | } |
|
| 1051 | ||
| 1052 | /** |
|
| 1053 | * Determine if the browser is Safari or not (last updated 1.7) |
|