2015-03-27 17:01:46 +03:00
< ? php
2015-03-30 12:49:03 +03:00
/** @var array $_ */
/** @var OC_L10N $l */
script ( 'encryption' , 'settings-admin' );
script ( 'core' , 'multiselect' );
2015-05-07 13:55:49 +03:00
style ( 'encryption' , 'settings-admin' );
2015-03-27 17:01:46 +03:00
?>
2015-05-04 12:51:02 +03:00
< form id = " ocDefaultEncryptionModule " class = " sub-section " >
2015-03-30 23:10:04 +03:00
< ? php if ( ! $_ [ " initStatus " ]) : ?>
2015-03-27 17:01:46 +03:00
< ? php p ( $l -> t ( " Encryption App is enabled but your keys are not initialized, please log-out and log-in again " )); ?>
< ? php else : ?>
< p id = " encryptionSetRecoveryKey " >
2015-05-07 13:55:49 +03:00
< ? php $_ [ " recoveryEnabled " ] === '0' ? p ( $l -> t ( " Enable recovery key " )) : p ( $l -> t ( " Disable recovery key " )); ?>
2015-03-27 17:01:46 +03:00
< span class = " msg " ></ span >
< br />
2015-05-04 11:51:08 +03:00
< em >
2015-05-09 12:31:21 +03:00
< ? php p ( $l -> t ( " The recovery key is an extra encryption key that is used to encrypt files. It allows recovery of a user's files if the user forgets his or her password. " )) ?>
2015-05-04 11:51:08 +03:00
</ em >
2015-03-27 17:01:46 +03:00
< br />
2015-05-07 13:55:49 +03:00
< input type = " password "
name = " encryptionRecoveryPassword "
id = " encryptionRecoveryPassword "
placeholder = " <?php p( $l->t ( " Recovery key password " )); ?> " />
< input type = " password "
name = " encryptionRecoveryPassword "
id = " repeatEncryptionRecoveryPassword "
placeholder = " <?php p( $l->t ( " Repeat recovery key password " )); ?> " />
< input type = " button "
name = " enableRecoveryKey "
id = " enableRecoveryKey "
status = " <?php p( $_["recoveryEnabled"] ) ?> "
value = " <?php $_["recoveryEnabled"] === '0' ? p( $l->t ( " Enable recovery key " )) : p( $l->t ( " Disable recovery key " )); ?> " />
2015-03-27 17:01:46 +03:00
</ p >
< br />< br />
2015-05-07 13:55:49 +03:00
< p name = " changeRecoveryPasswordBlock " id = " encryptionChangeRecoveryKey " < ? php if ( $_ [ 'recoveryEnabled' ] === '0' ) print_unescaped ( 'class="hidden"' ); ?> >
< ? php p ( $l -> t ( " Change recovery key password: " )); ?>
2015-03-27 17:01:46 +03:00
< span class = " msg " ></ span >
2015-05-07 13:55:49 +03:00
< br />
2015-03-27 17:01:46 +03:00
< input
type = " password "
name = " changeRecoveryPassword "
2015-05-07 13:55:49 +03:00
id = " oldEncryptionRecoveryPassword "
placeholder = " <?php p( $l->t ( " Old recovery key password " )); ?> " />
< br />
2015-03-27 17:01:46 +03:00
< input
type = " password "
name = " changeRecoveryPassword "
2015-05-07 13:55:49 +03:00
id = " newEncryptionRecoveryPassword "
placeholder = " <?php p( $l->t ( " New recovery key password " )); ?> " />
2015-03-27 17:01:46 +03:00
< input
type = " password "
name = " changeRecoveryPassword "
2015-05-07 13:55:49 +03:00
id = " repeatedNewEncryptionRecoveryPassword "
placeholder = " <?php p( $l->t ( " Repeat new recovery key password " )); ?> " />
2015-03-27 17:01:46 +03:00
< button
type = " button "
name = " submitChangeRecoveryKey " >
< ? php p ( $l -> t ( " Change Password " )); ?>
</ button >
</ p >
< ? php endif ; ?>
</ form >