added admin page

This commit is contained in:
Felix Ivo
2025-07-07 14:42:34 +02:00
parent c5ebde8b20
commit 9bca8fd1d1
4 changed files with 167 additions and 1 deletions

View File

@@ -16,6 +16,9 @@
<ul>
<li><a href="?controller=Welcome&do=showWelcome">Welcome!</a></li>
<li><a href="?controller=Notes&do=showNotes">Notes</a></li>
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin'): ?>
<li><a href="?controller=Notes&do=fileManager">File Manager</a></li>
<?php endif; ?>
</ul>
</nav>
@@ -25,7 +28,6 @@
<form id="logout-form" method="POST" style="display: inline;">
<a class="icon-button" href="?controller=User&do=logoutUser"></a>
</form>
<!-- <button class="icon-button" title="More options">⋮</button> -->
</div>
<?php else: ?>
<div class="user-info">