SIMON Master Console Rebuild
True command center for SIMON + WEB360
This rebuild gives you a cleaner production spine: interactive tree, live viewer, guarded editor, dynamic graphics, architecture map, and note storage. It is designed to sit beside your existing
console.php
and become the stronger replacement path.
Dashboard
Tree
Viewer
System Map
File Registry
Notes
Files
15,338
Folders
408
Scanned Size
3.84 GB
PHP Files
890
Editable Text Files
12,599
File viewer
guarded to /htdocs
/simonos/index.php
<?php declare(strict_types=1); require_once __DIR__.'/core/bootstrap.php'; simon_require_auth(); $health=simon_health();$modules=simon_modules();$ready=count(array_filter($modules,fn($m)=>$m['status']==='ready')); $metrics=['projects'=>(int)SimonDatabase::scalar('SELECT COUNT(*) FROM simon_projects',[],0),'files'=>(int)SimonDatabase::scalar('SELECT COUNT(*) FROM simon_project_files WHERE is_deleted=0',[],0),'events'=>(int)SimonDatabase::scalar('SELECT COUNT(*) FROM simon_events',[],0),'jobs'=>(int)SimonDatabase::scalar("SELECT COUNT(*) FROM simon_jobs WHERE status IN ('queued','running','pending_approval')",[],0),'critical'=>(int)SimonDatabase::scalar("SELECT COUNT(*) FROM simon_scan_results WHERE severity='critical' AND status='open'",[],0),'approvals'=>(int)SimonDatabase::scalar("SELECT COUNT(*) FROM simon_approvals WHERE status='pending'",[],0),'entities'=>(int)SimonDatabase::scalar('SELECT COUNT(*) FROM simon_entities',[],0),'nodes'=>(int)SimonDatabase::scalar('SELECT COUNT(*) FROM simon_graph_nodes',[],0)]; $events=SimonDatabase::rows('SELECT event_type,summary,occurred_at,risk FROM simon_events ORDER BY occurred_at DESC LIMIT 8'); simon_event(['event_type'=>'command_center.viewed','what_type'=>'dashboard','what_action'=>'view','component'=>'Command Center','summary'=>'SIMON Phase 1 Command Center viewed.']); ?><!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><title>SIMON Enterprise OS</title><link rel="stylesheet" href="assets/simon.css"></head><body><main class="shell"><header><div><small>SIMON ENTERPRISE OS</small><h1>Command Center</h1></div><nav><a href="modules.php">Modules</a><a href="diagnostics.php">Diagnostics</a><a href="api/status.php">Status API</a></nav></header><section class="hero"><div><span class="badge <?=$health['status']?>"><?=strtoupper(simon_h($health['status']))?></span><h2>Operational Core Phase 1</h2><p>One registry, one database connection, one 5W1H event model, and one health surface for all 23 enterprise modules.</p></div><div class="score"><b><?=simon_h((string)$health['score'])?>%</b><span><?=$ready?> of <?=count($modules)?> modules database-ready</span></div></section><section class="cards"><?php foreach(['Projects'=>$metrics['projects'],'Registered files'=>$metrics['files'],'5W1H events'=>$metrics['events'],'Active jobs'=>$metrics['jobs'],'Critical findings'=>$metrics['critical'],'Pending approvals'=>$metrics['approvals'],'Digital Twin entities'=>$metrics['entities'],'Graph nodes'=>$metrics['nodes']] as $k=>$v):?><article><span><?=simon_h($k)?></span><strong><?=$v?></strong></article><?php endforeach;?></section><section class="columns"><article class="panel"><h3>Module readiness</h3><?php foreach($modules as $m):?><a class="row" href="modules.php"><span><b><?=simon_h($m['name'])?></b><small><?=simon_h($m['current_state'])?></small></span><em class="pill <?=$m['status']==='ready'?'ok':'bad'?>"><?=simon_h($m['status'])?></em></a><?php endforeach;?></article><article class="panel"><h3>Recent event stream</h3><?php if(!$events):?><p class="muted">No database events yet.</p><?php endif;?><?php foreach($events as $e):?><div class="event"><b><?=simon_h((string)$e['event_type'])?></b><p><?=simon_h((string)($e['summary']??''))?></p><small><?=simon_h((string)$e['occurred_at'])?> ยท risk <?=simon_h((string)$e['risk'])?></small></div><?php endforeach;?></article></section></main></body></html>
Save file
Quick jump
open a path
Open