source: contrib/davical/inc/caldav-OPTIONS.php @ 3733

Revision 3733, 719 bytes checked in by gabriel.malheiros, 13 years ago (diff)

Ticket #1541 - <Davical customizado para o Expresso.Utiliza Caldav e CardDav?>

Line 
1<?php
2/**
3* CalDAV Server - handle OPTIONS method
4*
5* @package   davical
6* @subpackage   caldav
7* @author    Andrew McMillan <andrew@mcmillan.net.nz>
8* @copyright Catalyst .Net Ltd, Morphoss Ltd <http://www.morphoss.com/>
9* @license   http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
10*/
11dbg_error_log("OPTIONS", "method handler");
12
13include_once('DAVResource.php');
14$resource = new DAVResource($request->path);
15
16$resource->NeedPrivilege( 'DAV::read', true );
17
18if ( !$resource->Exists() ) {
19  $request->DoResponse( 404, translate("No collection found at that location.") );
20}
21
22$allowed = implode( ', ', array_keys($resource->FetchSupportedMethods()) );
23header( 'Allow: '.$allowed);
24
25$request->DoResponse( 200, "" );
26
Note: See TracBrowser for help on using the repository browser.