"Fossies" - the Fresh Open Source Software Archive  

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

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

modcp.php  (mybb_1822):modcp.php  (mybb_1823)
skipping to change at line 4250 skipping to change at line 4250
$username = $db->fetch_field($query, "username"); $username = $db->fetch_field($query, "username");
$updated_group = array( $updated_group = array(
'usergroup' => $ban['oldgroup'], 'usergroup' => $ban['oldgroup'],
'additionalgroups' => $ban['oldadditionalgroups'], 'additionalgroups' => $ban['oldadditionalgroups'],
'displaygroup' => $ban['olddisplaygroup'] 'displaygroup' => $ban['olddisplaygroup']
); );
$db->update_query("users", $updated_group, "uid='{$ban['uid']}'"); $db->update_query("users", $updated_group, "uid='{$ban['uid']}'");
$db->delete_query("banned", "uid='{$ban['uid']}'"); $db->delete_query("banned", "uid='{$ban['uid']}'");
$cache->update_banned();
$cache->update_moderators(); $cache->update_moderators();
log_moderator_action(array("uid" => $ban['uid'], "username" => $username) , $lang->lifted_ban); log_moderator_action(array("uid" => $ban['uid'], "username" => $username) , $lang->lifted_ban);
$plugins->run_hooks("modcp_liftban_end"); $plugins->run_hooks("modcp_liftban_end");
redirect("modcp.php?action=banning", $lang->redirect_banlifted); redirect("modcp.php?action=banning", $lang->redirect_banlifted);
} }
if($mybb->input['action'] == "do_banuser" && $mybb->request_method == "post") if($mybb->input['action'] == "do_banuser" && $mybb->request_method == "post")
{ {
skipping to change at line 4407 skipping to change at line 4406
} }
// Move the user to the banned group // Move the user to the banned group
$update_array = array( $update_array = array(
'usergroup' => $mybb->get_input('usergroup', MyBB::INPUT_ INT), 'usergroup' => $mybb->get_input('usergroup', MyBB::INPUT_ INT),
'displaygroup' => 0, 'displaygroup' => 0,
'additionalgroups' => '', 'additionalgroups' => '',
); );
$db->update_query('users', $update_array, "uid = {$user['uid']}") ; $db->update_query('users', $update_array, "uid = {$user['uid']}") ;
$cache->update_banned();
// Log edit or add ban // Log edit or add ban
if($existing_ban) if($existing_ban)
{ {
log_moderator_action(array("uid" => $user['uid'], "userna me" => $user['username']), $lang->edited_user_ban); log_moderator_action(array("uid" => $user['uid'], "userna me" => $user['username']), $lang->edited_user_ban);
} }
else else
{ {
log_moderator_action(array("uid" => $user['uid'], "userna me" => $user['username']), $lang->banned_user); log_moderator_action(array("uid" => $user['uid'], "userna me" => $user['username']), $lang->banned_user);
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 0 lines changed or added

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