-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdl.php
31 lines (27 loc) · 1.11 KB
/
dl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
* mnlfolio
* by Morgan Cugerone - http://ipositives.net
*
* For more information, visit:
* http://morgan.cugerone.com/mnlfolio
*
* Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
* - Free for use in both personal and commercial projects
* - Attribution requires leaving author name, author link, and the license info intact.
*
* Thanks: Jan Odvarko (http://odvarko.cz) for developing this wonderful piece of jscolor code
* Dan Coulter ([email protected] / http://phpflickr.com) for bringing this great phpflickr interface
* To every friends and relatives who supported and helped me in the achievement of this project.
*/
if ($_REQUEST ['p'])
$photo = $_REQUEST ['p'];
$filename = basename($photo);
ini_set('session.cache_limiter', '');
header('Expires: Thu, 14 Apr 1981 03:28:00 GMT');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: no-cache');
header("Content-Type: application/octet-stream");
header("Content-Disposition: disposition-type=attachment; filename=\"$filename\"");
readfile($photo);
?>