seeddms-code/webdav/index.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2011-02-09 07:03:00 +00:00
<?php
2011-07-20 07:19:06 +00:00
include("../inc/inc.Settings.php");
2018-03-07 11:36:24 +00:00
include("../inc/inc.Init.php");
include("../inc/inc.Extension.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassNotificationService.php");
include("../inc/inc.ClassEmailNotify.php");
include("../inc/inc.ClassController.php");
include("Log.php");
2011-02-09 07:03:00 +00:00
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());
2018-03-14 09:16:10 +00:00
$logname = $settings->_contentDir."log/webdav-".$logname.".log";
if(!file_exists($settings->_contentDir.'log'))
@mkdir($settings->_contentDir.'log');
2018-03-22 14:13:09 +00:00
if(file_exists($settings->_contentDir.'log') && is_dir($settings->_contentDir.'log')) {
2018-03-14 09:16:10 +00:00
$log = Log::factory('file', $logname);
2018-03-22 14:13:09 +00:00
$log->setMask(Log::MAX(PEAR_LOG_INFO));
} else
2018-03-14 09:16:10 +00:00
$log = null;
} else {
$log = null;
}
2011-02-09 07:03:00 +00:00
2018-03-07 11:36:24 +00:00
include("webdav.php");
$server = new HTTP_WebDAV_Server_SeedDMS();
2011-02-09 07:03:00 +00:00
$server->ServeRequest($dms, $log);
//$files = array();
//$options = array('path'=>'/Test1/subdir', 'depth'=>1);
//echo $server->MKCOL(&$options);
?>