mirror of
https://codeberg.org/ThisIsMiseryy/techstore
synced 2026-05-14 14:52:04 +00:00
Implementazione base pagina account
This commit is contained in:
+15
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user