Lines Matching refs:event
37 if ($event = load_event($id)) { variable
38 …site_header("Event: " . stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8…
39 display_event($event, 0);
62 foreach ($events as $event) {
63 display_event($event, 0);
238 foreach ($events as $event) {
241 if (($event['type'] == 2 && $event['start'] <= $day && $event['end'] >= $day)
242 || ($event['start'] == $day)) {
244 ($COUNTRY == $event['country'] ? "<strong>" : ""),
245 '<a class="cat' . $event['category'] . '" href="/cal.php',
246 "?id=$event[id]&cm=$cm&cy=$cy", '">',
247 stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8')),
249 ($COUNTRY == $event['country'] ? "</strong>" : ""),
265 $event = read_event($fp);
269 if ($event !== false && $event['id'] == $id) {
271 return $event;
302 if (($event = read_event($fp)) === false) {
308 if (!isset($seen[$event['id']])) { $seen[$event['id']] = 1; }
312 switch ($event['type']) {
316 $date = date_for_recur($event['recur'], $event['recur_day'], $bom, $eom);
317 $event['start'] = date("Y-m-d", $date);
322 if ($event['start'] >= $from_date && $event['start'] <= $to_date) {
323 $events[] = $event;
329 if (($event['start'] >= $from_date && $event['start'] <= $to_date)
330 || ($event['end'] >= $from_date && $event['end'] <= $to_date)
331 || ($event['start'] <= $from_date && $event['end'] >= $to_date)) {
332 $events[] = $event;