2024-06-27 21:30:56 +00:00
|
|
|
|
|
|
|
<header>
|
|
|
|
<div>
|
|
|
|
<a href="/" id="sitetitle">
|
|
|
|
<span class="bc-1">Bye</span><span class="bc-2">Corps</span><span class="bc-3"> ID</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2024-07-01 21:15:51 +00:00
|
|
|
<div class="section">
|
|
|
|
<?php
|
|
|
|
if ($_SESSION['auth']) {
|
2024-10-29 17:59:36 +00:00
|
|
|
if ($user['is_admin']) {
|
|
|
|
echo '<a class="item" href="/admin">Admin dashboard</a>';
|
|
|
|
}
|
2024-07-03 13:20:39 +00:00
|
|
|
echo '<div class="item">' . get_string("header.hello", ['display_name' => get_user_display_name($_SESSION['id'])]) . '</div>';
|
2024-07-05 11:05:01 +00:00
|
|
|
echo '<a class="item" href="/dashboard">' . get_string('page.dashboard') . '</a>';
|
2024-07-01 21:15:51 +00:00
|
|
|
echo '<div class="item"><a href="/auth/signout">'. get_string('auth.signout') .'</a></div>';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<a href="/auth/signup">' . get_string("auth.signup")
|
|
|
|
. '</a> <a href="/auth/login">'. get_string("auth.login") . '</a>';
|
|
|
|
}
|
|
|
|
?>
|
2024-06-27 21:30:56 +00:00
|
|
|
</div>
|
|
|
|
</header>
|