diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-05-01 19:18:31 +0200 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-05-01 19:21:01 +0200 |
commit | ba29147e34a22142c4bfd2afa3f5b9f1e6efcd63 (patch) | |
tree | 643e10cc813c815253c78d4ab6650c42a8986c91 /apps/files_encryption/settings-admin.php | |
parent | d3db4ee103903e97ec2cfb8430b14699f1f6e8ae (diff) | |
download | nextcloud-server-ba29147e34a22142c4bfd2afa3f5b9f1e6efcd63.tar.gz nextcloud-server-ba29147e34a22142c4bfd2afa3f5b9f1e6efcd63.zip |
Fixed recoveryadmin settings in user and admin settings pages (js, templates, ajax)
Renamed recovery methods in Util{} for clarity
Added note about bug causing slow page load and redundant keypair generation
recoveryAdmin functionality not yet complete
Diffstat (limited to 'apps/files_encryption/settings-admin.php')
-rw-r--r-- | apps/files_encryption/settings-admin.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/apps/files_encryption/settings-admin.php b/apps/files_encryption/settings-admin.php new file mode 100644 index 00000000000..b09515f0c33 --- /dev/null +++ b/apps/files_encryption/settings-admin.php @@ -0,0 +1,28 @@ +<?php +/** + * Copyright (c) 2011 Robin Appelman <icewind@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +\OC_Util::checkAdminUser(); + +$tmpl = new OCP\Template( 'files_encryption', 'settings-admin' ); + +$blackList = explode( ',', \OCP\Config::getAppValue( 'files_encryption', 'type_blacklist', '' ) ); + +// Check if an adminRecovery account is enabled for recovering files after lost pwd +$view = new OC_FilesystemView( '' ); + +$recoveryAdminEnabled = OC_Appconfig::getValue( 'files_encryption', 'recoveryAdminEnabled' ); +$recoveryAdminUid = OC_Appconfig::getValue( 'files_encryption', 'recoveryAdminUid' ); + +$tmpl->assign( 'blacklist', $blackList ); +$tmpl->assign( 'encryption_mode', \OC_Appconfig::getValue( 'files_encryption', 'mode', 'none' ) ); +$tmpl->assign( 'recoveryEnabled', $recoveryAdminEnabled ); + +\OCP\Util::addscript( 'files_encryption', 'settings-admin' ); +\OCP\Util::addscript( 'core', 'multiselect' ); + +return $tmpl->fetchPage(); |