aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/templates/settings-personal.php
blob: 33989416d33de4f4666ad69da9e8636f72ff49d2 (plain)
1
2
3
4
5
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<form id="encryption">
	<fieldset class="personalblock">
		<legend>
			<?php p( $l->t( 'Encryption' ) ); ?>
		</legend>
		
		<p>
<!-- 			<?php p( $l->t( 'File encryption is enabled.' ) ); ?> -->
		</p>
		<?php if ( ! empty( $_["blacklist"] ) ): ?>
		<p>
			<strong>File types</strong>
			<br />
			<?php p( $l->t( 'The following file types will not be encrypted:' ) ); ?>
		</p>
		
		<ul>
			<?php foreach( $_["blacklist"] as $type ): ?>
			<li>
				<?php p($type); ?>
			</li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
		<br />
		<?php if ( $_["recoveryEnabled"] ): ?>
			<p>
				<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery by sharing all files with administrator:" ) ); ?></label>
				<br />
				<em><?php p( $l->t( "Enabling this option will allow you to reobtain access to your encrypted files if your password is lost" ) ); ?></em>
				<br />
				<input 
				type='radio'
				name='userEnableRecovery'
				value='1'
				<?php echo ( $_["recoveryEnabledForUser"] == 1 ? 'checked="checked"' : '' ); ?> />
				<?php p( $l->t( "Enabled" ) ); ?>
				<br />
				
				<input 
				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; ?>
		<br />
<!--
		<p>
				<label for="encryptAll"><?php p( $l->t( "Scan for unencrypted files and encrypt them" ) ); ?></label>
				<br />
				<em><?php p( $l->t( "Use this if you suspect that you still have files which are unencrypted, or encrypted using ownCloud 4 or older." ) ); ?></em>
				<br />
				<input type="submit" id="encryptAll" name="encryptAll" value="<?php p( $l->t( 'Scan and encrypt files' ) ); ?>" />
				<input type="password" name="userPassword" id="userPassword" />
				<label for="encryptAll"><?php p( $l->t( "Account password" ) ); ?></label>
				<div id="encryptAllSuccess"><?php p( $l->t( 'Scan complete' ) );?></div>
				<div id="encryptAllError"><?php p( $l->t( 'Unable to scan and encrypt files' ) );?></div>
		</p>
-->
	</fieldset>
</form>