diff options
Diffstat (limited to 'templates/header.php')
-rw-r--r-- | templates/header.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/header.php b/templates/header.php new file mode 100644 index 0000000..526f63b --- /dev/null +++ b/templates/header.php @@ -0,0 +1,14 @@ +<h1>cflip.net forum<sup style="font-size: small;">beta</sup></h1> +[<a href="/forum/">Home</a>] +[<a href="/forum/all.php">All Threads</a>] +[<a href="/forum/all-posts.php">All Posts</a>] +[<a href="/forum/create_thread.php">Create a thread</a>] +<span style="float:right;"> + <?php + if (isset($_SESSION['signed_in'])) { + echo '[<a href="/forum/user/'. $_SESSION['user_name'] .'">' . $_SESSION['user_name'] . '\'s Profile</a>] [<a href="includes/signout_inc.php">Log out</a>]'; + } else { + echo '<a class="nav_button" href="signin.php">Sign in</a> or <a class="nav_button" href="register.php">Register an account</a>'; + } + ?> +</span>
\ No newline at end of file |