2015-02-24 21:05:19 +03:00
|
|
|
<?php
|
|
|
|
/**
|
2015-03-27 03:35:36 +03:00
|
|
|
* Copyright (c) 2015 Clark Tomlinson <clark@owncloud.com>
|
2015-02-24 21:05:19 +03:00
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
2015-03-25 00:29:10 +03:00
|
|
|
use OCA\Encryption\KeyManager;
|
|
|
|
|
2015-02-24 21:05:19 +03:00
|
|
|
\OC_Util::checkAdminUser();
|
|
|
|
|
2015-03-27 17:01:46 +03:00
|
|
|
$tmpl = new OCP\Template('encryption', 'settings-admin');
|
2015-02-24 21:05:19 +03:00
|
|
|
|
|
|
|
// Check if an adminRecovery account is enabled for recovering files after lost pwd
|
2015-03-25 00:29:10 +03:00
|
|
|
$recoveryAdminEnabled = \OC::$server->getConfig()->getAppValue('encryption', 'recoveryAdminEnabled', '0');
|
2015-02-24 21:05:19 +03:00
|
|
|
|
|
|
|
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
2015-03-27 03:35:36 +03:00
|
|
|
$tmpl->assign('initStatus', KeyManager::$session->get('initStatus'));
|
2015-02-24 21:05:19 +03:00
|
|
|
|
|
|
|
\OCP\Util::addscript('files_encryption', 'settings-admin');
|
|
|
|
\OCP\Util::addscript('core', 'multiselect');
|
|
|
|
|
|
|
|
return $tmpl->fetchPage();
|