From 8835f290aeb05b2071320b38c14f6a4f013c06be Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 16 Feb 2007 06:34:10 +0000 Subject: allow rss link to event popup option --- rss/rss.php | 11 +++++++++-- rss/rss1.0.php | 12 +++++++++--- rss/rss2.0.php | 10 +++++++--- 3 files changed, 25 insertions(+), 8 deletions(-) (limited to 'rss') diff --git a/rss/rss.php b/rss/rss.php index 6062b8f..e37e7bf 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -188,9 +188,16 @@ $uid_arr = array(); $rss_title = urldecode ("$dayofweek: $event_text"); - $event_data = serialize($val); - $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data"; + + if (isset($rss_link_to_event) && $$rss_link_to_event == 'yes'){ + $event_data = serialize($val); + $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data"; + }else{ + $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal"); + + } if (isset($cpath) && $cpath !='') $rss_link.="&cpath=$cpath"; + $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); $rss .= ''."\n"; diff --git a/rss/rss1.0.php b/rss/rss1.0.php index 8dcc0a0..cd99958 100755 --- a/rss/rss1.0.php +++ b/rss/rss1.0.php @@ -196,11 +196,17 @@ $uid_arr = array(); */ /* Add %20's for spaces for the calendar links to make them valid url's */ $urlcal = rawurlencode ("$cal"); - $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal"); - if (isset($cpath) && $cpath !=''){ - $rss_link .= "&cpath=$cpath"; + + if (isset($rss_link_to_event) && $$rss_link_to_event == 'yes'){ + $event_data = serialize($val); + $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data"; + }else{ + $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal"); + } + if (isset($cpath) && $cpath !='') $rss_link.="&cpath=$cpath"; /* End link modification */ + $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); $rss .= ''."\n"; diff --git a/rss/rss2.0.php b/rss/rss2.0.php index 1fd30a0..c315730 100644 --- a/rss/rss2.0.php +++ b/rss/rss2.0.php @@ -199,10 +199,14 @@ $uid_arr = array(); */ /* Add %20's for spaces for the calendar links to make them valid url's */ $urlcal = rawurlencode ("$cal"); - $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal"); - if (isset($cpath) && $cpath !=''){ - $rss_link .= "&cpath=$cpath"; + if (isset($rss_link_to_event) && $$rss_link_to_event == 'yes'){ + $event_data = serialize($val); + $rss_link = "$default_path/event.php?getdate=$thisdate&cal=$cal&event_data=$event_data"; + }else{ + $rss_link = ("$default_path/day.php?getdate=$thisdate&cal=$urlcal"); + } + if (isset($cpath) && $cpath !='') $rss_link.="&cpath=$cpath"; /* End link modification */ $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); -- cgit v1.2.3