// echo $_SERVER["HTTP_USER_AGENT"];
// ini_set('display_errors',1);
global $mob;
// Include and instantiate the class.
require_once "/home/ligu0129/cours-theatre.fr/mobile/Mobile_Detect.php";
$detect = new Mobile_Detect;
// Any mobile device (phones or tablets).
if ( $detect->isMobile() ) {
// echo "Mobile";
$mob=1;
}
else
{
// echo "Desktop";
$mob=0;
}
// Any tablet device.
if( $detect->isTablet() ){
// echo "Tablette";
$mob=1;
}
// $monUrl_FULL = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$Url_Mobile = "https://m.cours-theatre.fr/".$_SERVER['REQUEST_URI'];
// echo $Url_Mobile;
if ($mob=="1")
{
// echo "redirect vers version Mobile";
header("Location: $Url_Mobile");
exit();
}
//echo "fin";
?>
Annuaire des écoles de théâtre en France: cours-theatre.fr :: Compagnies-de-theatre :: Soumettre une nouvelle ville pour
$Url_Mobile = "https://m.cours-theatre.fr/mobile".$_SERVER['REQUEST_URI'];
echo "";
?>