mirror of
https://github.com/myvesta/vesta
synced 2025-07-10 15:23:15 -07:00
15 lines
265 B
PHP
15 lines
265 B
PHP
<?php
|
|
if (!empty($_REQUEST['path'])) {
|
|
$path = $_REQUEST['path'];
|
|
if (is_readable($path)) {
|
|
header("Content-disposition: attachment;filename=".basename($path));
|
|
readfile($path);
|
|
exit;
|
|
}
|
|
}
|
|
else {
|
|
die('File not found');
|
|
}
|
|
|
|
|
|
?>
|