mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-30 15:23:13 +00:00
Finished profile page
This commit is contained in:
parent
1b8e92d144
commit
36f76ac2fd
7 changed files with 215 additions and 30 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue