scratch
/get.php |
@@ -23,9 +23,9 @@ |
if(!isset($file) or empty($file)) |
return; |
|
header("Content-type: ".mime_content_type($STORE_FOLDER.'/'.$file)); |
header('Expires: 0'); |
header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); |
header('Pragma: public'); |
|
echo atomized_get_contents($STORE_FOLDER.'/'.$file); |
$finfo = finfo_open(FILEINFO_MIME_TYPE); |
header('Content-type: '.finfo_file($finfo, $STORE_FOLDER.'/'.$file)); |
finfo_close($finfo); |
header('Content-length: '.filesize($STORE_FOLDER.'/'.$file)); |
header('Content-Disposition: inline; filename="' . basename($STORE_FOLDER.'/'.$file) . '"'); |
header('X-Sendfile: '.$STORE_FOLDER.'/'.$file); |
/text.html |
@@ -160,7 +160,8 @@ |
$.post('text.php', { |
data: $('#trumbowyg').trumbowyg('html'), |
fingerprint: result, |
action: 'SAVE' |
action: 'SAVE', |
timeout: 0 |
}).done((data) => { |
$('#trumbowyg').trumbowyg('enable'); |
}).fail(() => { |