From 68892c7ee6ea5f3f30d1e5d1051cd7029b2cbd41 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Mon, 6 Apr 2015 17:13:33 +0200 Subject: [PATCH 1/1] add warning when the file will be downloadable one time only fixes #27 --- f.php | 31 ++++++++++++++++++++++++------- lib/lang/lang_fr.php | 1 + lib/lang/template.php | 1 + media/courgette/pixel_bomb.png | Bin 0 -> 489 bytes media/courgette/style.css.php | 20 +++++++++++++++++--- media/industrial/style.css.php | 5 +++++ media/jyraphe/style.css.php | 5 +++++ media/modern/style.css.php | 5 +++++ 8 files changed, 58 insertions(+), 10 deletions(-) create mode 100644 media/courgette/pixel_bomb.png 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') . + ''; + } + + ?> +