';
echo ''.gmdate('Y-m-d H:i').' UTCopen field data · live';
echo '';
}
/* WEB-001: the version stamp of the code snapshot that rendered this page (inc/snapshots/current.json), or '' before the first snapshot. */
function code_version(): string {
static $v=null;
if($v===null){ $j=@file_get_contents(__DIR__.'/snapshots/current.json'); $d=$j?json_decode($j,true):null; $v=is_array($d)&&preg_match('/^\d{4}\.\d{2}\.\d{2}-[0-9a-f]{7}$/',(string)($d['version']??''))?(string)$d['version']:''; }
return $v;
}
/* A small "code" link that resolves to a file (and a function's line range) in the snapshot that rendered this page. */
function code_link(string $file, ?string $fn=null, string $label='code'): string {
$v=code_version(); if($v==='') return '';
return ''.h($label).'';
}
function page_footer(): void {
echo '