2011-02-09 07:03:00 +00:00
|
|
|
<?php
|
2011-07-20 07:19:06 +00:00
|
|
|
include("../inc/inc.Settings.php");
|
2011-02-09 07:03:00 +00:00
|
|
|
|
2021-02-23 20:05:10 +00:00
|
|
|
require_once("../inc/inc.Language.php");
|
2022-04-07 12:38:49 +00:00
|
|
|
require_once("../inc/inc.Utils.php");
|
|
|
|
|
|
|
|
$logger = getLogger('webdav-');
|
|
|
|
|
2021-02-23 20:05:10 +00:00
|
|
|
require_once("../inc/inc.Init.php");
|
|
|
|
require_once("../inc/inc.Extension.php");
|
|
|
|
require_once("../inc/inc.DBInit.php");
|
|
|
|
require_once("../inc/inc.ClassNotificationService.php");
|
|
|
|
require_once("../inc/inc.ClassEmailNotify.php");
|
|
|
|
require_once("../inc/inc.Notification.php");
|
|
|
|
require_once("../inc/inc.ClassController.php");
|
2021-02-04 09:41:56 +00:00
|
|
|
|
2021-05-14 19:56:09 +00:00
|
|
|
$notifier = new SeedDMS_NotificationService($logger, $settings);
|
2019-08-22 05:47:04 +00:00
|
|
|
|
|
|
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
|
|
|
|
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {
|
|
|
|
if(method_exists($notificationObj, 'preAddService')) {
|
|
|
|
$notificationObj->preAddService($dms, $notifier);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if($settings->_enableEmail) {
|
|
|
|
$notifier->addService(new SeedDMS_EmailNotify($dms, $settings->_smtpSendFrom, $settings->_smtpServer, $settings->_smtpPort, $settings->_smtpUser, $settings->_smtpPassword));
|
|
|
|
}
|
|
|
|
|
|
|
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
|
|
|
|
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {
|
|
|
|
if(method_exists($notificationObj, 'postAddService')) {
|
|
|
|
$notificationObj->postAddService($dms, $notifier);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:36:24 +00:00
|
|
|
include("webdav.php");
|
2013-02-14 11:10:53 +00:00
|
|
|
$server = new HTTP_WebDAV_Server_SeedDMS();
|
2021-02-04 09:41:56 +00:00
|
|
|
$server->ServeRequest($dms, $logger, $notifier);
|
2011-02-09 07:03:00 +00:00
|
|
|
//$files = array();
|
|
|
|
//$options = array('path'=>'/Test1/subdir', 'depth'=>1);
|
|
|
|
//echo $server->MKCOL(&$options);
|
|
|
|
|
|
|
|
?>
|