summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-03-21 10:54:47 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-03-21 10:54:47 -0600
commit2805ef7311eeb028cd48bffe04a705676c4682be (patch)
tree59c00c77d5bd59ea89967f18d5bcd6d1b5ad6e01 /templates
parentf83530a122119d7f69812493f9c2f4987ccb2065 (diff)
big changes pt1
Diffstat (limited to 'templates')
-rw-r--r--templates/header.php14
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