Aggiunta "badge" admin in pagina account

This commit is contained in:
2026-04-08 10:43:18 +02:00
parent c0201994b2
commit 0956cf9a80
+1 -1
View File
@@ -42,7 +42,7 @@ if ($result === false) {
</ul> </ul>
</div> </div>
<div class="my-container"> <div class="my-container">
<h1>Account di <?php echo htmlspecialchars($_SESSION['user']); ?></h1> <h1>Account di <?php echo htmlspecialchars($_SESSION['user']); ?><?php if ($_SESSION['role'] == 'admin') { echo ' (Admin)'; } ?></h1>
<a href="deleteAccount.php" style="padding: 8px 16px; background-color: #dc3545; color: white; border: none; border-radius: 4px; cursor: pointer;">Elimina account</a> <a href="deleteAccount.php" style="padding: 8px 16px; background-color: #dc3545; color: white; border: none; border-radius: 4px; cursor: pointer;">Elimina account</a>
<br><br> <br><br>
</div> </div>