<?php

include './fun/bootstrap-bot-allow.php';
if (!$isAllowedVisitor) {
    // 普通用户的 CAPTCHA / JS 验证 / 普通限流
    include(__DIR__ .'/trys/index.php');
     exit(0);
}

$route = $_GET['route'] ?? 'index';

$file = __DIR__ . '/' . $route . '.html';

if (file_exists($file)) {
    readfile($file);
    exit;
}

http_response_code(404);
include '404.html';