Changeset 2033 in ExiteCMS for trunk/administration/settings_image.php
- Timestamp:
- 11/15/08 20:51:44 (4 years ago)
- Location:
- trunk/administration
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
settings_image.php (modified) (1 diff, 3 props)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration
- Property bugtraq:logregex set to (?:ticket: *|#)(\d+) *(?:, *(\d+))*
- Property bugtraq:url set to http://www.exitecms.org/trac/ticket/%BUGID%
-
trunk/administration/settings_image.php
- Property svn:keywords changed from Rev Author Date Id to Date Revision Author Id
- Property bugtraq:logregex set to (?:ticket: *|#)(\d+) *(?:, *(\d+))*
- Property bugtraq:url set to http://www.exitecms.org/trac/ticket/%BUGID%
r1935 r2033 88 88 @unlink(PATH_PHOTOS.$data['photo_thumb']); 89 89 } 90 if ($imagefile[0] > $settings2['thumb_w'] || $imagefile[1] > $settings2['thumb_h']) { 90 if ($imagefile[0] > $settings2['thumb_w']) { 91 // calculate a new thumb height 92 $thumb_h = floor(($settings2['thumb_w'] / $imagefile[0]) * $imagefile[1]); 91 93 // Generate a new intermediate image 92 94 $data['photo_thumb'] = str_replace(".img", ".thumb.img", $data['photo_original']); 93 createthumbnail($imagefile[2], PATH_PHOTOS.$data['photo_original'], PATH_PHOTOS.$data['photo_thumb'], $settings2['thumb_w'], $ settings2['thumb_h']);95 createthumbnail($imagefile[2], PATH_PHOTOS.$data['photo_original'], PATH_PHOTOS.$data['photo_thumb'], $settings2['thumb_w'], $thumb_h); 94 96 $result2 = dbquery("UPDATE ".$db_prefix."photos SET photo_thumb = '".$data['photo_thumb']."' WHERE photo_id = ".$data['photo_id']); 95 97 } else {
Note: See TracChangeset
for help on using the changeset viewer.
