Last change
on this file since 16495 was
16379,
checked in by mistic100, 12 years ago
|
first commit, not complete
TODO : use multisize, download history, localization, compatibility with User Selection (and create User Selection !!)
|
File size:
658 bytes
|
Rev | Line | |
---|
[16379] | 1 | <?php |
---|
| 2 | define('PHPWG_ROOT_PATH', '../../'); |
---|
| 3 | include(PHPWG_ROOT_PATH.'include/common.inc.php'); |
---|
| 4 | |
---|
| 5 | // check_status(ACCESS_CLASSIC); |
---|
| 6 | |
---|
| 7 | $BatchDownloader = new BatchDownloader($_GET['set_id']); |
---|
| 8 | $file = $BatchDownloader->getArchivePath(); |
---|
| 9 | |
---|
| 10 | header('Content-Type: application/force-download; name="'.basename($file).'"'); |
---|
| 11 | header('Content-Disposition: attachment; filename="'.basename($file).'"'); |
---|
| 12 | header('Content-Description: File Transfer'); |
---|
| 13 | header('Content-Transfer-Encoding: binary'); |
---|
| 14 | header('Content-Length: '.filesize($file).''); |
---|
| 15 | |
---|
| 16 | header('Cache-Control: no-cache, must-revalidate'); |
---|
| 17 | header('Pragma: no-cache'); |
---|
| 18 | header('Expires: 0'); |
---|
| 19 | |
---|
| 20 | readfile($file); |
---|
| 21 | exit(0); |
---|
| 22 | |
---|
| 23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.