Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12239102
dl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
676 B
Referenced Files
None
Subscribers
None
dl.php
View Options
<?php
/**
* Nasqueron Tools
*
* Entry point to download a file
*
* @package NasqueronTools
* @subpackage EntryPoints
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
$filename
=
isset
(
$_REQUEST
[
'filename'
])
?
$_REQUEST
[
'filename'
]
:
''
;
$contentType
=
isset
(
$_REQUEST
[
'contentType'
])
?
$_REQUEST
[
'contentType'
]
:
'text/plain'
;
header
(
'Content-Type: '
.
$contentType
);
if
(
$filename
!==
''
)
{
header
(
"Content-Disposition: attachment; filename=
\"
$filename
\"
"
);
}
header
(
'Pragma: no-cache'
);
header
(
'Expires: 0'
);
echo
$_REQUEST
[
'result'
];
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 11, 20:10 (8 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3060781
Default Alt Text
dl.php (676 B)
Attached To
Mode
rTOOLS Nasqueron Tools
Attached
Detach File
Event Timeline
Log In to Comment