Changeset 711 for trunk/expressoMail1_2
- Timestamp:
- 03/19/09 17:34:19 (15 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.exporteml.inc.php
r701 r711 189 189 $this->folder = $folder; 190 190 $this->folder = mb_convert_encoding($this->folder, "UTF7-IMAP","UTF-8"); 191 $tempDir = $_SERVER["DOCUMENT_ROOT"]."tmpLclAtt";191 $tempDir = dirname( __FILE__ ) . '/../tmpLclAtt'; 192 192 193 193 $phpheader = "<?php header('Content-Type: text/plain'); … … 205 205 fputs($f,$phpheader.$header ."\r\n\r\n". $body); 206 206 fclose($f); 207 $urlPath = ' ../tmpLclAtt/'.$file;207 $urlPath = 'tmpLclAtt/'.$file; 208 208 209 209 imap_close($this->mbox_stream); … … 228 228 $attachments =unserialize(rawurldecode($params['s_attachments'])); 229 229 230 $tempDir = $_SERVER["DOCUMENT_ROOT"]."tmpLclAtt"; 230 $tempDir = dirname( __FILE__ ) . '/../tmpLclAtt'; 231 // $tempDir = $_SERVER["DOCUMENT_ROOT"]."tmpLclAtt"; 231 232 $tempSubDir = md5(microtime()); 232 233 exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); … … 254 255 255 256 $fileContent = imap_fetchbody($this->mbox_stream, $id_number,$attachment['pid'], FT_UID); 256 $urlPath = ' ../tmpLclAtt/'.$tempSubDir.'/'.$fileName;257 $urlPath = 'tmpLclAtt/'.$tempSubDir.'/'.$fileName; 257 258 258 259 $headers = "<?php header('Content-Type: ".$ContentType."');
Note: See TracChangeset
for help on using the changeset viewer.