$valor){ $GLOBALS[$clave] = $valor; } } //die(); //movil include_once("./movil/inc/Mobile_Detect.php"); $detect = new Mobile_Detect(); ////COMPRUEBO SI ESTOY EN DISPOSITIVO MOVIL if( $detect->isAndroid() || $detect->isAndroidtablet() || $detect->isIphone() || $detect->isIpad() || $detect->isBlackberry() || $detect->isBlackberrytablet() || $detect->isPalm() || $detect->isWindowsphone() || $detect->isWindows() || $detect->isGeneric() || $detect->isMobile() ) { $_SESSION["navegador"]= true; }else{ $_SESSION["navegador"]= false; } if($GLOBALS["version"]=='pc'){ $_SESSION["versionMovil"] = 'off'; } if($GLOBALS["version"]=='movil'){ $_SESSION["versionMovil"] = 'on'; } ////SI VENGO DE CLICKAR EN LA VERSION NORMAL O NO ESTOY EN DISPOSITIVO MOVIL if($GLOBALS["version"]=='pc' || $_SESSION["navegador"]== false || $_SESSION["navegador"]== '0' || $_SESSION["versionMovil"] == 'off'){ $_SESSION["versionMovil"] = 'off'; }else{ $_SESSION["versionMovil"] = 'on'; } if ($id == "" || !is_numeric($id)){ if (isset($_GET["id"])){ $id = $_GET["id"]; $GLOBALS["id"]=$_GET["id"]; }else{ if($_SESSION["versionMovil"]!='on'){ $id = SECCION_INICIO; $GLOBALS["id"]=SECCION_INICIO; }else{ $id = "0"; $GLOBALS["id"]="0"; } } } if(MENSAJE_COOKIES) include("modulo_base/includes/aplicaciones/cookies/establecer_variables.php");//necesario antes que cargue la versión if($_SESSION["versionMovil"] == 'off'){ include_once("./v_clasica.php"); }else{ include_once("./v_movil.php"); } ?>