Update maillog.php

This commit is contained in:
benchea dan authored and GitHub committed 2022-03-11 08:47:00 +02:00
1 parent 43643f0a45
commit f9be337164
1 file changed
+11 -12
+11 -12
View File
@@ -66,18 +66,17 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
if (!file_exists($file)) { die("The file does not exists") ; }
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);