X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/a80b0189a72e4d5e3982ed7c4f47bdda09e3def2..36a5016b0d2aa4f27b0e02c898fc794ee5b30da8:/f.php?ds=sidebyside
diff --git a/f.php b/f.php
index 9bbe4d9..75d77d7 100644
--- a/f.php
+++ b/f.php
@@ -135,17 +135,24 @@ if (!empty ($link['key']))
'' .
'
' .
t('By using our services, you accept our'). ' ' . t('Term Of Service') . '' .
- ' |
' .
- '';
- ?>' .
+ t('Warning, this file will self-destruct after being read') .
+ ' |
';
+ }
+
+ ?>' . t('Access denied') .
' ';
@@ -176,7 +182,7 @@ if (!empty ($link['key']))
}
}
-if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_preview)
+if (!$password_challenged && !$do_download && !$do_preview)
{
require (JIRAFEAU_ROOT.'lib/template/header.php');
echo '' .
@@ -185,22 +191,32 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev
echo '" ' .
'method = "post" id = "submit_post">'; ?>
' .
+ echo '';
@@ -224,6 +240,7 @@ if (!jirafeau_is_viewable ($link['mime_type']) || !$cfg['preview'] || $do_downlo
else
header ('Content-Disposition: filename="' . $link['file_name'] . '"');
header ('Content-Type: ' . $link['mime_type']);
+header ('Content-MD5: ' . hex_to_base64($link['md5']));
/* Read encrypted file. */
if ($link['crypted'])
|