From: Jerome Jutteau Date: Mon, 6 Apr 2015 15:13:33 +0000 (+0200) Subject: add warning when the file will be downloadable one time only X-Git-Tag: 1.1~125 X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/68892c7ee6ea5f3f30d1e5d1051cd7029b2cbd41?ds=sidebyside add warning when the file will be downloadable one time only fixes #27 --- diff --git a/f.php b/f.php index fbf466a..31b5d06 100644 --- a/f.php +++ b/f.php @@ -135,10 +135,17 @@ 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('By using our services, you accept our'). ' ' . t('Term Of Service') . ''; - ?>' . t('Term Of Service') . '' . + ''; + + if ($link['onetime'] == 'O') + { + echo '' . + t('Warning, this file will self-destruct after being read') . + ''; + } + + ?> +