From 97ea062431dbb23e1f28f84086a9a11d1b1d0bd7 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 13 Aug 2004 22:51:34 +0000 Subject: Fixed most of RSS. --- rss/rss.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'rss') diff --git a/rss/rss.php b/rss/rss.php index 4564e14..e849bd1 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -35,11 +35,11 @@ if ( ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || ($_SERVER['HTTP_IF_ } if ($rssview == "day") { - $theview = $day_lang; + $theview = $lang['l_day']; } elseif ($rssview == "week") { - $theview = $week_lang; + $theview = $lang['l_week']; } elseif ($rssview == "month") { - $theview = $month_lang; + $theview = $lang['l_month']; } @@ -49,9 +49,9 @@ $rss .= ''."\n"; $rss .= ''."\n"; $rss .= ''.$cal_displayname.' - '.$theview.''."\n"; $rss .= ''.htmlspecialchars ("$default_path").''."\n"; -$rss .= ''.$cal_displayname.' '.$calendar_lang.' - '.$theview.''."\n"; +$rss .= ''.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.''."\n"; $rss .= ''.$rss_language.''."\n"; -$rss .= 'Copyright 2002, '.htmlspecialchars ("$default_path").''."\n"; +$rss .= 'Copyright 2004, '.htmlspecialchars ("$default_path").''."\n"; if ($rssview == 'day') { @@ -79,7 +79,7 @@ if ($rssview == 'day') { } if ($events_week < 1) { $rss .= ''."\n"; - $rss .= ''.$no_events_day_lang.''."\n"; + $rss .= ''.$lang['l_no_events_day'].''."\n"; $rss .= ''.htmlspecialchars ("$default_path").''."\n"; $rss .= ''."\n"; } @@ -91,7 +91,7 @@ if ($rssview == "week") { do { $getdate = date("Ymd", $thisdate); $dayofweek = strtotime ($getdate); - $dayofweek = localizeDate ($rss_week_date, $dayofweek); + $dayofweek = localizeDate ($dateFormat_day, $dayofweek); if (isset($master_array[($getdate)]) && sizeof($master_array[($getdate)]) > 0) { foreach ($master_array[("$getdate")] as $event_times) { foreach ($event_times as $val) { @@ -104,7 +104,7 @@ if ($rssview == "week") { $description = strip_tags($description, ''); $rss_title = htmlspecialchars ("$dayofweek: $event_text"); $rss_link = htmlspecialchars ("$default_path/day.php?getdate=$getdate&cal=$cal"); - $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); + $rss_description = htmlspecialchars ("$dayofweek $event_start: $event_text - $description"); $rss .= ''."\n"; $rss .= ''.$rss_title.''."\n"; $rss .= ''.$rss_link.''."\n"; @@ -116,7 +116,7 @@ if ($rssview == "week") { } if (($events_week < 1) && ($i == 6)) { $rss .= ''."\n"; - $rss .= ''.$no_events_week_lang.''."\n"; + $rss .= ''.$lang['l_no_events_week'].''."\n"; $rss .= ''.htmlspecialchars ("$default_path").''."\n"; $rss .= ''."\n"; } @@ -133,7 +133,7 @@ if ($rssview == "month") { if ($regs[1] == $parse_month) { $getdate = $key; $dayofmonth = strtotime ($getdate); - $dayofmonth = localizeDate ($rss_month_date, $dayofmonth); + $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); // Pull out each day foreach ($new_val2 as $new_val) { @@ -150,7 +150,7 @@ if ($rssview == "month") { $description = strip_tags($description, ''); $rss_title = htmlspecialchars ("$dayofmonth: $event_text"); $rss_link = htmlspecialchars ("$default_path/day.php?getdate=$getdate&cal=$cal"); - $rss_description = htmlspecialchars ("$dayofmonth $event_start: $description"); + $rss_description = htmlspecialchars ("$dayofmonth $event_start: $event_text - $description"); $rss .= ''."\n"; $rss .= ''.$rss_title.''."\n"; $rss .= ''.$rss_link.''."\n"; @@ -161,7 +161,7 @@ if ($rssview == "month") { if ($events_week < 1) { $rss .= ''."\n"; - $rss .= ''.$no_events_month_lang.''."\n"; + $rss .= ''.$lang['no_events_month'].''."\n"; $rss .= ''.htmlspecialchars ("$default_path").''."\n"; $rss .= ''."\n"; } -- cgit v1.2.3