-
Notifications
You must be signed in to change notification settings - Fork 0
/
webdav.php
22 lines (17 loc) · 912 Bytes
/
webdav.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
# +--------------------------------------------------------------------+
# | phpEasyVCS |
# | The file-based version control system |
# +--------------------------------------------------------------------+
# | Copyright (c) 2011 Martin Vlcek |
# | License: GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html) |
# +--------------------------------------------------------------------+
define('WEBUI', false);
require_once("inc/basic.php");
require_once("inc/locksupport.class.php");
chdir (dirname(__FILE__) . "/inc");
require_once("vcswebdav.class.php");
$vcs = new FileVCS(DATAPATH, null, getUserName(), isReadOnly());
$locksupport = new LockSupport(DATAPATH.'locks.txt');
$server = new VCSWebDAVServerWithLockSupport($vcs, $locksupport, TMP_DIR);
$server->ServeRequest();