source: extensions/ConcoursPhoto/admin/file.php @ 3905

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
11header('Content-Type: application/octet-stream');
12header('Content-Length: '.$size);
13header('Content-Disposition: attachment; filename='.$filename);
14header('Content-Transfer-Encoding: binary');
15
16readfile($dirpath. $filename);
17
18?>
Note: See TracBrowser for help on using the repository browser.