2012-08-02 08:39:30 +00:00
|
|
|
<form id="encryption">
|
2013-01-22 17:15:03 +00:00
|
|
|
<fieldset class="personalblock">
|
2013-10-11 13:56:08 +00:00
|
|
|
<h2><?php p( $l->t( 'Encryption' ) ); ?></h2>
|
2013-06-03 13:27:31 +00:00
|
|
|
|
2013-09-02 09:26:11 +00:00
|
|
|
<?php if ( ! $_["privateKeySet"] && $_["initialized"] ): ?>
|
2013-06-03 13:27:31 +00:00
|
|
|
<p>
|
2013-06-04 08:49:58 +00:00
|
|
|
<a name="changePKPasswd" />
|
2013-06-05 16:53:02 +00:00
|
|
|
<label for="changePrivateKeyPasswd">
|
|
|
|
<?php p( $l->t( "Your private key password no longer match your log-in password:" ) ); ?>
|
|
|
|
</label>
|
2013-06-03 13:27:31 +00:00
|
|
|
<br />
|
2013-06-05 16:53:02 +00:00
|
|
|
<em><?php p( $l->t( "Set your old private key password to your current log-in password." ) ); ?>
|
|
|
|
<?php if ( $_["recoveryEnabledForUser"] ):
|
|
|
|
p( $l->t( " If you don't remember your old password you can ask your administrator to recover your files." ) );
|
|
|
|
endif; ?>
|
|
|
|
</em>
|
2013-06-03 13:27:31 +00:00
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changePrivateKeyPassword"
|
|
|
|
id="oldPrivateKeyPassword" />
|
|
|
|
<label for="oldPrivateKeyPassword"><?php p($l->t( "Old log-in password" )); ?></label>
|
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changePrivateKeyPassword"
|
|
|
|
id="newPrivateKeyPassword" />
|
|
|
|
<label for="newRecoveryPassword"><?php p($l->t( "Current log-in password" )); ?></label>
|
|
|
|
<br />
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
name="submitChangePrivateKeyPassword"
|
|
|
|
disabled><?php p($l->t( "Update Private Key Password" )); ?>
|
|
|
|
</button>
|
|
|
|
<span class="msg"></span>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2013-06-05 16:53:02 +00:00
|
|
|
<?php if ( $_["recoveryEnabled"] && $_["privateKeySet"] ): ?>
|
2013-10-11 13:56:08 +00:00
|
|
|
<br />
|
2013-05-04 14:14:38 +00:00
|
|
|
<p>
|
2013-06-04 19:19:42 +00:00
|
|
|
<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
|
2013-05-07 14:17:38 +00:00
|
|
|
<br />
|
2013-06-04 19:19:42 +00:00
|
|
|
<em><?php p( $l->t( "Enabling this option will allow you to reobtain access to your encrypted files in case of password loss" ) ); ?></em>
|
2013-05-04 14:14:38 +00:00
|
|
|
<br />
|
2013-09-02 09:26:11 +00:00
|
|
|
<input
|
2013-05-04 14:14:38 +00:00
|
|
|
type='radio'
|
|
|
|
name='userEnableRecovery'
|
|
|
|
value='1'
|
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] == 1 ? 'checked="checked"' : '' ); ?> />
|
2013-05-07 14:17:38 +00:00
|
|
|
<?php p( $l->t( "Enabled" ) ); ?>
|
2013-05-04 14:14:38 +00:00
|
|
|
<br />
|
2013-09-02 09:26:11 +00:00
|
|
|
|
|
|
|
<input
|
2013-05-04 14:14:38 +00:00
|
|
|
type='radio'
|
|
|
|
name='userEnableRecovery'
|
|
|
|
value='0'
|
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] == 0 ? 'checked="checked"' : '' ); ?> />
|
2013-05-07 14:17:38 +00:00
|
|
|
<?php p( $l->t( "Disabled" ) ); ?>
|
|
|
|
<div id="recoveryEnabledSuccess"><?php p( $l->t( 'File recovery settings updated' ) ); ?></div>
|
|
|
|
<div id="recoveryEnabledError"><?php p( $l->t( 'Could not update file recovery' ) ); ?></div>
|
2013-05-04 14:14:38 +00:00
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
2013-06-03 13:27:31 +00:00
|
|
|
|
2012-08-02 08:39:30 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|