Last change
on this file since 3905 was
3905,
checked in by tiico, 15 years ago
|
Initial submit for plugin ConcoursPhoto (Possibility to add a competition on category with selected criterias and generation of the competition's result).
Functionnal version. Admin pages must be checked for informations/errors notifications
|
File size:
333 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | $filename = $_GET['file']; |
---|
6 | |
---|
7 | $dirpath = "../result/"; |
---|
8 | |
---|
9 | $size = filesize($dirpath. $filename); |
---|
10 | |
---|
11 | header('Content-Type: application/octet-stream'); |
---|
12 | header('Content-Length: '.$size); |
---|
13 | header('Content-Disposition: attachment; filename='.$filename); |
---|
14 | header('Content-Transfer-Encoding: binary'); |
---|
15 | |
---|
16 | readfile($dirpath. $filename); |
---|
17 | |
---|
18 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.