blob: be15ba4be069d478694edcbdb072e0860453c5c6 (
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 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>
|