You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings-admin.php 833B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright (c) 2011 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. \OC_Util::checkAdminUser();
  9. $tmpl = new OCP\Template('files_encryption', 'settings-admin');
  10. // Check if an adminRecovery account is enabled for recovering files after lost pwd
  11. $recoveryAdminEnabled = \OC::$server->getAppConfig()->getValue('files_encryption', 'recoveryAdminEnabled', '0');
  12. $session = new \OCA\Files_Encryption\Session(new \OC\Files\View('/'));
  13. $initStatus = $session->getInitialized();
  14. $tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
  15. $tmpl->assign('initStatus', $initStatus);
  16. \OCP\Util::addscript('files_encryption', 'settings-admin');
  17. \OCP\Util::addscript('core', 'multiselect');
  18. return $tmpl->fetchPage();