Zeile 210 | Zeile 210 |
---|
if($mybb->input['action'] == "activate_user") {
|
if($mybb->input['action'] == "activate_user") {
|
if(!verify_post_check($mybb->input['my_post_key']))
| if(!verify_post_check($mybb->get_input('my_post_key')))
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=user-users");
| { flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=user-users");
|
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 1890 | Zeile 1890 |
---|
{ $user['lastip'] = my_inet_ntop($db->unescape_binary($user['lastip'])); $popup = new PopupMenu("user_last", $lang->options);
|
{ $user['lastip'] = my_inet_ntop($db->unescape_binary($user['lastip'])); $popup = new PopupMenu("user_last", $lang->options);
|
$popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&action=search&results=1&conditions=".urlencode(my_serialize(array("regip" => $user['lastip'])))); $popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("postip" => $user['lastip']))));
| $popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&action=search&results=1&conditions[regip]=".$user['lastip']); $popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions[postip]=".$user['lastip']);
|
$popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$user['lastip']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$user['lastip']}', null, true); return false;"); $popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$user['lastip']}"); $controls = $popup->fetch();
| $popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$user['lastip']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$user['lastip']}', null, true); return false;"); $popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$user['lastip']}"); $controls = $popup->fetch();
|
Zeile 1910 | Zeile 1909 |
---|
{ $user['regip'] = my_inet_ntop($db->unescape_binary($user['regip'])); $popup = new PopupMenu("user_reg", $lang->options);
|
{ $user['regip'] = my_inet_ntop($db->unescape_binary($user['regip'])); $popup = new PopupMenu("user_reg", $lang->options);
|
$popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("regip" => $user['regip'])))); $popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("postip" => $user['regip']))));
| $popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&results=1&action=search&conditions[regip]=".$user['regip']); $popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions[postip]=".$user['regip']);
|
$popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$user['regip']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$user['regip']}', null, true); return false;"); $popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$user['regip']}"); $controls = $popup->fetch();
| $popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$user['regip']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$user['regip']}', null, true); return false;"); $popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$user['regip']}"); $controls = $popup->fetch();
|
Zeile 1928 | Zeile 1927 |
---|
++$counter; $ip['ipaddress'] = my_inet_ntop($db->unescape_binary($ip['ipaddress'])); $popup = new PopupMenu("id_{$counter}", $lang->options);
|
++$counter; $ip['ipaddress'] = my_inet_ntop($db->unescape_binary($ip['ipaddress'])); $popup = new PopupMenu("id_{$counter}", $lang->options);
|
$popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("regip" => $ip['ipaddress'])))); $popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions=".urlencode(my_serialize(array("postip" => $ip['ipaddress']))));
| $popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user-users&results=1&action=search&conditions[regip]=".$ip['ipaddress']); $popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user-users&results=1&action=search&conditions[postip]=".$ip['ipaddress']);
|
$popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$ip['ipaddress']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$ip['ipaddress']}', null, true); return false;"); $popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$ip['ipaddress']}"); $controls = $popup->fetch();
| $popup->add_item($lang->info_on_ip, "index.php?module=user-users&action=iplookup&ipaddress={$ip['ipaddress']}", "MyBB.popupWindow('index.php?module=user-users&action=iplookup&ipaddress={$ip['ipaddress']}', null, true); return false;"); $popup->add_item($lang->ban_ip, "index.php?module=config-banning&filter={$ip['ipaddress']}"); $controls = $popup->fetch();
|
Zeile 2006 | Zeile 2005 |
---|
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 2353 | Zeile 2362 |
---|
}
if(!empty($mybb->input['profile_fields']))
|
}
if(!empty($mybb->input['profile_fields']))
|
{ $admin_view['custom_profile_fields'] = $mybb->get_input('profile_fields'); }
| { $admin_view['custom_profile_fields'] = $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY); }
|
$plugins->run_hooks("admin_user_users_search_commit");
| $plugins->run_hooks("admin_user_users_search_commit");
|
Zeile 2398 | Zeile 2407 |
---|
if(!$mybb->get_input('displayas')) { $mybb->input['displayas'] = "card";
|
if(!$mybb->get_input('displayas')) { $mybb->input['displayas'] = "card";
|
}
| }
|
$form = new Form("index.php?module=user-users&action=search", "post");
user_search_conditions($mybb->input, $form);
| $form = new Form("index.php?module=user-users&action=search", "post");
user_search_conditions($mybb->input, $form);
|
Zeile 2442 | Zeile 2451 |
---|
$vid_url = "&vid=".$mybb->get_input('vid'); } else
|
$vid_url = "&vid=".$mybb->get_input('vid'); } else
|
{
| {
|
$vid_url = null;
|
$vid_url = null;
|
}
| }
|
// First, collect the user IDs that we're performing the moderation on $selected = array(); if(isset($mybb->cookies['inlinemod_useracp']))
| // First, collect the user IDs that we're performing the moderation on $selected = array(); if(isset($mybb->cookies['inlinemod_useracp']))
|
Zeile 2461 | Zeile 2470 |
---|
}
// Verify incoming POST request
|
}
// Verify incoming POST request
|
if(!verify_post_check($mybb->input['my_post_key']))
| if(!verify_post_check($mybb->get_input('my_post_key')))
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=user-user");
|
{ flash_message($lang->invalid_post_verify_key2, 'error'); admin_redirect("index.php?module=user-user");
|
}
| }
|
$sub_tabs['manage_users'] = array( "title" => $lang->manage_users, "link" => "./",
| $sub_tabs['manage_users'] = array( "title" => $lang->manage_users, "link" => "./",
|
Zeile 2529 | Zeile 2538 |
---|
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); }
| admin_redirect("index.php?module=user-users".$vid_url); }
|
else { // Nothing was updated, show an error
| else { // Nothing was updated, show an error
|
Zeile 2572 | Zeile 2581 |
---|
admin_redirect("index.php?module=user-users".$vid_url); } else
|
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); }
| $page->output_confirm_action("index.php?module=user-users&action=inline_edit&inline_action=multilift", $lang->confirm_multilift); }
|
Zeile 2679 | Zeile 2688 |
---|
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'); echo $form->generate_hidden_field('inline_action', 'multiban');
| $form = new Form("index.php?module=user-users", "post"); echo $form->generate_hidden_field('action', 'inline_edit'); echo $form->generate_hidden_field('inline_action', 'multiban');
|
Zeile 2702 | Zeile 2711 |
---|
$form_container->end();
$buttons[] = $form->generate_submit_button($lang->ban_users);
|
$form_container->end();
$buttons[] = $form->generate_submit_button($lang->ban_users);
|
$form->output_submit_wrapper($buttons); $form->end(); $page->output_footer();
| $form->output_submit_wrapper($buttons); $form->end(); $page->output_footer();
|
break; case 'multidelete': if($mybb->get_input('no'))
| break; case 'multidelete': if($mybb->get_input('no'))
|
Zeile 3226 | Zeile 3235 |
---|
if(!is_array($view['custom_profile_fields'])) { $view['custom_profile_fields'] = my_unserialize($view['custom_profile_fields']);
|
if(!is_array($view['custom_profile_fields'])) { $view['custom_profile_fields'] = my_unserialize($view['custom_profile_fields']);
|
}
| }
|
if(isset($mybb->input['username'])) { $view['conditions']['username'] = $mybb->input['username'];
| if(isset($mybb->input['username'])) { $view['conditions']['username'] = $mybb->input['username'];
|
Zeile 3248 | Zeile 3257 |
---|
$mybb->input['search_id'] = $search_id; } $view['url'] .= "&search_id=".htmlspecialchars_uni($mybb->input['search_id']);
|
$mybb->input['search_id'] = $search_id; } $view['url'] .= "&search_id=".htmlspecialchars_uni($mybb->input['search_id']);
|
}
| }
|
if(!isset($admin_session['data']['last_users_view']) || $admin_session['data']['last_users_view'] != str_replace("&", "&", $view['url'])) {
| if(!isset($admin_session['data']['last_users_view']) || $admin_session['data']['last_users_view'] != str_replace("&", "&", $view['url'])) {
|
Zeile 3289 | Zeile 3298 |
---|
$table->construct_header($view_field['title'], $field_options); } $table->construct_header("<input type=\"checkbox\" name=\"allbox\" onclick=\"inlineModeration.checkAll(this);\" />"); // Create a header for the "select" boxes
|
$table->construct_header($view_field['title'], $field_options); } $table->construct_header("<input type=\"checkbox\" name=\"allbox\" onclick=\"inlineModeration.checkAll(this);\" />"); // Create a header for the "select" boxes
|
}
$search_sql = '1=1';
| }
$search_sql = '1=1';
|
// Build the search SQL for users
|
// Build the search SQL for users
|
|
|
// List of valid LIKE search fields $user_like_fields = array("username", "email", "website", "icq", "skype", "google", "signature", "usertitle"); foreach($user_like_fields as $search_field) { if(!empty($view['conditions'][$search_field]) && empty($view['conditions'][$search_field.'_blank']))
|
// List of valid LIKE search fields $user_like_fields = array("username", "email", "website", "icq", "skype", "google", "signature", "usertitle"); foreach($user_like_fields as $search_field) { if(!empty($view['conditions'][$search_field]) && empty($view['conditions'][$search_field.'_blank']))
|
{
| {
|
$search_sql .= " AND u.{$search_field} LIKE '%".$db->escape_string_like($view['conditions'][$search_field])."%'";
|
$search_sql .= " AND u.{$search_field} LIKE '%".$db->escape_string_like($view['conditions'][$search_field])."%'";
|
}
| }
|
else if(!empty($view['conditions'][$search_field.'_blank'])) { $search_sql .= " AND u.{$search_field} != ''";
| else if(!empty($view['conditions'][$search_field.'_blank'])) { $search_sql .= " AND u.{$search_field} != ''";
|
Zeile 3312 | Zeile 3321 |
---|
// EXACT matching fields $user_exact_fields = array("referrer"); foreach($user_exact_fields as $search_field)
|
// EXACT matching fields $user_exact_fields = array("referrer"); foreach($user_exact_fields as $search_field)
|
{ if(!empty($view['conditions'][$search_field]))
| { if(!empty($view['conditions'][$search_field]))
|
{ $search_sql .= " AND u.{$search_field}='".$db->escape_string($view['conditions'][$search_field])."'"; }
| { $search_sql .= " AND u.{$search_field}='".$db->escape_string($view['conditions'][$search_field])."'"; }
|
Zeile 3356 | Zeile 3365 |
---|
// IP searching $ip_fields = array("regip", "lastip"); foreach($ip_fields as $search_field)
|
// IP searching $ip_fields = array("regip", "lastip"); foreach($ip_fields as $search_field)
|
{
| {
|
if(!empty($view['conditions'][$search_field])) { $ip_range = fetch_ip_range($view['conditions'][$search_field]);
| if(!empty($view['conditions'][$search_field])) { $ip_range = fetch_ip_range($view['conditions'][$search_field]);
|
Zeile 3400 | Zeile 3409 |
---|
$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)
|