// Loop through each of parent forums to ensure we have a password for them too $parents = explode(',', $forum_cache[$fid]['parentlist']); rsort($parents); if(!empty($parents))
| if(!forum_password_validated($forum_cache[$fid], true, true))
|
foreach($parents as $parent_id) { if($parent_id == $fid || $parent_id == $pid) { continue; }
if($forum_cache[$parent_id]['password'] != "") { check_forum_password_archive($parent_id, $fid); } } }
$password = $forum_cache[$fid]['password']; if($password) { if(!isset($mybb->cookies['forumpass'][$fid]) || !my_hash_equals(md5($mybb->user['uid'].$password), $mybb->cookies['forumpass'][$fid])) { archive_error_no_permission(); }
| archive_error_no_permission();
|