Manage users

This commit is contained in:
2025-10-02 09:17:32 +02:00
parent 8a37f24b40
commit b599691c2e
3 changed files with 121 additions and 1 deletions

View File

@@ -31,7 +31,12 @@ if (!isset($_SESSION['admin'])) {
<a href="timetable.php">Gestisci Orario</a>
<?php
if ($_SESSION['auth_type'] === 'local') {
echo '<a href="changepassword.php">Cambia Password</a>';
echo '<a href="password.php">Cambia Password</a>';
}
?>
<?php
if ($_SESSION['auth_type'] === 'local' && $_SESSION['admin'] === 'admin') {
echo '<a href="users.php">Gestisci Amministratori</a>';
}
?>
</p>