id/profile.php

24 lines
445 B
PHP
Raw Permalink Normal View History

2023-11-19 12:24:38 +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');
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,
];
}
?>