Files
CLOAK/lib/Cloak/Page/FingerprintRedirectRenderer.php
T
2026-06-14 14:00:24 +08:00

22 lines
594 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* 指纹检测跳转页(原 check_flow 内联 HTML
*/
class FingerprintRedirectRenderer
{
/**
* @param string $configName 站点配置名,如 index
*/
public static function renderAndExit($configName)
{
$template = dirname(__DIR__, 3) . '/resources/fingerprint_redirect.html.php';
if (!is_readable($template)) {
return;
}
$html = file_get_contents($template);
$html = str_replace('{{CONFIG_NAME}}', htmlspecialchars($configName, ENT_QUOTES, 'UTF-8'), $html);
echo $html;
exit;
}
}