diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index fddfe052d..e8ee320c5 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -1273,6 +1273,7 @@ class Settings { /* {{{ */ // TODO // $this->_coreDir +/* if($this->_coreDir) { if (!file_exists($this->_coreDir ."Core.php")) { $result["coreDir"] = array( @@ -1293,7 +1294,7 @@ class Settings { /* {{{ */ ); } } - +*/ // $this->_httpRoot $tmp = $this->curPageURL(); $tmp = str_replace ("install.php", "" , $tmp); @@ -1444,7 +1445,7 @@ class Settings { /* {{{ */ if(!empty($this->_coreDir)) require_once($this->_coreDir.'/Core.php'); else - require_once('SeedDMS/Core.php'); + require_once($this->_rootDir.'../pear/SeedDMS/Core.php'); $tmpcore = new SeedDMS_Core_DMS(null, $this->_contentDir); $db = new SeedDMS_Core_DatabaseAccess($this->_dbDriver, $this->_dbHostname, $this->_dbUser, $this->_dbPass, $this->_dbDatabase); if(!$db->connect()) { @@ -1507,7 +1508,7 @@ class Settings { /* {{{ */ } // Check PHP version - if (version_compare(PHP_VERSION, '5.6.38') < 0) { + if (version_compare(PHP_VERSION, '7.2.5') < 0) { $result["php_version"] = array( "status" => "versiontolow", "type" => "error", @@ -1517,6 +1518,15 @@ class Settings { /* {{{ */ // Check PHP configuration $loaded_extensions = get_loaded_extensions(); + // xml + if (!in_array("xml", $loaded_extensions)) { + $result["php_xml"] = array( + "status" => "notfound", + "type" => "error", + "suggestion" => "activate_php_extension" + ); + } + // gd2 if (!in_array("gd", $loaded_extensions)) { $result["php_gd2"] = array( @@ -1535,6 +1545,42 @@ class Settings { /* {{{ */ ); } + // json + if (!in_array("json", $loaded_extensions)) { + $result["php_json"] = array( + "status" => "notfound", + "type" => "error", + "suggestion" => "activate_php_extension" + ); + } + + // zip + if (!in_array("zip", $loaded_extensions)) { + $result["php_zip"] = array( + "status" => "notfound", + "type" => "error", + "suggestion" => "activate_php_extension" + ); + } + + // fileinfo + if (!in_array("fileinfo", $loaded_extensions)) { + $result["php_fileinfo"] = array( + "status" => "notfound", + "type" => "error", + "suggestion" => "activate_php_extension" + ); + } + + // sqlite3 + if (!in_array("sqlite3", $loaded_extensions)) { + $result["php_sqlite3"] = array( + "status" => "notfound", + "type" => "error", + "suggestion" => "activate_php_extension" + ); + } + // database if (!in_array('pdo_'.$this->_dbDriver, $loaded_extensions)) { $result["php_dbDriver"] = array( @@ -1558,6 +1604,7 @@ class Settings { /* {{{ */ */ // Check for HTTP/WebDAV/Server.php + /* if (!Settings::findInIncPath('HTTP/WebDAV/Server.php')) { $result["pear_webdav"] = array( "status" => "notfound", @@ -1565,8 +1612,10 @@ class Settings { /* {{{ */ "suggestion" => "install_pear_package_webdav" ); } + */ // Check for Zend/Search/Lucene.php + /* if (!Settings::findInIncPath('Zend/Search/Lucene.php')) { $result["zendframework"] = array( "status" => "notfound", @@ -1574,6 +1623,7 @@ class Settings { /* {{{ */ "suggestion" => "install_zendframework" ); } + */ return $result; } /* }}} */