From: <cl...@us...> - 2004-10-26 19:12:42
|
Update of /cvsroot/phpicalendar/phpicalendar/rss In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7868/rss Modified Files: rss.php Log Message: Added titles Index: rss.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/rss/rss.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** rss.php 25 Oct 2004 17:16:09 -0000 1.22 --- rss.php 26 Oct 2004 19:12:30 -0000 1.23 *************** *** 14,27 **** $default_path = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/')); } } ! $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); ! $end_week_time = $start_week_time + (6 * 25 * 60 * 60); ! $start_week = localizeDate($dateFormat_week, $start_week_time); ! $end_week = localizeDate($dateFormat_week, $end_week_time); ! $parse_month = date ("Ym", strtotime($getdate)); ! $rssview = $_GET['rssview']; ! $cal_displayname = str_replace("32", " ", $cal); ! $events_week = 0; // calculate a value for Last Modified and ETag --- 14,30 ---- $default_path = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/')); } + } else { + $default_path = $default_path.'rss/'; } ! $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); ! $end_week_time = $start_week_time + (6 * 25 * 60 * 60); ! $start_week = localizeDate($dateFormat_week, $start_week_time); ! $end_week = localizeDate($dateFormat_week, $end_week_time); ! $parse_month = date ("Ym", strtotime($getdate)); ! $rssview = $_GET['rssview']; ! $cal_displayname = str_replace("32", " ", $cal); ! $events_week = 0; ! $view_path = $default_path.$rss_view.'.php'; // calculate a value for Last Modified and ETag *************** *** 57,61 **** $rss .= '<channel>'."\n"; $rss .= '<title>'.$cal_displayname.' - '.$theview.'</title>'."\n"; ! $rss .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n"; $rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n"; $rss .= '<language>'.$rss_language.'</language>'."\n"; --- 60,64 ---- $rss .= '<channel>'."\n"; $rss .= '<title>'.$cal_displayname.' - '.$theview.'</title>'."\n"; ! $rss .= '<link>'.htmlspecialchars ($view_path).'</link>'."\n"; $rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n"; $rss .= '<language>'.$rss_language.'</language>'."\n"; |