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,362
Folders
428
Scanned Size
3.85 GB
PHP Files
949
Editable Text Files
12,618
File viewer
guarded to /htdocs
/si/phone/backup-save.php
<?php declare(strict_types=1); header('Content-Type: text/xml; charset=UTF-8'); header('Cache-Control: no-store'); function xml_escape(string $value): string { return htmlspecialchars($value, ENT_XML1 | ENT_QUOTES, 'UTF-8'); } $speech = trim((string)($_POST['SpeechResult'] ?? '')); $caller = trim((string)($_POST['From'] ?? $_POST['Caller'] ?? 'unknown')); $callSid = trim((string)($_POST['CallSid'] ?? '')); $confidence = trim((string)($_POST['Confidence'] ?? '')); $logDirCandidates = [ dirname(__DIR__, 3) . '/_simon_private/logs', dirname(__DIR__, 3) . '/_logs', sys_get_temp_dir() . '/si-backup', ]; $logDir = ''; foreach ($logDirCandidates as $candidate) { if ((is_dir($candidate) || @mkdir($candidate, 0700, true)) && is_writable($candidate)) { $logDir = $candidate; break; } } if ($logDir !== '') { $entry = [ 'time' => gmdate('c'), 'caller' => $caller, 'call_sid' => $callSid, 'confidence' => $confidence, 'request' => $speech, 'mode' => 'phone_backup', ]; @file_put_contents( $logDir . '/phone-backup-' . gmdate('Y-m-d') . '.jsonl', json_encode($entry, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND | LOCK_EX ); } echo '<?xml version="1.0" encoding="UTF-8"?>'; if ($speech === '') { $recordUrl = 'https://www.gaylordsinclair.com/si/phone/voicemail.php'; echo '<Response>'; echo '<Say voice="Polly.Matthew">I did not receive your spoken request. Please leave a complete recorded message after the tone.</Say>'; echo '<Redirect method="POST">' . xml_escape($recordUrl) . '</Redirect>'; echo '</Response>'; exit; } echo '<Response>'; echo '<Say voice="Polly.Matthew">Your request has been safely received by SI backup operations. Thank you. Goodbye.</Say>'; echo '<Hangup />'; echo '</Response>';
Save file
Quick jump
open a path
Open