$agent = $_SERVER['HTTP_USER_AGENT']; if (strstr($agent, "Android")|| strstr($agent, "iPhone") || strstr($agent, "iPad") || strstr($agent, "BlackBerry") || strstr($agent, "IEMobile") || strstr($agent, "Mobile") || strstr($agent, "mobile") ) { $device = "mobile"; } if ( is_dir('mobile') == true && isset($device) && $device == "mobile") { $location='mobile/'; header ('Location: '.$location); exit; } $base_url = "http://". $_SERVER["SERVER_NAME"] . "/"; $pano_click = $_GET['pano_click']; $ballena_debug = $_GET['ballena_debug']; $ballena_test = $_GET['ballena_test']; ?>