Changeset 1065 for trunk/expressoMail1_2
- Timestamp:
- 07/01/09 09:11:31 (15 years ago)
- Location:
- trunk/expressoMail1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r1059 r1065 1799 1799 } 1800 1800 $tempDir = ini_get("session.save_path"); 1801 $file = "cidimage_".$ GLOBALS['phpgw']->session->sessionid.".dat";1801 $file = "cidimage_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].$cid_imgs[6][$j].".dat"; 1802 1802 $f = fopen($tempDir.'/'.$file,"w"); 1803 1803 fputs($f,$fileContent); … … 2311 2311 } 2312 2312 $tempDir = ini_get("session.save_path"); 2313 $file = "cidimage_".$ GLOBALS['phpgw']->session->sessionid.".dat";2313 $file = "cidimage_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].$cid_imgs[6][$j].".dat"; 2314 2314 $f = fopen($tempDir.'/'.$file,"w"); 2315 2315 fputs($f,$fileContent); … … 2362 2362 case 3: $image_big = imagecreatefrompng($attach['tmp_name']); break; 2363 2363 case 6: 2364 include_once("gd_functions.php");2364 require_once("gd_functions.php"); 2365 2365 $image_big = imagecreatefrombmp($attach['tmp_name']); break; 2366 2366 default: … … 2386 2386 imagecopyresampled($image_new, $image_big, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 2387 2387 $tmpDir = ini_get("session.save_path"); 2388 $_file = "cidimage_".$ GLOBALS['phpgw']->session->sessionid.".dat";2388 $_file = "cidimage_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".dat"; 2389 2389 imagejpeg($image_new,$tmpDir.$_file, 85); 2390 2390 $mail->AddAttachment($tmpDir.$_file, $attach['name'], "base64", $this->get_file_type($tmpDir.$_file)); … … 3259 3259 if($timestamp){ 3260 3260 $tempDir = ini_get("session.save_path"); 3261 $file = $tempDir."imap_".$ GLOBALS['phpgw']->session->sessionid;3261 $file = $tempDir."imap_".$_SESSION[ 'phpgw_session' ][ 'session_id' ]; 3262 3262 $f = fopen($file,"w"); 3263 3263 fputs($f,base64_encode($source)); -
trunk/expressoMail1_2/inc/gotodownload.php
r1040 r1065 167 167 } 168 168 else 169 if (preg_match("#^".ini_get('session.save_path')."/[A-z]+_".$GLOBALS['phpgw']->session->sessionid." (\.[A-z]{3,4})?$#",$strFileName))169 if (preg_match("#^".ini_get('session.save_path')."/[A-z]+_".$GLOBALS['phpgw']->session->sessionid."[A-z0-9]*(\.[A-z]{3,4})?$#",$strFileName)) 170 170 { 171 171 readfile($strFileName);
Note: See TracChangeset
for help on using the changeset viewer.