mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-10 15:16:02 +00:00
Basic (but broken & untested) support for webdav sync. DB changes to come.
This commit is contained in:
parent
e4460c6004
commit
c54312150c
@ -4,8 +4,8 @@
|
||||
*
|
||||
* @package davical
|
||||
* @subpackage caldav
|
||||
* @author Andrew McMillan <andrew@catalyst.net.nz>
|
||||
* @copyright Catalyst .Net Ltd
|
||||
* @author Andrew McMillan <andrew@morphoss.com>
|
||||
* @copyright Catalyst .Net Ltd, Morphoss Ltd
|
||||
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
|
||||
*/
|
||||
dbg_error_log("REPORT", "method handler");
|
||||
@ -48,9 +48,16 @@ if ( $xmltree->GetTag() == "urn:ietf:params:xml:ns:caldav:free-busy-query" ) {
|
||||
}
|
||||
|
||||
$reply = new XMLDocument( array( "DAV:" => "" ) );
|
||||
if ( $xmltree->GetTag() == "DAV::principal-property-search" ) {
|
||||
include("caldav-REPORT-principal.php");
|
||||
exit; // Not that the above include should return anyway
|
||||
switch( $xmltree->GetTag() ) {
|
||||
case 'DAV::principal-property-search':
|
||||
include("caldav-REPORT-principal.php");
|
||||
exit; // Not that it should return anyway.
|
||||
case 'DAV::sync-collection':
|
||||
include("caldav-REPORT-sync-collection.php");
|
||||
exit; // Not that it should return anyway.
|
||||
case 'DAV::expand-property':
|
||||
include("caldav-REPORT-expand-property.php");
|
||||
exit; // Not that it should return anyway.
|
||||
}
|
||||
|
||||
// Must have read privilege for all other reports
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user