summaryrefslogtreecommitdiff
path: root/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'header.php')
-rw-r--r--header.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/header.php b/header.php
deleted file mode 100644
index c0ccd5c..0000000
--- a/header.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-session_start();
-?>
-
-<!DOCTYPE html>
-<html>
-<head>
- <title>cflip.net forum</title>
- <link rel="stylesheet" href="styles/style.css">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-</head>
-<body>
-<div id="wrapper">
- <h1 id="title">cflip.net forum<sup style="font-size: small;">beta</sup></h1>
- <nav>
- <a class="nav_button" href="index.php">Home</a>
- <a class="nav_button" href="create_thread.php">Create a thread</a>
-
- <div id="user">
- <?php
- if (isset($_SESSION['signed_in'])) {
- echo 'Signed in as <b><a href="user.php?id='. $_SESSION['user_id'] .'">' . $_SESSION['user_name'] . '</a></b> <a class="nav_button" 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>';
- }
- ?>
- </div>
- </nav>