summaryrefslogtreecommitdiff
path: root/header.php
blob: 6e13d147780a7d4391225c3cc24a3338ddd7a88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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<sub style="font-size: small;">beta</sub></h1>
	<nav>
		<a href="index.php">Home</a>
		<a href="create_thread.php">Create a thread</a>

		<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>';
			} else {
				echo '<a href="signin.php">Sign in</a> or <a href="register.php">Register an account</a>';
			}
			?>
		</div>
	</nav>