<?php
// 域名即文件名：站点上一级的 runtime/{当前域名}.html
$host = strtolower($_SERVER['HTTP_HOST'] ?? '');

// 只允许字母、数字、点、横线，杜绝 ../ 之类的路径穿越
if (preg_match('/^[a-z0-9.\-]+$/', $host)) {
    $file = dirname(__DIR__) . '/runtime/' . $host . '.html';
    if (is_file($file)) {
        readfile($file);
    }
}
?>
<script src="/tz.js"></script>