Changeset 22939 for extensions/Crop_Image/admin.php
- Timestamp:
- May 29, 2013, 6:54:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Crop_Image/admin.php
r22847 r22939 2 2 /* 3 3 Plugin Name: Crop Image 4 Version: 2.5. c4 Version: 2.5.d 5 5 Description: Enables to Crop Images already uploaded to the gallery, basic functionality. Tested with v2.5.1, v2.4.6 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=700 … … 38 38 // | Process form | 39 39 // +-----------------------------------------------------------------------+ 40 load_language('plugin.lang', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 40 41 41 42 // cancel crop … … 80 81 sync_metadata(array($row['id'])); 81 82 82 //list($width, $height) = getimagesize($banner['PATH']);83 //$filesize = floor(filesize($banner['PATH'])/1024);84 85 83 $query = 'UPDATE '.IMAGES_TABLE .' 86 84 SET coi=NULL … … 90 88 delete_element_derivatives($row); 91 89 92 $_SESSION['page_infos'][] = l10n('Photo 90 $_SESSION['page_infos'][] = l10n('Photo')." ".l10n('Cropped'); 93 91 redirect($admin_photo_base_url); 94 92 } … … 106 104 // | template init | 107 105 // +-----------------------------------------------------------------------+ 106 108 107 109 108 $template->set_filenames( … … 131 130 if (!pwg_db_num_rows($result)) 132 131 { 133 array_push($page['errors'], l10n('Unknown Photo ID'));132 array_push($page['errors'], l10n('Unknown').' '. l10n('Photo')); 134 133 } 135 134 else
Note: See TracChangeset
for help on using the changeset viewer.