diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-07-22 14:38:42 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-07-22 14:38:42 +0200 |
commit | 7c9f356abeaaa9348332908bfcced21be88011ac (patch) | |
tree | 4ef4e6ad548175532d0a903d6d5b681d3da56320 /files/webdav.php | |
parent | 86cd8063b49315246929f51774ac5314dab2c2cb (diff) | |
download | nextcloud-server-7c9f356abeaaa9348332908bfcced21be88011ac.tar.gz nextcloud-server-7c9f356abeaaa9348332908bfcced21be88011ac.zip |
Support for locks, minor changes
Diffstat (limited to 'files/webdav.php')
-rw-r--r-- | files/webdav.php | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/files/webdav.php b/files/webdav.php index 7d5855672ac..7dce0b48197 100644 --- a/files/webdav.php +++ b/files/webdav.php @@ -28,23 +28,29 @@ $RUNTIME_NOSETUPFS = true; require_once('../lib/base.php'); require_once('Sabre/autoload.php'); -require_once('Sabre/DAV/Auth/Backend/Owncloud.php'); -require_once('Sabre/DAV/FS/OwncloudNode.php'); -require_once('Sabre/DAV/FS/OwncloudFile.php'); -require_once('Sabre/DAV/FS/OwncloudDirectory.php'); +require_once('Connector/Sabre/auth.php'); +require_once('Connector/Sabre/node.php'); +require_once('Connector/Sabre/file.php'); +require_once('Connector/Sabre/directory.php'); +require_once('Connector/Sabre/locks.php'); // Create ownCloud Dir -$publicDir = new OC_Sabre_DAV_FS_OwncloudDirectory(''); +$publicDir = new OC_Connector_Sabre_Directory(''); $server = new Sabre_DAV_Server($publicDir); // Path to our script $server->setBaseUri($WEBROOT.'/files/webdav.php'); // Auth backend -$authBackend = new OC_Sabre_DAV_Auth_Backend_Owncloud(); +$authBackend = new OC_Connector_Sabre_Auth(); $authPlugin = new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'); $server->addPlugin($authPlugin); +// Also make sure there is a 'data' directory, writable by the server. This directory is used to store information about locks +$lockBackend = new OC_Connector_Sabre_Locks(); +$lockPlugin = new Sabre_DAV_Locks_Plugin($lockBackend); +$server->addPlugin($lockPlugin); + // And off we go! $server->exec(); |