- if ($cfg['download_password_requirement'] === 'generated') {
- echo '<input type="hidden" name="key" id="input_key" value="' . $download_pass .'"/>';
- } 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') {
- 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') {
- echo ' required';
- }
- echo '/></td></tr>';
- }?>
+if ($cfg['download_password_requirement'] === 'generated') {
+ echo '<input type="hidden" name="key" id="input_key" value="' . $download_pass .'"/>';
+} 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') {
+ 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') {
+ echo ' required';
+ }
+ echo '/></td></tr>';
+}?>