|
@@ 698-708 (lines=11) @@
|
| 695 |
|
* Determine if the browser is WebTv or not (last updated 1.7) |
| 696 |
|
* @return boolean True if the browser is WebTv otherwise false |
| 697 |
|
*/ |
| 698 |
|
protected function checkBrowserWebTv() |
| 699 |
|
{ |
| 700 |
|
if (stripos($this->_agent, 'webtv') !== false) { |
| 701 |
|
$aresult = explode('/', stristr($this->_agent, 'webtv')); |
| 702 |
|
$aversion = explode(' ', $aresult[1]); |
| 703 |
|
$this->setVersion($aversion[0]); |
| 704 |
|
$this->setBrowser(self::BROWSER_WEBTV); |
| 705 |
|
return true; |
| 706 |
|
} |
| 707 |
|
return false; |
| 708 |
|
} |
| 709 |
|
|
| 710 |
|
/** |
| 711 |
|
* Determine if the browser is NetPositive or not (last updated 1.7) |
|
@@ 730-740 (lines=11) @@
|
| 727 |
|
* Determine if the browser is Galeon or not (last updated 1.7) |
| 728 |
|
* @return boolean True if the browser is Galeon otherwise false |
| 729 |
|
*/ |
| 730 |
|
protected function checkBrowserGaleon() |
| 731 |
|
{ |
| 732 |
|
if (stripos($this->_agent, 'galeon') !== false) { |
| 733 |
|
$aresult = explode(' ', stristr($this->_agent, 'galeon')); |
| 734 |
|
$aversion = explode('/', $aresult[0]); |
| 735 |
|
$this->setVersion($aversion[1]); |
| 736 |
|
$this->setBrowser(self::BROWSER_GALEON); |
| 737 |
|
return true; |
| 738 |
|
} |
| 739 |
|
return false; |
| 740 |
|
} |
| 741 |
|
|
| 742 |
|
/** |
| 743 |
|
* Determine if the browser is Konqueror or not (last updated 1.7) |
|
@@ 746-756 (lines=11) @@
|
| 743 |
|
* Determine if the browser is Konqueror or not (last updated 1.7) |
| 744 |
|
* @return boolean True if the browser is Konqueror otherwise false |
| 745 |
|
*/ |
| 746 |
|
protected function checkBrowserKonqueror() |
| 747 |
|
{ |
| 748 |
|
if (stripos($this->_agent, 'Konqueror') !== false) { |
| 749 |
|
$aresult = explode(' ', stristr($this->_agent, 'Konqueror')); |
| 750 |
|
$aversion = explode('/', $aresult[0]); |
| 751 |
|
$this->setVersion($aversion[1]); |
| 752 |
|
$this->setBrowser(self::BROWSER_KONQUEROR); |
| 753 |
|
return true; |
| 754 |
|
} |
| 755 |
|
return false; |
| 756 |
|
} |
| 757 |
|
|
| 758 |
|
/** |
| 759 |
|
* Determine if the browser is iCab or not (last updated 1.7) |
|
@@ 777-787 (lines=11) @@
|
| 774 |
|
* Determine if the browser is OmniWeb or not (last updated 1.7) |
| 775 |
|
* @return boolean True if the browser is OmniWeb otherwise false |
| 776 |
|
*/ |
| 777 |
|
protected function checkBrowserOmniWeb() |
| 778 |
|
{ |
| 779 |
|
if (stripos($this->_agent, 'omniweb') !== false) { |
| 780 |
|
$aresult = explode('/', stristr($this->_agent, 'omniweb')); |
| 781 |
|
$aversion = explode(' ', isset($aresult[1]) ? $aresult[1] : ""); |
| 782 |
|
$this->setVersion($aversion[0]); |
| 783 |
|
$this->setBrowser(self::BROWSER_OMNIWEB); |
| 784 |
|
return true; |
| 785 |
|
} |
| 786 |
|
return false; |
| 787 |
|
} |
| 788 |
|
|
| 789 |
|
/** |
| 790 |
|
* Determine if the browser is Phoenix or not (last updated 1.7) |
|
@@ 917-927 (lines=11) @@
|
| 914 |
|
* Determine if the browser is Firefox or not (last updated 1.7) |
| 915 |
|
* @return boolean True if the browser is Firefox otherwise false |
| 916 |
|
*/ |
| 917 |
|
protected function checkBrowserIceweasel() |
| 918 |
|
{ |
| 919 |
|
if (stripos($this->_agent, 'Iceweasel') !== false) { |
| 920 |
|
$aresult = explode('/', stristr($this->_agent, 'Iceweasel')); |
| 921 |
|
$aversion = explode(' ', $aresult[1]); |
| 922 |
|
$this->setVersion($aversion[0]); |
| 923 |
|
$this->setBrowser(self::BROWSER_ICEWEASEL); |
| 924 |
|
return true; |
| 925 |
|
} |
| 926 |
|
return false; |
| 927 |
|
} |
| 928 |
|
|
| 929 |
|
/** |
| 930 |
|
* Determine if the browser is Mozilla or not (last updated 1.7) |
|
@@ 958-968 (lines=11) @@
|
| 955 |
|
* Determine if the browser is Lynx or not (last updated 1.7) |
| 956 |
|
* @return boolean True if the browser is Lynx otherwise false |
| 957 |
|
*/ |
| 958 |
|
protected function checkBrowserLynx() |
| 959 |
|
{ |
| 960 |
|
if (stripos($this->_agent, 'lynx') !== false) { |
| 961 |
|
$aresult = explode('/', stristr($this->_agent, 'Lynx')); |
| 962 |
|
$aversion = explode(' ', (isset($aresult[1]) ? $aresult[1] : "")); |
| 963 |
|
$this->setVersion($aversion[0]); |
| 964 |
|
$this->setBrowser(self::BROWSER_LYNX); |
| 965 |
|
return true; |
| 966 |
|
} |
| 967 |
|
return false; |
| 968 |
|
} |
| 969 |
|
|
| 970 |
|
/** |
| 971 |
|
* Determine if the browser is Amaya or not (last updated 1.7) |
|
@@ 974-984 (lines=11) @@
|
| 971 |
|
* Determine if the browser is Amaya or not (last updated 1.7) |
| 972 |
|
* @return boolean True if the browser is Amaya otherwise false |
| 973 |
|
*/ |
| 974 |
|
protected function checkBrowserAmaya() |
| 975 |
|
{ |
| 976 |
|
if (stripos($this->_agent, 'amaya') !== false) { |
| 977 |
|
$aresult = explode('/', stristr($this->_agent, 'Amaya')); |
| 978 |
|
$aversion = explode(' ', $aresult[1]); |
| 979 |
|
$this->setVersion($aversion[0]); |
| 980 |
|
$this->setBrowser(self::BROWSER_AMAYA); |
| 981 |
|
return true; |
| 982 |
|
} |
| 983 |
|
return false; |
| 984 |
|
} |
| 985 |
|
|
| 986 |
|
/** |
| 987 |
|
* Determine if the browser is Safari or not (last updated 1.7) |