'."\n"; require(BASE.'rss/rss_common.php'); function rss_top(){ global $cal_displayname, $theview, $phpiCal_config, $cpath, $lang, $rss_link, $rss_language; $rss = ""."\n"; $rss .= ''."\n"; $rss .= ''."\n"; $rss .= ''."\n"; $rss .= ''.$cal_displayname; if ($theview !=""){$rss .= ' - '.$theview;} $rss .= "\n"; if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath"; $rss .= ''.htmlspecialchars("$phpiCal_config->default_path").''."\n"; $rss .= ''.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.''."\n"; $rss .= ''.$rss_language.''."\n"; $rss .= 'Copyright '.date("Y").', '.htmlspecialchars ("$default_path").''."\n"; return $rss; } function rss_li($rss_link, $uid){ $return = ""; } function enclose_items($rss_items){ return $rss_items; } function rss_item(){ global $uid,$event_start,$rss_title,$rss_link, $dayofweek, $event_text, $rss_description, $val; $rss = ''."\n"; $rss .= ''.$uid.''."\n"; $rss .= ''.$event_start.''."\n"; $rss .= ''.$rss_title.''."\n"; /* custom stuff for Jim Hu's RSS feeds. Deprecated $rss .= ''.$dayofweek.''."\n"; $rss .= ''.$event_text.''."\n"; $rss .= ''.$description.''."\n"; $rss .= ''.$val["description"].''."\n"; $rss .= ''.$val['attendee'].''."\n"; $rss .= ''.$val['organizer'].''."\n"; $rss .= ''.$val['status'].''."\n"; */ $rss .= ''.$rss_link.''."\n"; $rss .= ''.$rss_description.''."\n"; if (isset($val['location']) && $val['location'] !=''){ $location = str_replace('&','&',$val['location']); $location = str_replace('&','&',$location); $rss .= ''.$location."\n"; } $rss .= ''."\n"; return $rss; } function rss_noitems(){ global $default_path; $rss .= ''."\n"; $rss .= 'No events found'."\n"; $rss .= ''.htmlspecialchars ("$default_path").''."\n"; $rss .= ''."\n"; return $rss; } function rss_close(){ return "\n\n"; } ?>