feat: Implementiere Admin-Menü und Zugriffsbeschränkung

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
torsten 2026-10-04 11:27:46 +02:00
parent e5fbc9c8ee
commit cf10316ae6
4 changed files with 63 additions and 1 deletions

View file

@ -15,7 +15,9 @@
<body>
<nav>
<a href="/">Start</a>
<a href="#">Administration</a>
<?php if (App\Core\Auth::isAdmin()): ?>
<a href="/index.php?page=admin">Administration</a>
<?php endif; ?>
<a href="#">Tipps</a>
<a href="/index.php?page=ranking">Rangliste</a>
<a href="#">Info</a>