From 1eb5308fc25f1f04ee1fe3152b55b9814ce0a6e1 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 30 May 2007 22:52:58 +1200 Subject: [PATCH] Separate the creation of the session object from the definition of it's class. --- htdocs/caldav.php | 2 +- htdocs/freebusy.php | 2 +- inc/BasicAuthSession.php | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/htdocs/caldav.php b/htdocs/caldav.php index 1d41f82f..f489a048 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -11,7 +11,7 @@ require_once("../inc/always.php"); dbg_error_log( "caldav", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry does not send a 'User-agent' header with its requests :-(")) ); require_once("BasicAuthSession.php"); - +$session = new BasicAuthSession(); dbg_log_array( "headers", '_SERVER', $_SERVER, true ); require_once("CalDAVRequest.php"); diff --git a/htdocs/freebusy.php b/htdocs/freebusy.php index dd44b84b..d0fa1f23 100644 --- a/htdocs/freebusy.php +++ b/htdocs/freebusy.php @@ -2,7 +2,7 @@ require_once("../inc/always.php"); dbg_error_log( "freebusy", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) ); require_once("BasicAuthSession.php"); - +$session = new BasicAuthSession(); dbg_log_array( "headers", '_SERVER', $_SERVER, true ); require_once("CalDAVRequest.php"); diff --git a/inc/BasicAuthSession.php b/inc/BasicAuthSession.php index 1d1ad315..a498c0a9 100644 --- a/inc/BasicAuthSession.php +++ b/inc/BasicAuthSession.php @@ -147,7 +147,4 @@ class BasicAuthSession { } - -$session = new BasicAuthSession(); - ?> \ No newline at end of file