Created
March 16, 2018 10:43
-
-
Save giordhano/23e0b46cd635c2863e6f1785557f889d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( !in_array('rest', explode('/', $_SERVER['REQUEST_URI']) )){ // Si no es un acceso al API | |
if(file_exists('../lib/Mobile-Detect/Mobile_Detect.php')){ | |
require_once('../lib/Mobile-Detect/Mobile_Detect.php'); | |
$detect = new Mobile_Detect; | |
if ( $detect->isMobile() ) { | |
header('location: http://vexservers.com/MFE/dist/#/home'); | |
} | |
// Any tablet device. | |
if( $detect->isTablet() ){ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment