unbuffered_query("SELECT eventid, subject, public FROM bb".$n."_events WHERE eventdate = '$currentdate' AND (public=2 OR (public=1 AND groupid = '$wbbuserdata[groupid]') OR (public=0 AND userid = '$wbbuserdata[userid]')) ORDER BY public ASC, subject ASC"); while ($row = $db->fetch_array($result)) { $row['subject'] = htmlconverter($row['subject']); if (isset($eventbit)) eval("\$eventbit .= \"".$tpl->get("index_eventbit")."\";"); else eval("\$eventbit = \"".$tpl->get("index_eventbit")."\";"); } } if (!$wbbuserdata['userid']) { $lang->items['LANG_START_WELCOME_TITLE'] = $lang->get("LANG_START_WELCOME_TITLE", array('$master_board_name' => $master_board_name)); $lang->items['LANG_START_WELCOME'] = $lang->get("LANG_START_WELCOME", array('$SID_ARG_2ND' => $SID_ARG_2ND, '$SID_ARG_1ST' => $SID_ARG_1ST)); } else { $currenttime = formatdate($wbbuserdata['timeformat'], time()); $toffset = (($wbbuserdata['timezoneoffset'] >= 0) ? ("+") : ("")).$wbbuserdata['timezoneoffset']; $lang->items['LANG_START_TIMEZONE'] = $lang->get("LANG_START_TIMEZONE", array('$toffset' => $toffset)); $lastvisitdate = formatdate($wbbuserdata['dateformat'], $wbbuserdata['lastvisit'], 1); $lastvisittime = formatdate($wbbuserdata['timeformat'], $wbbuserdata['lastvisit']); if ($showpmonindex == 1 && $wbbuserdata['can_use_pms'] == 1 && $wbbuserdata['receivepm'] == 1) { $counttotal = $wbbuserdata['pminboxcount']; $countunread = $wbbuserdata['pmunreadcount']; $countnew = $wbbuserdata['pmnewcount']; if ($countnew == 1) $pms_NEWMESSAGE = $lang->items['LANG_START_PMS_MESSAGE']; else $pms_NEWMESSAGE = $lang->items['LANG_START_PMS_MESSAGES']; if ($counttotal == 1) $pms_TOTALMESSAGE = $lang->items['LANG_START_PMS_MESSAGE']; else $pms_TOTALMESSAGE = $lang->items['LANG_START_PMS_MESSAGES']; $lang->items['LANG_START_PMS'] = $lang->get("LANG_START_PMS", array('$countnew' => $countnew, '$pms_NEWMESSAGE' => $pms_NEWMESSAGE, '$countunread' => $countunread, '$counttotal' => $counttotal, '$pms_TOTALMESSAGE' => $pms_TOTALMESSAGE)); } } eval("\$tpl->output(\"".$tpl->get('nutzung')."\");"); ?>