summaryrefslogtreecommitdiff
path: root/includes/templates/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/templates/header.php')
-rw-r--r--includes/templates/header.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/templates/header.php b/includes/templates/header.php
new file mode 100644
index 0000000..4eb17e3
--- /dev/null
+++ b/includes/templates/header.php
@@ -0,0 +1,14 @@
+<h1>cflip.net forum<sup style="font-size: small;">beta</sup></h1>
+[<a href="/">Home</a>]
+[<a href="/search.php?type=thread&sort=lr">All Threads</a>]
+[<a href="/search.php?type=post&sort=cd">All Posts</a>]
+[<a href="/create_thread.php">Create a thread</a>]
+<span style="float:right;">
+ <?php
+ if (isset($_SESSION['signed_in'])) {
+ echo '[<a href="viewuser.php?id='. $_SESSION['user_id'] .'">' . $_SESSION['user_name'] . '\'s Profile</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>]';
+ }
+ ?>
+</span>