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,479
Folders
443
Scanned Size
3.86 GB
PHP Files
996
Editable Text Files
12,726
File viewer
guarded to /htdocs
/si/business/email-test.php
<?php declare(strict_types=1); ini_set('display_errors','1'); ini_set('display_startup_errors','1'); error_reporting(E_ALL); ob_start(); if(session_status()!==PHP_SESSION_ACTIVE){ session_name('SI_OPS'); session_start(['cookie_httponly'=>true,'cookie_secure'=>true,'cookie_samesite'=>'Strict']); } function si_email_test_page(bool $ok,string $message,string $detail='',bool $showLogin=false):void{ while(ob_get_level()>0)ob_end_clean(); http_response_code($ok?200:500); header('Content-Type: text/html; charset=UTF-8'); $state=$ok?'SUCCESS':'ACTION NEEDED'; $color=$ok?'#34d399':'#fb7185'; $form=$showLogin?'<form method="post"><label for="access_key">Operations dashboard access key</label><input id="access_key" name="access_key" type="password" required autofocus><button type="submit">Authenticate and send test</button></form>':''; echo '<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>SIMON Email Test</title><style>body{margin:0;min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,#172554,#050816 55%);color:#eef2ff;font:16px system-ui}.card{width:min(620px,90vw);padding:28px;border:1px solid '.$color.';border-radius:20px;background:#111827;box-shadow:0 24px 80px #0009}h1{margin:8px 0}.state{font-weight:900;color:'.$color.'}.detail{padding:12px;border-radius:10px;background:#060914;color:#cbd5e1;overflow-wrap:anywhere}label{display:block;margin:18px 0 7px}input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #334155;border-radius:10px;background:#060914;color:#fff}button,.back{display:inline-block;margin-top:14px;padding:11px 16px;border:0;border-radius:10px;background:linear-gradient(120deg,#67e8f9,#a78bfa);color:#07101b;text-decoration:none;font-weight:800;cursor:pointer}</style></head><body><main class="card"><div class="state">'.$state.'</div><h1>SIMON Email Diagnostic</h1><p>'.htmlspecialchars($message,ENT_QUOTES,'UTF-8').'</p>'.($detail!==''?'<div class="detail">'.htmlspecialchars($detail,ENT_QUOTES,'UTF-8').'</div>':'').$form.'<br><a class="back" href="../operations/dashboard.php">Return to dashboard</a></main></body></html>'; exit; } register_shutdown_function(static function():void{ $e=error_get_last(); if($e!==null&&in_array((int)$e['type'],[E_ERROR,E_PARSE,E_CORE_ERROR,E_COMPILE_ERROR],true)){ si_email_test_page(false,'PHP stopped while loading the SIMON email test.',$e['message'].' — '.basename((string)$e['file']).' line '.$e['line']); } }); try{ require_once __DIR__.'/email-service.php'; require_once __DIR__.'/security.php'; $authorized=($_SESSION['si_ops']??false)===true; if(!$authorized&&($_SERVER['REQUEST_METHOD']??'GET')==='POST'){ $expected=defined('SI_OPERATIONS_DASHBOARD_KEY')?(string)SI_OPERATIONS_DASHBOARD_KEY:(defined('SI_SMS_DASHBOARD_KEY')?(string)SI_SMS_DASHBOARD_KEY:''); $provided=trim((string)($_POST['access_key']??'')); if($expected!==''&&$provided!==''&&hash_equals($expected,$provided)){ session_regenerate_id(true);$_SESSION['si_ops']=true;$authorized=true; }else si_email_test_page(false,'The dashboard access key was not accepted.','Use the same access key used for SIMON Operations.',true); } if(!$authorized)si_email_test_page(false,'Authenticate before sending the test email.','The access key is checked privately and is not written to the email log.',true); $to=defined('SI_EMAIL_ALERT_TO')?(string)SI_EMAIL_ALERT_TO:'admin@gaylordsinclair.com'; $result=si_email_send($to,'SIMON email diagnostic','SI successfully connected to the private IONOS SMTP service at '.date(DATE_RFC2822).'.'); if($result['ok']??false)si_email_test_page(true,'IONOS accepted the test email. Check the inbox and spam folder for the SIMON diagnostic message.','Recipient: '.$to); si_email_test_page(false,'IONOS did not accept the test email.','Build 2026.07.18-r2 — '.(string)($result['error']??'Unknown SMTP error.')); }catch(Throwable $e){ si_email_test_page(false,'The SIMON email test encountered a PHP error.',$e->getMessage().' — '.basename($e->getFile()).' line '.$e->getLine()); }
Save file
Quick jump
open a path
Open