settings.php 703 B

12345678910111213141516171819202122
  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' );
  10. $blackList = explode( ',', \OCP\Config::getAppValue( 'files_encryption', 'type_blacklist', 'jpg,png,jpeg,avi,mpg,mpeg,mkv,mp3,oga,ogv,ogg' ) );
  11. $tmpl->assign( 'blacklist', $blackList );
  12. $tmpl->assign( 'encryption_mode', \OC_Appconfig::getValue( 'files_encryption', 'mode', 'none' ) );
  13. \OCP\Util::addscript( 'files_encryption', 'settings' );
  14. \OCP\Util::addscript( 'core', 'multiselect' );
  15. return $tmpl->fetchPage();