summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-10-28 19:48:46 +0100
committerBart Visscher <bartv@thisnet.nl>2012-10-29 15:04:56 +0100
commitccbf4e993c99c6a42c8e1574405244dbd5f660ca (patch)
tree8561f175a6a28d8f9c37583886844f4ff30f8449 /files
parenta9ff5635d800c77e78928e5fd35e796ec6bc70f6 (diff)
downloadnextcloud-server-ccbf4e993c99c6a42c8e1574405244dbd5f660ca.tar.gz
nextcloud-server-ccbf4e993c99c6a42c8e1574405244dbd5f660ca.zip
Use files remote webdav in compatibility files/webdav.php
Diffstat (limited to 'files')
-rw-r--r--files/webdav.php23
1 files changed, 3 insertions, 20 deletions
diff --git a/files/webdav.php b/files/webdav.php
index e7292d5a19f..87dd0191969 100644
--- a/files/webdav.php
+++ b/files/webdav.php
@@ -24,24 +24,7 @@
*/
// only need filesystem apps
-$RUNTIME_APPTYPES=array('filesystem','authentication');
+$RUNTIME_APPTYPES=array('filesystem', 'authentication');
require_once '../lib/base.php';
-
-// Backends
-$authBackend = new OC_Connector_Sabre_Auth();
-$lockBackend = new OC_Connector_Sabre_Locks();
-
-// Create ownCloud Dir
-$publicDir = new OC_Connector_Sabre_Directory('');
-
-// Fire up server
-$server = new Sabre_DAV_Server($publicDir);
-$server->setBaseUri(OC::$WEBROOT. '/files/webdav.php');
-
-// Load plugins
-$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend, 'ownCloud'));
-$server->addPlugin(new Sabre_DAV_Locks_Plugin($lockBackend));
-$server->addPlugin(new Sabre_DAV_Browser_Plugin(false)); // Show something in the Browser, but no upload
-
-// And off we go!
-$server->exec();
+$baseuri = OC::$WEBROOT. '/files/webdav.php';
+require_once 'apps/files/appinfo/remote.php';