From 9fb22f051838042a56dba4f54e4cc68b04f6fc4f Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Thu, 25 Aug 2016 21:58:07 +0200 Subject: Add more details on integrity, webserver, php, nc version --- lib/Settings/Admin.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 386b3d3..30953ce 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -61,13 +61,13 @@ class Admin implements ISettings { public function getForm() { $data = array( - 'version' => $this->config->getSystemValue('version'), + 'version' => \OC_Util::getHumanVersion() . " - " . $this->config->getSystemValue('version'), 'os' => php_uname(), - 'php' => PHP_VERSION, + 'php' => PHP_VERSION . "\nModules loaded: " . implode(", ", get_loaded_extensions()), 'dbserver' => $this->config->getSystemValue('dbtype'), - 'webserver' => $_SERVER['software'] . " " . php_sapi_name(), + 'webserver' => $_SERVER['SERVER_SOFTWARE'] . " (" . php_sapi_name() . ")", 'installMethod' => $this->getInstallMethod(), - 'integrity' => $this->checker->verifyCoreSignature(), + 'integrity' => $this->getIntegrityResults(), 'apps' => $this->getAppList(), 'config' => $this->getConfig(), ); @@ -89,6 +89,13 @@ class Admin implements ISettings { return 10; } + private function getIntegrityResults() { + if(!$this->checker->isCodeCheckEnforced()) { + return 'Integrity checker has been disabled. Integrity cannot be verified.'; + } + return $this->checker->getResults(); + } + private function getInstallMethod() { $base = \OC::$SERVERROOT; if(file_exists($base . '/.git')) { -- cgit v1.2.3