index.php 265 B

123456789101112131415
  1. <?php
  2. if (!empty($_REQUEST['path'])) {
  3. $path = $_REQUEST['path'];
  4. if (is_readable($path)) {
  5. header("Content-disposition: attachment;filename=".basename($path));
  6. readfile($path);
  7. exit;
  8. }
  9. }
  10. else {
  11. die('File not found');
  12. }
  13. ?>