blob: 45ec7e67b3ad4aee071ee48f1e843f068b9112d2 (
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>
|