|
@@ 180-188 (lines=9) @@
|
| 177 |
|
if (stripos(self::$userAgentString, 'msie') !== false && stripos(self::$userAgentString, 'opera') === false |
| 178 |
|
) { |
| 179 |
|
// See if the browser is the odd MSN Explorer |
| 180 |
|
if (stripos(self::$userAgentString, 'msnb') !== false) { |
| 181 |
|
$aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'MSN')); |
| 182 |
|
self::$browser->setName(Browser::MSN); |
| 183 |
|
if (isset($aresult[1])) { |
| 184 |
|
self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aresult[1])); |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
return true; |
| 188 |
|
} |
| 189 |
|
$aresult = explode(' ', stristr(str_replace(';', '; ', self::$userAgentString), 'msie')); |
| 190 |
|
self::$browser->setName(Browser::IE); |
| 191 |
|
if (isset($aresult[1])) { |
|
@@ 434-443 (lines=10) @@
|
| 431 |
|
*/ |
| 432 |
|
public static function checkBrowserNetPositive() |
| 433 |
|
{ |
| 434 |
|
if (stripos(self::$userAgentString, 'NetPositive') !== false) { |
| 435 |
|
$aresult = explode('/', stristr(self::$userAgentString, 'NetPositive')); |
| 436 |
|
if (isset($aresult[1])) { |
| 437 |
|
$aversion = explode(' ', $aresult[1]); |
| 438 |
|
self::$browser->setVersion(str_replace(array('(', ')', ';'), '', $aversion[0])); |
| 439 |
|
} |
| 440 |
|
self::$browser->setName(Browser::NETPOSITIVE); |
| 441 |
|
|
| 442 |
|
return true; |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
return false; |
| 446 |
|
} |