Move well-known.php into the include directory.

Also start to add some basic support for autodiscover.xml handling.
This commit is contained in:
Andrew McMillan 2011-10-07 09:58:20 +02:00
parent 7f3024a4b6
commit 44ba4443f6
3 changed files with 10 additions and 5 deletions

View File

@ -19,11 +19,16 @@ if ( isset($_SERVER['PATH_INFO']) && preg_match( '{^(/favicon.ico|davical.css|(i
}
exit(0);
}
elseif ( isset($_SERVER['PATH_INFO']) && preg_match( '{^/\.well-known/(.+)$}', $_SERVER['PATH_INFO'], $matches ) ) {
require ('well-known.php');
require_once('./always.php');
if ( isset($_SERVER['PATH_INFO']) && preg_match( '{^/\.well-known/(.+)$}', $_SERVER['PATH_INFO'], $matches ) ) {
require ('well-known.php');
exit(0);
}
elseif ( isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/autodiscover/autodiscover.xml' ) {
require ('autodiscover-handler.php');
exit(0);
}
require_once('./always.php');
function logRequestHeaders() {
global $c;

View File

@ -0,0 +1,2 @@
<?php
echo "autodiscover is not handled yet."

View File

@ -1,7 +1,5 @@
<?php
require_once('./always.php');
dbg_error_log( 'well-known', 'iSchedule requested' );
require_once('HTTPAuthSession.php');