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