]> git.p6c8.net - jirafeau_project.git/commitdiff
Merge branch 'rebase_integrate_docker_build_and_publish' into 'next-release'
authorPatrick Canterino <patrick@patrick-canterino.de>
Sun, 18 Aug 2024 14:01:58 +0000 (14:01 +0000)
committerPatrick Canterino <patrick@patrick-canterino.de>
Sun, 18 Aug 2024 14:01:58 +0000 (14:01 +0000)
#2: Build and publish Docker images using GitLab CI.

See merge request jirafeau/Jirafeau!1

1  2 
index.php

diff --cc index.php
index 662f1579d5dabbab766800528b3f15a8c8c994a2,37dd6778dc84ce3249f14b792d68bcbe9e26005b..b7e2606930e5207e914d6cae4cbb4979cc58478a
+++ b/index.php
@@@ -204,23 -204,17 +204,23 @@@ elseif (true === jirafeau_challenge_upl
          <?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'){
+         if ($cfg['download_password_requirement'] === 'generated') {
              echo '<input type="hidden" name="key" id="input_key" value="' . $download_pass .'"/>';
-         }else{
+         } else {
              echo '<tr><td><label for="input_key">' . t('PSW') . ':' . '</label></td>';
              echo '<td><input type="password" name="key" id="input_key" autocomplete = "new-password"';
-             if ($cfg['download_password_policy'] === 'regex'){
+             if ($cfg['download_password_policy'] === 'regex') {
                  echo ' pattern="' . substr($cfg['download_password_policy_regex'], 1, strlen($cfg['download_password_policy_regex']) - 2) . '"'; //remove php delimiters
              }
-             if ($cfg['download_password_requirement'] === 'required'){
+             if ($cfg['download_password_requirement'] === 'required') {
                  echo ' required';
              }
              echo '/></td></tr>';

patrick-canterino.de