functions_forumlist.php (mybb_1822) | : | functions_forumlist.php (mybb_1823) | ||
---|---|---|---|---|
skipping to change at line 145 | skipping to change at line 145 | |||
$lastpost_data = array( | $lastpost_data = array( | |||
"lastpost" => $forum['lastpost'], | "lastpost" => $forum['lastpost'], | |||
"lastpostsubject" => $forum['lastpostsubj ect'], | "lastpostsubject" => $forum['lastpostsubj ect'], | |||
"lastposter" => $forum['lastposter'], | "lastposter" => $forum['lastposter'], | |||
"lastposttid" => $forum['lastposttid'], | "lastposttid" => $forum['lastposttid'], | |||
"lastposteruid" => $forum['lastposteruid' ] | "lastposteruid" => $forum['lastposteruid' ] | |||
); | ); | |||
} | } | |||
if($forum['password']) | if(!forum_password_validated($forum, true)) | |||
{ | { | |||
if(!isset($mybb->cookies['forumpass'][$forum['fid | $hideinfo = true; | |||
']]) || !my_hash_equals($mybb->cookies['forumpass'][$forum['fid']], md5($mybb->u | $showlockicon = 1; | |||
ser['uid'].$forum['password']))) | ||||
{ | ||||
$hideinfo = true; | ||||
$showlockicon = 1; | ||||
} | ||||
} | } | |||
// Fetch subforums of this forum | // Fetch subforums of this forum | |||
if(isset($fcache[$forum['fid']])) | if(isset($fcache[$forum['fid']])) | |||
{ | { | |||
$forum_info = build_forumbits($forum['fid'], $dep th+1); | $forum_info = build_forumbits($forum['fid'], $dep th+1); | |||
// Increment forum counters with counters from ch ild forums | // Increment forum counters with counters from ch ild forums | |||
$forum['threads'] += $forum_info['counters']['thr eads']; | $forum['threads'] += $forum_info['counters']['thr eads']; | |||
$forum['posts'] += $forum_info['counters']['posts ']; | $forum['posts'] += $forum_info['counters']['posts ']; | |||
End of changes. 2 change blocks. | ||||
8 lines changed or deleted | 3 lines changed or added |