Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20014
Modified Files:
workspace.php
Log Message:
Fix bug #103
Index: workspace.php
===================================================================
RCS file: /cvsroot/openfirst/members/workspace.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** workspace.php 12 Apr 2004 13:16:31 -0000 1.23
--- workspace.php 12 Apr 2004 13:21:54 -0000 1.24
***************
*** 42,53 ****
$file = $vfs->virtfspath;
}
! if ($fd = fopen ($file, "rb")) {
! header("Pragma: ");
! header("Cache-Control: ");
! header("Content-type: application/octet-stream");
! header("Content-Disposition: attachment; filename=\"".basename($file)."\"");
! header("Content-length: " . filesize($file));
! fpassthru($fd);
}
} else {
--- 42,60 ----
$file = $vfs->virtfspath;
}
!
! if(file_exists($file)) {
! if ($fd = fopen ($file, "rb")) {
! header("Pragma: ");
! header("Cache-Control: ");
! header("Content-type: application/octet-stream");
! header("Content-Disposition: attachment; filename=\"".basename($file)."\"");
! header("Content-length: " . filesize($file));
! fpassthru($fd);
! }
! die();
! } else {
! include_once($header);
! echo("File not found");
}
} else {
|