Changeset 2417 for trunk/expressoMail1_2
- Timestamp:
- 04/05/10 14:12:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2416 r2417 2616 2616 $mail->FromName = $_SESSION['phpgw_info']['expressomail']['user']['fullname']; 2617 2617 $mail->From = $_SESSION['phpgw_info']['expressomail']['user']['email']; 2618 $session_id = $_SESSION[ 'phpgw_session' ][ 'session_id' ]; 2619 $max_resolution = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['image_size']; 2620 2621 // Free others requests 2622 session_write_close(); 2618 2623 2619 2624 $this->add_recipients("to", $toaddress, &$mail); … … 2672 2677 } 2673 2678 $tempDir = ini_get("session.save_path"); 2674 $file = "cidimage_".$ _SESSION[ 'phpgw_session' ][ 'session_id' ].$cid_imgs[6][$j].".dat";2679 $file = "cidimage_".$session_id.$cid_imgs[6][$j].".dat"; 2675 2680 $f = fopen($tempDir.'/'.$file,"w"); 2676 2681 fputs($f,$fileContent); … … 2731 2736 } 2732 2737 header('Content-type: image/jpeg'); 2733 $max_resolution = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['image_size'];2734 2738 $max_resolution = ($max_resolution==""?'65536':$max_resolution); 2735 2739 if ($width < $max_resolution && $height < $max_resolution){ … … 2748 2752 imagecopyresampled($image_new, $image_big, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 2749 2753 $tmpDir = ini_get("session.save_path"); 2750 $_file = "/cidimage_".$ _SESSION[ 'phpgw_session' ][ 'session_id' ].".dat";2754 $_file = "/cidimage_".$session_id.".dat"; 2751 2755 imagejpeg($image_new,$tmpDir.$_file, 85); 2752 2756 $mail->AddAttachment($tmpDir.$_file, $attach['name'], "base64", $this->get_file_type($tmpDir.$_file)); … … 2796 2800 if (!$return['append']) 2797 2801 $return['append'] = imap_last_error(); 2798 2802 2803 session_start(); 2799 2804 return $return; 2800 2805 }
Note: See TracChangeset
for help on using the changeset viewer.