comptability if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$matches)) { $full_event_text = $matches[1] . $matches[2]; $event_text = $matches[2]; } else { $full_event_text = $event_text; $event_text = strip_tags($event_text, ''); } if (isset($arr["organizer"])) { $organizer = addslashes($arr["organizer"]); } if (isset($arr["attendee"])) { $attendee = addslashes($arr["attendee"]); } if (isset($arr["location"])) { $location = addslashes($arr["location"]); } if (isset($arr["status"])) { $status = addslashes($arr["status"]); } if (isset($arr["description"])) { $description = addslashes(stripslashes(urldecode($arr["description"]))); } if (isset($arr["url"])) { $url = addslashes(stripslashes(urldecode($arr["url"]))); } if (!empty($event_text)) { if ($lines > 0) { $event_text = word_wrap($event_text, $wrap, $lines); } if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $full_event_text, $res))) || ($description)) { $escaped_event = addslashes($full_event_text); $escaped_calendar = addslashes($calendar_name); $escaped_start = addslashes($start); $escaped_end = addslashes($end); // fix for URL-length bug in IE: populate and submit a hidden form on click static $popup_data_index = 0; echo << END; echo ""; $popup_data_index++; } else { echo ""; } echo "{$pre_text}{$event_text}{$post_text}\n"; } } ?>