blob: 8187cb82ceb4e9e466f49469e51c927b45bc335a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<header>
<h1>cflip.net forum</h1>
<p>
[<a href="/">Home</a>]
[<a href="/create_thread.php">Create a thread</a>]
<span style="float:right;">
<?php
include_once './includes/Session.php';
include_once './includes/model/User.php';
if (Session::get()->is_signed_in()) {
$user = Session::get()->get_current_user();
echo '[<a href="/viewuser.php?id=' . $user->id . '">' . $user->name . '\'s Profile</a>] [<a href="signout.php">Log out</a>]';
} else {
echo '[<a href="/signin.php">Sign in</a>] or [<a href="/register.php">Register an account</a>]';
}
?>
</span>
</p>
</header>
<hr>
|