Changeset 4317 in subversion
- Timestamp:
- Dec 7, 2010 5:33:01 PM (2 years ago)
- Location:
- branches/devel-addressbook
- Files:
-
- 5 edited
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/rcmail.php (modified) (1 diff)
-
program/steps/addressbook/save.inc (modified) (3 diffs)
-
program/steps/addressbook/show.inc (modified) (1 diff)
-
skins/default/functions.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/devel-addressbook/config/main.inc.php.dist
r4314 r4317 293 293 $rcmail_config['im_convert_path'] = null; 294 294 295 // maximum size of uploaded contact photos 295 // maximum size of uploaded contact photos in pixel 296 296 $rcmail_config['contact_photo_size'] = 160; 297 297 -
branches/devel-addressbook/program/include/rcmail.php
r4314 r4317 1359 1359 * @param $cmd Format string with {keywords} to be replaced 1360 1360 * @param $values (zero, one or more arrays can be passed) 1361 * @return output of command. shell errors not detectable , see error_log in /www/server/logs1361 * @return output of command. shell errors not detectable 1362 1362 */ 1363 1363 public static function exec(/* $cmd, $values1 = array(), ... */) -
branches/devel-addressbook/program/steps/addressbook/save.inc
r4314 r4317 6 6 | | 7 7 | This file is part of the Roundcube Webmail client | 8 | Copyright (C) 2005-20 09, Roundcube Dev. - Switzerland |8 | Copyright (C) 2005-2010, Roundcube Dev. - Switzerland | 9 9 | Licensed under the GNU GPL | 10 10 | | … … 37 37 38 38 if ($filepath = $_FILES['_photo']['tmp_name']) { 39 // TODO:check file type and resize image39 // check file type and resize image 40 40 $imageprop = rcmail::imageprops($_FILES['_photo']['tmp_name']); 41 41 42 42 if ($imageprop['width'] && $imageprop['height']) { 43 $maxsize = $RCMAIL->config->get('contact_photo_size', 160);43 $maxsize = intval($RCMAIL->config->get('contact_photo_size', 160)); 44 44 $tmpfname = tempnam($RCMAIL->config->get('temp_dir'), 'rcmImgConvert'); 45 45 $save_hook = 'attachment_upload'; … … 57 57 'size' => $_FILES['_photo']['size'], 58 58 'name' => $_FILES['_photo']['name'], 59 'mimetype' => rc_mime_content_type($filepath, $_FILES['_photo']['name'], 'image/' . $imageprop['type'])59 'mimetype' => 'image/' . $imageprop['type'], 60 60 )); 61 61 } -
branches/devel-addressbook/program/steps/addressbook/show.inc
r4314 r4317 47 47 if (preg_match('/^\x89\x50\x4E\x47/', $data)) $type = 'png'; 48 48 else if (preg_match('/^\x47\x49\x46\x38/', $data)) $type = 'gif'; 49 else if (preg_match('/^\x00\x00\x01\x00/', $data)) $type = 'ico'; 49 50 // else if (preg_match('/^\xFF\xD8\xFF\xE0/', $data)) $type = 'jpeg'; 50 51 -
branches/devel-addressbook/skins/default/functions.js
r4314 r4317 89 89 // toggle: #1486823, #1486930 90 90 uploadmenu: {id:'attachment-form', editable:1, above:1, toggle:!bw.ie&&!bw.linux }, 91 uploadform: {id:'upload-form', editable:1, toggle: true}91 uploadform: {id:'upload-form', editable:1, toggle:!bw.ie&&!bw.linux } 92 92 }; 93 93
Note: See TracChangeset
for help on using the changeset viewer.
