id/dashboard.php

18 lines
386 B
PHP
Raw 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
}
$doc_title = get_display_name($user['id']) . "'s Dashboard" ;
2024-03-02 12:41:57 +00:00
$output = $output .
"<h1>Hey there ". $user['display_name'] ."!</h1>";