- if(!$smartphone): ?> MEGA DRIVE MEGATRON
- if(!$smartphone): ?> Optimus Prime featuring Original PlayStation®
$ua=$_SERVER['HTTP_USER_AGENT']; function isIE(){ global $ua; if(strstr($ua,"MSIE")||strstr($ua,"Trident")){ return true; }else{ return false; } } $smartphone = false; if((strpos($ua,'iPhone')!==false)||(strpos($ua,'iPod')!==false)||(strpos($ua,'iPad')!==false)||(strpos($ua,'Android')!==false)){ $smartphone = true; } $support = true; $results['browser'] = ''; $results['version'] = ''; if (preg_match('/Trident\/(\d{1,}(.\d{1,}){1,}?)/i', $ua, $mtcs)) { $results['browser'] = 'msie'; if ((float)$mtcs[1] >= 7) { if (preg_match('/rv:(\d{1,}(.\d{1,}){1,}?)/i', $ua, $mtcs)) { $results['version'] = (float)$mtcs[1]; } else { $results['version'] = 11.0; } } elseif ((float)$mtcs[1] >= 6) { $results['version'] = 10.0; } elseif ((float)$mtcs[1] >= 5) { $results['version'] = 9.0; } elseif ((float)$mtcs[1] >= 4) { $results['version'] = 8.0; } } if (empty($results['browser'])) { if (preg_match('/MSIE\s(\d{1,}(.\d{1,}){1,}?);/i', $ua, $mtcs)) { $results['browser'] = 'msie'; $results['version'] = (float)$mtcs[1]; } } if(($results['browser'] == 'msie')&&($results['version'] <= 8)) { $support = false; } ?>