mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 14:07:16 +00:00
- include Log.php after Settings has been read
- set db client encoding to utf8
This commit is contained in:
parent
46bf243ba8
commit
ede1f4a992
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user