bug352 script.php update
parent
f3ef8d8e5c
commit
fec5499861
22
Script.php
22
Script.php
|
@ -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");
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue