From: Patrick Canterino Date: Sun, 11 Aug 2024 11:20:25 +0000 (+0200) Subject: New config option to preselect the checkbox for deleting the file after the first... X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/fb236a34dfabf938ecc5aa35e474407f9bb7e37d?ds=sidebyside;hp=-c New config option to preselect the checkbox for deleting the file after the first download --- fb236a34dfabf938ecc5aa35e474407f9bb7e37d diff --git a/index.php b/index.php index 78c1beb..662f157 100644 --- a/index.php +++ b/index.php @@ -204,7 +204,13 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) { ' . t('ONE_TIME_DL') . ':'; - echo ''; + echo ''; } if ($cfg['download_password_requirement'] === 'generated'){ echo ''; diff --git a/lib/config.original.php b/lib/config.original.php index bfa76af..d261f68 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -152,6 +152,11 @@ $cfg['availability_default'] = 'month'; */ $cfg['one_time_download'] = true; +/* When set to "true", the checkbox for deleting the file after the first download + * is preselected. + */ +$cfg['one_time_download_preselected'] = false; + /* Set maximal upload size expressed in MB. * »0« means unlimited upload size. */