Zeile 942 | Zeile 942 |
---|
$page->extra_header .= <<<EOF
<link rel="stylesheet" href="../jscripts/sceditor/themes/mybb.css" type="text/css" media="all" />
|
$page->extra_header .= <<<EOF
<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=1827"></script> <script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1805"></script>
| <script type="text/javascript" src="../jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1832"></script> <script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1832"></script> <script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1832"></script>
|
EOF; $page->output_header($lang->edit_user);
| EOF; $page->output_header($lang->edit_user);
|
Zeile 1093 | Zeile 1093 |
---|
$warning_level = 100; } $warning_level = get_colored_warning_level($warning_level);
|
$warning_level = 100; } $warning_level = get_colored_warning_level($warning_level);
|
| } else { $warning_level = "-";
|
}
$age = $lang->na;
| }
$age = $lang->na;
|
Zeile 1112 | Zeile 1116 |
---|
$table->construct_row(); $table->construct_cell("<strong>{$lang->posts}:</strong> {$postnum}"); $table->construct_cell("<strong>{$lang->age}:</strong> {$age}");
|
$table->construct_row(); $table->construct_cell("<strong>{$lang->posts}:</strong> {$postnum}"); $table->construct_cell("<strong>{$lang->age}:</strong> {$age}");
|
$table->construct_row();
| $table->construct_row();
|
$table->construct_cell("<strong>{$lang->posts_per_day}:</strong> {$posts_per_day}"); $table->construct_cell("<strong>{$lang->reputation}:</strong> {$reputation}"); $table->construct_row();
| $table->construct_cell("<strong>{$lang->posts_per_day}:</strong> {$posts_per_day}"); $table->construct_cell("<strong>{$lang->reputation}:</strong> {$reputation}"); $table->construct_row();
|
Zeile 1126 | Zeile 1130 |
---|
$username = htmlspecialchars_uni($user['username']); $table->output("{$lang->user_overview}: {$username}"); $plugins->run_hooks("admin_user_users_edit_overview");
|
$username = htmlspecialchars_uni($user['username']); $table->output("{$lang->user_overview}: {$username}"); $plugins->run_hooks("admin_user_users_edit_overview");
|
echo "</div>\n";
// // PROFILE
| echo "</div>\n";
// // PROFILE
|
// echo "<div id=\"tab_profile\">\n";
| // echo "<div id=\"tab_profile\">\n";
|
Zeile 1138 | Zeile 1142 |
---|
$form_container->output_row($lang->new_password, $lang->new_password_desc, $form->generate_password_box('new_password', $mybb->input['new_password'], array('id' => 'new_password', 'autocomplete' => 'off')), 'new_password'); $form_container->output_row($lang->confirm_new_password, $lang->new_password_desc, $form->generate_password_box('confirm_new_password', $mybb->input['confirm_new_password'], array('id' => 'confirm_new_password')), 'confirm_new_password'); $form_container->output_row($lang->email_address." <em>*</em>", "", $form->generate_text_box('email', $mybb->input['email'], array('id' => 'email')), 'email');
|
$form_container->output_row($lang->new_password, $lang->new_password_desc, $form->generate_password_box('new_password', $mybb->input['new_password'], array('id' => 'new_password', 'autocomplete' => 'off')), 'new_password'); $form_container->output_row($lang->confirm_new_password, $lang->new_password_desc, $form->generate_password_box('confirm_new_password', $mybb->input['confirm_new_password'], array('id' => 'confirm_new_password')), 'confirm_new_password'); $form_container->output_row($lang->email_address." <em>*</em>", "", $form->generate_text_box('email', $mybb->input['email'], array('id' => 'email')), 'email');
|
|
|
$display_group_options[0] = $lang->use_primary_user_group; $options = array(); $query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title')); while($usergroup = $db->fetch_array($query))
|
$display_group_options[0] = $lang->use_primary_user_group; $options = array(); $query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title')); while($usergroup = $db->fetch_array($query))
|
{
| {
|
$options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']); $display_group_options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']);
|
$options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']); $display_group_options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']);
|
}
| }
|
if(isset($mybb->input['additionalgroups']) && !is_array($mybb->input['additionalgroups'])) { $mybb->input['additionalgroups'] = explode(',', $mybb->input['additionalgroups']);
|
if(isset($mybb->input['additionalgroups']) && !is_array($mybb->input['additionalgroups'])) { $mybb->input['additionalgroups'] = explode(',', $mybb->input['additionalgroups']);
|
}
| }
|
$form_container->output_row($lang->primary_user_group." <em>*</em>", "", $form->generate_select_box('usergroup', $options, $mybb->get_input('usergroup'), array('id' => 'usergroup')), 'usergroup'); $form_container->output_row($lang->additional_user_groups, $lang->additional_user_groups_desc, $form->generate_select_box('additionalgroups[]', $options, $mybb->get_input('additionalgroups', MyBB::INPUT_ARRAY), array('id' => 'additionalgroups', 'multiple' => true, 'size' => 5)), 'additionalgroups'); $form_container->output_row($lang->display_user_group." <em>*</em>", "", $form->generate_select_box('displaygroup', $display_group_options, $mybb->get_input('displaygroup'), array('id' => 'displaygroup')), 'displaygroup');
| $form_container->output_row($lang->primary_user_group." <em>*</em>", "", $form->generate_select_box('usergroup', $options, $mybb->get_input('usergroup'), array('id' => 'usergroup')), 'usergroup'); $form_container->output_row($lang->additional_user_groups, $lang->additional_user_groups_desc, $form->generate_select_box('additionalgroups[]', $options, $mybb->get_input('additionalgroups', MyBB::INPUT_ARRAY), array('id' => 'additionalgroups', 'multiple' => true, 'size' => 5)), 'additionalgroups'); $form_container->output_row($lang->display_user_group." <em>*</em>", "", $form->generate_select_box('displaygroup', $display_group_options, $mybb->get_input('displaygroup'), array('id' => 'displaygroup')), 'displaygroup');
|
Zeile 1165 | Zeile 1169 |
---|
$profile_fields['required'] = array(); } output_custom_profile_fields($profile_fields['required'], $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY), $form_container, $form);
|
$profile_fields['required'] = array(); } output_custom_profile_fields($profile_fields['required'], $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY), $form_container, $form);
|
|
|
$form_container->end();
$form_container = new FormContainer($lang->optional_profile_info.': '.htmlspecialchars_uni($user['username']));
| $form_container->end();
$form_container = new FormContainer($lang->optional_profile_info.': '.htmlspecialchars_uni($user['username']));
|
Zeile 1174 | Zeile 1178 |
---|
$form_container->output_row($lang->icq_number, "", $form->generate_numeric_field('icq', $mybb->get_input('icq'), array('id' => 'icq', 'min' => 0)), 'icq'); $form_container->output_row($lang->skype_handle, "", $form->generate_text_box('skype', $mybb->get_input('skype'), array('id' => 'skype')), 'skype'); $form_container->output_row($lang->google_handle, "", $form->generate_text_box('google', $mybb->get_input('google'), array('id' => 'google')), 'google');
|
$form_container->output_row($lang->icq_number, "", $form->generate_numeric_field('icq', $mybb->get_input('icq'), array('id' => 'icq', 'min' => 0)), 'icq'); $form_container->output_row($lang->skype_handle, "", $form->generate_text_box('skype', $mybb->get_input('skype'), array('id' => 'skype')), 'skype'); $form_container->output_row($lang->google_handle, "", $form->generate_text_box('google', $mybb->get_input('google'), array('id' => 'google')), 'google');
|
|
|
// Birthday $birthday_days = array(0 => ''); for($i = 1; $i <= 31; $i++)
| // Birthday $birthday_days = array(0 => ''); for($i = 1; $i <= 31; $i++)
|
Zeile 1201 | Zeile 1205 |
---|
$birthday_row = $form->generate_select_box('bday1', $birthday_days, $mybb->input['bday'][0], array('id' => 'bday_day')); $birthday_row .= ' '.$form->generate_select_box('bday2', $birthday_months, $mybb->input['bday'][1], array('id' => 'bday_month')); $birthday_row .= ' '.$form->generate_numeric_field('bday3', $mybb->input['bday'][2], array('id' => 'bday_year', 'style' => 'width: 4em;', 'min' => 0));
|
$birthday_row = $form->generate_select_box('bday1', $birthday_days, $mybb->input['bday'][0], array('id' => 'bday_day')); $birthday_row .= ' '.$form->generate_select_box('bday2', $birthday_months, $mybb->input['bday'][1], array('id' => 'bday_month')); $birthday_row .= ' '.$form->generate_numeric_field('bday3', $mybb->input['bday'][2], array('id' => 'bday_year', 'style' => 'width: 4em;', 'min' => 0));
|
|
|
$form_container->output_row($lang->birthday, "", $birthday_row, 'birthday');
// Output custom profile fields - optional output_custom_profile_fields($profile_fields['optional'], $mybb->input['profile_fields'], $form_container, $form);
|
$form_container->output_row($lang->birthday, "", $birthday_row, 'birthday');
// Output custom profile fields - optional output_custom_profile_fields($profile_fields['optional'], $mybb->input['profile_fields'], $form_container, $form);
|
|
|
$form_container->end();
| $form_container->end();
|
Zeile 1237 | Zeile 1241 |
---|
// // ACCOUNT SETTINGS //
|
// // ACCOUNT SETTINGS //
|
|
|
echo "<div id=\"tab_settings\">\n"; $form_container = new FormContainer($lang->account_settings.': '.htmlspecialchars_uni($user['username'])); $login_options = array(
| echo "<div id=\"tab_settings\">\n"; $form_container = new FormContainer($lang->account_settings.': '.htmlspecialchars_uni($user['username'])); $login_options = array(
|
Zeile 1267 | Zeile 1271 |
---|
// Output messaging options $form_container->output_row($lang->messaging_and_notification, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $messaging_options)."</div>");
|
// Output messaging options $form_container->output_row($lang->messaging_and_notification, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $messaging_options)."</div>");
|
|
|
$date_format_options = array($lang->use_default); foreach($date_formats as $key => $format) { $date_format_options[$key] = my_date($format, TIME_NOW, "", 0);
|
$date_format_options = array($lang->use_default); foreach($date_formats as $key => $format) { $date_format_options[$key] = my_date($format, TIME_NOW, "", 0);
|
}
| }
|
$time_format_options = array($lang->use_default); foreach($time_formats as $key => $format) {
| $time_format_options = array($lang->use_default); foreach($time_formats as $key => $format) {
|
Zeile 1345 | Zeile 1349 |
---|
} } }
|
} } }
|
|
|
$thread_options = array( $form->generate_check_box("classicpostbit", 1, $lang->show_classic_postbit, array("checked" => $mybb->get_input('classicpostbit'))), $form->generate_check_box("showimages", 1, $lang->display_images, array("checked" => $mybb->get_input('showimages'))),
| $thread_options = array( $form->generate_check_box("classicpostbit", 1, $lang->show_classic_postbit, array("checked" => $mybb->get_input('classicpostbit'))), $form->generate_check_box("showimages", 1, $lang->display_images, array("checked" => $mybb->get_input('showimages'))),
|
Zeile 1359 | Zeile 1363 |
---|
// Allow plugins to add thread options $thread_options = $plugins->run_hooks('admin_user_users_edit_thread_options', $thread_options);
|
// Allow plugins to add thread options $thread_options = $plugins->run_hooks('admin_user_users_edit_thread_options', $thread_options);
|
|
|
// Output thread options $form_container->output_row($lang->thread_view_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $thread_options)."</div>");
| // Output thread options $form_container->output_row($lang->thread_view_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $thread_options)."</div>");
|
Zeile 1372 | Zeile 1376 |
---|
"<label for=\"style\">{$lang->theme}:</label><br />".build_theme_select("style", $mybb->get_input('style'), 0, "", true, false, true), "<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $languages, $mybb->get_input('language'), array('id' => 'language')) );
|
"<label for=\"style\">{$lang->theme}:</label><br />".build_theme_select("style", $mybb->get_input('style'), 0, "", true, false, true), "<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $languages, $mybb->get_input('language'), array('id' => 'language')) );
|
|
|
// Allow plugins to add other options $other_options = $plugins->run_hooks('admin_user_users_edit_other_options', $other_options);
| // Allow plugins to add other options $other_options = $plugins->run_hooks('admin_user_users_edit_other_options', $other_options);
|
Zeile 1381 | Zeile 1385 |
---|
$form_container->end(); $plugins->run_hooks("admin_user_users_edit_settings");
|
$form_container->end(); $plugins->run_hooks("admin_user_users_edit_settings");
|
echo "</div>\n";
| echo "</div>\n";
|
// // SIGNATURE EDITOR
| // // SIGNATURE EDITOR
|
Zeile 1411 | Zeile 1415 |
---|
echo "<div id=\"tab_signature\">\n"; $form_container = new FormContainer($lang->signature.': '.htmlspecialchars_uni($user['username'])); $form_container->output_row($lang->signature, $lang->sprintf($lang->signature_desc, $sig_mycode, $sig_smilies, $sig_imgcode, $sig_html), $signature_editor, 'signature');
|
echo "<div id=\"tab_signature\">\n"; $form_container = new FormContainer($lang->signature.': '.htmlspecialchars_uni($user['username'])); $form_container->output_row($lang->signature, $lang->sprintf($lang->signature_desc, $sig_mycode, $sig_smilies, $sig_imgcode, $sig_html), $signature_editor, 'signature');
|
$periods = array( "hours" => $lang->expire_hours, "days" => $lang->expire_days, "weeks" => $lang->expire_weeks, "months" => $lang->expire_months, "never" => $lang->expire_permanent
| $periods = array( "hours" => $lang->expire_hours, "days" => $lang->expire_days, "weeks" => $lang->expire_weeks, "months" => $lang->expire_months, "never" => $lang->expire_permanent
|
);
// Are we already suspending the signature?
| );
// Are we already suspending the signature?
|
Zeile 1669 | Zeile 1673 |
---|
elseif($remaining < 604800) { $color = 'green';
|
elseif($remaining < 604800) { $color = 'green';
|
}
| }
|
$existing_info = $lang->sprintf($lang->suspend_length, $suspost_date, $color); } }
|
$existing_info = $lang->sprintf($lang->suspend_length, $suspost_date, $color); } }
|
|
|
$suspost_div = '<div id="suspost">'.$existing_info.''.$lang->suspend_for.' '.$form->generate_numeric_field("suspost_time", $mybb->get_input('suspost_time'), array('style' => 'width: 3em;', 'min' => 0)).' '.$suspost_options.'</div>'; $lang->suspend_posts_info = $lang->sprintf($lang->suspend_posts_info, htmlspecialchars_uni($user['username'])); $form_container->output_row($form->generate_check_box("suspendposting", 1, $lang->suspend_posts, array("id" => "suspendposting", "onclick" => "toggleBox('suspost');", "checked" => $mybb->get_input('suspendposting'))), $lang->suspend_posts_info, $suspost_div);
|
$suspost_div = '<div id="suspost">'.$existing_info.''.$lang->suspend_for.' '.$form->generate_numeric_field("suspost_time", $mybb->get_input('suspost_time'), array('style' => 'width: 3em;', 'min' => 0)).' '.$suspost_options.'</div>'; $lang->suspend_posts_info = $lang->sprintf($lang->suspend_posts_info, htmlspecialchars_uni($user['username'])); $form_container->output_row($form->generate_check_box("suspendposting", 1, $lang->suspend_posts, array("id" => "suspendposting", "onclick" => "toggleBox('suspost');", "checked" => $mybb->get_input('suspendposting'))), $lang->suspend_posts_info, $suspost_div);
|
|
|
$form_container->end(); $plugins->run_hooks("admin_user_users_edit_moderator_options"); echo "</div>\n";
| $form_container->end(); $plugins->run_hooks("admin_user_users_edit_moderator_options"); echo "</div>\n";
|
Zeile 1704 | Zeile 1708 |
---|
if($("#moderateposting").is(":checked") == true) { $("#modpost").show();
|
if($("#moderateposting").is(":checked") == true) { $("#modpost").show();
|
}
| }
|
else if($("#moderateposting").is(":checked") == false) { $("#modpost").hide();
|
else if($("#moderateposting").is(":checked") == false) { $("#modpost").hide();
|
}
| }
|
} else if(action == "suspost") {
| } else if(action == "suspost") {
|
Zeile 1729 | Zeile 1733 |
---|
if($("#moderateposting").is(":checked") == false) { $("#modpost").hide();
|
if($("#moderateposting").is(":checked") == false) { $("#modpost").hide();
|
} else
| } else
|
{ $("#modpost").show(); }
| { $("#modpost").show(); }
|
Zeile 1740 | Zeile 1744 |
---|
$("#suspost").hide(); } else
|
$("#suspost").hide(); } else
|
{
| {
|
$("#suspost").show();
|
$("#suspost").show();
|
}
| }
|
// --> </script>';
| // --> </script>';
|
Zeile 1758 | Zeile 1762 |
---|
if(!$user['uid']) { flash_message($lang->error_invalid_user, 'error');
|
if(!$user['uid']) { flash_message($lang->error_invalid_user, 'error');
|
admin_redirect("index.php?module=user-users");
| admin_redirect("index.php?module=user-users");
|
}
if(is_super_admin($mybb->input['uid']) && $mybb->user['uid'] != $mybb->input['uid'] && !is_super_admin($mybb->user['uid']))
| }
if(is_super_admin($mybb->input['uid']) && $mybb->user['uid'] != $mybb->input['uid'] && !is_super_admin($mybb->user['uid']))
|
Zeile 1767 | Zeile 1771 |
---|
admin_redirect("index.php?module=user-users"); }
|
admin_redirect("index.php?module=user-users"); }
|
// User clicked no if($mybb->get_input('no')) { admin_redirect("index.php?module=user-users"); }
$plugins->run_hooks("admin_user_users_delete");
if($mybb->request_method == "post") {
| // User clicked no if($mybb->get_input('no')) { admin_redirect("index.php?module=user-users"); }
$plugins->run_hooks("admin_user_users_delete");
if($mybb->request_method == "post") {
|
$plugins->run_hooks("admin_user_users_delete_commit");
// Set up user handler.
| $plugins->run_hooks("admin_user_users_delete_commit");
// Set up user handler.
|
Zeile 1846 | Zeile 1850 |
---|
$table->construct_cell($lang->error_no_referred_users); $table->construct_row(); $table->output($lang->show_referrers);
|
$table->construct_cell($lang->error_no_referred_users); $table->construct_row(); $table->output($lang->show_referrers);
|
} else
| } else
|
{ echo $view; }
| { echo $view; }
|
Zeile 1955 | Zeile 1959 |
---|
if(empty(${$target.'_user'}['uid'])) { $errors[] = $lang->{'error_invalid_user_'.$target};
|
if(empty(${$target.'_user'}['uid'])) { $errors[] = $lang->{'error_invalid_user_'.$target};
|
} }
| } }
|
// If we're not a super admin and we're merging a source super admin or a destination super admin then dissallow this action if(!is_super_admin($mybb->user['uid']) && (is_super_admin($source_user['uid']) || is_super_admin($destination_user['uid']))) { flash_message($lang->error_no_perms_super_admin, 'error'); admin_redirect("index.php?module=user-users");
|
// If we're not a super admin and we're merging a source super admin or a destination super admin then dissallow this action if(!is_super_admin($mybb->user['uid']) && (is_super_admin($source_user['uid']) || is_super_admin($destination_user['uid']))) { flash_message($lang->error_no_perms_super_admin, 'error'); admin_redirect("index.php?module=user-users");
|
}
| }
|
if((!empty($source_user)) && !empty($destination_user) && $source_user['uid'] == $destination_user['uid'] && !empty($source_user['uid'])) { $errors[] = $lang->error_cannot_merge_same_account; }
|
if((!empty($source_user)) && !empty($destination_user) && $source_user['uid'] == $destination_user['uid'] && !empty($source_user['uid'])) { $errors[] = $lang->error_cannot_merge_same_account; }
|
|
|
if(empty($errors)) { // Begin to merge the accounts
| if(empty($errors)) { // Begin to merge the accounts
|
Zeile 1981 | Zeile 1985 |
---|
// Only carry over admin options/permissions if we don't already have them if(!$existing_admin_options)
|
// Only carry over admin options/permissions if we don't already have them if(!$existing_admin_options)
|
{
| {
|
$db->update_query("adminoptions", $uid_update, "uid='{$source_user['uid']}'"); }
| $db->update_query("adminoptions", $uid_update, "uid='{$source_user['uid']}'"); }
|
Zeile 2005 | Zeile 2009 |
---|
merge_thread_ratings($source_user['uid'], $destination_user['uid']);
// Banning
|
merge_thread_ratings($source_user['uid'], $destination_user['uid']);
// Banning
|
$db->update_query("banned", array('admin' => $destination_user['uid']), "admin = '{$source_user['uid']}'");
| switch($db->type) { case 'mysql': case 'mysqli': $where = "`admin` = '{$source_user['uid']}'"; break; default: $where = "admin = '{$source_user['uid']}'"; break; } $db->update_query("banned", array('admin' => $destination_user['uid']), $where);
|
// Carry over referrals $db->update_query("users", array("referrer" => $destination_user['uid']), "referrer='{$source_user['uid']}' AND uid!='{$destination_user['uid']}'");
| // Carry over referrals $db->update_query("users", array("referrer" => $destination_user['uid']), "referrer='{$source_user['uid']}' AND uid!='{$destination_user['uid']}'");
|
Zeile 2534 | Zeile 2548 |
---|
{ // Nothing was updated, show an error flash_message($lang->inline_activated_failed, 'error');
|
{ // Nothing was updated, show an error flash_message($lang->inline_activated_failed, 'error');
|
admin_redirect("index.php?module=user-users".$vid_url);
| admin_redirect("index.php?module=user-users".$vid_url);
|
} break; case 'multilift':
| } break; case 'multilift':
|
Zeile 2542 | Zeile 2556 |
---|
if($mybb->get_input('no')) { admin_redirect("index.php?module=user-users".$vid_url); // User clicked on 'No'
|
if($mybb->get_input('no')) { admin_redirect("index.php?module=user-users".$vid_url); // User clicked on 'No'
|
}
| }
|
if($mybb->request_method == "post") { $sql_array = implode(",", $selected);
| if($mybb->request_method == "post") { $sql_array = implode(",", $selected);
|
Zeile 2559 | Zeile 2573 |
---|
$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_moderators();
$mybb->input['action'] = "inline_lift";
| $cache->update_moderators();
$mybb->input['action'] = "inline_lift";
|
Zeile 2568 | Zeile 2582 |
---|
$lang->success_ban_lifted = $lang->sprintf($lang->success_ban_lifted, my_number_format($to_be_unbanned)); flash_message($lang->success_ban_lifted, 'success');
|
$lang->success_ban_lifted = $lang->sprintf($lang->success_ban_lifted, my_number_format($to_be_unbanned)); flash_message($lang->success_ban_lifted, 'success');
|
admin_redirect("index.php?module=user-users".$vid_url); }
| admin_redirect("index.php?module=user-users".$vid_url); }
|
else { $page->output_confirm_action("index.php?module=user-users&action=inline_edit&inline_action=multilift", $lang->confirm_multilift); }
|
else { $page->output_confirm_action("index.php?module=user-users&action=inline_edit&inline_action=multilift", $lang->confirm_multilift); }
|
|
|
break; case 'multiban': if($mybb->input['processed'] == 1)
| break; case 'multiban': if($mybb->input['processed'] == 1)
|
Zeile 2587 | Zeile 2601 |
---|
while($user = $db->fetch_array($query)) { $bannedcache[] = "u_".$user['uid'];
|
while($user = $db->fetch_array($query)) { $bannedcache[] = "u_".$user['uid'];
|
}
| }
|
// Collect the users $query = $db->simple_select("users", "uid, username, usergroup, additionalgroups, displaygroup", "uid IN (".$sql_array.")");
| // Collect the users $query = $db->simple_select("users", "uid, username, usergroup, additionalgroups, displaygroup", "uid IN (".$sql_array.")");
|
Zeile 2605 | Zeile 2619 |
---|
$banned_count = 0; while($user = $db->fetch_array($query))
|
$banned_count = 0; while($user = $db->fetch_array($query))
|
{
| {
|
if($user['uid'] == $mybb->user['uid'] || is_super_admin($user['uid'])) { // We remove ourselves and Super Admins from the mix
| if($user['uid'] == $mybb->user['uid'] || is_super_admin($user['uid'])) { // We remove ourselves and Super Admins from the mix
|
Zeile 2613 | Zeile 2627 |
---|
}
if(is_array($bannedcache) && in_array("u_".$user['uid'], $bannedcache))
|
}
if(is_array($bannedcache) && in_array("u_".$user['uid'], $bannedcache))
|
{
| {
|
// User already has a ban, update it! $update_array = array( "admin" => (int)$mybb->user['uid'],
| // User already has a ban, update it! $update_array = array( "admin" => (int)$mybb->user['uid'],
|
Zeile 2640 | Zeile 2654 |
---|
'reason' => $db->escape_string($reason) ); $db->insert_query('banned', $insert_array);
|
'reason' => $db->escape_string($reason) ); $db->insert_query('banned', $insert_array);
|
}
| }
|
// Moved the user to the 'Banned' Group $update_array = array( 'usergroup' => 7,
| // Moved the user to the 'Banned' Group $update_array = array( 'usergroup' => 7,
|
Zeile 2713 | Zeile 2727 |
---|
else { if($mybb->input['processed'] == 1)
|
else { if($mybb->input['processed'] == 1)
|
{
| {
|
// Set up user handler. require_once MYBB_ROOT.'inc/datahandlers/user.php'; $userhandler = new UserDataHandler('delete');
| // Set up user handler. require_once MYBB_ROOT.'inc/datahandlers/user.php'; $userhandler = new UserDataHandler('delete');
|
Zeile 2785 | Zeile 2799 |
---|
// Set options // For this purpose, 1 month = 31 days $base_time = 24 * 60 * 60;
|
// Set options // For this purpose, 1 month = 31 days $base_time = 24 * 60 * 60;
|
|
|
switch($mybb->input['set']) { case '1': $threshold = $base_time * 31; // 1 month = 31 days, in the standard terms
|
switch($mybb->input['set']) { case '1': $threshold = $base_time * 31; // 1 month = 31 days, in the standard terms
|
break;
| break;
|
case '2': $threshold = $base_time * 93; // 3 months = 31 days * 3 break;
| case '2': $threshold = $base_time * 93; // 3 months = 31 days * 3 break;
|
Zeile 2799 | Zeile 2813 |
---|
break; case '4': $threshold = $base_time * 365; // 1 year = 365 days
|
break; case '4': $threshold = $base_time * 365; // 1 year = 365 days
|
break;
| break;
|
case '5': $threshold = $base_time * 548; // 18 months = 365 + 183 break; case '6': $threshold = $base_time * 730; // 2 years = 365 * 2 break;
|
case '5': $threshold = $base_time * 548; // 18 months = 365 + 183 break; case '6': $threshold = $base_time * 730; // 2 years = 365 * 2 break;
|
}
| }
|
if(!$threshold) { // An option was entered that isn't in the dropdown box $errors[] = $lang->no_set_option;
|
if(!$threshold) { // An option was entered that isn't in the dropdown box $errors[] = $lang->no_set_option;
|
}
| }
|
else { $date = TIME_NOW - $threshold;
| else { $date = TIME_NOW - $threshold;
|
Zeile 2821 | Zeile 2835 |
---|
else { $errors[] = $lang->no_prune_option;
|
else { $errors[] = $lang->no_prune_option;
|
}
| }
|
if(!$errors) { $sql_array = implode(",", $selected);
| if(!$errors) { $sql_array = implode(",", $selected);
|
Zeile 3399 | Zeile 3413 |
---|
$userfield_sql = '1=1'; foreach($view['custom_profile_fields'] as $column => $input) {
|
$userfield_sql = '1=1'; foreach($view['custom_profile_fields'] as $column => $input) {
|
| if(!preg_match('/^fid[0-9]+(_blank)?$/', $column)) { continue; }
|
if(is_array($input)) { foreach($input as $value => $text)
| if(is_array($input)) { foreach($input as $value => $text)
|
Zeile 4147 | Zeile 4166 |
---|
foreach($select_options as $val) { $val = trim($val);
|
foreach($select_options as $val) { $val = trim($val);
|
$code .= $form->generate_check_box("profile_fields[{$field_name}][]", $val, htmlspecialchars_uni($val), array('id' => "profile_field_{$field_name}", 'checked' => ($val == $selected_options[$val] ? true : false)))."<br />";
| $code .= $form->generate_check_box("profile_fields[{$field_name}][]", $val, htmlspecialchars_uni($val), array('id' => "profile_field_{$field_name}", 'checked' => (isset($selected_options[$val]) && $val == $selected_options[$val] ? true : false)))."<br />";
|
} break; case "textarea":
| } break; case "textarea":
|