= 1073741824) { $bytes = number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { $bytes = number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { $bytes = number_format($bytes / 1024, 2) . ' KB'; } elseif ($bytes > 1) { $bytes = $bytes . ' bytes'; } elseif ($bytes == 1) { $bytes = $bytes . ' byte'; } else { $bytes = '0 bytes'; } return $bytes; } $file_alias = $_GET['i']; $fileeee_uid = $_GET['z']; if(mysqli_num_rows($query = mysqli_query($conx, "SELECT cloud_size,file_name,filetype FROM image_uploads WHERE file_alias='$file_alias' && uid_doublecheck='$fileeee_uid'")) == '0') { echo "error"; } $fetch = mysqli_fetch_assoc($query); $file_name = $fetch['file_name']; $file_type = $fetch['filetype']; $file_cloudsz = $fetch['cloud_size']; if($file_type == 'Video') { $file_location = "https://misdew.com/img/uploads/v/$file_name"; echo ""; echo "
"; $vidend = "[/video]"; echo ""; $video_file = "../img/uploads/v/$file_name"; $file_sizee = filesize($video_file); $file_sizee = formatSizeUnits($file_sizee); if($file_cloudsz != '') { echo "
This file takes up ~$file_sizee of your Cloud storage.
"; }} if($file_type == 'Image') { $file_location = "https://misdew.com/img/uploads/$file_name"; echo ""; echo "
"; $imgend = "[/img]"; echo ""; $image_file = "../img/uploads/$file_name"; $file_sizee = filesize($image_file); $file_sizee = formatSizeUnits($file_sizee); if($file_cloudsz != '') { echo "
This file takes up ~$file_sizee of your Cloud storage.
"; } $exif = @exif_read_data($image_file, 0, true); $brand = $exif["IFD0"]["Make"]; $camera = $exif["IFD0"]["Model"]; $software = $exif["IFD0"]["Software"]; $filesize = $exif["FILE"]["FileSize"]; $date_time = $exif["IFD0"]["DateTime"]; $width = $exif["COMPUTED"]["Width"]; $height = $exif["COMPUTED"]["Height"]; $aperture = $exif["COMPUTED"]["ApertureFNumber"]; $shutter_speed = $exif["EXIF"]["ExposureTime"]; $iso = $exif["EXIF"]["ISOSpeedRatings"]; $focal_length = $exif["EXIF"]["FocalLength"]; $lens = $exif["EXIF"]["UndefinedTag:0xA434"]; $fl_calc = eval('return ' . $focal_length . ';'); $focal_length_mm = "$fl_calc"; $exiiif = @exif_read_data($image_file); $lat = $exiiif["GPSLatitude"]; if($brand != '') { $brand = "
Device: $brand
"; } if($camera != '') { $camera = "Model: $camera
"; } if($software != '') { $software = "Software: $software
"; } if($width != '') { $size = "
Resolution: $height x $width
"; } if($filesize != '') { $filesize = "File Size: $filesize
"; } if($date_time != '') { $date_time = "Date / Time: $date_time
"; } if($aperture != '') { $aperture = "Aperture: $aperture
"; } if($shutter_speed != '') { $shutter_speed = "Shutter Speed: $shutter_speed
"; } if($iso != '') { $iso = "ISO: $iso
"; } if($focal_length != '') { $focal_length = "Focal Length: $focal_length
"; } if($focal_length_mm != 0) { $focal_length_mm = "Focal Length (mm): $focal_length_mm mm
"; } if($lens != '') { $lens = "Lens: $lens
"; } if($lat != '') { $lat = "

There are GPS location coordinates attached to this file.
Anyone with access to this file can see the GPS coordinates.
We highly advise that you delete this photo for your privacy.
"; } echo "
If there is any EXIF/metadata for this image, it will be shown below. $lat$brand$camera$software$size$filesize$date_time$aperture$shutter_speed$iso$focal_length$focal_length_mm$lens
"; } ?>