- Timestamp:
- 06/18/09 11:31:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/gotodownload.php
r1005 r1011 1 1 <? 2 if (! array_key_exists('phpgw_info', $_SESSION)) 3 exit; 2 $GLOBALS['phpgw_info']['flags'] = array( 3 'currentapp' => 'expressoMail1_2', 4 'nonavbar' => true, 5 'noheader' => true 6 ); 7 8 require_once $_SERVER[ 'DOCUMENT_ROOT' ] . '/header.inc.php'; 4 9 5 10 $msg_number = $_GET['msg_number']; … … 148 153 header ("Content-Type: $ContentType"); 149 154 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 150 header("Pragma: public"); 151 header("Expires: 0"); // set expiration time 152 header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\""); 153 155 header("Pragma: public"); 156 header("Expires: 0"); // set expiration time 157 header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\""); 154 158 if($fileContent) { 155 159 if($encoding == 'base64') … … 161 165 } 162 166 else 163 readfile($strFileName); 167 if ( strpos( $strFileName, ini_get( 'session.save_path' ) ) !== false ) 168 readfile($strFileName); 164 169 } 165 170 ?>
Note: See TracChangeset
for help on using the changeset viewer.