Zeile 1463 | Zeile 1463 |
---|
{ $event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
|
{ $event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
|
$hascustomtitle = 0;
| |
if(trim($event['usertitle']) != "") {
|
if(trim($event['usertitle']) != "") {
|
$hascustomtitle = 1;
| // Do nothing, no need for an extra variable..
|
}
|
}
|
if($user_usergroup['usertitle'] != "" && !$hascustomtitle)
| elseif($user_usergroup['usertitle'] != "")
|
{ $event['usertitle'] = $user_usergroup['usertitle']; } elseif(is_array($titles_cache) && !$user_usergroup['usertitle']) { reset($titles_cache);
|
{ $event['usertitle'] = $user_usergroup['usertitle']; } elseif(is_array($titles_cache) && !$user_usergroup['usertitle']) { reset($titles_cache);
|
foreach($titles_cache as $key => $title)
| foreach($titles_cache as $title)
|
{
|
{
|
if($event['postnum'] >= $key)
| if($event['postnum'] >= $title['posts'])
|
{
|
{
|
if(!$hascustomtitle) { $event['usertitle'] = $title['title']; }
| $event['usertitle'] = $title['title'];
|
$event['stars'] = $title['stars']; $event['starimage'] = $title['starimage']; break;
| $event['stars'] = $title['stars']; $event['starimage'] = $title['starimage']; break;
|
Zeile 1517 | Zeile 1512 |
---|
else { if(!$event['username'])
|
else { if(!$event['username'])
|
{
| {
|
$event['username'] = $lang->guest; }
| $event['username'] = $lang->guest; }
|
Zeile 1534 | Zeile 1529 |
---|
$event['userstars'] = ''; }
|
$event['userstars'] = ''; }
|
$event['usertitle'] = htmlspecialchars_uni($event['usertitle']);
| $event['usertitle'] = htmlspecialchars_uni($event['usertitle']);
|
if($event['ignoretimezone'] == 0) {
| if($event['ignoretimezone'] == 0) {
|
Zeile 1601 | Zeile 1596 |
---|
{ $approve = $lang->unapprove_event; $approve_value = "unapprove";
|
{ $approve = $lang->unapprove_event; $approve_value = "unapprove";
|
}
| }
|
else { $approve = $lang->approve_event;
| else { $approve = $lang->approve_event;
|
Zeile 1614 | Zeile 1609 |
---|
{ $event_class = " trow_shaded"; }
|
{ $event_class = " trow_shaded"; }
|
}
$month = my_date("n");
| }
$month = my_date("n");
|
$yearsel = ''; for($year_sel = my_date("Y"); $year_sel < (my_date("Y") + 5); ++$year_sel)
| $yearsel = ''; for($year_sel = my_date("Y"); $year_sel < (my_date("Y") + 5); ++$year_sel)
|
Zeile 1643 | Zeile 1638 |
---|
if($mybb->input['calendar']) { $query = $db->simple_select("calendars", "*", "cid='{$mybb->input['calendar']}'");
|
if($mybb->input['calendar']) { $query = $db->simple_select("calendars", "*", "cid='{$mybb->input['calendar']}'");
|
$calendar = $db->fetch_array($query);
| $calendar = $db->fetch_array($query);
|
} // Showing the default calendar else
| } // Showing the default calendar else
|
Zeile 1663 | Zeile 1658 |
---|
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', MyBB::INPUT_INT);
| // Incoming year? $mybb->input['year'] = $mybb->get_input('year', MyBB::INPUT_INT);
|
Zeile 1674 | Zeile 1669 |
---|
else { $year = my_date("Y");
|
else { $year = my_date("Y");
|
}
| }
|
// Then the month $mybb->input['month'] = $mybb->get_input('month', MyBB::INPUT_INT); if($mybb->input['month'] >= 1 && $mybb->input['month'] <= 12)
|
// Then the month $mybb->input['month'] = $mybb->get_input('month', MyBB::INPUT_INT); if($mybb->input['month'] >= 1 && $mybb->input['month'] <= 12)
|
{
| {
|
$month = $mybb->input['month'];
|
$month = $mybb->input['month'];
|
}
| }
|
else { $month = my_date("n");
|
else { $month = my_date("n");
|
}
| }
|
// And day? $mybb->input['day'] = $mybb->get_input('day', MyBB::INPUT_INT);
| // And day? $mybb->input['day'] = $mybb->get_input('day', MyBB::INPUT_INT);
|
Zeile 1807 | Zeile 1802 |
---|
{ $event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
|
{ $event['profilelink'] = build_profile_link(format_name($event['username'], $event['usergroup'], $event['displaygroup']), $event['uid']);
|
$hascustomtitle = 0;
| |
if(trim($event['usertitle']) != "") {
|
if(trim($event['usertitle']) != "") {
|
$hascustomtitle = 1;
| // Do nothing, no need for an extra variable..
|
}
|
}
|
if($user_usergroup['usertitle'] != "" && !$hascustomtitle)
| elseif($user_usergroup['usertitle'] != "")
|
{ $event['usertitle'] = $user_usergroup['usertitle']; } elseif(is_array($titles_cache) && !$user_usergroup['usertitle']) { reset($titles_cache);
|
{ $event['usertitle'] = $user_usergroup['usertitle']; } elseif(is_array($titles_cache) && !$user_usergroup['usertitle']) { reset($titles_cache);
|
foreach($titles_cache as $key => $title)
| foreach($titles_cache as $title)
|
{
|
{
|
if($event['postnum'] >= $key)
| if($event['postnum'] >= $title['posts'])
|
{
|
{
|
if(!$hascustomtitle) { $event['usertitle'] = $title['title']; }
| $event['usertitle'] = $title['title'];
|
$event['stars'] = $title['stars']; $event['starimage'] = $title['starimage']; break;
| $event['stars'] = $title['stars']; $event['starimage'] = $title['starimage']; break;
|
Zeile 1878 | Zeile 1868 |
---|
$event['userstars'] = ''; }
|
$event['userstars'] = ''; }
|
$event['usertitle'] = htmlspecialchars_uni($event['usertitle']);
| $event['usertitle'] = htmlspecialchars_uni($event['usertitle']);
|
if($event['ignoretimezone'] == 0) {
| if($event['ignoretimezone'] == 0) {
|