Update of /cvsroot/phpicalendar/phpicalendar/includes
In directory sc8-pr-cvs1:/tmp/cvs-serv16911/includes
Modified Files:
event.php
Log Message:
Started migration of javascript to function, added improved event.php for location, status, organizer, and attendees.
Updated english language include.
Index: event.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/includes/event.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** event.php 10 Mar 2003 19:48:27 -0000 1.5
--- event.php 28 May 2003 04:19:25 -0000 1.6
***************
*** 35,38 ****
--- 35,56 ----
}
+ 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);
***************
*** 42,45 ****
--- 60,74 ----
$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);
***************
*** 86,97 ****
</tr>
<?php } ?>
! <?php if ($status) { ?>
! <tr>
! <td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>
! <td align="left" colspan="2" class="V12">
! <?php echo "$status"; ?></td>
! </tr>
! <?php } ?>
</table>
--- 115,167 ----
</tr>
<?php } ?>
+
+ <?php
+
+ if ($organizer) {
+ $i = 0;
+ echo '<tr>';
+ echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
+ echo '<td align="left" colspan="2" class="V12">';
+ echo $organizer_lang.' - ';
+ foreach ($organizer as $val) {
+ $organizers .= $organizer[$i]["name"].', ';
+ $i++;
+ }
+ $organizers = substr ($organizers, 0, -2);
+ echo $organizers.'</td></tr>';
+ }
+
+ if ($attendee) {
+ $i = 0;
+ echo '<tr>';
+ echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
+ echo '<td align="left" colspan="2" class="V12">';
+ echo $attendee_lang.' - ';
+ foreach ($attendee as $val) {
+ $attendees .= $attendee[$i]["name"].', ';
+ $i++;
+ }
+ $attendees = substr ($attendees, 0, -2);
+ echo $attendees.'</td></tr>';
+ }
! if ($status) {
! echo '<tr>';
! echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
! echo '<td align="left" colspan="2" class="V12">';
! echo $status_lang.' - '.$status.'</td>';
! echo '</tr>';
! }
!
! if ($location) {
! echo '<tr>';
! echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
! echo '<td align="left" colspan="2" class="V12">';
! echo $location_lang.' - '.$location.'</td>';
! echo '</tr>';
! }
!
!
! ?>
</table>
|