Zeile 111 | Zeile 111 |
---|
if($private_forums[$forum['fid']]['lastpost']) { $forum['lastpost'] = $private_forums[$forum['fid']]['lastpost'];
|
if($private_forums[$forum['fid']]['lastpost']) { $forum['lastpost'] = $private_forums[$forum['fid']]['lastpost'];
|
| if(!$private_forums[$forum['fid']]['lastposteruid'] && !$private_forums[$forum['fid']]['lastposter']) { $private_forums[$forum['fid']]['lastposter'] = $lang->guest; // htmlspecialchars_uni'd when formatted later }
|
$lastpost_data = array( "lastpost" => $private_forums[$forum['fid']]['lastpost'],
| $lastpost_data = array( "lastpost" => $private_forums[$forum['fid']]['lastpost'],
|
Zeile 119 | Zeile 124 |
---|
"lastposttid" => $private_forums[$forum['fid']]['tid'], "lastposteruid" => $private_forums[$forum['fid']]['lastposteruid'] );
|
"lastposttid" => $private_forums[$forum['fid']]['tid'], "lastposteruid" => $private_forums[$forum['fid']]['lastposteruid'] );
|
}
| }
|
} else
|
} else
|
{
| { if(!$forum['lastposteruid'] && !$forum['lastposter']) { $forum['lastposter'] = $lang->guest; // htmlspecialchars_uni'd when formatted later }
|
$lastpost_data = array( "lastpost" => $forum['lastpost'], "lastpostsubject" => $forum['lastpostsubject'],
| $lastpost_data = array( "lastpost" => $forum['lastpost'], "lastpostsubject" => $forum['lastpostsubject'],
|
Zeile 132 | Zeile 142 |
---|
); }
|
); }
|
if($forum['password'] != '' && $mybb->cookies['forumpass'][$forum['fid']] !== md5($mybb->user['uid'].$forum['password']))
| if($forum['password'])
|
{
|
{
|
$hideinfo = true; $showlockicon = 1;
| if(!isset($mybb->cookies['forumpass'][$forum['fid']]) || !my_hash_equals($mybb->cookies['forumpass'][$forum['fid']], md5($mybb->user['uid'].$forum['password']))) { $hideinfo = true; $showlockicon = 1; }
|
}
// Fetch subforums of this forum
| }
// Fetch subforums of this forum
|
Zeile 282 | Zeile 295 |
---|
if($forum['linkto'] == '') { // No posts have been made in this forum - show never text
|
if($forum['linkto'] == '') { // No posts have been made in this forum - show never text
|
if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true)
| if($lastpost_data['lastpost'] == 0 && $hideinfo != true)
|
{ eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_never")."\";"); }
| { eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_never")."\";"); }
|
Zeile 292 | Zeile 305 |
---|
$lastpost_date = my_date('relative', $lastpost_data['lastpost']);
// Set up the last poster, last post thread id, last post subject and format appropriately
|
$lastpost_date = my_date('relative', $lastpost_data['lastpost']);
// Set up the last poster, last post thread id, last post subject and format appropriately
|
| $lastpost_data['lastposter'] = htmlspecialchars_uni($lastpost_data['lastposter']);
|
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']); $lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost"); $lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);
| $lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']); $lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost"); $lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);
|
Zeile 473 | Zeile 487 |
---|
$folder = "offlink"; $altonoff = $lang->forum_redirect; }
|
$folder = "offlink"; $altonoff = $lang->forum_redirect; }
|
// This forum is closed, so override the folder icon with the "offlock" icon.
| // This forum is closed, so override the folder icon with the "offclose" icon.
|
elseif($forum['open'] == 0 || $locked) {
|
elseif($forum['open'] == 0 || $locked) {
|
$folder = "offlock"; $altonoff = $lang->forum_locked;
| $folder = "offclose"; $altonoff = $lang->forum_closed;
|
} else {
| } else {
|