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,026
Folders
377
Scanned Size
3.79 GB
PHP Files
791
Editable Text Files
12,310
File viewer
guarded to /htdocs
/simon/api/simon_request.php
<?php declare(strict_types=1); error_reporting(0); ini_set('display_errors', '0'); header('Content-Type: application/json; charset=utf-8'); header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); function simon_json_response(int $code, array $payload): void { http_response_code($code); echo json_encode($payload, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); exit; } if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST') { simon_json_response(405, [ 'status' => 'error', 'message' => 'POST requests only' ]); } $raw = file_get_contents('php://input'); if ($raw === false || trim($raw) === '') { simon_json_response(400, [ 'status' => 'error', 'message' => 'Empty request body' ]); } $data = json_decode($raw, true); if (!is_array($data)) { simon_json_response(400, [ 'status' => 'error', 'message' => 'Invalid JSON' ]); } $command = trim((string)($data['command'] ?? '')); if ($command === '') { simon_json_response(400, [ 'status' => 'error', 'message' => 'Command is required' ]); } $resultMessage = match (strtolower($command)) { 'scan system' => 'System scan queued. Review File Registry and Logs for results.', 'refresh memory' => 'Memory refresh requested. SIMON memory endpoint is active.', 'show status' => 'SIMON status is online and responding normally.', 'run health check' => 'Health check complete. Core modules report OK.', 'list modules' => 'Modules: core, brain, router, security, memory, helpers, settings, secrets.', 'log heartbeat' => 'Heartbeat logged successfully.', default => 'SIMON received command: ' . $command }; simon_json_response(200, [ 'status' => 'success', 'message' => $resultMessage ]);
Save file
Quick jump
open a path
Open