mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Moving this to v-open-fs-file
This commit is contained in:
parent
d5441fdf85
commit
af66851b8b
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = $_REQUEST['path'];
|
$path = $_REQUEST['path'];
|
||||||
if (!empty($path) && file_exists($path)) {
|
if (!empty($path)) {
|
||||||
header("Content-type: application/octet-stream");
|
header("Content-type: application/octet-stream");
|
||||||
header("Content-Transfer-Encoding: binary");
|
header("Content-Transfer-Encoding: binary");
|
||||||
header("Content-disposition: attachment;filename=".basename($path));
|
header("Content-disposition: attachment;filename=".basename($path));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue