id/dashboard.php

44 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2024-03-02 12:41:57 +00:00
<?php
if (empty($_SESSION)) {
http_response_code(307);
header('Location: /signin?callback=/dashboard');
exit();
}
2024-03-02 12:41:57 +00:00
if (!$_SESSION['auth']) {
http_response_code(307);
header('Location: /signin?callback=/dashboard');
exit;
2024-03-02 12:41:57 +00:00
}
?>
2024-03-02 12:41:57 +00:00
<link rel='stylesheet' href='/styles/settings.css' />
2024-03-18 20:11:01 +00:00
<div id="settings_split">
<div id="mini_profile" class="left">
<div class="image_container" data-backgroundcolour="white">
<img src='<?= get_avatar_url($user['id']) ?>' />
2024-03-18 20:11:01 +00:00
</div>
<div class="texts">
<span class="displayname"><?= htmlspecialchars(get_display_name($user['id'], false)) ?></span>
<span class="id bcid"><?= format_bcid($user['id']) ?></span>
2024-03-18 20:11:01 +00:00
</div>
</div>
<div class='right tiles'>
<a href="/settings" class="tile">
<div class="wrapper"> <!-- SUPERIMPORTANTBECAUSE IM BAD AT CSS -->
<span class="fa-solid fa-cog icon"></span>
<span class="text">Settings</span>
</div>
</a>
<a href="/profile" class="tile">
<div class="wrapper"> <!-- SUPERIMPORTANTBECAUSE IM BAD AT CSS -->
<span class="fa-solid fa-id-card-clip icon"></span>
<span class="text">Profile</span>
</div>
</a>
2024-03-18 20:11:01 +00:00
</div>
</div>