From 75c2230d760c618ac905fe2507506abb9fcf30c5 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 24 Nov 2003 04:23:52 +0000 Subject: added bleed_time to default to day_start --- config.inc.php | 4 ++-- functions/init.inc.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.inc.php b/config.inc.php index b1462e5..f566339 100644 --- a/config.inc.php +++ b/config.inc.php @@ -24,8 +24,8 @@ $tmp_dir = '/tmp'; // The temporary directory on your system (/tmp is fine $calendar_path = ''; // Leave this blank on most installs, place your full path to calendars if they are outside the phpicalendar folder. $second_offset = '0'; // The time in seconds between your time and your server's time. $bleed_time = ''; // This allows events past midnight to just be displayed on the starting date, only good up to 24 hours. Range from '0000' to '2359'. Is automatically set to $day_start if left blank. -$cookie_uri = ''; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar -$download_uri = ''; // The HTTP URL to your calendars directory, ie. http://www.example.com/phpicalendar/calendars +$cookie_uri = ''; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar -- AUTO SETTING -- Only set if you are having cookie issues. +$download_uri = ''; // The HTTP URL to your calendars directory, ie. http://www.example.com/phpicalendar/calendars -- AUTO SETTING -- Only set if you are having subscribe issues. $default_path = 'http://www.example.com/phpicalendar'; // The HTTP URL to the PHP iCalendar directory, ie. http://www.example.com/phpicalendar // Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase. diff --git a/functions/init.inc.php b/functions/init.inc.php index 7adb4e5..becdd9c 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -36,6 +36,8 @@ if ($cookie_uri == '') { $cookie_uri = $HTTP_SERVER_VARS['SERVER_NAME'].substr($HTTP_SERVER_VARS['PHP_SELF'],0,strpos($HTTP_SERVER_VARS['PHP_SELF'], '/')); } +if ($bleed_time == '') $bleed_time = $day_start; + // If not HTTP authenticated, try login via cookies or the web page. $username = ''; $password = ''; if (!isset($_SERVER['PHP_AUTH_USER'])) { -- cgit v1.2.3