"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/user/banning.php" between
mybb_1822.zip and mybb_1823.zip

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

banning.php  (mybb_1822):banning.php  (mybb_1823)
skipping to change at line 153 skipping to change at line 153
'usergroup' => $ban['oldgroup'], 'usergroup' => $ban['oldgroup'],
'additionalgroups' => $ban['oldadditionalgroups'], 'additionalgroups' => $ban['oldadditionalgroups'],
'displaygroup' => $ban['olddisplaygroup'] 'displaygroup' => $ban['olddisplaygroup']
); );
$db->delete_query("banned", "uid='{$ban['uid']}'"); $db->delete_query("banned", "uid='{$ban['uid']}'");
$plugins->run_hooks("admin_user_banning_lift_commit"); $plugins->run_hooks("admin_user_banning_lift_commit");
$db->update_query("users", $updated_group, "uid='{$ban['uid']}'") ; $db->update_query("users", $updated_group, "uid='{$ban['uid']}'") ;
$cache->update_banned();
$cache->update_moderators(); $cache->update_moderators();
// Log admin action // Log admin action
log_admin_action($ban['uid'], $user['username']); log_admin_action($ban['uid'], $user['username']);
flash_message($lang->success_ban_lifted, 'success'); flash_message($lang->success_ban_lifted, 'success');
admin_redirect("index.php?module=user-banning"); admin_redirect("index.php?module=user-banning");
} }
else else
{ {
skipping to change at line 241 skipping to change at line 240
// 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 = {$ban['u id']}"); $db->update_query('users', $update_array, "uid = {$ban['u id']}");
$plugins->run_hooks("admin_user_banning_edit_commit"); $plugins->run_hooks("admin_user_banning_edit_commit");
$cache->update_banned();
// Log admin action // Log admin action
log_admin_action($ban['uid'], $user['username']); log_admin_action($ban['uid'], $user['username']);
flash_message($lang->success_ban_updated, 'success'); flash_message($lang->success_ban_updated, 'success');
admin_redirect("index.php?module=user-banning"); admin_redirect("index.php?module=user-banning");
} }
} }
$page->add_breadcrumb_item($lang->edit_ban); $page->add_breadcrumb_item($lang->edit_ban);
$page->output_header($lang->edit_ban); $page->output_header($lang->edit_ban);
skipping to change at line 405 skipping to change at line 402
'additionalgroups' => '', 'additionalgroups' => '',
); );
$db->delete_query("forumsubscriptions", "uid = '{ $user['uid']}'"); $db->delete_query("forumsubscriptions", "uid = '{ $user['uid']}'");
$db->delete_query("threadsubscriptions", "uid = ' {$user['uid']}'"); $db->delete_query("threadsubscriptions", "uid = ' {$user['uid']}'");
$plugins->run_hooks("admin_user_banning_start_com mit"); $plugins->run_hooks("admin_user_banning_start_com mit");
$db->update_query('users', $update_array, "uid = '{$user['uid']}'"); $db->update_query('users', $update_array, "uid = '{$user['uid']}'");
$cache->update_banned();
// Log admin action // Log admin action
log_admin_action($user['uid'], $user['username'], $lifted); log_admin_action($user['uid'], $user['username'], $lifted);
flash_message($lang->success_banned, 'success'); flash_message($lang->success_banned, 'success');
admin_redirect("index.php?module=user-banning"); admin_redirect("index.php?module=user-banning");
} }
} }
} }
$page->output_header($lang->banned_accounts); $page->output_header($lang->banned_accounts);
 End of changes. 3 change blocks. 
5 lines changed or deleted 0 lines changed or added

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