Changeset 1693 for sandbox/filemanager/inc/class.vfs_functions.inc.php
- Timestamp:
- 11/20/09 15:17:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.vfs_functions.inc.php
r1654 r1693 216 216 function download() 217 217 { 218 for($i = 0; $i != $this->numoffiles; $i++) 219 { 220 if(!$this->fileman[$i]) 221 { 222 continue; 223 } 224 225 $download_browser = CreateObject('phpgwapi.browser'); 226 $download_browser->content_header($this->fileman[$i]); 227 echo $this->bo->vfs->read(array('string' => $this->fileman[$i])); 218 if($this->file) 219 { 220 //$GLOBALS['phpgw']->browser->content_header($this->file); 221 header ("Content-Type: application/octet-stream"); 222 header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); 223 header("Pragma: public"); 224 header("Expires: 0"); 225 header ("Content-Disposition: attachment; filename=\"". addslashes($this->file)."\""); 226 echo $this->bo->vfs->read(array('string' => $this->file)); 228 227 $GLOBALS['phpgw']->common->phpgw_exit(); 229 228 }
Note: See TracChangeset
for help on using the changeset viewer.