get_image_info($conn, $_GET['id']); if (empty($image) || !isset($image)) { $_SESSION['err'] = "Image could not be found!"; header("Location: index.php"); } $image_path = "usr/images/".$image['imagename']; $image_alt = $image['alt']; $image_colour = $make_stuff->get_image_colour($image_path); if (empty($image_colour)) $image_colour = "var(--bg)"; ?> get_user_info($conn, $image['author']); ?> "; if (is_file("usr/images/previews/".$image['imagename'])) { echo "
".$image_alt."
"; } else { echo "
".$image_alt."
"; } ?>

Description

No description provided.

"; } else { echo "

".$image['alt']."

"; } ?>

Details

Author: No author

"; } else { if (isset($author['username'])) { echo "

Author: ".$author['username']."

"; } else { echo "

Author: Deleted user

"; } } // Image ID if ($image['id'] == 69) { echo "

ID: ".$image['id'].", nice

"; } else { echo "

ID: ".$image['id']."

"; } $upload_date = new DateTime($image['upload_date']); echo "

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

"; ?>

Last Modified: time($image['last_modified']); ?>

File Name: ".$image_pathinfo['filename']."

"; // File extention echo "

File Type: ".pathinfo($image['imagename'], PATHINFO_EXTENSION)."

"; // Image resolution list($width, $height) = getimagesize($image_path); echo "

Image resolution: ".$width."x".$height."

"; function human_filesize($bytes, $decimals = 2) { $sz = 'BKMGTP'; $factor = floor((strlen($bytes) - 1) / 3); return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; } echo "

File size: ".human_filesize(filesize($image_path), 2)."

"; ?>
' download=''>Download image

Tags

".$tag."

"; } else { echo "

".$tag."

"; } } } else { echo "

No tags present

"; } ?>
image_privilage($image['author']) || $user_info->is_admin($conn, $_SESSION['id'])) { ?>

Danger zone

is_admin($conn, $_SESSION['id'])) { ?> "; } ?>