- include Log.php after Settings has been read

- set db client encoding to utf8
This commit is contained in:
steinm 2012-05-08 08:03:48 +00:00
parent 46bf243ba8
commit ede1f4a992

View File

@ -1,13 +1,11 @@
<?php
#ini_set('include_path', '.:/etc/letodms-webdav:/usr/share/php');
include("Log.php");
include("../inc/inc.Settings.php");
include("Log.php");
include("letodms_webdav.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 . "\"");
$db->_conn->Execute("set names 'utf8'");
$db->getResult("set names 'utf8'");
$dms = new LetoDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);