<?php
require_once dirname(__DIR__) . '/safety/ChairmanSafeLoader.php';
$status = ChairmanSafeLoader::status();
?>
<!doctype html>
<html lang="zh-Hant">
<head>
<meta charset="utf-8">
<title>Chairman Analysis Integration Check v4.1</title>
<style>
body{background:#050914;color:#e7fbff;font-family:Arial,'Microsoft JhengHei';padding:25px}
.box{border:1px solid #283c59;background:#0c1423;padding:18px;border-radius:12px;margin-bottom:15px}
.ok{color:#32ffa7}.bad{color:#ff5a86}.gold{color:#ffc107}
pre{white-space:pre-wrap;color:#9ed9ff}
</style>
</head>
<body>
<h1>Chairman Analysis Integration Check v4.1</h1>
<div class="box">
<p>Status:
<?php if($status['status']==='OK'): ?><span class="ok">OK</span><?php else: ?><span class="bad"><?=htmlspecialchars($status['status'],ENT_QUOTES,'UTF-8')?></span><?php endif; ?>
</p>
<pre><?=htmlspecialchars(json_encode($status,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT),ENT_QUOTES,'UTF-8')?></pre>
</div>
<div class="box">
<h2>Test URLs</h2>
<p class="gold">../api/api_analysis_health.php</p>
<p class="gold">../../analysis_chairman_v4_1_integrated.php?wr_chairman_payload=1&amp;race_date=2026-07-08</p>
</div>
</body>
</html>
