summaryrefslogtreecommitdiff
path: root/header.php
diff options
context:
space:
mode:
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>