cms.file-download.php 295 B

123456789
  1. <?php
  2. if(core::ifPost("from")){
  3. header('Content-type: application/octet-stream;');
  4. header('Content-Transfer-Encoding: base64');
  5. header('Content-Disposition: attachment; filename="'.core::getPost("file").'"');
  6. $file = file::download(core::getPost("md5"));
  7. readfile($file);
  8. }