source: extensions/BatchDownloader/download.php @ 16379

Last change on this file since 16379 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
Line 
1<?php
2define('PHPWG_ROOT_PATH', '../../');
3include(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
10header('Content-Type: application/force-download; name="'.basename($file).'"');
11header('Content-Disposition: attachment; filename="'.basename($file).'"');
12header('Content-Description: File Transfer');
13header('Content-Transfer-Encoding: binary');
14header('Content-Length: '.filesize($file).'');
15
16header('Cache-Control: no-cache, must-revalidate');
17header('Pragma: no-cache');
18header('Expires: 0');
19
20readfile($file);
21exit(0);
22
23?>
Note: See TracBrowser for help on using the repository browser.