"; // Div Start echo "
Description
"; // Flyout button, not required so must need more information when added echo $action; // Exit button + Div End 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; } ?>No description provided
"; } ?>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"; ?>