";
+ }
?>
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 "
";
@@ -178,24 +178,24 @@
?>
-
![]()
src='images/'/>
+
![]()
src='usr/images/'/>
";
if ($_GET['mode'] == "edit") {
- echo "
";
+ echo "
";
$image_request = mysqli_query($conn, "SELECT * FROM images ORDER BY id DESC");
while ($image = mysqli_fetch_array($image_request)) {
// Getting thumbnail
- if (file_exists("images/thumbnails/".$image['imagename'])) {
- $image_path = "images/thumbnails/".$image['imagename'];
+ if (file_exists("usr/images/thumbnails/".$image['imagename'])) {
+ $image_path = "usr/images/thumbnails/".$image['imagename'];
} else {
- $image_path = "images/".$image['imagename'];
+ $image_path = "usr/images/".$image['imagename'];
}
-
+
if (in_array($image['id'], $image_list)) {
echo "

@@ -204,7 +204,7 @@
echo "
";
- }
+ }
}
?>
@@ -265,15 +265,15 @@
// Reading images from table
try {
$image_request = mysqli_query($conn, "SELECT * FROM images WHERE id = ".$image);
-
+
while ($image = mysqli_fetch_array($image_request)) {
// Getting thumbnail
- if (file_exists("images/thumbnails/".$image['imagename'])) {
- $image_path = "images/thumbnails/".$image['imagename'];
+ if (file_exists("usr/images/thumbnails/".$image['imagename'])) {
+ $image_path = "usr/images/thumbnails/".$image['imagename'];
} else {
- $image_path = "images/".$image['imagename'];
+ $image_path = "usr/images/".$image['imagename'];
}
-
+
// Check for NSFW tag
if (str_contains($image['tags'], "nsfw")) {
echo "
@@ -301,7 +301,7 @@
?>
";
+ if (is_file("usr/images/pfp/".$user['pfp_path'])) {
+ echo "

";
- $pfp_colour = $make_stuff->get_image_colour("images/pfp/".$user['pfp_path']);
+ $pfp_colour = $make_stuff->get_image_colour("usr/images/pfp/".$user['pfp_path']);
if (empty($pfp_colour)) $pfp_colour = "var(--bg-3)";
?>