mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Add support for carddav / caldav well-known URLs. Fix short open tag.
This commit is contained in:
parent
eb4193dc0d
commit
5d14ab0fe0
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
|
||||
require_once('./always.php');
|
||||
|
||||
@ -7,12 +7,22 @@ dbg_error_log( 'well-known', 'iSchedule requested' );
|
||||
require_once('HTTPAuthSession.php');
|
||||
$c->allow_unauthenticated = true;
|
||||
$session = new HTTPAuthSession();
|
||||
if ( ! isset ( $request ) )
|
||||
{
|
||||
|
||||
if ( ! isset ( $request ) ) {
|
||||
require_once('CalDAVRequest.php');
|
||||
$request = new CalDAVRequest();
|
||||
}
|
||||
|
||||
|
||||
switch ( $request->path ) {
|
||||
case '/.well-known/caldav':
|
||||
case '/.well-known/carddav':
|
||||
header('Location: ' . ConstructURL('/',true) );
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ( $c->enable_scheduling != true )
|
||||
{
|
||||
$request->DoResponse( 404, translate('The application program does not understand that request.') );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user