Zeile 930 | Zeile 930 |
---|
<link rel="stylesheet" href="../jscripts/sceditor/themes/mybb.css" type="text/css" media="all" /> <script type="text/javascript" src="../jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1822"></script>
|
<link rel="stylesheet" href="../jscripts/sceditor/themes/mybb.css" type="text/css" media="all" /> <script type="text/javascript" src="../jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1822"></script>
|
<script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1822"></script>
| <script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1824"></script>
|
<script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1805"></script> EOF; $page->output_header($lang->edit_user);
| <script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1805"></script> EOF; $page->output_header($lang->edit_user);
|
Zeile 1996 | Zeile 1996 |
---|
$db->update_query("banned", array('admin' => $destination_user['uid']), "admin = '{$source_user['uid']}'");
// Carry over referrals
|
$db->update_query("banned", array('admin' => $destination_user['uid']), "admin = '{$source_user['uid']}'");
// Carry over referrals
|
$db->update_query("users", array("referrer" => ((int)$source_user['referrer'] + (int)$destination_user['referrer'])), "uid='{$destination_user['uid']}'"); $db->update_query("users", array("referrals" => ((int)$source_user['referrals'] + (int)$destination_user['referrals'])), "uid='{$destination_user['uid']}'");
| $db->update_query("users", array("referrer" => $destination_user['uid']), "referrer='{$source_user['uid']}' AND uid!='{$destination_user['uid']}'"); // If destination user has no referrer but source does and source user was not referred by destination user // or destination user was referred by the source user if(($destination_user['referrer'] == 0 && $source_user['referrer'] > 0 && $source_user['referrer'] != $destination_user['uid']) || $destination_user['referrer'] == $source_user['uid']) { $db->update_query("users", array("referrer" => $source_user['referrer']), "uid='{$destination_user['uid']}'"); } $query = $db->simple_select("users", "COUNT(uid) as total_referrals", "referrer='{$destination_user['uid']}' AND uid!='{$source_user['uid']}'"); $new_referrals = $db->fetch_field($query, "total_referrals"); $db->update_query("users", array("referrals" => (int)$new_referrals), "uid='{$destination_user['uid']}'");
|
// Merging Reputation // First, let's change all the details over to our new user...
| // Merging Reputation // First, let's change all the details over to our new user...
|
Zeile 2473 | Zeile 2481 |
---|
{ $sql_array = implode(",", $to_update); $db->write_query("UPDATE ".TABLE_PREFIX."users SET usergroup = '2' WHERE uid IN (".$sql_array.")");
|
{ $sql_array = implode(",", $to_update); $db->write_query("UPDATE ".TABLE_PREFIX."users SET usergroup = '2' WHERE uid IN (".$sql_array.")");
|
|
|
$cache->update_awaitingactivation();
// send activation mail
| $cache->update_awaitingactivation();
// send activation mail
|
Zeile 2486 | Zeile 2494 |
---|
// Action complete, grab stats and show success message - redirect user $to_update_count = count($to_update); $lang->inline_activated = $lang->sprintf($lang->inline_activated, my_number_format($to_update_count));
|
// Action complete, grab stats and show success message - redirect user $to_update_count = count($to_update); $lang->inline_activated = $lang->sprintf($lang->inline_activated, my_number_format($to_update_count));
|
|
|
if(is_array($selected) && $to_update_count != count($selected)) { // The update count is different to how many we selected!
| if(is_array($selected) && $to_update_count != count($selected)) { // The update count is different to how many we selected!
|
Zeile 2500 | Zeile 2508 |
---|
my_unsetcookie("inlinemod_useracp"); // Unset the cookie, so that the users aren't still selected when we're redirected
flash_message($lang->inline_activated, 'success');
|
my_unsetcookie("inlinemod_useracp"); // Unset the cookie, so that the users aren't still selected when we're redirected
flash_message($lang->inline_activated, 'success');
|
admin_redirect("index.php?module=user-users".$vid_url); } else {
| admin_redirect("index.php?module=user-users".$vid_url); } else {
|
// Nothing was updated, show an error flash_message($lang->inline_activated_failed, 'error'); admin_redirect("index.php?module=user-users".$vid_url);
|
// Nothing was updated, show an error flash_message($lang->inline_activated_failed, 'error'); admin_redirect("index.php?module=user-users".$vid_url);
|
}
| }
|
break; case 'multilift': // Get the users that are banned, and check that they have been selected
| break; case 'multilift': // Get the users that are banned, and check that they have been selected
|
Zeile 2530 | Zeile 2538 |
---|
); $db->update_query("users", $updated_group, "uid = '".$ban['uid']."'"); $db->delete_query("banned", "uid = '".$ban['uid']."'");
|
); $db->update_query("users", $updated_group, "uid = '".$ban['uid']."'"); $db->delete_query("banned", "uid = '".$ban['uid']."'");
|
}
$cache->update_banned(); $cache->update_moderators();
| }
$cache->update_moderators();
|
$mybb->input['action'] = "inline_lift"; log_admin_action($to_be_unbanned);
| $mybb->input['action'] = "inline_lift"; log_admin_action($to_be_unbanned);
|
Zeile 2622 | Zeile 2629 |
---|
'additionalgroups' => '', ); $db->update_query('users', $update_array, "uid = '{$user['uid']}'");
|
'additionalgroups' => '', ); $db->update_query('users', $update_array, "uid = '{$user['uid']}'");
|
|
|
$db->delete_query("forumsubscriptions", "uid = '{$user['uid']}'"); $db->delete_query("threadsubscriptions", "uid = '{$user['uid']}'");
|
$db->delete_query("forumsubscriptions", "uid = '{$user['uid']}'"); $db->delete_query("threadsubscriptions", "uid = '{$user['uid']}'");
|
$cache->update_banned();
|
|
++$banned_count; } $mybb->input['action'] = "inline_banned";
| ++$banned_count; } $mybb->input['action'] = "inline_banned";
|
Zeile 2636 | Zeile 2642 |
---|
$lang->users_banned = $lang->sprintf($lang->users_banned, $banned_count); flash_message($lang->users_banned, 'success'); admin_redirect("index.php?module=user-users".$vid_url);
|
$lang->users_banned = $lang->sprintf($lang->users_banned, $banned_count); flash_message($lang->users_banned, 'success'); admin_redirect("index.php?module=user-users".$vid_url);
|
}
| }
|
$page->output_header($lang->manage_users); $page->output_nav_tabs($sub_tabs, 'manage_users');
| $page->output_header($lang->manage_users); $page->output_nav_tabs($sub_tabs, 'manage_users');
|
Zeile 2652 | Zeile 2658 |
---|
if($errors) { $page->output_inline_error($errors);
|
if($errors) { $page->output_inline_error($errors);
|
}
| }
|
$form = new Form("index.php?module=user-users", "post"); echo $form->generate_hidden_field('action', 'inline_edit');
| $form = new Form("index.php?module=user-users", "post"); echo $form->generate_hidden_field('action', 'inline_edit');
|
Zeile 2712 | Zeile 2718 |
---|
$to_be_deleted = count($selected); $lang->confirm_multidelete = $lang->sprintf($lang->confirm_multidelete, my_number_format($to_be_deleted)); $page->output_confirm_action("index.php?module=user-users&action=inline_edit&inline_action=multidelete&my_post_key={$mybb->post_code}&processed=1", $lang->confirm_multidelete);
|
$to_be_deleted = count($selected); $lang->confirm_multidelete = $lang->sprintf($lang->confirm_multidelete, my_number_format($to_be_deleted)); $page->output_confirm_action("index.php?module=user-users&action=inline_edit&inline_action=multidelete&my_post_key={$mybb->post_code}&processed=1", $lang->confirm_multidelete);
|
} break;
| } break;
|
case 'multiprune': if($mybb->input['processed'] == 1) {
| case 'multiprune': if($mybb->input['processed'] == 1) {
|
Zeile 3665 | Zeile 3671 |
---|
$user['lastip'] = my_inet_ntop($db->unescape_binary($user['lastip']));
if($view['view_type'] == "card")
|
$user['lastip'] = my_inet_ntop($db->unescape_binary($user['lastip']));
if($view['view_type'] == "card")
|
{
| {
|
$users .= build_user_view_card($user, $view, $i); } else
| $users .= build_user_view_card($user, $view, $i); } else
|
Zeile 3752 | Zeile 3758 |
---|
{ search.trigger('focus'); return false;
|
{ search.trigger('focus'); return false;
|
} });
| } });
|
var search = $(\"#search_keywords\"); search.on('focus', function() {
| var search = $(\"#search_keywords\"); search.on('focus', function() {
|
Zeile 3773 | Zeile 3779 |
---|
searched_blur.val('".addcslashes($lang->search_for_user, "'")."'); } });
|
searched_blur.val('".addcslashes($lang->search_for_user, "'")."'); } });
|
|
|
// fix the styling used if we have a different default value if(search.val() != '".addcslashes($lang->search_for_user, "'")."') {
| // fix the styling used if we have a different default value if(search.val() != '".addcslashes($lang->search_for_user, "'")."') {
|
Zeile 3784 | Zeile 3790 |
---|
// Autocompletion for usernames // TODO Select2
|
// Autocompletion for usernames // TODO Select2
|
|
|
$built_view .= $search->end();
if(isset($pagination))
| $built_view .= $search->end();
if(isset($pagination))
|
Zeile 3903 | Zeile 3909 |
---|
}
// And build the final card
|
}
// And build the final card
|
| $uname = ""; if(in_array('username', $view['fields'])) { $uname = $user['view']['username']; }
|
$card = "<fieldset id=\"uid_{$user['uid']}\" style=\"width: 47%; float: {$float};\">\n";
|
$card = "<fieldset id=\"uid_{$user['uid']}\" style=\"width: 47%; float: {$float};\">\n";
|
$card .= "<legend><input type=\"checkbox\" class=\"checkbox\" name=\"inlinemod_{$user['uid']}\" id=\"inlinemod_{$user['uid']}\" value=\"1\" onclick=\"$('#uid_{$user['uid']}').toggleClass('inline_selected');\" /> {$user['view']['username']}</legend>\n";
| $card .= "<legend><input type=\"checkbox\" class=\"checkbox\" name=\"inlinemod_{$user['uid']}\" id=\"inlinemod_{$user['uid']}\" value=\"1\" onclick=\"$('#uid_{$user['uid']}').toggleClass('inline_selected');\" /> {$uname}</legend>\n";
|
if($avatar) { $card .= "<div class=\"user_avatar\">{$avatar}</div>\n";
| if($avatar) { $card .= "<div class=\"user_avatar\">{$avatar}</div>\n";
|
Zeile 3973 | Zeile 3984 |
---|
*/ function output_custom_profile_fields($fields, $values, &$form_container, &$form, $search=false) {
|
*/ function output_custom_profile_fields($fields, $values, &$form_container, &$form, $search=false) {
|
global $lang;
| global $lang, $mybb;
|
if(!is_array($fields)) {
| if(!is_array($fields)) {
|