[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php if (!defined('BB2_CORE')) die('I said no cheating!'); 2 3 // Analyze user agents claiming to be MSIE 4 5 function bb2_msie($package) 6 { 7 if (!array_key_exists('Accept', $package['headers_mixed'])) { 8 return "17566707"; 9 } 10 11 // MSIE does NOT send "Windows ME" or "Windows XP" in the user agent 12 if (strpos($package['headers_mixed']['User-Agent'], "Windows ME") !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Windows XP") !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Windows 2000") !== FALSE || strpos($package['headers_mixed']['User-Agent'], "Win32") !== FALSE) { 13 return "a1084bad"; 14 } 15 16 // MSIE does NOT send Connection: TE 17 if (preg_match('/\bTE\b/i', $package['headers_mixed']['Connection'])) { 18 return "2b90f772"; 19 } 20 21 return false; 22 } 23 24 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |