Zeile 1445 | Zeile 1445 |
---|
$event['description'] = $parser->parse_message($event['description'], $event_parser_options);
// Get the usergroup
|
$event['description'] = $parser->parse_message($event['description'], $event_parser_options);
// Get the usergroup
|
if($event['username'])
| if($event['usergroup'])
|
{
|
{
|
if(!$event['displaygroup']) { $event['displaygroup'] = $event['usergroup']; } $user_usergroup = $groupscache[$event['displaygroup']]; }
| $user_usergroup = usergroup_permissions($event['usergroup']); }
|
else
|
else
|
{ $user_usergroup = $groupscache[1];
| { $user_usergroup = usergroup_permissions(1); }
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $display_group = usergroup_displaygroup($event['displaygroup']); if(is_array($display_group)) { $user_usergroup = array_merge($user_usergroup, $display_group);
|
}
$titles_cache = $cache->read("usertitles");
| }
$titles_cache = $cache->read("usertitles");
|
Zeile 1465 | Zeile 1468 |
---|
{ $event['username'] = htmlspecialchars_uni($event['username']); $event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
|
{ $event['username'] = htmlspecialchars_uni($event['username']); $event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
|
|
|
if(trim($event['usertitle']) != "") { // Do nothing, no need for an extra variable..
| if(trim($event['usertitle']) != "") { // Do nothing, no need for an extra variable..
|
Zeile 1492 | Zeile 1495 |
---|
if($user_usergroup['stars']) { $event['stars'] = $user_usergroup['stars'];
|
if($user_usergroup['stars']) { $event['stars'] = $user_usergroup['stars'];
|
}
| }
|
if(empty($event['starimage'])) { $event['starimage'] = $user_usergroup['starimage'];
| if(empty($event['starimage'])) { $event['starimage'] = $user_usergroup['starimage'];
|
Zeile 1577 | Zeile 1580 |
---|
$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 { $time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']);
|
else { $time_period = gmdate($mybb->settings['dateformat'], $event['starttime_user']);
|
}
| }
|
$repeats = fetch_friendly_repetition($event); if($repeats) { eval("\$repeats = \"".$templates->get("calendar_repeats")."\";");
|
$repeats = fetch_friendly_repetition($event); if($repeats) { eval("\$repeats = \"".$templates->get("calendar_repeats")."\";");
|
}
| }
|
$event_class = ''; if($calendar_permissions['canmoderateevents'] == 1 || ($mybb->user['uid'] > 0 && $mybb->user['uid'] == $event['uid']))
| $event_class = ''; if($calendar_permissions['canmoderateevents'] == 1 || ($mybb->user['uid'] > 0 && $mybb->user['uid'] == $event['uid']))
|
Zeile 1614 | Zeile 1617 |
---|
$event_class = " trow_shaded"; } }
|
$event_class = " trow_shaded"; } }
|
|
|
$month = my_date("n");
$yearsel = ''; for($year_sel = my_date("Y"); $year_sel < (my_date("Y") + 5); ++$year_sel)
|
$month = my_date("n");
$yearsel = ''; for($year_sel = my_date("Y"); $year_sel < (my_date("Y") + 5); ++$year_sel)
|
{
| {
|
eval("\$yearsel .= \"".$templates->get("calendar_year_sel")."\";"); }
$addevent = ''; if($mybb->usergroup['canaddevents'] == 1)
|
eval("\$yearsel .= \"".$templates->get("calendar_year_sel")."\";"); }
$addevent = ''; if($mybb->usergroup['canaddevents'] == 1)
|
{
| {
|
eval("\$addevent = \"".$templates->get("calendar_addeventlink")."\";"); }
| eval("\$addevent = \"".$templates->get("calendar_addeventlink")."\";"); }
|
Zeile 1646 | Zeile 1649 |
---|
} // Showing the default calendar else
|
} // Showing the default calendar else
|
{
| {
|
$query = $db->simple_select("calendars", "*", "disporder='1'"); $calendar = $db->fetch_array($query); }
| $query = $db->simple_select("calendars", "*", "disporder='1'"); $calendar = $db->fetch_array($query); }
|
Zeile 1662 | Zeile 1665 |
---|
if($calendar_permissions['canviewcalendar'] != 1) { error_no_permission();
|
if($calendar_permissions['canviewcalendar'] != 1) { error_no_permission();
|
}
| }
|
// Incoming year?
|
// Incoming year?
|
if(isset($mybb->input['year']) && $mybb->get_input('year', MyBB::INPUT_INT) <= my_date("Y")+5)
| if(isset($mybb->input['year']) && $mybb->get_input('year', MyBB::INPUT_INT) <= my_date("Y")+5 && $mybb->get_input('year', MyBB::INPUT_INT) >= 1901)
|
{ $year = $mybb->get_input('year', MyBB::INPUT_INT); }
| { $year = $mybb->get_input('year', MyBB::INPUT_INT); }
|
Zeile 1785 | Zeile 1788 |
---|
$event['description'] = $parser->parse_message($event['description'], $event_parser_options);
// Get the usergroup
|
$event['description'] = $parser->parse_message($event['description'], $event_parser_options);
// Get the usergroup
|
if($event['username'])
| if($event['usergroup'])
|
{
|
{
|
if(!$event['displaygroup']) { $event['displaygroup'] = $event['usergroup']; } $user_usergroup = $groupscache[$event['displaygroup']]; }
| $user_usergroup = usergroup_permissions($event['usergroup']); }
|
else {
|
else {
|
$user_usergroup = $groupscache[1];
| $user_usergroup = usergroup_permissions(1); }
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $display_group = usergroup_displaygroup($event['displaygroup']); if(is_array($display_group)) { $user_usergroup = array_merge($user_usergroup, $display_group);
|
}
$titles_cache = $cache->read("usertitles");
| }
$titles_cache = $cache->read("usertitles");
|
Zeile 2029 | Zeile 2035 |
---|
else { $mybb->input['week'] = (int)str_replace("n", "-", $mybb->get_input('week'));
|
else { $mybb->input['week'] = (int)str_replace("n", "-", $mybb->get_input('week'));
|
// No negative years please ;) if($mybb->input['week'] < -62167219200)
| // Nothing before 1901 please ;) if($mybb->input['week'] < -2177625600)
|
{
|
{
|
$mybb->input['week'] = -62167219200;
| $mybb->input['week'] = -2177625600;
|
} }
| } }
|