Changeset 10157 for trunk/admin
- Timestamp:
- Apr 8, 2011, 11:09:13 AM (13 years ago)
- Location:
- trunk/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upload.inc.php
r9952 r10157 348 348 $update['has_high'] = 'true'; 349 349 $update['high_filesize'] = $high_infos['filesize']; 350 $update['high_width'] = $high_infos['width']; 351 $update['high_height'] = $high_infos['height']; 350 352 } 351 353 else … … 353 355 $update['has_high'] = 'false'; 354 356 $update['high_filesize'] = null; 357 $update['high_width'] = null; 358 $update['high_height'] = null; 355 359 } 356 360 … … 388 392 $insert['has_high'] = 'true'; 389 393 $insert['high_filesize'] = $high_infos['filesize']; 394 $insert['high_width'] = $high_infos['width']; 395 $insert['high_height'] = $high_infos['height']; 390 396 } 391 397 -
trunk/admin/site_reader_local.php
r8728 r10157 155 155 global $conf; 156 156 157 $update_fields = array('filesize', 'width', 'height', 'high_filesize' );157 $update_fields = array('filesize', 'width', 'height', 'high_filesize', 'high_width', 'high_height'); 158 158 159 159 if ($conf['use_exif']) … … 200 200 { 201 201 $high_file = dirname($file).'/pwg_high/'.basename($file); 202 203 202 $data['high_filesize'] = floor(filesize($high_file)/1024); 203 204 if ($high_size = @getimagesize($high_file)) 205 { 206 $data['high_width'] = $high_size[0]; 207 $data['high_height'] = $high_size[1]; 208 } 204 209 } 205 210 -
trunk/admin/site_reader_remote.php
r8728 r10157 44 44 ); 45 45 $this->metadata_attributes = array( 46 'filesize', 'width', 'height', 'high_filesize' 46 'filesize', 'width', 'height', 'high_filesize', 'high_width', 'high_height', 47 47 ); 48 48
Note: See TracChangeset
for help on using the changeset viewer.