"Fossies" - the Fresh Open Source Software Archive  

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

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

index.php  (mybb_1822):index.php  (mybb_1823)
skipping to change at line 29 skipping to change at line 29
$plugins->run_hooks("archive_start"); $plugins->run_hooks("archive_start");
switch($action) switch($action)
{ {
// Display an announcement. // Display an announcement.
case "announcement": case "announcement":
// Fetch the forum this thread is in // Fetch the forum this thread is in
if($announcement['fid'] != -1) if($announcement['fid'] != -1)
{ {
$forum = get_forum($announcement['fid']); $forum = get_forum($announcement['fid']);
if(!$forum['fid'] || $forum['password'] != '') if(!$forum['fid'] || $forum['password'] !== '')
{ {
archive_error($lang->error_invalidforum); archive_error($lang->error_invalidforum);
} }
// Check if we have permission to view this thread // Check if we have permission to view this thread
$forumpermissions = forum_permissions($forum['fid']); $forumpermissions = forum_permissions($forum['fid']);
if($forumpermissions['canview'] != 1 || $forumpermissions ['canviewthreads'] != 1) if($forumpermissions['canview'] != 1 || $forumpermissions ['canviewthreads'] != 1)
{ {
archive_error_no_permission(); archive_error_no_permission();
} }
skipping to change at line 83 skipping to change at line 83
archive_footer(); archive_footer();
break; break;
// Display a thread. // Display a thread.
case "thread": case "thread":
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords ($thread['subject'])); $thread['subject'] = htmlspecialchars_uni($parser->parse_badwords ($thread['subject']));
// Fetch the forum this thread is in // Fetch the forum this thread is in
$forum = get_forum($thread['fid']); $forum = get_forum($thread['fid']);
if(!$forum['fid'] || $forum['password'] != '') if(!$forum['fid'] || $forum['password'] !== '')
{ {
archive_error($lang->error_invalidforum); archive_error($lang->error_invalidforum);
} }
// Check if we have permission to view this thread // Check if we have permission to view this thread
$forumpermissions = forum_permissions($forum['fid']); $forumpermissions = forum_permissions($forum['fid']);
if($forumpermissions['canview'] != 1 || $forumpermissions['canvie wthreads'] != 1) if($forumpermissions['canview'] != 1 || $forumpermissions['canvie wthreads'] != 1)
{ {
archive_error_no_permission(); archive_error_no_permission();
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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