Changeset 31555 for extensions/read_metadata/admin.php
- Timestamp:
- Apr 18, 2016, 11:06:31 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/read_metadata/admin.php
r31552 r31555 59 59 if (isset($_POST['submitreadmetadata'])){ 60 60 if (isset($_POST['idreadmetadata']) and is_numeric($_POST['idreadmetadata'])){ 61 $query = 'select name,file,path FROM ' . IMAGES_TABLE . ' WHERE id = \''.$_POST['idreadmetadata'].'\';';61 $query = 'select id,name,file,path FROM ' . IMAGES_TABLE . ' WHERE id = \''.$_POST['idreadmetadata'].'\';'; 62 62 $result = pwg_query($query); 63 63 $row = pwg_db_fetch_assoc($result); … … 67 67 redirect($admin_base_url); 68 68 } 69 if(exif_imagetype($filename) != IMAGETYPE_JPEG and exif_imagetype($filename) != IMAGETYPE_TIFF_II and exif_imagetype($filename) != IMAGETYPE_TIFF_MM){ 70 $_SESSION['page_infos'] = array(l10n('This file type isn\'t use metadata')); 71 redirect($admin_base_url); 72 } 73 $rd_image = new SrcImage($row); 69 74 $name=$row['name']; 70 75 $file=$row['file']; … … 74 79 'RM_NAME' => $name, 75 80 'RM_FILE' => $file, 81 'RM_SCR' => DerivativeImage::url(IMG_THUMB, $rd_image), 76 82 )); 77 83 /*IPTC*/
Note: See TracChangeset
for help on using the changeset viewer.