Zeile 1685 | Zeile 1685 |
---|
$db->delete_query("threadsubscriptions", "uid='{$user['uid']}'"); $db->delete_query("sessions", "uid='{$user['uid']}'"); $db->delete_query("banned", "uid='{$user['uid']}'");
|
$db->delete_query("threadsubscriptions", "uid='{$user['uid']}'"); $db->delete_query("sessions", "uid='{$user['uid']}'"); $db->delete_query("banned", "uid='{$user['uid']}'");
|
$db->delete_query("threadratings", "uid='{$user['uid']}'");
| |
$db->delete_query("users", "uid='{$user['uid']}'"); $db->delete_query("joinrequests", "uid='{$user['uid']}'"); $db->delete_query("warnings", "uid='{$user['uid']}'");
| $db->delete_query("users", "uid='{$user['uid']}'"); $db->delete_query("joinrequests", "uid='{$user['uid']}'"); $db->delete_query("warnings", "uid='{$user['uid']}'");
|
Zeile 1693 | Zeile 1692 |
---|
$db->delete_query("awaitingactivation", "uid='{$user['uid']}'"); $db->delete_query("posts", "uid = '{$user['uid']}' AND visible = '-2'"); $db->delete_query("threads", "uid = '{$user['uid']}' AND visible = '-2'");
|
$db->delete_query("awaitingactivation", "uid='{$user['uid']}'"); $db->delete_query("posts", "uid = '{$user['uid']}' AND visible = '-2'"); $db->delete_query("threads", "uid = '{$user['uid']}' AND visible = '-2'");
|
| // Update thread ratings $query = $db->query(" SELECT r.*, t.numratings, t.totalratings FROM ".TABLE_PREFIX."threadratings r LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=r.tid) WHERE r.uid='{$user['uid']}' "); while($rating = $db->fetch_array($query)) { $update_thread = array( "numratings" => $rating['numratings'] - 1, "totalratings" => $rating['totalratings'] - $rating['rating'] ); $db->update_query("threads", $update_thread, "tid='{$rating['tid']}'"); }
$db->delete_query("threadratings", "uid='{$user['uid']}'");
|
// Update forum stats update_stats(array('numusers' => '-1'));
| // Update forum stats update_stats(array('numusers' => '-1'));
|
Zeile 2028 | Zeile 2045 |
---|
$db->update_query("privatemessages", $from_uid, "fromid='{$source_user['uid']}'"); $to_uid = array( "toid" => $destination_user['uid']
|
$db->update_query("privatemessages", $from_uid, "fromid='{$source_user['uid']}'"); $to_uid = array( "toid" => $destination_user['uid']
|
);
| );
|
$db->update_query("privatemessages", $to_uid, "toid='{$source_user['uid']}'");
// Buddy/ignore lists
| $db->update_query("privatemessages", $to_uid, "toid='{$source_user['uid']}'");
// Buddy/ignore lists
|
Zeile 2097 | Zeile 2114 |
---|
}
update_stats(array('numusers' => '-1'));
|
}
update_stats(array('numusers' => '-1'));
|
|
|
$plugins->run_hooks("admin_user_users_merge_commit");
// Log admin action
| $plugins->run_hooks("admin_user_users_merge_commit");
// Log admin action
|
Zeile 2139 | Zeile 2156 |
---|
</script>';
$buttons[] = $form->generate_submit_button($lang->merge_user_accounts);
|
</script>';
$buttons[] = $form->generate_submit_button($lang->merge_user_accounts);
|
$form->output_submit_wrapper($buttons); $form->end();
$page->output_footer(); }
| $form->output_submit_wrapper($buttons); $form->end();
$page->output_footer(); }
|
if($mybb->input['action'] == "search") {
| if($mybb->input['action'] == "search") {
|
Zeile 2158 | Zeile 2175 |
---|
$admin_view = $db->fetch_array($query); // View does not exist or this view is private and does not belong to the current user if(!$admin_view['vid'] || ($admin_view['visibility'] == 1 && $admin_view['uid'] != $mybb->user['uid']))
|
$admin_view = $db->fetch_array($query); // View does not exist or this view is private and does not belong to the current user if(!$admin_view['vid'] || ($admin_view['visibility'] == 1 && $admin_view['uid'] != $mybb->user['uid']))
|
{
| {
|
unset($admin_view); } }
if($mybb->input['search_id'] && $admin_session['data']['user_views'][$mybb->input['search_id']])
|
unset($admin_view); } }
if($mybb->input['search_id'] && $admin_session['data']['user_views'][$mybb->input['search_id']])
|
{
| {
|
$admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']]; unset($admin_view['extra_sql']); }
| $admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']]; unset($admin_view['extra_sql']); }
|
Zeile 2172 | Zeile 2189 |
---|
{ // Don't have a view? Fetch the default if(!$admin_view['vid'])
|
{ // Don't have a view? Fetch the default if(!$admin_view['vid'])
|
{
| {
|
$default_view = fetch_default_view("user"); if(!$default_view) {
| $default_view = fetch_default_view("user"); if(!$default_view) {
|
Zeile 2182 | Zeile 2199 |
---|
$admin_view = $db->fetch_array($query); } }
|
$admin_view = $db->fetch_array($query); } }
|
|
|
// Override specific parts of the view unset($admin_view['vid']);
if($mybb->input['type'])
|
// Override specific parts of the view unset($admin_view['vid']);
if($mybb->input['type'])
|
{
| {
|
$admin_view['view_type'] = $mybb->input['type']; }
| $admin_view['view_type'] = $mybb->input['type']; }
|
Zeile 2214 | Zeile 2231 |
---|
if($mybb->input['displayas']) { $admin_view['view_type'] = $mybb->input['displayas'];
|
if($mybb->input['displayas']) { $admin_view['view_type'] = $mybb->input['displayas'];
|
}
| }
|
if($mybb->input['profile_fields'])
|
if($mybb->input['profile_fields'])
|
{
| {
|
$admin_view['custom_profile_fields'] = $mybb->input['profile_fields']; }
| $admin_view['custom_profile_fields'] = $mybb->input['profile_fields']; }
|
Zeile 2230 | Zeile 2247 |
---|
$page->output_nav_tabs($sub_tabs, 'find_users'); echo $results; $page->output_footer();
|
$page->output_nav_tabs($sub_tabs, 'find_users'); echo $results; $page->output_footer();
|
}
| }
|
else { if($mybb->input['from'] == "home")
|
else { if($mybb->input['from'] == "home")
|
{
| {
|
flash_message($lang->error_no_users_found, 'error'); admin_redirect("index.php"); exit;
| flash_message($lang->error_no_users_found, 'error'); admin_redirect("index.php"); exit;
|
Zeile 2244 | Zeile 2261 |
---|
$errors[] = $lang->error_no_users_found; } }
|
$errors[] = $lang->error_no_users_found; } }
|
}
| }
|
$page->add_breadcrumb_item($lang->find_users); $page->output_header($lang->find_users);
|
$page->add_breadcrumb_item($lang->find_users); $page->output_header($lang->find_users);
|
$page->output_nav_tabs($sub_tabs, 'find_users');
| $page->output_nav_tabs($sub_tabs, 'find_users');
|
// If we have any error messages, show them if($errors) {
| // If we have any error messages, show them if($errors) {
|
Zeile 2258 | Zeile 2275 |
---|
}
if(!$mybb->input['displayas'])
|
}
if(!$mybb->input['displayas'])
|
{
| {
|
$mybb->input['displayas'] = "card"; }
| $mybb->input['displayas'] = "card"; }
|
Zeile 2583 | Zeile 2600 |
---|
if($user['uid'] == $mybb->user['uid'] || is_super_admin($user['uid'])) { // Remove me and super admins
|
if($user['uid'] == $mybb->user['uid'] || is_super_admin($user['uid'])) { // Remove me and super admins
|
| --$to_be_deleted;
|
continue; } else
| continue; } else
|
Zeile 2598 | Zeile 2616 |
---|
$db->delete_query("threadsubscriptions", "uid='{$user['uid']}'"); $db->delete_query("sessions", "uid='{$user['uid']}'"); $db->delete_query("banned", "uid='{$user['uid']}'");
|
$db->delete_query("threadsubscriptions", "uid='{$user['uid']}'"); $db->delete_query("sessions", "uid='{$user['uid']}'"); $db->delete_query("banned", "uid='{$user['uid']}'");
|
$db->delete_query("threadratings", "uid='{$user['uid']}'");
| |
$db->delete_query("users", "uid='{$user['uid']}'"); $db->delete_query("joinrequests", "uid='{$user['uid']}'"); $db->delete_query("warnings", "uid='{$user['uid']}'");
|
$db->delete_query("users", "uid='{$user['uid']}'"); $db->delete_query("joinrequests", "uid='{$user['uid']}'"); $db->delete_query("warnings", "uid='{$user['uid']}'");
|
| // Update thread ratings $query = $db->query(" SELECT r.*, t.numratings, t.totalratings FROM ".TABLE_PREFIX."threadratings r LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=r.tid) WHERE r.uid='{$user['uid']}' "); while($rating = $db->fetch_array($query)) { $update_thread = array( "numratings" => $rating['numratings'] - 1, "totalratings" => $rating['totalratings'] - $rating['rating'] ); $db->update_query("threads", $update_thread, "tid='{$rating['tid']}'"); }
$db->delete_query("threadratings", "uid='{$user['uid']}'");
|
} } // Update forum stats, remove the cookie and redirect the user
| } } // Update forum stats, remove the cookie and redirect the user
|