diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-12-18 05:46:56 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-12-18 05:46:56 +0000 |
commit | 6836dee9183062225cf3095cafc07f5fe928af13 (patch) | |
tree | fcc69e6a3bf4fa5d2aaed168472ada27e16e37da | |
parent | d8dc3a393e776ade02e680f64787baac9b4397f7 (diff) | |
download | phpicalendar-6836dee9183062225cf3095cafc07f5fe928af13.tar.gz phpicalendar-6836dee9183062225cf3095cafc07f5fe928af13.tar.bz2 phpicalendar-6836dee9183062225cf3095cafc07f5fe928af13.zip |
Fixed a bug where HTTP was being used, even if turned off in config.
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | config.inc.php | 2 | ||||
-rw-r--r-- | functions/calendar_functions.php | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -86,6 +86,9 @@ functions folder. Changes: -------- +1.1 + -Fixed a bug with HTTP authentication + 1.0 -Added return false to popups -Added workaround for improperly set DTSTART dates. diff --git a/config.inc.php b/config.inc.php index 201199f..55502eb 100644 --- a/config.inc.php +++ b/config.inc.php @@ -1,6 +1,6 @@ <?php -// Configuration file for PHP iCalendar 1.0 +// Configuration file for PHP iCalendar 1.1 // // To set values, change the text between the single quotes // Follow instructions to the right for detailed information diff --git a/functions/calendar_functions.php b/functions/calendar_functions.php index 45cf670..4c2f7a3 100644 --- a/functions/calendar_functions.php +++ b/functions/calendar_functions.php @@ -21,7 +21,7 @@ function availableCalendars($username, $password, $cal_filename, $admin = false) // Grab any HTTP authentication. unset($http_user); - if (isset($_SERVER['PHP_AUTH_USER'])) { + if ((isset($_SERVER['PHP_AUTH_USER'])) && ($allow_login == 'yes')) { $http_user = $_SERVER['PHP_AUTH_USER']; } |