settings-personal.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <form id="encryption">
  2. <fieldset class="personalblock">
  3. <h2><?php p( $l->t( 'Encryption' ) ); ?></h2>
  4. <?php if ( $_["initialized"] === '1' ): ?>
  5. <p>
  6. <a name="changePKPasswd" />
  7. <label for="changePrivateKeyPasswd">
  8. <?php p( $l->t( "Your private key password no longer match your log-in password:" ) ); ?>
  9. </label>
  10. <br />
  11. <em><?php p( $l->t( "Set your old private key password to your current log-in password." ) ); ?>
  12. <?php if ( $_["recoveryEnabledForUser"] ):
  13. p( $l->t( " If you don't remember your old password you can ask your administrator to recover your files." ) );
  14. endif; ?>
  15. </em>
  16. <br />
  17. <input
  18. type="password"
  19. name="changePrivateKeyPassword"
  20. id="oldPrivateKeyPassword" />
  21. <label for="oldPrivateKeyPassword"><?php p($l->t( "Old log-in password" )); ?></label>
  22. <br />
  23. <input
  24. type="password"
  25. name="changePrivateKeyPassword"
  26. id="newPrivateKeyPassword" />
  27. <label for="newRecoveryPassword"><?php p($l->t( "Current log-in password" )); ?></label>
  28. <br />
  29. <button
  30. type="button"
  31. name="submitChangePrivateKeyPassword"
  32. disabled><?php p($l->t( "Update Private Key Password" )); ?>
  33. </button>
  34. <span class="msg"></span>
  35. </p>
  36. <?php endif; ?>
  37. <?php if ( $_["recoveryEnabled"] && $_["privateKeySet"] ): ?>
  38. <br />
  39. <p>
  40. <label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
  41. <br />
  42. <em><?php p( $l->t( "Enabling this option will allow you to reobtain access to your encrypted files in case of password loss" ) ); ?></em>
  43. <br />
  44. <input
  45. type='radio'
  46. name='userEnableRecovery'
  47. value='1'
  48. <?php echo ( $_["recoveryEnabledForUser"] == 1 ? 'checked="checked"' : '' ); ?> />
  49. <?php p( $l->t( "Enabled" ) ); ?>
  50. <br />
  51. <input
  52. type='radio'
  53. name='userEnableRecovery'
  54. value='0'
  55. <?php echo ( $_["recoveryEnabledForUser"] == 0 ? 'checked="checked"' : '' ); ?> />
  56. <?php p( $l->t( "Disabled" ) ); ?>
  57. <div id="recoveryEnabledSuccess"><?php p( $l->t( 'File recovery settings updated' ) ); ?></div>
  58. <div id="recoveryEnabledError"><?php p( $l->t( 'Could not update file recovery' ) ); ?></div>
  59. </p>
  60. <?php endif; ?>
  61. </fieldset>
  62. </form>