2023-11-19 12:24:38 +00:00
|
|
|
|
2024-03-17 15:48:32 +00:00
|
|
|
<link rel="stylesheet" href="/styles/profiles.css" />
|
2023-11-19 12:24:38 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!$_SESSION['auth']) {
|
|
|
|
header('Location: /signin?callback=/profile');
|
2024-03-17 15:48:32 +00:00
|
|
|
exit();
|
2023-11-19 12:24:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$profile = db_execute("SELECT * FROM `profiles` WHERE id = ? LIMIT 1", [$user['id']]);
|
|
|
|
|
|
|
|
if (empty($profile)) {
|
|
|
|
$profile = [
|
2024-02-20 19:49:42 +00:00
|
|
|
"id" => "9999999",
|
2023-11-19 12:24:38 +00:00
|
|
|
"public_display_name" => false,
|
|
|
|
"public_avatar" => false,
|
|
|
|
"description" => null,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|