| @@ 607-614 (lines=8) @@ | ||
| 604 | } // Test for versions > 1.5 |
|
| 605 | else if (stripos($this->_agent, 'msie') !== false && stripos($this->_agent, 'opera') === false) { |
|
| 606 | // See if the browser is the odd MSN Explorer |
|
| 607 | if (stripos($this->_agent, 'msnb') !== false) { |
|
| 608 | $aresult = explode(' ', stristr(str_replace(';', '; ', $this->_agent), 'MSN')); |
|
| 609 | if (isset($aresult[1])) { |
|
| 610 | $this->setBrowser(self::BROWSER_MSN); |
|
| 611 | $this->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1])); |
|
| 612 | return true; |
|
| 613 | } |
|
| 614 | } |
|
| 615 | $aresult = explode(' ', stristr(str_replace(';', '; ', $this->_agent), 'msie')); |
|
| 616 | if (isset($aresult[1])) { |
|
| 617 | $this->setBrowser(self::BROWSER_IE); |
|
| @@ 766-774 (lines=9) @@ | ||
| 763 | */ |
|
| 764 | protected function checkBrowserNetPositive() |
|
| 765 | { |
|
| 766 | if (stripos($this->_agent, 'NetPositive') !== false) { |
|
| 767 | $aresult = explode('/', stristr($this->_agent, 'NetPositive')); |
|
| 768 | if (isset($aresult[1])) { |
|
| 769 | $aversion = explode(' ', $aresult[1]); |
|
| 770 | $this->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0])); |
|
| 771 | $this->setBrowser(self::BROWSER_NETPOSITIVE); |
|
| 772 | return true; |
|
| 773 | } |
|
| 774 | } |
|
| 775 | return false; |
|
| 776 | } |
|
| 777 | ||