2024-03-02 12:41:57 +00:00
|
|
|
<?php
|
|
|
|
|
2024-03-17 15:48:32 +00:00
|
|
|
if (empty($_SESSION)) {
|
|
|
|
http_response_code(307);
|
|
|
|
header('Location: /signin?callback=/dashboard');
|
|
|
|
exit();
|
|
|
|
}
|
2024-03-02 12:41:57 +00:00
|
|
|
if (!$_SESSION['auth']) {
|
2024-03-17 15:48:32 +00:00
|
|
|
http_response_code(307);
|
|
|
|
header('Location: /signin?callback=/dashboard');
|
|
|
|
exit;
|
2024-03-02 12:41:57 +00:00
|
|
|
}
|
|
|
|
|
2024-03-29 22:04:20 +00:00
|
|
|
?>
|
2024-03-02 12:41:57 +00:00
|
|
|
|
2024-03-29 22:04:20 +00:00
|
|
|
<link rel='stylesheet' href='/styles/settings.css' />
|
2024-03-18 20:11:01 +00:00
|
|
|
|
2024-03-29 22:04:20 +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>
|
2024-03-29 22:04:20 +00:00
|
|
|
<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>
|
2024-03-29 22:04:20 +00:00
|
|
|
<div class='right tiles'>
|
2024-04-28 13:44:19 +00:00
|
|
|
<a href="/settings" class="tile">
|
2024-03-29 22:04:20 +00:00
|
|
|
<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>
|