bug352 script.php update
parent
f3ef8d8e5c
commit
fec5499861
22
Script.php
22
Script.php
|
@ -1,16 +1,16 @@
|
|||
<?php
|
||||
include 'NoDirectPhpAcess.php';
|
||||
function downloadFile($filename)
|
||||
{
|
||||
|
||||
$file_url = './acounts/' . $filename.'.txt';
|
||||
header('content-type: text/plain');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Content-Disposition: attachment; filename=' . basename($file_url));
|
||||
readfile($file_url);
|
||||
header("Refresh: 5");
|
||||
|
||||
}
|
||||
//function downloadFile($filename)
|
||||
//{
|
||||
//
|
||||
// $file_url = './acounts/' . $filename.'.txt';
|
||||
// header('content-type: text/plain');
|
||||
// header('Cache-Control: no-cache, must-revalidate');
|
||||
// header('Content-Disposition: attachment; filename=' . basename($file_url));
|
||||
// readfile($file_url);
|
||||
// header("Refresh: 5");
|
||||
//
|
||||
//}
|
||||
?>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue