Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

settings-admin.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @author Björn Schießle <schiessle@owncloud.com>
  4. * @author Florin Peter <github@florin-peter.de>
  5. * @author Joas Schilling <nickvergessen@owncloud.com>
  6. * @author Morris Jobke <hey@morrisjobke.de>
  7. * @author Robin Appelman <icewind@owncloud.com>
  8. * @author Sam Tuke <mail@samtuke.com>
  9. *
  10. * @copyright Copyright (c) 2015, ownCloud, Inc.
  11. * @license AGPL-3.0
  12. *
  13. * This code is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Affero General Public License, version 3,
  15. * as published by the Free Software Foundation.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License, version 3,
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>
  24. *
  25. */
  26. \OC_Util::checkAdminUser();
  27. $tmpl = new OCP\Template('files_encryption', 'settings-admin');
  28. // Check if an adminRecovery account is enabled for recovering files after lost pwd
  29. $recoveryAdminEnabled = \OC::$server->getAppConfig()->getValue('files_encryption', 'recoveryAdminEnabled', '0');
  30. $session = new \OCA\Files_Encryption\Session(new \OC\Files\View('/'));
  31. $initStatus = $session->getInitialized();
  32. $tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
  33. $tmpl->assign('initStatus', $initStatus);
  34. \OCP\Util::addscript('files_encryption', 'settings-admin');
  35. \OCP\Util::addscript('core', 'multiselect');
  36. return $tmpl->fetchPage();