From: <cl...@us...> - 2005-08-30 19:11:10
|
Update of /cvsroot/phpicalendar/phpicalendar/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29772/includes Modified Files: event.php Log Message: Fixed event URL popups. Index: event.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/includes/event.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** event.php 16 May 2005 19:15:01 -0000 1.31 --- event.php 30 Aug 2005 19:11:00 -0000 1.32 *************** *** 12,15 **** --- 12,17 ---- } + + $event = $master_array[$_POST['date']][$_POST['time']][decode_popup($_POST['uid'])]; $organizer = unserialize($event['organizer']); *************** *** 24,27 **** --- 26,31 ---- } + $event['description'] = urldecode($event['description']); + if ($event['description']) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']); *************** *** 49,52 **** --- 53,61 ---- } + if (!$event['location'] && $event['url']) { + $event['location'] = '<a href="'.$event['url'].'" target="_blank">'.$event['url'].'</a>'; + $lang['l_location'] = 'URL'; + } + if (sizeof($attendee) == 0) $attendee = ''; if (sizeof($organizer) == 0) $organizer = ''; |