Changeset 1066


Ignore:
Timestamp:
07/01/09 10:23:36 (15 years ago)
Author:
amuller
Message:

Ticket #559 - Correção de bug aberto pelos comits deste ticket

File:
1 edited

Legend:

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

    r1059 r1066  
    7575                                $file = $subject."_".$i.".eml"; 
    7676                        } else{ 
    77                                 $file = "email_".$GLOBALS['phpgw']->session->sessionid.".eml"; 
     77                                $file = "email_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".eml"; 
    7878        }     
    7979        } 
     
    9090 
    9191        function createFileZip($files, $tempDir){                
    92                 $tmp_zip_filename = "email_".$GLOBALS['phpgw']->session->sessionid.".zip"; 
     92                $tmp_zip_filename = "email_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".zip"; 
    9393                $command = "cd " . escapeshellarg($tempDir) . " && nice zip -m9 " . escapeshellarg($tmp_zip_filename) . " " .  escapeshellcmd($files); 
    9494                if(!exec($command)) { 
     
    235235                $body           = $this-> getBody($id_number); 
    236236                 
    237                 $file = "source_".$GLOBALS['phpgw']->session->sessionid.".txt"; 
     237                $file = "source_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".txt"; 
    238238                $f = fopen($tempDir.'/'.$file,"w"); 
    239239                fputs($f,$header ."\r\n\r\n". $body); 
     
    273273                $body           = $this-> getBody($id_msg); 
    274274                 
    275                 $file = "source_".$GLOBALS['phpgw']->session->sessionid.".php"; 
     275                $file = "source_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".php"; 
    276276                $f = fopen($tempDir.'/'.$file,"w"); 
    277277                fputs($f,$phpheader.$header ."\r\n\r\n". $body); 
Note: See TracChangeset for help on using the changeset viewer.