From 015920d1d0228907f9815c02f388021fb3a5bfc5 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 28 May 2003 04:19:25 +0000 Subject: Started migration of javascript to function, added improved event.php for location, status, organizer, and attendees. Updated english language include. --- includes/event.php | 84 +++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 77 insertions(+), 7 deletions(-) (limited to 'includes/event.php') diff --git a/includes/event.php b/includes/event.php index bccce01..8cc84fb 100644 --- a/includes/event.php +++ b/includes/event.php @@ -34,6 +34,24 @@ if (isset($HTTP_GET_VARS['status']) && ($HTTP_GET_VARS['status'] !== '') ) { $status = ''; } +if (isset($HTTP_GET_VARS['location']) && ($HTTP_GET_VARS['location'] !== '') ) { + $location = $HTTP_GET_VARS['location']; +} else { + $location = ''; +} + +if (isset($HTTP_GET_VARS['organizer']) && ($HTTP_GET_VARS['organizer'] !== '') ) { + $organizer = $HTTP_GET_VARS['organizer']; +} else { + $organizer = ''; +} + +if (isset($HTTP_GET_VARS['attendee']) && ($HTTP_GET_VARS['attendee'] !== '') ) { + $attendee = $HTTP_GET_VARS['attendee']; +} else { + $attendee = ''; +} + $event = rawurldecode($event); $event = stripslashes($event); $event = str_replace('\\', '', $event); @@ -41,6 +59,17 @@ $event = htmlspecialchars($event); $description = rawurldecode($description); $description = stripslashes($description); $description = str_replace('\\', '', $description); +$organizer = rawurldecode($organizer); +$organizer = stripslashes($organizer); +$organizer = str_replace('\\', '', $organizer); +$organizer = unserialize ($organizer); +$attendee = rawurldecode($attendee); +$attendee = stripslashes($attendee); +$attendee = str_replace('\\', '', $attendee); +$attendee = unserialize ($attendee); +$location = rawurldecode($location); +$location = stripslashes($location); +$location = str_replace('\\', '', $location); //$description = htmlspecialchars($description); $calendar_name2 = rawurldecode($calendar_name); $calendar_name2 = stripslashes($calendar_name2); @@ -85,14 +114,55 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2); '\0', $description); ?> + + '; + echo ' '; + echo ''; + echo $organizer_lang.' - '; + foreach ($organizer as $val) { + $organizers .= $organizer[$i]["name"].', '; + $i++; + } + $organizers = substr ($organizers, 0, -2); + echo $organizers.''; + } + + if ($attendee) { + $i = 0; + echo ''; + echo ' '; + echo ''; + echo $attendee_lang.' - '; + foreach ($attendee as $val) { + $attendees .= $attendee[$i]["name"].', '; + $i++; + } + $attendees = substr ($attendees, 0, -2); + echo $attendees.''; + } - - -  - - - - + if ($status) { + echo ''; + echo ' '; + echo ''; + echo $status_lang.' - '.$status.''; + echo ''; + } + + if ($location) { + echo ''; + echo ' '; + echo ''; + echo $location_lang.' - '.$location.''; + echo ''; + } + + + ?> -- cgit v1.2.3