Changeset 1040 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 06/23/09 10:50:11 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r1037 r1040 6 6 'noheader' => true 7 7 ); 8 require_once '../header.inc.php';9 8 } 9 require_once '../header.inc.php'; 10 10 11 include_once("class.functions.inc.php"); 11 12 include_once("class.ldap_functions.inc.php"); … … 1806 1807 } 1807 1808 $tempDir = ini_get("session.save_path"); 1808 $file = "cid _image_".base_convert(microtime(), 10, 36).".dat";1809 $file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat"; 1809 1810 $f = fopen($tempDir.'/'.$file,"w"); 1810 1811 fputs($f,$fileContent); … … 2318 2319 } 2319 2320 $tempDir = ini_get("session.save_path"); 2320 $file = "cid _image_".base_convert(microtime(), 10, 36).".dat";2321 $file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat"; 2321 2322 $f = fopen($tempDir.'/'.$file,"w"); 2322 2323 fputs($f,$fileContent); … … 2393 2394 imagecopyresampled($image_new, $image_big, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 2394 2395 $tmpDir = ini_get("session.save_path"); 2395 $_file = "cid _image_".base_convert(microtime(), 10, 36).".dat";2396 $_file = "cidimage_".$GLOBALS['phpgw']->session->sessionid.".dat"; 2396 2397 imagejpeg($image_new,$tmpDir.$_file, 85); 2397 2398 $mail->AddAttachment($tmpDir.$_file, $attach['name'], "base64", $this->get_file_type($tmpDir.$_file)); … … 3266 3267 if($timestamp){ 3267 3268 $tempDir = ini_get("session.save_path"); 3268 $file = $tempDir."imap_". md5(microtime());3269 $file = $tempDir."imap_".$GLOBALS['phpgw']->session->sessionid; 3269 3270 $f = fopen($file,"w"); 3270 3271 fputs($f,base64_encode($source));
Note: See TracChangeset
for help on using the changeset viewer.