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-17 15:48:32 +00:00
|
|
|
$doc_title = get_display_name($user['id']) . "'s Dashboard" ;
|
2024-03-02 12:41:57 +00:00
|
|
|
|
2024-03-17 15:48:32 +00:00
|
|
|
$output = $output .
|
2024-03-18 20:11:01 +00:00
|
|
|
"<link rel='stylesheet' href='/styles/settings.css' />
|
|
|
|
|
|
|
|
<div id=\"settings_split\">
|
|
|
|
<div id=\"mini_profile\" class=\"left\">
|
|
|
|
<div class=\"image_container\" data-backgroundcolour=\"white\">
|
|
|
|
<img src='" . get_avatar_url($user['id']) . "' />
|
|
|
|
</div>
|
|
|
|
<div class=\"texts\">
|
|
|
|
<span class=\"displayname\">" . htmlspecialchars(get_display_name($user['id'], false)) . "</span>
|
|
|
|
<span class=\"id bcid\">" . format_bcid($user['id']) . "</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='right'>
|
|
|
|
<h1>". htmlspecialchars(get_display_name($user['id'], false)) ."'s Dashboard</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
";
|