_ADOdbPath)) ini_set('include_path', $settings->_ADOdbPath. PATH_SEPARATOR .ini_get('include_path')); if(!empty($settings->_coreDir)) require_once($settings->_coreDir.'/Core.php'); else require_once('LetoDMS/Core.php'); $db = new LetoDMS_Core_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase); $db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\""); $dms = new LetoDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir); if(!$dms->checkVersion()) { echo "Database update needed."; exit; } $dms->setRootFolderID($settings->_rootFolderID); $dms->setMaxDirID($settings->_maxDirID); $dms->setEnableAdminRevApp($settings->_enableAdminRevApp); $dms->setEnableConverting($settings->_enableConverting); $dms->setViewOnlineFileTypes($settings->_viewOnlineFileTypes); ?>