- add _ADOdbPath to include_path

- new version 3.4.0
- output error if dir for configuration file could not be found
This commit is contained in:
steinm 2012-08-28 07:45:40 +00:00
parent 9240c4b2f7
commit c6e0689cff

View File

@ -88,7 +88,7 @@ function printCheckError($resCheck) { /* {{{ */
* Load default settings + set
*/
define("LETODMS_INSTALL", "on");
define("LETODMS_VERSION", "3.3.0");
define("LETODMS_VERSION", "3.4.0");
require_once('../inc/inc.ClassSettings.php');
@ -97,6 +97,11 @@ $configDir = Settings::getConfigDir();
/**
* Check if ENABLE_INSTALL_TOOL exists in config dir
*/
if (!$configDir) {
echo "Fatal error! I could not even find a configuration directory.";
exit;
}
if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
echo "For installation of LetoDMS, you must create the file conf/ENABLE_INSTALL_TOOL";
exit;
@ -135,6 +140,9 @@ if(!$settings->_contentDir) {
}
$settings->_httpRoot = $httpRoot;
if(isset($settings->_ADOdbPath))
ini_set('include_path', $settings->_ADOdbPath. PATH_SEPARATOR .ini_get('include_path'));
/**
* Include GUI + Language
*/