From fc81f9ebde033c58f729f392dba7914112d40720 Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Sun, 30 Oct 2005 01:32:44 +0000 Subject: Added support for recursively searching for calendars in your $calendar_path and the new iCal calendar repository structure. The calendars are still referenced by calendar name, so all URLs are unchanged. Refactored the date parsing code out of ical_parser.php and into date_functions.php. Minor logic changes to the parser to correctly populate the TODO date and time values. Refactored the calendar name code into a new getCalendarName() function, since calendar names may no longer be determined solely by filename if using an iCal repository. Template code updated to match. Added calls to stripslashes() for calendar text data, such as the summaries and descriptions. Also put stripslashes() into people data, since people's names may contain escaped characters. --- rss/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rss/index.php') diff --git a/rss/index.php b/rss/index.php index dc1c8d7..e888a1f 100644 --- a/rss/index.php +++ b/rss/index.php @@ -19,12 +19,12 @@ if (empty($default_path)) { $current_view = "rssindex"; $display_date = "RSS Info"; -$filelist = availableCalendarNames($username, $password, $ALL_CALENDARS_COMBINED); +$filelist = availableCalendars($username, $password, $ALL_CALENDARS_COMBINED); foreach ($filelist as $file) { // $cal_filename is the filename of the calendar without .ics // $cal is a urlencoded version of $cal_filename // $cal_displayname is $cal_filename with occurrences of "32" replaced with " " - $cal_filename_tmp = substr($file,0,-4); + $cal_filename_tmp = getCalendarName($file); $cal_tmp = urlencode($cal_filename_tmp); $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); $rss_list .= ''.$cal_displayname_tmp.' '. $calendar_lang.'
'; @@ -75,4 +75,4 @@ $page->replace_tags(array( $page->output(); -?> \ No newline at end of file +?> -- cgit v1.2.3