Blame view

sources/apps/files_encryption/templates/settings-personal.php 2.28 KB
03e52840d   Kload   Init
1
2
  <form id="encryption">
  	<fieldset class="personalblock">
31b7f2792   Kload   Upgrade to ownclo...
3
  		<h2><?php p( $l->t( 'Encryption' ) ); ?></h2>
03e52840d   Kload   Init
4
  
31b7f2792   Kload   Upgrade to ownclo...
5
  		<?php if ( $_["initialized"] === '1' ): ?>
03e52840d   Kload   Init
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  			<p>
  				<a name="changePKPasswd" />
  				<label for="changePrivateKeyPasswd">
  					<?php p( $l->t( "Your private key password no longer match your log-in password:" ) ); ?>
  				</label>
  				<br />
  				<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>
  				<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; ?>
  
03e52840d   Kload   Init
39
  		<?php if ( $_["recoveryEnabled"] && $_["privateKeySet"] ): ?>
31b7f2792   Kload   Upgrade to ownclo...
40
  			<br />
03e52840d   Kload   Init
41
42
43
44
45
  			<p>
  				<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
  				<br />
  				<em><?php p( $l->t( "Enabling this option will allow you to reobtain access to your encrypted files in case of password loss" ) ); ?></em>
  				<br />
31b7f2792   Kload   Upgrade to ownclo...
46
  				<input
03e52840d   Kload   Init
47
48
49
50
51
52
  				type='radio'
  				name='userEnableRecovery'
  				value='1'
  				<?php echo ( $_["recoveryEnabledForUser"] == 1 ? 'checked="checked"' : '' ); ?> />
  				<?php p( $l->t( "Enabled" ) ); ?>
  				<br />
31b7f2792   Kload   Upgrade to ownclo...
53
54
  
  				<input
03e52840d   Kload   Init
55
56
57
58
59
60
61
62
63
64
  				type='radio'
  				name='userEnableRecovery'
  				value='0'
  				<?php echo ( $_["recoveryEnabledForUser"] == 0 ? 'checked="checked"' : '' ); ?> />
  				<?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>
  			</p>
  		<?php endif; ?>
  
03e52840d   Kload   Init
65
66
  	</fieldset>
  </form>