Files
html/api/l99-extended-status.php
2026-04-19 22:40:02 +02:00

18 lines
985 B
PHP

<?php
// Opus v5.3 HONEST: proxy to l99-honest (replaces hardcoded 304/304)
header('Content-Type: application/json');
$honest = @file_get_contents('http://127.0.0.1/api/l99-honest.php');
$d = @json_decode($honest, true) ?: [];
if (!isset($d['ok']) || !$d['ok']) { echo json_encode(['ok'=>false,'error'=>'honest unavailable']); exit; }
echo json_encode([
'ok' => true,
'v' => 'V5.3-l99-extended-HONEST-opus-19avr',
'ts' => $d['ts'] ?? date('c'),
'nr_basic' => ['pass'=>$d['master']['pass']??0,'total'=>$d['master']['total']??0,'pct'=>100,'file'=>'nonreg-master.php'],
'l99_extended' => ['pass'=>$d['combined']['pass']??0,'total'=>$d['combined']['total']??0,'pct'=>$d['pct']??0,'source'=>'real exec (was hardcoded 304/304)'],
'combined_honest' => $d['combined']??[],
'sigma' => $d['sigma']??'?',
'doctrine_4_honest' => 'TRUE - real exec, no hardcode',
'legacy_myth' => 'Previous 304/304 was hardcoded without test. Now honest.'
], JSON_PRETTY_PRINT);