mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
- updated on new configuration setting
This commit is contained in:
parent
f9d8091d77
commit
bb3ce66aaf
|
@ -4,12 +4,13 @@ ini_set('include_path', '.:/etc/letodms-webdav:/usr/share/php');
|
||||||
include("config.php");
|
include("config.php");
|
||||||
include("Log.php");
|
include("Log.php");
|
||||||
include("letodms_webdav.php");
|
include("letodms_webdav.php");
|
||||||
|
include("../inc/inc.Settings.php");
|
||||||
|
|
||||||
$db = new LetoDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
|
$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 \"" . $g_config['hostname'] . "\"");
|
$db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\"");
|
||||||
$db->_conn->Execute("set names 'utf8'");
|
$db->_conn->Execute("set names 'utf8'");
|
||||||
|
|
||||||
$dms = new LetoDMS_Core_DMS($db, $g_config['contentDir'].$g_config['contentOffsetDir']);
|
$dms = new LetoDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||||
|
|
||||||
$log = Log::factory('file', $g_config['logfile']);
|
$log = Log::factory('file', $g_config['logfile']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user