Finished profile page

This commit is contained in:
Michał Gdula 2022-09-22 15:51:22 +00:00
parent 1b8e92d144
commit 36f76ac2fd
7 changed files with 215 additions and 30 deletions

View file

@ -32,8 +32,12 @@
<div class="profile-root">
<?php
if (!empty($user)) {
if (is_file("images/pfp/".$user['pfp_path'])) {
echo "<img src='images/pfp/".$user['pfp_path']."'>";
} else {
echo "<img src='assets/no_image.png'>";
}
?>
<img src='assets/no_image.png'>
<h2><?php echo $user['username']; ?></h2>
<?php if ($user_info->is_admin($conn, $user['id'])) echo "<p style='color: var(--accent);'>Admin</p>"; ?>
<div class="profile-info">