]> git.p6c8.net - jirafeau.git/blobdiff - index.php
Merge branch 'rebase_integrate_docker_build_and_publish' into 'next-release'
[jirafeau.git] / index.php
index 37dd6778dc84ce3249f14b792d68bcbe9e26005b..b7e2606930e5207e914d6cae4cbb4979cc58478a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -204,7 +204,13 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
         <?php
         if ($cfg['one_time_download']) {
             echo '<tr><td>' . t('ONE_TIME_DL') . ':</td>';
-            echo '<td><input type="checkbox" id="one_time_download" /></td></tr>';
+            echo '<td><input type="checkbox" id="one_time_download"';
+            
+            if ($cfg['one_time_download_preselected']) {
+                echo ' checked';
+            }
+
+            echo ' /></td></tr>';
         }
         if ($cfg['download_password_requirement'] === 'generated') {
             echo '<input type="hidden" name="key" id="input_key" value="' . $download_pass .'"/>';

patrick-canterino.de