X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/f45aaf86ea05ed48aff469bdfa61cec93020c023..1a41ef82ac7e1a30134e471f73e9a8d0e204f2a6:/admin.php?ds=sidebyside diff --git a/admin.php b/admin.php index 3e8f517..4a3d25f 100644 --- a/admin.php +++ b/admin.php @@ -255,7 +255,12 @@ if (php_sapi_name() == "cli") { header('Content-Disposition: attachment; filename="' . $l['file_name'] . '"'); if (file_exists(VAR_FILES . $p . $l['md5'])) { - readfile(VAR_FILES . $p . $l['md5']); + $r = fopen(VAR_FILES . $p . $l['md5'], 'r'); + while (!feof($r)) { + print fread($r, 1024); + ob_flush(); + } + fclose($r); } exit; }