summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/index.php b/index.php
index 4256099..5a00c47 100644
--- a/index.php
+++ b/index.php
@@ -2,6 +2,7 @@
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/partials.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/utils.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/config.php';
+include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/alert.php';
$user = $_SESSION['user'] ?: null;
?>
@@ -16,9 +17,30 @@ $user = $_SESSION['user'] ?: null;
<body>
<main>
<?php html_navbar(); ?>
+ <?php display_alert(); ?>
<?php if (isset($user)): ?>
- <h1>Hey, <?= $user['username'] ?></h1>
+ <div>
+ <h1>Account information</h1>
+ <table>
+ <tr>
+ <th>Username</th>
+ <td><?= $user['username'] ?></td>
+ </tr>
+ <tr>
+ <th>Password</th>
+ <td>*****</td>
+ </tr>
+ <tr>
+ <th>Joined</th>
+ <td><?= $user['joined_at'] ?></td>
+ </tr>
+ <tr>
+ <th></th>
+ <td><a href="/account/edit.php"><button>Edit</button></a></td>
+ </tr>
+ </table>
+ </div>
<?php else: ?>
<div class="row gap-16">
<section class="column gap-16 grow">