Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/10/2013, 06:55
juanito07
 
Fecha de Ingreso: octubre-2013
Mensajes: 11
Antigüedad: 10 años, 6 meses
Puntos: 0
Respuesta: Redireccionar a otra pagina si entran con IE10 inferior

Solucionado

Código:
<?php



function getBrowser($userAgent) {
$browsers = array(
'Internet Explorer 9' => '(MSIE 9\.[0-9]+)',
'Internet Explorer 8' => '(MSIE 8\.[0-9]+)',
'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
);

foreach($browsers as $browser=>$pattern) {
if(eregi($pattern, $userAgent)) {
return $browser;
}
}
return 'Unknown';
}
$browser= getBrowser($_SERVER['HTTP_USER_AGENT']);
switch($browser){
case 'Internet Explorer 9':
header('location: web_ie_9.php');
break;
case 'Internet Explorer 8':
header('location: web_ie_8.php');
break;
case 'Internet Explorer 7':
header('location: web_ie_7.php');
break;
case 'Internet Explorer 6':
header('location: web_ie6.php');
break;
case 'Internet Explorer 5':
header('location: web_ie5.php');
break;

}
?>