summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-05-16 15:16:35 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-05-16 15:16:35 (GMT)
commit505413660949104a8fea51b0f36f5074999ac38c (patch)
tree8f934a3d197c1a91d249698d53b117d4c28d6202 /public_html
parent14f169e961894f1574fe2ae7dfacecacb677925b (diff)
downloadiRony-505413660949104a8fea51b0f36f5074999ac38c.tar.gz
Send iTIP messages if commanded from iCal
Diffstat (limited to 'public_html')
-rw-r--r--public_html/index.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/public_html/index.php b/public_html/index.php
index fa59084..9f36579 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -74,9 +74,10 @@ if ($debug = $rcube->config->get('kolab_dav_debug')) {
$http_headers .= "$hdr: $value\n";
}
// read HTTP request body (with our own file handle)
- #$in = fopen('php://input', 'r');
- #while (!feof($in)) $http_body .= fread($in, 1024);
- #fclose($in);
+# $in = fopen('php://input', 'r');
+# $http_body = stream_get_contents($in);
+# fseek($in, 0);
+# fclose($in);
$rcube->write_log('davdebug', $http_headers . "\n" . $http_body . "\n");
ob_start(); // turn on output buffering
@@ -115,8 +116,13 @@ $server->setBaseUri($base_uri);
// register some plugins
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($auth_backend, 'KolabDAV'));
$server->addPlugin(new \Sabre\DAVACL\Plugin());
-$server->addPlugin(new \Kolab\CalDAV\Plugin());
$server->addPlugin(new \Kolab\CardDAV\Plugin());
+
+$caldav_plugin = new \Kolab\CalDAV\Plugin();
+$caldav_plugin->setIMipHandler(new \Kolab\CalDAV\IMip());
+$server->addPlugin($caldav_plugin);
+
+// HTML UI for browser-based access (recommended only for development)
$server->addPlugin(new \Sabre\DAV\Browser\Plugin());
// finally, process the request