Implementazione base pagina account

This commit is contained in:
2026-04-08 10:28:29 +02:00
parent 8a087a0924
commit 2886c19b31
2 changed files with 71 additions and 1 deletions
+15 -1
View File
@@ -34,7 +34,21 @@ if ($result === false) {
</div>
</header>
<?php if (isset($_SESSION['user'])): ?>
<div class="account-layout">
<div class="my-sidebar">
<ul>
<li><a href="account.php">Il mio account</a></li>
</ul>
</div>
<div class="my-container">
<h1>Il mio account</h1>
<p><strong>Nome utente:</strong> <?php echo htmlspecialchars($_SESSION['user']); ?></p>
</div>
</div>
<?php else: ?>
<?php header('Location: login.php'); ?>
<?php endif; ?>
<?php $conn->close(); ?>
</body>