summaryrefslogtreecommitdiff
path: root/public_html/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/index.php')
-rw-r--r--public_html/index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 66d3590..6d4464c 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -90,8 +90,10 @@ $base_uri = $rcube->config->get('base_uri', slashify(substr(dirname($_SERVER['SC
// create the various backend instances
$auth_backend = new \Kolab\DAV\Auth\HTTPBasic();
$principal_backend = new \Kolab\DAVACL\PrincipalBackend();
-//$carddav_backend = new \Kolab\CardDAV\ContactsBackend();
+$carddav_backend = new \Kolab\CardDAV\ContactsBackend();
$caldav_backend = new \Kolab\CalDAV\CalendarBackend();
+
+$carddav_backend->setUserAgent($_SERVER['HTTP_USER_AGENT']);
$caldav_backend->setUserAgent($_SERVER['HTTP_USER_AGENT']);
@@ -103,7 +105,7 @@ $nodes = array(
// /calendars
new \Kolab\CalDAV\CalendarRootNode($principal_backend, $caldav_backend),
// /addressbook
- // new \Sabre\CardDAV\AddressBookRoot($principalBackend, $carddavBackend),
+ new \Sabre\CardDAV\AddressBookRoot($principal_backend, $carddav_backend),
);
// the object tree needs in turn to be passed to the server class
@@ -114,7 +116,7 @@ $server->setBaseUri($base_uri);
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($auth_backend, 'KolabDAV'));
$server->addPlugin(new \Sabre\DAVACL\Plugin()); // we'll add that later
$server->addPlugin(new \Kolab\CalDAV\Plugin());
-//$server->addPlugin(new \Sabre\CardDAV\Plugin());
+$server->addPlugin(new \Sabre\CardDAV\Plugin());
$server->addPlugin(new \Sabre\DAV\Browser\Plugin());
// finally, process the request