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");
if(!$event['displaygroup']) { $event['displaygroup'] = $event['usergroup']; }
$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 1467 | Zeile 1476 |
---|
$event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
if(trim($event['usertitle']) != "")
|
$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.. } elseif($user_usergroup['usertitle'] != "")
| // Do nothing, no need for an extra variable.. } elseif($user_usergroup['usertitle'] != "")
|
Zeile 1492 | Zeile 1501 |
---|
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 1586 |
---|
$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']);
|
Zeile 1662 | Zeile 1671 |
---|
if($calendar_permissions['canviewcalendar'] != 1) { error_no_permission();
|
if($calendar_permissions['canviewcalendar'] != 1) { error_no_permission();
|
}
| }
|
// Incoming year? if(isset($mybb->input['year']) && $mybb->get_input('year', MyBB::INPUT_INT) <= my_date("Y")+5 && $mybb->get_input('year', MyBB::INPUT_INT) >= 1901)
| // Incoming year? if(isset($mybb->input['year']) && $mybb->get_input('year', MyBB::INPUT_INT) <= my_date("Y")+5 && $mybb->get_input('year', MyBB::INPUT_INT) >= 1901)
|
Zeile 1785 | Zeile 1794 |
---|
$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");
if(!$event['displaygroup']) { $event['displaygroup'] = $event['usergroup']; }
$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");
|