settings-admin.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <form id="encryption">
  2. <fieldset class="personalblock">
  3. <p>
  4. <strong><?php p($l->t('Encryption')); ?></strong>
  5. <br/>
  6. </p>
  7. <p>
  8. <?php p($l->t("Enable recovery key (allow to recover users files in case of password loss):")); ?>
  9. <br/>
  10. <br/>
  11. <input type="password" name="recoveryPassword" id="recoveryPassword"/>
  12. <label for="recoveryPassword"><?php p($l->t("Recovery key password")); ?></label>
  13. <br/>
  14. <input
  15. type='radio'
  16. name='adminEnableRecovery'
  17. value='1'
  18. <?php echo($_["recoveryEnabled"] == 1 ? 'checked="checked"' : 'disabled'); ?> />
  19. <?php p($l->t("Enabled")); ?>
  20. <br/>
  21. <input
  22. type='radio'
  23. name='adminEnableRecovery'
  24. value='0'
  25. <?php echo($_["recoveryEnabled"] == 0 ? 'checked="checked"' : 'disabled'); ?> />
  26. <?php p($l->t("Disabled")); ?>
  27. </p>
  28. <br/><br/>
  29. <p>
  30. <strong><?php p($l->t("Change recovery key password:")); ?></strong>
  31. <br/><br/>
  32. <input
  33. type="password"
  34. name="changeRecoveryPassword"
  35. id="oldRecoveryPassword"
  36. <?php echo($_["recoveryEnabled"] == 0 ? 'disabled' : ''); ?> />
  37. <label for="oldRecoveryPassword"><?php p($l->t("Old Recovery key password")); ?></label>
  38. <br/>
  39. <input
  40. type="password"
  41. name="changeRecoveryPassword"
  42. id="newRecoveryPassword"
  43. <?php echo($_["recoveryEnabled"] == 0 ? 'disabled' : ''); ?> />
  44. <label for="newRecoveryPassword"><?php p($l->t("New Recovery key password")); ?></label>
  45. <br/>
  46. <button
  47. type="button"
  48. name="submitChangeRecoveryKey"
  49. disabled><?php p($l->t("Change Password")); ?>
  50. </button>
  51. <span class="msg"></span>
  52. </p>
  53. </fieldset>
  54. </form>