"Fossies" - the Fresh Open Source Software Archive  

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

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

functions_post.php  (mybb_1821):functions_post.php  (mybb_1822)
skipping to change at line 682 skipping to change at line 682
if($forum['open'] != 0 && ($thread['closed'] != 1 || is_moderator ($forum['fid'], "canpostclosedthreads")) && ($thread['uid'] == $mybb->user['uid' ] || $forumpermissions['canonlyreplyownthreads'] != 1)) if($forum['open'] != 0 && ($thread['closed'] != 1 || is_moderator ($forum['fid'], "canpostclosedthreads")) && ($thread['uid'] == $mybb->user['uid' ] || $forumpermissions['canonlyreplyownthreads'] != 1))
{ {
eval("\$post['button_quote'] = \"".$templates->get("postb it_quote")."\";"); eval("\$post['button_quote'] = \"".$templates->get("postb it_quote")."\";");
} }
if($forumpermissions['canpostreplys'] != 0 && ($thread['uid'] == $mybb->user['uid'] || $forumpermissions['canonlyreplyownthreads'] != 1) && ($thr ead['closed'] != 1 || is_moderator($fid, "canpostclosedthreads")) && $mybb->sett ings['multiquote'] != 0 && $forum['open'] != 0 && !$post_type) if($forumpermissions['canpostreplys'] != 0 && ($thread['uid'] == $mybb->user['uid'] || $forumpermissions['canonlyreplyownthreads'] != 1) && ($thr ead['closed'] != 1 || is_moderator($fid, "canpostclosedthreads")) && $mybb->sett ings['multiquote'] != 0 && $forum['open'] != 0 && !$post_type)
{ {
eval("\$post['button_multiquote'] = \"".$templates->get(" postbit_multiquote")."\";"); eval("\$post['button_multiquote'] = \"".$templates->get(" postbit_multiquote")."\";");
} }
$skip_report = my_unserialize($post['reporters']);
if(is_array($skip_report))
{
$skip_report[] = 0;
}
else
{
$skip_report = array(0);
}
$reportable = user_permissions($post['uid']); $reportable = user_permissions($post['uid']);
if($mybb->user['uid'] != "0" && !empty($reportable['canbereported '])) if(!in_array($mybb->user['uid'], $skip_report) && !empty($reporta ble['canbereported']))
{ {
eval("\$post['button_report'] = \"".$templates->get("post bit_report")."\";"); eval("\$post['button_report'] = \"".$templates->get("post bit_report")."\";");
} }
} }
elseif($post_type == 3) // announcement elseif($post_type == 3) // announcement
{ {
if($mybb->usergroup['canmodcp'] == 1 && $mybb->usergroup['canmana geannounce'] == 1 && is_moderator($fid, "canmanageannouncements")) if($mybb->usergroup['canmodcp'] == 1 && $mybb->usergroup['canmana geannounce'] == 1 && is_moderator($fid, "canmanageannouncements"))
{ {
eval("\$post['button_edit'] = \"".$templates->get("announ cement_edit")."\";"); eval("\$post['button_edit'] = \"".$templates->get("announ cement_edit")."\";");
eval("\$post['button_quickdelete'] = \"".$templates->get( "announcement_quickdelete")."\";"); eval("\$post['button_quickdelete'] = \"".$templates->get( "announcement_quickdelete")."\";");
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

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