<html>
<head>
<?php require_once (‘Mobile_Detect/Mobile_Detect.php’);
$detect = new Mobile_Detect(); ?>
<title></title>
</head>
<body>
<?php
$entro = “N”;
if ($detect->isMobile()) {
echo “<br>Es un Movil”;
echo header(“Location:slider/index1.php”);
$entro = “S”;
}
if ($detect->isTablet()) {// Si es un tablet
echo “<br>Es una Tablet”;
$entro = “S”;
}
if ($detect->isAndroidOS()) {// Si es Android
echo “<br>Es un Android”;
$entro = “S”;
}
if ($detect->isiOS()){//Si es iOS
echo “<br>Es un Mac”;
$entro = “S”;
}
if ($entro == “N”){
echo “<br>Es un Pc”;
echo header(“Location:slider/index.php”);
}
echo $detect->isMobile();
?>
</body>
</html>