diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-26 21:14:59 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-26 21:14:59 +0100 |
commit | 232518ac548a1d8f99c51fe391eb6132c1154dba (patch) | |
tree | dcf369f169b600028bdb2d55d577fc7ffe781b32 /settings/admin.php | |
parent | 0cb133003ced4e3d2486b6301459ea0e998ef2ec (diff) | |
parent | ff9c85ce60aac1098c741b7ea630d9fc545e3d96 (diff) | |
download | nextcloud-server-232518ac548a1d8f99c51fe391eb6132c1154dba.tar.gz nextcloud-server-232518ac548a1d8f99c51fe391eb6132c1154dba.zip |
Merge pull request #15234 from owncloud/encryption2_core
core part of encryption 2.0
Diffstat (limited to 'settings/admin.php')
-rw-r--r-- | settings/admin.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php index 9f5f36b2210..4416af1fe37 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -81,6 +81,23 @@ $template->assign('shareExcludeGroups', $excludeGroups); $excludedGroupsList = $appConfig->getValue('core', 'shareapi_exclude_groups_list', ''); $excludedGroupsList = explode(',', $excludedGroupsList); // FIXME: this should be JSON! $template->assign('shareExcludedGroupsList', implode('|', $excludedGroupsList)); +$template->assign('encryptionEnabled', \OC::$server->getEncryptionManager()->isEnabled()); +$encryptionModules = \OC::$server->getEncryptionManager()->getEncryptionModules(); +try { + $defaultEncryptionModule = \OC::$server->getEncryptionManager()->getDefaultEncryptionModule(); + $defaultEncryptionModuleId = $defaultEncryptionModule->getId(); +} catch (Exception $e) { + $defaultEncryptionModule = null; +} +$encModulues = array(); +foreach ($encryptionModules as $module) { + $encModulues[$module->getId()]['displayName'] = $module->getDisplayName(); + $encModulues[$module->getId()]['default'] = false; + if ($defaultEncryptionModule && $module->getId() === $defaultEncryptionModuleId) { + $encModulues[$module->getId()]['default'] = true; + } +} +$template->assign('encryptionModules', $encModulues); // If the current web root is non-empty but the web root from the config is, // and system cron is used, the URL generator fails to build valid URLs. @@ -142,6 +159,7 @@ $formsAndMore = array_merge($formsAndMore, $formsMap); // add bottom hardcoded forms from the template $formsAndMore[] = array('anchor' => 'backgroundjobs', 'section-name' => $l->t('Cron')); $formsAndMore[] = array('anchor' => 'shareAPI', 'section-name' => $l->t('Sharing')); +$formsAndMore[] = array('anchor' => 'encryptionAPI', 'section-name' => $l->t('Server Side Encryption')); $formsAndMore[] = array('anchor' => 'mail_general_settings', 'section-name' => $l->t('Email Server')); $formsAndMore[] = array('anchor' => 'log-section', 'section-name' => $l->t('Log')); $formsAndMore[] = array('anchor' => 'admin-tips', 'section-name' => $l->t('Tips & tricks')); |