Zeile 1475 | Zeile 1475 |
---|
$event['username'] = $lang->guest; }
|
$event['username'] = $lang->guest; }
|
$event['username'] = $event['username'];
| |
$event['profilelink'] = format_name($event['username'], 1);
if($user_usergroup['usertitle'])
| $event['profilelink'] = format_name($event['username'], 1);
if($user_usergroup['usertitle'])
|
Zeile 1488 | Zeile 1487 |
---|
} $event['userstars'] = ''; }
|
} $event['userstars'] = ''; }
|
| $event['usertitle'] = htmlspecialchars_uni($event['usertitle']);
|
if($event['ignoretimezone'] == 0) { $offset = $event['timezone']; } else
|
if($event['ignoretimezone'] == 0) { $offset = $event['timezone']; } else
|
{
| {
|
$offset = $mybb->user['timezone']; }
$event['starttime_user'] = $event['starttime']+$offset*3600;
|
$offset = $mybb->user['timezone']; }
$event['starttime_user'] = $event['starttime']+$offset*3600;
|
|
|
// Events over more than one day $time_period = ''; if($event['endtime'] > 0 && $event['endtime'] != $event['starttime'])
| // Events over more than one day $time_period = ''; if($event['endtime'] > 0 && $event['endtime'] != $event['starttime'])
|
Zeile 1531 | Zeile 1532 |
---|
$time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']).", ".gmdate($mybb->settings['timeformat'], $event['starttime_user']); $time_period .= " - "; $time_period .= gmdate($mybb->settings['dateformat'], $event['endtime_user']).", ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);
|
$time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']).", ".gmdate($mybb->settings['timeformat'], $event['starttime_user']); $time_period .= " - "; $time_period .= gmdate($mybb->settings['dateformat'], $event['endtime_user']).", ".gmdate($mybb->settings['timeformat'], $event['endtime_user']);
|
}
| }
|
} else {
| } else {
|
Zeile 1616 | Zeile 1617 |
---|
if($calendar_permissions['canviewcalendar'] != 1) { error_no_permission();
|
if($calendar_permissions['canviewcalendar'] != 1) { error_no_permission();
|
}
| }
|
// Incoming year? $mybb->input['year'] = $mybb->get_input('year', 1);
| // Incoming year? $mybb->input['year'] = $mybb->get_input('year', 1);
|
Zeile 1627 | Zeile 1628 |
---|
else { $year = my_date("Y");
|
else { $year = my_date("Y");
|
}
| }
|
// Then the month $mybb->input['month'] = $mybb->get_input('month', 1);
| // Then the month $mybb->input['month'] = $mybb->get_input('month', 1);
|
Zeile 1638 | Zeile 1639 |
---|
else { $month = my_date("n");
|
else { $month = my_date("n");
|
}
| }
|
// And day? $mybb->input['day'] = $mybb->get_input('day', 1); if($mybb->input['day'] && $mybb->input['day'] <= gmdate("t", gmmktime(0, 0, 0, $month, 1, $year)))
|
// And day? $mybb->input['day'] = $mybb->get_input('day', 1); if($mybb->input['day'] && $mybb->input['day'] <= gmdate("t", gmmktime(0, 0, 0, $month, 1, $year)))
|
{
| {
|
$day = $mybb->input['day']; } else
| $day = $mybb->input['day']; } else
|
Zeile 1659 | Zeile 1660 |
---|
// Load Birthdays for this day $birthday_list = $birthdays = ''; if($calendar['showbirthdays'])
|
// Load Birthdays for this day $birthday_list = $birthdays = ''; if($calendar['showbirthdays'])
|
{
| {
|
$birthdays2 = get_birthdays($month, $day); $bdayhidden = 0; if(is_array($birthdays2))
| $birthdays2 = get_birthdays($month, $day); $bdayhidden = 0; if(is_array($birthdays2))
|
Zeile 1786 | Zeile 1787 |
---|
break; } }
|
break; } }
|
}
| }
|
if($user_usergroup['stars']) { $event['stars'] = $user_usergroup['stars'];
| if($user_usergroup['stars']) { $event['stars'] = $user_usergroup['stars'];
|
Zeile 1796 | Zeile 1797 |
---|
if(empty($event['starimage'])) { $event['starimage'] = $user_usergroup['starimage'];
|
if(empty($event['starimage'])) { $event['starimage'] = $user_usergroup['starimage'];
|
}
$event['userstars'] = '';
| }
$event['userstars'] = '';
|
for($i = 0; $i < $event['stars']; ++$i) { eval("\$event['userstars'] .= \"".$templates->get("calendar_event_userstar", 1, 0)."\";");
|
for($i = 0; $i < $event['stars']; ++$i) { eval("\$event['userstars'] .= \"".$templates->get("calendar_event_userstar", 1, 0)."\";");
|
}
| }
|
if($event['userstars'] && $event['starimage'] && $event['stars']) { $event['userstars'] .= "<br />";
|
if($event['userstars'] && $event['starimage'] && $event['stars']) { $event['userstars'] .= "<br />";
|
} }
| } }
|
// Created by a guest or an unknown user else {
| // Created by a guest or an unknown user else {
|
Zeile 1819 | Zeile 1820 |
---|
$event['username'] = $event['username']; $event['profilelink'] = format_name($event['username'], 1);
|
$event['username'] = $event['username']; $event['profilelink'] = format_name($event['username'], 1);
|
|
|
if($user_usergroup['usertitle']) { $event['usertitle'] = $user_usergroup['usertitle'];
| if($user_usergroup['usertitle']) { $event['usertitle'] = $user_usergroup['usertitle'];
|
Zeile 1830 | Zeile 1831 |
---|
} $event['userstars'] = ''; }
|
} $event['userstars'] = ''; }
|
| $event['usertitle'] = htmlspecialchars_uni($event['usertitle']);
|
if($event['ignoretimezone'] == 0) {
| if($event['ignoretimezone'] == 0) {
|