* @copyright Catalyst .Net Ltd * @license http://gnu.org/copyleft/gpl.html GNU GPL v2 */ require_once("always.php"); dbg_error_log( "caldav", " User agent: %s", $_SERVER['HTTP_USER_AGENT'] ); require_once("BasicAuthSession.php"); $raw_headers = apache_request_headers(); $raw_post = file_get_contents ( 'php://input'); if ( isset($debugging) && isset($_GET['method']) ) { $_SERVER['REQUEST_METHOD'] = $_GET['method']; } /** * A variety of requests may set the "Depth" header to control recursion */ $query_depth = ( isset($_SERVER['HTTP_DEPTH']) ? $_SERVER['HTTP_DEPTH'] : 0 ); if ( $query_depth == 'infinite' ) $query_depth = 99; $query_depth = intval($query_depth); /** * Our path is /