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 .
|
|
|
|
"<h1>Hey there ". $user['display_name'] ."!</h1>";
|