LuminaWebsite/includes/not_found.php
2026-09-22 08:20:29 +02:00

35 lines
1.5 KiB
PHP

<?php
/**
* Inhalt der 404-Seite - ueber show_not_found() (includes/functions.php). Erscheint fuer Seiten,
* die es nicht gibt, UND fuer Seiten ohne Berechtigung: So verraet die Website nicht, welche
* Bereiche (z.B. Admin-Seiten) es gibt.
*/
$pageTitle = 'Seite nicht gefunden';
$notFoundUser = current_user();
$loggedIn = $notFoundUser !== null && $notFoundUser['status'] === 'active';
include __DIR__ . '/header.php';
?>
<div class="not-found">
<div class="not-found-scene" aria-hidden="true">
<div class="not-found-stars"></div>
<div class="not-found-code">404</div>
</div>
<div class="not-found-body">
<p class="not-found-kicker">Verirrt im Abyss</p>
<h1>Hier ist nichts - nicht mal ein Balaur.</h1>
<p class="text-muted">
Die Seite <code><?= e(mb_strimwidth((string) parse_url((string) ($_SERVER['REQUEST_URI'] ?? ''), PHP_URL_PATH), 0, 80, '…')) ?></code>
gibt es nicht - oder du hast (noch) keinen Zugriff darauf. Vielleicht ein Tippfehler oder ein alter Link.
</p>
<div class="actions not-found-actions">
<?php if ($loggedIn): ?>
<a class="button" href="/dashboard.php">Zum Dashboard</a>
<a class="button button-secondary" href="/">Zur Startseite</a>
<?php else: ?>
<a class="button" href="/">Zur Startseite</a>
<a class="button button-secondary" href="/login.php">Anmelden</a>
<?php endif; ?>
</div>
</div>
</div>
<?php include __DIR__ . '/footer.php'; ?>