Revision 3733,
719 bytes
checked in by gabriel.malheiros, 14 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 | */ |
---|
11 | dbg_error_log("OPTIONS", "method handler"); |
---|
12 | |
---|
13 | include_once('DAVResource.php'); |
---|
14 | $resource = new DAVResource($request->path); |
---|
15 | |
---|
16 | $resource->NeedPrivilege( 'DAV::read', true ); |
---|
17 | |
---|
18 | if ( !$resource->Exists() ) { |
---|
19 | $request->DoResponse( 404, translate("No collection found at that location.") ); |
---|
20 | } |
---|
21 | |
---|
22 | $allowed = implode( ', ', array_keys($resource->FetchSupportedMethods()) ); |
---|
23 | header( 'Allow: '.$allowed); |
---|
24 | |
---|
25 | $request->DoResponse( 200, "" ); |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.