- Audit log: every admin_log entry is also stored permanently in the database (admin/audit.php, audit.view) - Rate limits per account, login throttling per IP (not per account), emergency lock after mass deletions, force logout / lock in user management - Comments under gallery pictures (picture page, report button, owner can disable them) - Moderation: new members, links, reported content and a "moderate everything" switch go to the approval list (moderation.php) - Every uploaded image is re-encoded (strips appended code and EXIF data) - Custom 404 page, also shown for pages without permission Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
29 lines
1.3 KiB
PHP
29 lines
1.3 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="panel not-found">
|
|
<div class="not-found-code" aria-hidden="true">404</div>
|
|
<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>
|
|
<?php include __DIR__ . '/footer.php'; ?>
|