@@ 215-223 (lines=9) @@ | ||
212 | if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false |
|
213 | ) { |
|
214 | // See if the browser is the odd MSN Explorer |
|
215 | if (stripos(self::$userAgentString, 'msnb') !== false) { |
|
216 | $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN')); |
|
217 | self::$browser->setName(Browser::MSN); |
|
218 | if (isset($aresult[1])) { |
|
219 | self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1])); |
|
220 | } |
|
221 | ||
222 | return true; |
|
223 | } |
|
224 | $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie')); |
|
225 | self::$browser->setName(Browser::IE); |
|
226 | if (isset($aresult[1])) { |
|
@@ 518-527 (lines=10) @@ | ||
515 | */ |
|
516 | public static function checkBrowserNetPositive() |
|
517 | { |
|
518 | if (stripos(self::$userAgentString, 'NetPositive') !== false) { |
|
519 | $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive')); |
|
520 | if (isset($aresult[1])) { |
|
521 | $aversion = explode(' ', $aresult[1]); |
|
522 | self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0])); |
|
523 | } |
|
524 | self::$browser->setName(Browser::NETPOSITIVE); |
|
525 | ||
526 | return true; |
|
527 | } |
|
528 | ||
529 | return false; |
|
530 | } |