From 316c2fb104f90ed9918fc93c669364aae88ef651 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 5 Oct 2005 00:29:13 +0000 Subject: Updated incorrectly built RSS (now validates). --- rss/rss.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'rss') diff --git a/rss/rss.php b/rss/rss.php index 84e0de2..4ed6ee9 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -27,7 +27,7 @@ switch ($rssview){ case 'day': $fromdate = $getdate; $todate = $getdate; - $theview = $day_lang; + $theview = $lang['l_day']; break; case 'month': $parse_month = date ("Ym", strtotime($getdate)); @@ -119,7 +119,7 @@ $i = 0; #day counter foreach ($master_array[("$thisdate")] as $event_times) { foreach ($event_times as $val) { if(!$val["event_start"]){ - $event_start = "all day"; + $event_start = "All Day"; }else{ $event_start = @$val["event_start"]; $event_start = date ($timeFormat, @strtotime ("$event_start")); @@ -128,7 +128,6 @@ $i = 0; #day counter $event_text = strip_tags($event_text, ''); $event_text = str_replace('&','&',$event_text); $event_text = str_replace('&','&',$event_text); - $event_text = urlencode($event_text); #uncomment for shorter event text with ... # $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); $description = stripslashes(urldecode($val["description"])); @@ -139,12 +138,13 @@ $i = 0; #day counter $rss_title = htmlspecialchars ("$dayofweek: $event_text"); $rss_link = htmlspecialchars ("$default_path/day.php?getdate=$getdate&cal=$cal&cpath=$cpath"); + if ($description == '') $description = $event_text; $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); $rss .= ''."\n"; - $rss .= ''.$event_start.''."\n"; $rss .= ''.$rss_title.''."\n"; - + /* + $rss .= ''.$event_start.''."\n"; $rss .= ''.$dayofweek.''."\n"; $rss .= ''.$event_text.''."\n"; $rss .= ''.$description.''."\n"; @@ -152,14 +152,12 @@ $i = 0; #day counter $rss .= ''.$val['attendee'].''."\n"; $rss .= ''.$val['organizer'].''."\n"; $rss .= ''.$val['status'].''."\n"; - - $rss .= ''.$rss_link.''."\n"; - $rss .= ''.$rss_description.''."\n"; $location = str_replace('&','&',$val['location']); $location = str_replace('&','&',$location); - - $rss .= ''.$location.''; + */ + $rss .= ''.$rss_link.''."\n"; + $rss .= ''.$rss_description.''."\n"; $rss .= ''."\n"; $events_count++; } -- cgit v1.2.3