Zeile 329 | Zeile 329 |
---|
$guestsonline = $lang->sprintf($lang->users_browsing_forum_guests, $guestcount); }
|
$guestsonline = $lang->sprintf($lang->users_browsing_forum_guests, $guestcount); }
|
$onlinesep = ''; if($guestcount && $onlinemembers)
| $invisonline = ''; if($mybb->user['invisible'] == 1)
|
{
|
{
|
$onlinesep = $lang->comma; }
$invisonline = ''; if($inviscount && $mybb->usergroup['canviewwolinvis'] != 1 && ($inviscount != 1 && $mybb->user['invisible'] != 1))
| // the user was counted as invisible user --> correct the inviscount $inviscount -= 1; } if($inviscount && $mybb->usergroup['canviewwolinvis'] != 1)
|
{ $invisonline = $lang->sprintf($lang->users_browsing_forum_invis, $inviscount);
|
{ $invisonline = $lang->sprintf($lang->users_browsing_forum_invis, $inviscount);
|
}
| }
$onlinesep = ''; if($invisonline != '' && $onlinemembers) { $onlinesep = $lang->comma; }
|
$onlinesep2 = '';
|
$onlinesep2 = '';
|
if($invisonline != '' && $guestcount)
| if($invisonline != '' && $guestcount || $onlinemembers && $guestcount)
|
{ $onlinesep2 = $lang->comma; }
eval("\$usersbrowsing = \"".$templates->get("forumdisplay_usersbrowsing")."\";");
|
{ $onlinesep2 = $lang->comma; }
eval("\$usersbrowsing = \"".$templates->get("forumdisplay_usersbrowsing")."\";");
|
}
| }
|
// Do we have any forum rules to show for this forum? $forumrules = '';
| // Do we have any forum rules to show for this forum? $forumrules = '';
|
Zeile 365 | Zeile 371 |
---|
"allow_smilies" => 1, "allow_imgcode" => 1 );
|
"allow_smilies" => 1, "allow_imgcode" => 1 );
|
|
|
$foruminfo['rules'] = $parser->parse_message($foruminfo['rules'], $rules_parser); if($foruminfo['rulestype'] == 1 || $foruminfo['rulestype'] == 3)
|
$foruminfo['rules'] = $parser->parse_message($foruminfo['rules'], $rules_parser); if($foruminfo['rulestype'] == 1 || $foruminfo['rulestype'] == 3)
|
{
| {
|
eval("\$rules = \"".$templates->get("forumdisplay_rules")."\";");
|
eval("\$rules = \"".$templates->get("forumdisplay_rules")."\";");
|
}
| }
|
else if($foruminfo['rulestype'] == 2) { eval("\$rules = \"".$templates->get("forumdisplay_rules_link")."\";"); } }
|
else if($foruminfo['rulestype'] == 2) { eval("\$rules = \"".$templates->get("forumdisplay_rules_link")."\";"); } }
|
|
|
$bgcolor = "trow1";
// Set here to fetch only approved topics (and then below for a moderator we change this). $visibleonly = "AND visible='1'"; $tvisibleonly = "AND t.visible='1'";
|
$bgcolor = "trow1";
// Set here to fetch only approved topics (and then below for a moderator we change this). $visibleonly = "AND visible='1'"; $tvisibleonly = "AND t.visible='1'";
|
|
|
// Check if the active user is a moderator and get the inline moderation tools. if(is_moderator($fid)) {
| // Check if the active user is a moderator and get the inline moderation tools. if(is_moderator($fid)) {
|
Zeile 398 | Zeile 404 |
---|
{ $visibleonly = "AND visible IN (0,1)"; $tvisibleonly = "AND t.visible IN (0,1)";
|
{ $visibleonly = "AND visible IN (0,1)"; $tvisibleonly = "AND t.visible IN (0,1)";
|
}
| }
|
elseif(is_moderator($fid, "canviewdeleted") == true && is_moderator($fid, "canviewunapprove") == false) { $visibleonly = "AND visible IN (-1,1)"; $tvisibleonly = "AND t.visible IN (-1,1)";
|
elseif(is_moderator($fid, "canviewdeleted") == true && is_moderator($fid, "canviewunapprove") == false) { $visibleonly = "AND visible IN (-1,1)"; $tvisibleonly = "AND t.visible IN (-1,1)";
|
}
| }
|
else { $visibleonly = " AND visible IN (-1,0,1)";
| else { $visibleonly = " AND visible IN (-1,0,1)";
|
Zeile 415 | Zeile 421 |
---|
{ $inlinemod = $inlinemodcol = ''; $ismod = false;
|
{ $inlinemod = $inlinemodcol = ''; $ismod = false;
|
}
| }
|
if(is_moderator($fid, "caneditposts") || $fpermissions['caneditposts'] == 1) {
| if(is_moderator($fid, "caneditposts") || $fpermissions['caneditposts'] == 1) {
|
Zeile 430 | Zeile 436 |
---|
// Pick out some sorting options. // First, the date cut for the threads.
|
// Pick out some sorting options. // First, the date cut for the threads.
|
$datecut = 0;
| $datecut = 9999;
|
if(empty($mybb->input['datecut'])) { // If the user manually set a date cut, use it.
|
if(empty($mybb->input['datecut'])) { // If the user manually set a date cut, use it.
|
if(isset($mybb->user['daysprune']))
| if(!empty($mybb->user['daysprune']))
|
{ $datecut = $mybb->user['daysprune']; }
| { $datecut = $mybb->user['daysprune']; }
|
Zeile 451 | Zeile 457 |
---|
else { $datecut = $mybb->get_input('datecut', 1);
|
else { $datecut = $mybb->get_input('datecut', 1);
|
}
| }
|
|
|
$datecut = (int)$datecut; $datecutsel[$datecut] = "selected=\"selected\"";
| $datecutsel[(int)$datecut] = ' selected="selected"';
|
if($datecut > 0 && $datecut != 9999) { $checkdate = TIME_NOW - ($datecut * 86400);
| if($datecut > 0 && $datecut != 9999) { $checkdate = TIME_NOW - ($datecut * 86400);
|
Zeile 465 | Zeile 470 |
---|
{ $datecutsql = ''; $datecutsql2 = '';
|
{ $datecutsql = ''; $datecutsql2 = '';
|
}
| }
|
// Sort by thread prefix $tprefix = $mybb->get_input('prefix', 1); if($tprefix > 0) {
|
// Sort by thread prefix $tprefix = $mybb->get_input('prefix', 1); if($tprefix > 0) {
|
$prefixsql = "AND prefix='{$tprefix}'"; $prefixsql2 = "AND t.prefix='{$tprefix}'";
| $prefixsql = "AND prefix = {$tprefix}"; $prefixsql2 = "AND t.prefix = {$tprefix}"; } else if($tprefix == -1) { $prefixsql = "AND prefix = 0"; $prefixsql2 = "AND t.prefix = 0"; } else if($tprefix == -2) { $prefixsql = "AND prefix != 0"; $prefixsql2 = "AND t.prefix != 0";
|
} else {
|
} else {
|
$prefixsql = ''; $prefixsql2 = '';
| $prefixsql = $prefixsql2 = '';
|
}
// Pick the sort order.
| }
// Pick the sort order.
|
Zeile 496 | Zeile 510 |
---|
{ case "asc": $sortordernow = "asc";
|
{ case "asc": $sortordernow = "asc";
|
$ordersel['asc'] = "selected=\"selected\"";
| $ordersel['asc'] = ' selected="selected"';
|
$oppsort = $lang->desc; $oppsortnext = "desc"; break; default: $sortordernow = "desc";
|
$oppsort = $lang->desc; $oppsortnext = "desc"; break; default: $sortordernow = "desc";
|
$ordersel['desc'] = "selected=\"selected\"";
| $ordersel['desc'] = ' selected="selected"';
|
$oppsort = $lang->asc; $oppsortnext = "asc"; break;
| $oppsort = $lang->asc; $oppsortnext = "asc"; break;
|
Zeile 553 | Zeile 567 |
---|
}
$sortsel['rating'] = ''; // Needs to be initialized in order to speed-up things. Fixes #2031
|
}
$sortsel['rating'] = ''; // Needs to be initialized in order to speed-up things. Fixes #2031
|
$sortsel[$mybb->input['sortby']] = "selected=\"selected\"";
| $sortsel[$mybb->input['sortby']] = ' selected="selected"';
|
// Pick the right string to join the sort URL if($mybb->seo_support == true)
| // Pick the right string to join the sort URL if($mybb->seo_support == true)
|
Zeile 685 | Zeile 699 |
---|
$and = "&"; }
|
$and = "&"; }
|
if($tprefix > 0)
| if($tprefix != 0)
|
{ $page_url .= "{$q}{$and}prefix={$tprefix}"; }
| { $page_url .= "{$q}{$and}prefix={$tprefix}"; }
|
Zeile 1039 | Zeile 1053 |
---|
{ $icon = $icon_cache[$thread['icon']]; $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);
|
{ $icon = $icon_cache[$thread['icon']]; $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);
|
| $icon['path'] = htmlspecialchars_uni($icon['path']); $icon['name'] = htmlspecialchars_uni($icon['name']);
|
eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";"); } else
| eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";"); } else
|