"Fossies" - the Fresh Open Source Software Archive  

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

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

functions_post.php  (mybb_1819):functions_post.php  (mybb_1820)
skipping to change at line 343 skipping to change at line 343
$useravatar = format_avatar($post['avatar'], $post['avata rdimensions'], $mybb->settings['postmaxavatarsize']); $useravatar = format_avatar($post['avatar'], $post['avata rdimensions'], $mybb->settings['postmaxavatarsize']);
eval("\$post['useravatar'] = \"".$templates->get("postbit _avatar")."\";"); eval("\$post['useravatar'] = \"".$templates->get("postbit _avatar")."\";");
} }
$post['button_find'] = ''; $post['button_find'] = '';
if($mybb->usergroup['cansearch'] == 1) if($mybb->usergroup['cansearch'] == 1)
{ {
eval("\$post['button_find'] = \"".$templates->get("postbi t_find")."\";"); eval("\$post['button_find'] = \"".$templates->get("postbi t_find")."\";");
} }
if($mybb->settings['enablepms'] == 1 && (($post['receivepms'] != 0 && $usergroup['canusepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_s trpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false) || $my bb->usergroup['canoverridepm'] == 1)) if($mybb->settings['enablepms'] == 1 && $post['uid'] != $mybb->us er['uid'] && (($post['receivepms'] != 0 && $usergroup['canusepms'] != 0 && $mybb ->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$my bb->user['uid'].",") === false) || $mybb->usergroup['canoverridepm'] == 1))
{ {
eval("\$post['button_pm'] = \"".$templates->get("postbit_ pm")."\";"); eval("\$post['button_pm'] = \"".$templates->get("postbit_ pm")."\";");
} }
$post['button_rep'] = ''; $post['button_rep'] = '';
if($post_type != 3 && $mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1 && ($mybb->settings['posrep'] || $mybb ->settings['neurep'] || $mybb->settings['negrep']) && $post['uid'] != $mybb->use r['uid'] && (!isset($post['visible']) || $post['visible'] == 1) && (!isset($thre ad['visible']) || $thread['visible'] == 1)) if($post_type != 3 && $mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1 && ($mybb->settings['posrep'] || $mybb ->settings['neurep'] || $mybb->settings['negrep']) && $post['uid'] != $mybb->use r['uid'] && (!isset($post['visible']) || $post['visible'] == 1) && (!isset($thre ad['visible']) || $thread['visible'] == 1))
{ {
if(!$post['pid']) if(!$post['pid'])
{ {
$post['pid'] = 0; $post['pid'] = 0;
skipping to change at line 369 skipping to change at line 369
if($post['website'] != "" && !is_member($mybb->settings['hidewebs ite']) && $usergroup['canchangewebsite'] == 1) if($post['website'] != "" && !is_member($mybb->settings['hidewebs ite']) && $usergroup['canchangewebsite'] == 1)
{ {
$post['website'] = htmlspecialchars_uni($post['website']) ; $post['website'] = htmlspecialchars_uni($post['website']) ;
eval("\$post['button_www'] = \"".$templates->get("postbit _www")."\";"); eval("\$post['button_www'] = \"".$templates->get("postbit _www")."\";");
} }
else else
{ {
$post['button_www'] = ""; $post['button_www'] = "";
} }
if($post['hideemail'] != 1 && $mybb->usergroup['cansendemail'] == 1) if($post['hideemail'] != 1 && $post['uid'] != $mybb->user['uid'] && $mybb->usergroup['cansendemail'] == 1)
{ {
eval("\$post['button_email'] = \"".$templates->get("postb it_email")."\";"); eval("\$post['button_email'] = \"".$templates->get("postb it_email")."\";");
} }
else else
{ {
$post['button_email'] = ""; $post['button_email'] = "";
} }
$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']); $post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);
skipping to change at line 865 skipping to change at line 865
} }
// Has this post been deleted but can be viewed? Hide thi s post // Has this post been deleted but can be viewed? Hide thi s post
if($post['visible'] == -1 && is_moderator($fid, "canviewd eleted")) if($post['visible'] == -1 && is_moderator($fid, "canviewd eleted"))
{ {
$deleted_message = $lang->sprintf($lang->postbit_ deleted_post_user, $post['username']); $deleted_message = $lang->sprintf($lang->postbit_ deleted_post_user, $post['username']);
eval("\$deleted_bit = \"".$templates->get("postbi t_deleted")."\";"); eval("\$deleted_bit = \"".$templates->get("postbi t_deleted")."\";");
$post_visibility = "display: none;"; $post_visibility = "display: none;";
} }
// Is the user (not moderator) logged in and have unappro
ved posts?
if($mybb->user['uid'] && $post['visible'] == 0 && $post['
uid'] == $mybb->user['uid'] && !is_moderator($fid, "canviewunapprove"))
{
$ignored_message = $lang->sprintf($lang->postbit_
post_under_moderation, $post['username']);
eval("\$ignore_bit = \"".$templates->get("postbit
_ignored")."\";");
$post_visibility = "display: none;";
}
// Is this author on the ignore list of the current user? Hide this post // Is this author on the ignore list of the current user? Hide this post
if(is_array($ignored_users) && $post['uid'] != 0 && isset ($ignored_users[$post['uid']]) && $ignored_users[$post['uid']] == 1 && empty($de leted_bit)) if(is_array($ignored_users) && $post['uid'] != 0 && isset ($ignored_users[$post['uid']]) && $ignored_users[$post['uid']] == 1 && empty($de leted_bit))
{ {
$ignored_message = $lang->sprintf($lang->postbit_ currently_ignoring_user, $post['username']); $ignored_message = $lang->sprintf($lang->postbit_ currently_ignoring_user, $post['username']);
eval("\$ignore_bit = \"".$templates->get("postbit _ignored")."\";"); eval("\$ignore_bit = \"".$templates->get("postbit _ignored")."\";");
$post_visibility = "display: none;"; $post_visibility = "display: none;";
} }
break; break;
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 14 lines changed or added

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