From: <cl...@us...> - 2003-12-18 06:06:21
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv5577/functions Modified Files: ical_parser.php init.inc.php Log Message: Added a fix for dates before 1969 and initd some variables for E_ALL. Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** ical_parser.php 2 Dec 2003 17:31:28 -0000 1.139 --- ical_parser.php 18 Dec 2003 06:06:18 -0000 1.140 *************** *** 108,111 **** --- 108,113 ---- $attendee = array(); $organizer = array(); + $url = ''; + $display_end_tmp = ''; unset( *************** *** 867,870 **** --- 869,877 ---- $field = ereg_replace(';VALUE=DATE-TIME', '', $field); if (preg_match("/^DTEND;VALUE=DATE/i", $field)) { + ereg ('([0-9]{4})([0-9]{2})([0-9]{2})', $data, $dtend_check); + if ($dtstart_check[1] < 1969) { + $dtstart_check[1] = '1990'; + $data = $dtend_check[1].$dtend_check[2].$dtend_check[3]; + } $allday_end = $data; } else { Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** init.inc.php 26 Nov 2003 01:01:33 -0000 1.54 --- init.inc.php 18 Dec 2003 06:06:18 -0000 1.55 *************** *** 7,11 **** // uncomment when developing, comment for shipping version ! // error_reporting (E_ERROR | E_WARNING | E_PARSE); // Older versions of PHP do not define $_SERVER. Define it here instead. --- 7,11 ---- // uncomment when developing, comment for shipping version ! error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Older versions of PHP do not define $_SERVER. Define it here instead. *************** *** 22,25 **** --- 22,26 ---- include_once(BASE.'functions/error.php'); include_once(BASE.'functions/calendar_functions.php'); + $filename = ''; if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); |