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
/gaylord/gaylord/install.php
<?php declare(strict_types=1); $done=false;$error=''; if($_SERVER['REQUEST_METHOD']==='POST'){ $h=trim((string)($_POST['host']??''));$port=trim((string)($_POST['port']??'3306'));$n=trim((string)($_POST['database']??''));$u=trim((string)($_POST['username']??''));$p=(string)($_POST['password']??''); try{ if($h===''||$n===''||$u==='')throw new RuntimeException('Host, database, and username are required.'); if(!in_array('mysql',PDO::getAvailableDrivers(),true))throw new RuntimeException('PDO MySQL is not enabled.'); $dsn="mysql:host={$h};port={$port};dbname={$n};charset=utf8mb4"; $pdo=new PDO($dsn,$u,$p,[PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION,PDO::ATTR_EMULATE_PREPARES=>false]); $pdo->exec((string)file_get_contents(__DIR__.'/database/gaylord_chat.sql')); $cfg="<?php declare(strict_types=1); return ".var_export(['dsn'=>$dsn,'db_user'=>$u,'db_pass'=>$p],true)."; "; if(file_put_contents(__DIR__.'/config.local.php',$cfg,LOCK_EX)===false)throw new RuntimeException('Could not write config.local.php.'); @chmod(__DIR__.'/config.local.php',0600);$done=true;}catch(Throwable $e){$error=$e->getMessage();}} ?><!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Install GayLord</title><style>body{margin:0;background:#060810;color:#fff;font:15px system-ui;padding:28px}.box{max-width:660px;margin:auto;background:#101722;border:1px solid #2b3850;border-radius:24px;padding:24px}label{display:grid;gap:7px;margin:14px 0}input{padding:13px;border-radius:13px;border:1px solid #344158;background:#070b12;color:#fff}button{padding:13px 17px;border:0;border-radius:13px;background:#ffd84d;font-weight:900}.err{color:#ff8494}.ok{color:#66f5a0}a{color:#72d7ff}</style></head><body><div class="box"><h1>GayLord MySQL Installer</h1><?php if($done):?><p class="ok">Database connected and schema installed.</p><p><a href="./">Open GayLord</a> ยท <a href="health.php">Run health check</a></p><?php else:?><p>Enter the MySQL values from IONOS.</p><?php if($error):?><p class="err"><?=htmlspecialchars($error)?></p><?php endif;?><form method="post"><label>MySQL host<input name="host" required></label><label>Port<input name="port" value="3306" required></label><label>Database name<input name="database" required></label><label>Username<input name="username" required></label><label>Password<input name="password" type="password"></label><button>Connect and install</button></form><?php endif;?></div></body></html>
Save file
Quick jump
open a path
Open