get_image_info($conn, $_GET['id']); // Check if image is avalible if (!empty($image['imagename']) && isset($image['imagename'])) { $image_present = True; } else { ?> get_user_info($conn, $image['author']); if (isset($user['username'])) { $image_author = $user['username']; } else { $image_author = "Deleted User"; } } else { $image_author = "No author"; } /* |------------------------------------------------------------- | Check if image path is good |------------------------------------------------------------- */ if (isset($image['imagename'])) { $image_path = "images/".$image['imagename']; $image_alt = $image['alt']; $image_colour = $make_stuff->get_image_colour($image_path); if (!empty($image_colour)) { $image_colour = $image_colour; } else { $image_colour = "var(--bg)"; } ?> image_privilage($image['author']) || $user_info->is_admin($conn, $_SESSION['id'])) { $privilaged = True; } else { $privilaged = False; } echo "
"; if (is_file("images/previews/".$image['imagename'])) { echo "
".$image_alt."
"; } else { echo "
".$image_alt."
"; } ?>

Description

Details

Author: ".$image_author."

"; } else { echo "

Author: ".$image_author."

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

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

"; } else { echo "

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

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

Uploaded at: ".$upload_time->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

"; } ?>

Danger zone

is_admin($conn, $_SESSION['id'])) { ?> "; } /* |------------------------------------------------------------- | End of displaying all user info |------------------------------------------------------------- */ } ?>