From 9dadc34095f5a9d83762d3c79d5ef2d7e91a1f14 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 26 Oct 2002 05:57:12 +0000 Subject: Tweeks, now shows all calendars. --- rss/index.php | 37 ++++++++++++++++++++++++++----------- rss/rss.php | 2 +- 2 files changed, 27 insertions(+), 12 deletions(-) (limited to 'rss') diff --git a/rss/index.php b/rss/index.php index e0f96a4..54f9fb2 100644 --- a/rss/index.php +++ b/rss/index.php @@ -23,7 +23,7 @@ include(BASE.'functions/ical_parser.php'); - + @@ -39,16 +39,31 @@ include(BASE.'functions/ical_parser.php');
This website is RSS enabled.

- Day View:
-
-
- Week View:
-
-
- Month View:
-
-
-
+ tags + while ($file = readdir($dir_handle)) { + if (substr($file, -4) == ".ics") { + + // $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_tmp = urlencode($cal_filename_tmp); + $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); + if (!in_array($cal_filename_tmp, $blacklisted_cals)) { + echo ''.$cal_displayname_tmp.' '. $calendar_lang.'
'; + echo $default_path.'/rss/rss.php?cal='.$cal_tmp.'&rssview=day
'; + echo $default_path.'/rss/rss.php?cal='.$cal_tmp.'&rssview=week
'; + echo $default_path.'/rss/rss.php?cal='.$cal_tmp.'&rssview=month
'; + echo '

'; + } + } + } + ?>
diff --git a/rss/rss.php b/rss/rss.php index d5d1014..573ea0b 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -3,7 +3,7 @@ define('BASE', '../'); include(BASE.'functions/ical_parser.php'); $theview = 'Day'; - + $rss = ""."\n"; $rss .= ''."\n"; -- cgit v1.2.3