Browse Source

Add Sabre_DAV_Browser_Plugin to *DAV-servers to ease debugging

remotes/origin/stable4
Jakob Sack 15 years ago
parent
commit
73d0caf8a4
  1. 1
      apps/calendar/caldav.php
  2. 1
      apps/contacts/carddav.php
  3. 1
      files/webdav.php

1
apps/calendar/caldav.php

@ -43,6 +43,7 @@ $server->setBaseUri(OC::$WEBROOT.'/apps/calendar/caldav.php');
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
$server->addPlugin(new Sabre_CalDAV_Plugin());
$server->addPlugin(new Sabre_DAVACL_Plugin());
$server->addPlugin(new Sabre_DAV_Browser_Plugin(false)); // Show something in the Browser, but no upload
// And off we go!
$server->exec();

1
apps/contacts/carddav.php

@ -43,6 +43,7 @@ $server->setBaseUri(OC::$WEBROOT.'/apps/contacts/carddav.php');
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
$server->addPlugin(new Sabre_CardDAV_Plugin());
$server->addPlugin(new Sabre_DAVACL_Plugin());
$server->addPlugin(new Sabre_DAV_Browser_Plugin(false)); // Show something in the Browser, but no upload
// And off we go!
$server->exec();

1
files/webdav.php

@ -42,6 +42,7 @@ $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();
Loading…
Cancel
Save