scratch
/text.php |
@@ -4,11 +4,6 @@ |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
########################################################################### |
|
header('Content-Type: text/html; charset=utf-8'); |
header('Cache-Control: no-cache, no-store, must-revalidate'); |
header('Pragma: no-cache'); |
header('Expires: 0'); |
|
require_once('inc/pseudocrypt.php'); |
require_once('inc/functions.php'); |
require_once('config.php'); |
@@ -66,7 +61,17 @@ |
case 'LOAD': |
if(!file_exists($userPath.'.html')) |
return; |
echo atomized_get_contents($userPath.'.html'); |
### Set no-cache |
header('Content-Type: text/html; charset=utf-8'); |
header('Cache-Control: no-cache, no-store, must-revalidate'); |
header('Pragma: no-cache'); |
header('Expires: 0'); |
### Open MIME info database and send the content type. |
header('Content-type: text/html'); |
### Send the file along with the inline content disposition. |
header('Content-length: '.(int)get_file_size($userPath.'.html')); |
header('Content-Disposition: inline; filename="' . basename($userPath.'.html') . '"'); |
header('X-Sendfile: '.$userPath.'.html'); |
break; |
} |
|