Could not find image with ID: ".$_GET['id']."

"; // Replacement "no image" image and description $image_path = "assets/no_image.png"; $image_alt = "No image could be found, sowwy"; } } else { // No ID toast //echo "

No ID present

"; // Replacement "no image" image and description //$image_path = "assets/no_image.png"; //$image_alt = "No image could be found, sowwy"; } /* |------------------------------------------------------------- | Get all user details |------------------------------------------------------------- | This gets the user info from the image |------------------------------------------------------------- */ if (isset($image['author'])) { $user = get_user_info($conn, $image['author']); } /* |------------------------------------------------------------- | Check user privilge |------------------------------------------------------------- | This requires the user to be logged in or an admin |------------------------------------------------------------- */ if (image_privilage($image['author']) || is_admin($_SESSION['id'])) { $privilaged = True; } else { $privilaged = False; } include"ui/nav.php"; ?>
' src='' alt=''>

Description

".$image_alt."

"; } else { echo "

No description provided

"; } ?>

Details

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

"; } else { echo "

Author: Deleted User

"; } } else { echo "

Author: No author

"; } // Image ID echo "

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

"; // File name if (strlen($image['imagename']) > 30) { echo "

File Name: ".trim(substr($image['imagename'], 0, 30))."...

"; } else { echo "

File Name: ".$image['imagename']."

"; } // File extention echo "

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

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

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

"; // Image Upload date echo "

Last updated: ".$image['upload']." (+0)

"; // Image download echo "Download image"; ?>

Tags

".$tag."

"; } } else { echo "

No tags present

"; } ?>

Danger zone

"; } ?>