Created
September 15, 2015 10:02
-
-
Save schiessle/1df8b768786f99befcc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function isEnabled() { | |
$installed = $this->config->getSystemValue('installed', false); | |
if (!$installed) { | |
$this->logger->error('config.php installed was FALSE'); | |
$path = \OC::$SERVERROOT . '/config/config.php'; | |
if(file_exists(\OC::$SERVERROOT . '/config/config.php')) { | |
$this->logger->error('config.php exists (path: ' . $path . '). Content:'); | |
$this->logger->error(file_get_contents(\OC::$SERVERROOT . '/config/config.php')); | |
} else { | |
$this->logger->error('config.php does NOT exists (path: ' . $path . ')'); | |
} | |
return false; | |
} | |
$enabled = $this->config->getAppValue('core', 'encryption_enabled', 'debugDefault'); | |
if ($enabled !== 'yes') { | |
$this->logger->error('Encryption NOT enabled. Value: ' . $enabled); | |
} | |
return $enabled === 'yes'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment