"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/functions_archive.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

functions_archive.php  (mybb_1822):functions_archive.php  (mybb_1823)
skipping to change at line 242 skipping to change at line 242
if(!is_array($forum_cache)) if(!is_array($forum_cache))
{ {
$forum_cache = cache_forums(); $forum_cache = cache_forums();
if(!$forum_cache) if(!$forum_cache)
{ {
return false; return false;
} }
} }
// Loop through each of parent forums to ensure we have a password for th if(!forum_password_validated($forum_cache[$fid], true, true))
em too
$parents = explode(',', $forum_cache[$fid]['parentlist']);
rsort($parents);
if(!empty($parents))
{ {
foreach($parents as $parent_id) archive_error_no_permission();
{
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(m
d5($mybb->user['uid'].$password), $mybb->cookies['forumpass'][$fid]))
{
archive_error_no_permission();
}
} }
} }
 End of changes. 2 change blocks. 
27 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)