Changeset 711


Ignore:
Timestamp:
03/19/09 17:34:19 (12 years ago)
Author:
eduardoalex
Message:

Ticket #469

Location:
trunk/expressoMail1_2
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.exporteml.inc.php

    r701 r711  
    189189                $this->folder = $folder; 
    190190                $this->folder = mb_convert_encoding($this->folder, "UTF7-IMAP","UTF-8"); 
    191                 $tempDir = $_SERVER["DOCUMENT_ROOT"]."tmpLclAtt"; 
     191                $tempDir = dirname( __FILE__ ) . '/../tmpLclAtt'; 
    192192                 
    193193                $phpheader = "<?php header('Content-Type: text/plain'); 
     
    205205                fputs($f,$phpheader.$header ."\r\n\r\n". $body); 
    206206                fclose($f); 
    207                 $urlPath = '../tmpLclAtt/'.$file; 
     207                $urlPath = 'tmpLclAtt/'.$file; 
    208208                 
    209209                imap_close($this->mbox_stream); 
     
    228228                $attachments =unserialize(rawurldecode($params['s_attachments'])); 
    229229                 
    230                 $tempDir = $_SERVER["DOCUMENT_ROOT"]."tmpLclAtt"; 
     230                $tempDir = dirname( __FILE__ ) . '/../tmpLclAtt'; 
     231//              $tempDir = $_SERVER["DOCUMENT_ROOT"]."tmpLclAtt"; 
    231232                $tempSubDir = md5(microtime()); 
    232233                exec('mkdir ' . $tempDir . '/'.$tempSubDir.'; cd ' . $tempDir . '/'.$tempSubDir); 
     
    254255 
    255256                        $fileContent = imap_fetchbody($this->mbox_stream, $id_number,$attachment['pid'], FT_UID); 
    256                         $urlPath = '../tmpLclAtt/'.$tempSubDir.'/'.$fileName; 
     257                        $urlPath = 'tmpLclAtt/'.$tempSubDir.'/'.$fileName; 
    257258                         
    258259                        $headers = "<?php header('Content-Type: ".$ContentType."'); 
Note: See TracChangeset for help on using the changeset viewer.