summaryrefslogtreecommitdiff
path: root/header.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-01-24 13:33:31 -0700
committerGitHub <noreply@github.com>2021-01-24 13:33:31 -0700
commit3b448bc3b3da97e7945dfc0bd05f91aa83d6e862 (patch)
treec0572f1a5da9a95210b18fc5b29f407cd2a4f9c4 /header.php
parentb08ca01d49b3683b62d2d9f2f6fefc1a73da71a0 (diff)
parentd10e573e3e1b4806f9da22aae584a6d75efeb5f2 (diff)
Merge pull request #5 from cflip/change_password
Change password page
Diffstat (limited to 'header.php')
-rw-r--r--header.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/header.php b/header.php
index 6e13d14..675476b 100644
--- a/header.php
+++ b/header.php
@@ -19,10 +19,10 @@ session_start();
<div id="user">
<?php
if (isset($_SESSION['signed_in'])) {
- echo 'Signed in as <b>' . $_SESSION['user_name'] . '</b>. <a href="includes/signout_inc.php">Log out</a>';
+ echo 'Signed in as <a href="user.php?id='. $_SESSION['user_id'] .'">' . $_SESSION['user_name'] . '</a> <a href="includes/signout_inc.php">Log out</a>';
} else {
echo '<a href="signin.php">Sign in</a> or <a href="register.php">Register an account</a>';
}
?>
</div>
- </nav> \ No newline at end of file
+ </nav>