mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 15:24:00 +01:00
14 lines
364 B
PHP
14 lines
364 B
PHP
<?php include("settings.php");?>
|
|
<?php
|
|
$file = $docRoot.$iceRoot.str_replace("|","/",$_GET['file']);
|
|
|
|
if (file_exists($file)) {
|
|
header('Content-Description: File Transfer');
|
|
header('Content-Disposition: attachment; filename='.basename($file));
|
|
header('Content-Length: '.filesize($file));
|
|
ob_clean();
|
|
flush();
|
|
readfile($file);
|
|
exit;
|
|
}
|
|
?>
|