1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
|
/* ############## EVENTS ############## */
unset($eventbit);
if ($showevents == 1 && $wbbuserdata['can_view_calendar'] != 0) {
$currentdate = date("Y-m-d");
$result = $db->unbuffered_query("SELECT eventid, subject, public FROM bb".$n."_events WHERE eventdate = '$currentdate' AND (public=2 OR (public=0 AND userid = '$wbbuserdata[userid]')) ORDER BY public ASC, subject ASC");
$t=0;
while ($row = $db->fetch_array($result)) {
$farb = array(yellow,green,white,red,pink,aqua,fuchsia);
$row['subject'] = htmlconverter($row['subject']);
$ereignis = "<font color='$farb[$t]'><b>".$row['subject']."</b></font>";
if (isset($eventbit)) eval("\$eventbit .= "".$tpl->get("index_eventbit")."";");
else eval("\$eventbit = "".$tpl->get("index_eventbit")."";");
$t++;
}
} |