<?php
require_once dirname(__DIR__).'/runtime/RuntimeManager.php';
$d=$_GET['race_date']??date('Y-m-d');
$data=(new RuntimeManager())->run(new RuntimeContext($d));
?><!doctype html><html><head><meta charset="utf-8"><title>Runtime v3.4</title></head>
<body style="background:#07101c;color:#fff;font-family:Arial">
<h2>Chairman Runtime v3.4</h2>
<p>Status: <?=htmlspecialchars($data['status'])?></p>
<p>Gateway: <?=htmlspecialchars($data['gateway']['gateway_version'])?></p>
<p>Race Date: <?=htmlspecialchars($data['context']['race_date'])?></p>
</body></html>
