29 lines
1.7 KiB
PHP
29 lines
1.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Server Error - ScoutIQ</title>
|
|
<link rel="stylesheet" href="/assets/css/app.css">
|
|
</head>
|
|
<body style="align-items: center; justify-content: center; display: flex; padding: 20px; min-height: 100vh;">
|
|
<div class="glass-panel" style="max-width: 500px; width: 100%; padding: 50px; text-align: center; display: flex; flex-direction: column; gap: 30px;">
|
|
<span style="font-size: 5rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: 'Outfit';">500</span>
|
|
<h1 style="font-size: 1.8rem; font-weight: 700;">System Server Error</h1>
|
|
<p style="color: var(--text-muted); font-size: 1rem; line-height: 1.6;"><?= isset($message) ? $this->escape($message) : 'A critical exception has occurred on the application server.' ?></p>
|
|
<?php
|
|
$isDebug = filter_var($_ENV['APP_DEBUG'] ?? $_SERVER['APP_DEBUG'] ?? getenv('APP_DEBUG') ?? false, FILTER_VALIDATE_BOOLEAN);
|
|
if ($isDebug && isset($exception)):
|
|
?>
|
|
<pre style="text-align: left; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 8px; overflow-x: auto; font-family: monospace; font-size: 0.85rem; color: #ff6b6b; max-height: 250px; margin-top: 15px;">
|
|
<?= $this->escape($exception->getMessage()) ?>
|
|
in <?= $this->escape($exception->getFile()) ?>:<?= $exception->getLine() ?>
|
|
|
|
<?= $this->escape($exception->getTraceAsString()) ?>
|
|
</pre>
|
|
<?php endif; ?>
|
|
<a href="/" class="btn btn-primary" style="align-self: center;">Return Home</a>
|
|
</div>
|
|
</body>
|
|
</html>
|