Research Labs

2026-09-17 20:36 UTCopen field data · live

pages/faults.php

Snapshot 2026.09.17-a2894de (current) · 13 lines · 916 bytes · tree · plain text

SHA-256 c3318131fa64f493742cad2bbe218c58c65149ad5c9538d4ca537ed1a2706457
1<?php
2require_once __DIR__.'/../inc/layout.php';
3page_header('Faults & Gaps','faults');
4echo '<h1>Faults, gaps and corrections</h1><p class="lede">The public record of everything that went wrong and what was done about it. Gaps are documented, never interpolated; corrections say what changed and why.</p>';
5$q=db()->query("SELECT e.*, i.name FROM events e LEFT JOIN instruments i ON i.id=e.instrument_id WHERE e.is_public=1 ORDER BY e.ts DESC LIMIT 200");
6echo '<table class="data"><tr><th>When</th><th>Class</th><th>Instrument</th><th>Detail</th></tr>';
7foreach($q as $e){
8 $c=['fault'=>C_CRIT,'gap'=>C_SERIOUS,'recovery'=>C_GOOD,'correction'=>C_WARN,'audit'=>'#9085e9','info'=>'#8b8b83'][$e['class']]??'#8b8b83';
9 echo '<tr><td>'.h($e['ts']).'</td><td style="color:'.$c.'">'.h(strtoupper($e['class'])).'</td><td>'.h($e['name']??'—').'</td><td>'.h($e['detail']).'</td></tr>';
10}
11echo '</table>';
12page_footer();
13

Lines can be cited as pages/faults.php L120-L140, platform code 2026.09.17-a2894de; add #L120-L140 to this page's address to highlight them. Source shown for scrutiny of the research platform. All rights reserved. Not offered as installable software.