$event_id = $_GET[‚eventid‘];
echo ‚
‚;
global $db_prefix, $ID_MEMBER, $scripturl, $modSettings, $user_info, $sc;
// Find all the calendar info…
$result = db_query(“
SELECT
cal.ID_EVENT, cal.startDate, cal.endDate, cal.title, cal.ID_MEMBER, cal.ID_TOPIC,
cal.ID_BOARD, cal.text, b.memberGroups, t.ID_FIRST_MSG
FROM {$db_prefix}calendar AS cal
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_BOARD = cal.ID_BOARD)
LEFT JOIN {$db_prefix}topics AS t ON (t.ID_TOPIC = cal.ID_TOPIC)
WHERE cal.ID_EVENT = ‚$event_id‘
“ . ($use_permissions ? “
AND (cal.ID_BOARD = 0 OR $user_info[query_see_board])“ : “), __FILE__, __LINE__);
$events = array();
while ($row = mysql_fetch_assoc($result))
{
echo ‚
Datum: ‚ . strftime(„%d.%m.%Y“, strtotime($row[’startDate‘])) . ‚
‚;
echo ‚ ‚ . $row[‚title‘] . ‚
‚;
echo ‚‚ . parse_bbc($row[‚text‘]) . ‚
‚;
}