mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
- do not use old config file anymore.
- write log into contentDir/webdav-xx
This commit is contained in:
parent
27fd51e12d
commit
c26aa95b0d
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
ini_set('include_path', '.:/etc/letodms-webdav:/usr/share/php');
|
||||
#ini_set('include_path', '.:/etc/letodms-webdav:/usr/share/php');
|
||||
|
||||
include("config.php");
|
||||
include("Log.php");
|
||||
include("letodms_webdav.php");
|
||||
include("../inc/inc.Settings.php");
|
||||
|
@ -12,7 +11,15 @@ $db->_conn->Execute("set names 'utf8'");
|
|||
|
||||
$dms = new LetoDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir);
|
||||
|
||||
$log = Log::factory('file', $g_config['logfile']);
|
||||
if($settings->_logFileEnable) {
|
||||
if ($settings->_logFileRotation=="h") $logname=date("YmdH", time());
|
||||
else if ($settings->_logFileRotation=="d") $logname=date("Ymd", time());
|
||||
else $logname=date("Ym", time());
|
||||
$logname = $settings->_contentDir."webdav-".$logname.".log";
|
||||
$log = Log::factory('file', $logname);
|
||||
} else {
|
||||
$log = null;
|
||||
}
|
||||
|
||||
$server = new HTTP_WebDAV_Server_LetoDMS();
|
||||
$server->ServeRequest($dms, $log);
|
||||
|
|
Loading…
Reference in New Issue
Block a user