@@ 242-250 (lines=9) @@ | ||
239 | if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false |
|
240 | ) { |
|
241 | // See if the browser is the odd MSN Explorer |
|
242 | if (stripos(self::$userAgentString, 'msnb') !== false) { |
|
243 | $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN')); |
|
244 | self::$browser->setName(Browser::MSN); |
|
245 | if (isset($aresult[1])) { |
|
246 | self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1])); |
|
247 | } |
|
248 | ||
249 | return true; |
|
250 | } |
|
251 | $aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie')); |
|
252 | self::$browser->setName(Browser::IE); |
|
253 | if (isset($aresult[1])) { |
|
@@ 550-559 (lines=10) @@ | ||
547 | */ |
|
548 | public static function checkBrowserNetPositive() |
|
549 | { |
|
550 | if (stripos(self::$userAgentString, 'NetPositive') !== false) { |
|
551 | $aresult = explode('/', stristr(self::$userAgentString, 'NetPositive')); |
|
552 | if (isset($aresult[1])) { |
|
553 | $aversion = explode(' ', $aresult[1]); |
|
554 | self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0])); |
|
555 | } |
|
556 | self::$browser->setName(Browser::NETPOSITIVE); |
|
557 | ||
558 | return true; |
|
559 | } |
|
560 | ||
561 | return false; |
|
562 | } |