bug352 script.php update

pull/59/head
KOUONTCHOU NEIL ARMSTRONG 2023-12-06 03:02:55 +01:00
parent f3ef8d8e5c
commit fec5499861
1 changed files with 11 additions and 11 deletions

View File

@ -1,16 +1,16 @@
<?php <?php
include 'NoDirectPhpAcess.php'; include 'NoDirectPhpAcess.php';
function downloadFile($filename) //function downloadFile($filename)
{ //{
//
$file_url = './acounts/' . $filename.'.txt'; // $file_url = './acounts/' . $filename.'.txt';
header('content-type: text/plain'); // header('content-type: text/plain');
header('Cache-Control: no-cache, must-revalidate'); // header('Cache-Control: no-cache, must-revalidate');
header('Content-Disposition: attachment; filename=' . basename($file_url)); // header('Content-Disposition: attachment; filename=' . basename($file_url));
readfile($file_url); // readfile($file_url);
header("Refresh: 5"); // header("Refresh: 5");
//
} //}
?> ?>