filemanager stuff

This commit is contained in:
Serghey Rodin 2015-09-07 17:35:40 +03:00
commit 9db728e1ad
15 changed files with 1878 additions and 481 deletions

View file

@ -0,0 +1,15 @@
<?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');
}
?>