2015-01-22 01:27:45 +03:00
|
|
|
<?php
|
|
|
|
/** @var array $_ */
|
|
|
|
/** @var OC_L10N $l */
|
|
|
|
?>
|
2014-03-27 19:35:34 +04:00
|
|
|
<form id="encryption" class="section">
|
2015-01-22 01:27:45 +03:00
|
|
|
<h2><?php p($l->t('Server-side Encryption')); ?></h2>
|
2013-06-03 20:42:13 +04:00
|
|
|
|
2014-12-03 18:52:44 +03:00
|
|
|
<?php if($_["initStatus"] === \OCA\Files_Encryption\Session::NOT_INITIALIZED): ?>
|
2014-07-28 13:31:06 +04:00
|
|
|
<?php p($l->t("Encryption App is enabled but your keys are not initialized, please log-out and log-in again")); ?>
|
|
|
|
<?php else: ?>
|
2014-10-07 14:06:46 +04:00
|
|
|
<p id="encryptionSetRecoveryKey">
|
2014-03-27 19:35:34 +04:00
|
|
|
<?php p($l->t("Enable recovery key (allow to recover users files in case of password loss):")); ?>
|
2014-10-07 14:06:46 +04:00
|
|
|
<span class="msg"></span>
|
2014-03-27 19:35:34 +04:00
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<input type="password" name="encryptionRecoveryPassword" id="encryptionRecoveryPassword"/>
|
|
|
|
<label for="recoveryPassword"><?php p($l->t("Recovery key password")); ?></label>
|
|
|
|
<br/>
|
|
|
|
<input type="password" name="encryptionRecoveryPassword" id="repeatEncryptionRecoveryPassword"/>
|
|
|
|
<label for="repeatEncryptionRecoveryPassword"><?php p($l->t("Repeat Recovery key password")); ?></label>
|
|
|
|
<br/>
|
|
|
|
<input
|
|
|
|
type='radio'
|
2014-09-27 19:20:06 +04:00
|
|
|
id='adminEnableRecovery'
|
2014-03-27 19:35:34 +04:00
|
|
|
name='adminEnableRecovery'
|
|
|
|
value='1'
|
2014-10-07 14:06:46 +04:00
|
|
|
<?php echo($_["recoveryEnabled"] === '1' ? 'checked="checked"' : ''); ?> />
|
2014-09-27 19:20:06 +04:00
|
|
|
<label for="adminEnableRecovery"><?php p($l->t("Enabled")); ?></label>
|
2014-03-27 19:35:34 +04:00
|
|
|
<br/>
|
2013-06-03 20:42:13 +04:00
|
|
|
|
2014-03-27 19:35:34 +04:00
|
|
|
<input
|
|
|
|
type='radio'
|
2014-09-27 19:20:06 +04:00
|
|
|
id='adminDisableRecovery'
|
2014-03-27 19:35:34 +04:00
|
|
|
name='adminEnableRecovery'
|
|
|
|
value='0'
|
2014-10-07 14:06:46 +04:00
|
|
|
<?php echo($_["recoveryEnabled"] === '0' ? 'checked="checked"' : ''); ?> />
|
2014-09-27 19:20:06 +04:00
|
|
|
<label for="adminDisableRecovery"><?php p($l->t("Disabled")); ?></label>
|
2014-03-27 19:35:34 +04:00
|
|
|
</p>
|
|
|
|
<br/><br/>
|
2013-06-03 20:42:13 +04:00
|
|
|
|
2014-10-07 14:30:50 +04:00
|
|
|
<p name="changeRecoveryPasswordBlock" id="encryptionChangeRecoveryKey" <?php if ($_['recoveryEnabled'] === '0') print_unescaped('class="hidden"');?>>
|
2014-03-27 19:35:34 +04:00
|
|
|
<strong><?php p($l->t("Change recovery key password:")); ?></strong>
|
2014-10-07 14:30:50 +04:00
|
|
|
<span class="msg"></span>
|
2013-06-03 20:42:13 +04:00
|
|
|
<br/><br/>
|
2014-03-27 19:35:34 +04:00
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changeRecoveryPassword"
|
2014-05-25 22:59:04 +04:00
|
|
|
id="oldEncryptionRecoveryPassword" />
|
2014-03-27 19:35:34 +04:00
|
|
|
<label for="oldEncryptionRecoveryPassword"><?php p($l->t("Old Recovery key password")); ?></label>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changeRecoveryPassword"
|
2014-05-25 22:59:04 +04:00
|
|
|
id="newEncryptionRecoveryPassword" />
|
2014-03-27 19:35:34 +04:00
|
|
|
<label for="newEncryptionRecoveryPassword"><?php p($l->t("New Recovery key password")); ?></label>
|
|
|
|
<br/>
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changeRecoveryPassword"
|
2014-05-25 22:59:04 +04:00
|
|
|
id="repeatedNewEncryptionRecoveryPassword" />
|
2014-03-27 19:35:34 +04:00
|
|
|
<label for="repeatEncryptionRecoveryPassword"><?php p($l->t("Repeat New Recovery key password")); ?></label>
|
|
|
|
<br/>
|
|
|
|
<button
|
|
|
|
type="button"
|
2014-10-07 14:06:46 +04:00
|
|
|
name="submitChangeRecoveryKey">
|
|
|
|
<?php p($l->t("Change Password")); ?>
|
2014-03-27 19:35:34 +04:00
|
|
|
</button>
|
|
|
|
</p>
|
2014-07-28 13:31:06 +04:00
|
|
|
<?php endif; ?>
|
2012-02-23 01:20:46 +04:00
|
|
|
</form>
|