diff --git a/account.php b/account.php index c798579..37d3831 100644 --- a/account.php +++ b/account.php @@ -41,8 +41,8 @@ "; + if (is_file("usr/images/pfp/".$profile_info['pfp_path'])) { + echo ""; } else { echo ""; } @@ -251,8 +251,8 @@ if ($user['admin'] || $user['id'] == 1) { echo "
"; } else { - echo "
"; - } + echo "
"; + } ?>

diff --git a/app/account/account.php b/app/account/account.php index 6509f8b..5f858e3 100644 --- a/app/account/account.php +++ b/app/account/account.php @@ -1,6 +1,6 @@ is_admin($conn, $id) == false) { - mysqli_query($conn,"UPDATE users SET admin = 1 WHERE id = 1"); - } } else { ?> Images: ".count(explode(" ", $group['image_list']))."

"; $upload_time = new DateTime($group['created_on']); - echo "

Created at: ".$upload_time->format('d/m/Y H:i:s T')."

"; + echo "

Created at: ".$upload_time->format(format: 'd/m/Y H:i:s T')."

"; ?> @@ -101,7 +101,7 @@ \ "; flyoutShow(header, description, actionBox); - + $("#titleForm").submit(function(event) { event.preventDefault(); var deleteSubmit = $("#deleteSubmit").val(); @@ -125,7 +125,7 @@ \ "; flyoutShow(header, description, actionBox); - + $("#titleForm").submit(function(event) { event.preventDefault(); var titleText = $("#titleText").val(); @@ -143,13 +143,13 @@ echo "
"; $image_request = mysqli_query($conn, "SELECT * FROM images"); - echo "
"; + echo ""; while ($image = mysqli_fetch_array($image_request)) { if (in_array($image['id'], $image_list)) { echo ""; } else { echo ""; - } + } } echo "
"; @@ -178,24 +178,24 @@ ?>
- src='images/'/> + src='usr/images/'/>
"; if ($_GET['mode'] == "edit") { - echo "