Zeile 219 | Zeile 219 |
---|
$user = get_user($mybb->input['uid']);
// Does the user not exist?
|
$user = get_user($mybb->input['uid']);
// Does the user not exist?
|
if(!$user['uid'] || $user['usergroup'] != 5)
| if(!$user || $user['usergroup'] != 5)
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=user-users");
| { flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=user-users");
|
Zeile 435 | Zeile 435 |
---|
$user = get_user($mybb->input['uid']);
// Does the user not exist?
|
$user = get_user($mybb->input['uid']);
// Does the user not exist?
|
if(!$user['uid'])
| if(!$user)
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=user-users");
| { flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=user-users");
|
Zeile 632 | Zeile 632 |
---|
} } // Are we setting a new avatar from a URL?
|
} } // Are we setting a new avatar from a URL?
|
else if($mybb->input['avatar_url'] && $mybb->input['avatar_url'] != $user['avatar'])
| else if(!empty($mybb->input['avatar_url']) && $mybb->input['avatar_url'] != $user['avatar'])
|
{ if(!$mybb->settings['allowremoteavatars']) {
| { if(!$mybb->settings['allowremoteavatars']) {
|
Zeile 943 | Zeile 943 |
---|
<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=1832"></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=1832"></script>
|
<script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1832"></script>
| <script type="text/javascript" src="../jscripts/bbcodes_sceditor.js?ver=1837"></script>
|
<script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1832"></script> EOF; $page->output_header($lang->edit_user);
| <script type="text/javascript" src="../jscripts/sceditor/plugins/undo.js?ver=1832"></script> 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 1540 | Zeile 1544 |
---|
if($errors) {
|
if($errors) {
|
$avatar_url = htmlspecialchars_uni($mybb->input['avatar_url']);
| if(isset($mybb->input['avatar_url'])) { $avatar_url = htmlspecialchars_uni($mybb->input['avatar_url']); }
|
}
if($mybb->settings['maxavatardims'] != "")
| }
if($mybb->settings['maxavatardims'] != "")
|
Zeile 1755 | Zeile 1762 |
---|
$user = get_user($mybb->input['uid']);
// Does the user not exist?
|
$user = get_user($mybb->input['uid']);
// Does the user not exist?
|
if(!$user['uid'])
| if(!$user)
|
{ flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=user-users");
| { flash_message($lang->error_invalid_user, 'error'); admin_redirect("index.php?module=user-users");
|
Zeile 1802 | Zeile 1809 |
---|
else { $page->output_confirm_action("index.php?module=user-users&action=delete&uid={$user['uid']}", $lang->user_deletion_confirmation);
|
else { $page->output_confirm_action("index.php?module=user-users&action=delete&uid={$user['uid']}", $lang->user_deletion_confirmation);
|
}
| }
|
}
if($mybb->input['action'] == "referrers") { $page->add_breadcrumb_item($lang->show_referrers); $page->output_header($lang->show_referrers);
|
}
if($mybb->input['action'] == "referrers") { $page->add_breadcrumb_item($lang->show_referrers); $page->output_header($lang->show_referrers);
|
|
|
$sub_tabs['referrers'] = array( 'title' => $lang->show_referrers, 'link' => "index.php?module=user-users&action=referrers&uid={$mybb->input['uid']}",
| $sub_tabs['referrers'] = array( 'title' => $lang->show_referrers, 'link' => "index.php?module=user-users&action=referrers&uid={$mybb->input['uid']}",
|
Zeile 1823 | Zeile 1830 |
---|
// Fetch default admin view $default_view = fetch_default_view("user"); if(!$default_view)
|
// Fetch default admin view $default_view = fetch_default_view("user"); if(!$default_view)
|
{
| {
|
$default_view = "0"; } $query = $db->simple_select("adminviews", "*", "type='user' AND (vid='{$default_view}' OR uid=0)", array("order_by" => "uid", "order_dir" => "desc")); $admin_view = $db->fetch_array($query);
|
$default_view = "0"; } $query = $db->simple_select("adminviews", "*", "type='user' AND (vid='{$default_view}' OR uid=0)", array("order_by" => "uid", "order_dir" => "desc")); $admin_view = $db->fetch_array($query);
|
if($mybb->input['type'])
| if(!empty($mybb->input['type']))
|
{ $admin_view['view_type'] = $mybb->input['type'];
|
{ $admin_view['view_type'] = $mybb->input['type'];
|
}
| }
|
$admin_view['conditions'] = my_unserialize($admin_view['conditions']); $admin_view['conditions']['referrer'] = $mybb->input['uid'];
| $admin_view['conditions'] = my_unserialize($admin_view['conditions']); $admin_view['conditions']['referrer'] = $mybb->input['uid'];
|
Zeile 1950 | Zeile 1957 |
---|
if($mybb->request_method == "post") { foreach(array('source', 'destination') as $target)
|
if($mybb->request_method == "post") { foreach(array('source', 'destination') as $target)
|
{
| {
|
${$target.'_user'} = get_user_by_username($mybb->input[$target.'_username'], array('fields' => '*')); if(empty(${$target.'_user'}['uid'])) {
| ${$target.'_user'} = get_user_by_username($mybb->input[$target.'_username'], array('fields' => '*')); if(empty(${$target.'_user'}['uid'])) {
|
Zeile 2038 | Zeile 2045 |
---|
$options = array( "order_by" => "uid", "order_dir" => "ASC"
|
$options = array( "order_by" => "uid", "order_dir" => "ASC"
|
);
| );
|
$to_remove = array(); $query = $db->simple_select("reputation", "*", "adduid = '".$destination_user['uid']."'", $options);
| $to_remove = array(); $query = $db->simple_select("reputation", "*", "adduid = '".$destination_user['uid']."'", $options);
|
Zeile 2742 | Zeile 2749 |
---|
$cache->update_awaitingactivation();
flash_message($lang->users_deleted, 'success');
|
$cache->update_awaitingactivation();
flash_message($lang->users_deleted, 'success');
|
admin_redirect("index.php?module=user-users".$vid_url); }
| admin_redirect("index.php?module=user-users".$vid_url); }
|
$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);
|
Zeile 2774 | Zeile 2781 |
---|
// Check the month $months = get_bdays($year); if($day > $months[$month-1])
|
// Check the month $months = get_bdays($year); if($day > $months[$month-1])
|
{
| {
|
$errors[] = $lang->incorrect_date; }
| $errors[] = $lang->incorrect_date; }
|
Zeile 2782 | Zeile 2789 |
---|
if($year != 0 && ($year < (date("Y")-100)) || $year > date("Y")) { $errors[] = $lang->incorrect_date;
|
if($year != 0 && ($year < (date("Y")-100)) || $year > date("Y")) { $errors[] = $lang->incorrect_date;
|
}
| }
|
if(!$errors)
|
if(!$errors)
|
{
| {
|
// No errors, so let's continue and set the date to delete from $date = mktime(date('H'), date('i'), date('s'), $month, $day, $year); // Generate a unix time stamp }
| // No errors, so let's continue and set the date to delete from $date = mktime(date('H'), date('i'), date('s'), $month, $day, $year); // Generate a unix time stamp }
|
Zeile 2803 | Zeile 2810 |
---|
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;
| break;
|
case '3': $threshold = $base_time * 183; // 6 months = 365 days / 2 break;
| case '3': $threshold = $base_time * 183; // 6 months = 365 days / 2 break;
|
Zeile 2950 | Zeile 2957 |
---|
$month_options = array(); $month_options[] = " "; for($i = 1; $i <= 12; ++$i)
|
$month_options = array(); $month_options[] = " "; for($i = 1; $i <= 12; ++$i)
|
{
| {
|
$string = "month_{$i}"; $month_options[] = $lang->$string; }
| $string = "month_{$i}"; $month_options[] = $lang->$string; }
|
Zeile 2969 | Zeile 2976 |
---|
$string = "option_{$i}"; $set_options[] = $lang->$string; }
|
$string = "option_{$i}"; $set_options[] = $lang->$string; }
|
|
|
$form_container->output_row($lang->relative_date, "", $lang->delete_posts." ".$form->generate_select_box('set', $set_options, $mybb->input['set']), 'set'); $form_container->end();
| $form_container->output_row($lang->relative_date, "", $lang->delete_posts." ".$form->generate_select_box('set', $set_options, $mybb->input['set']), 'set'); $form_container->end();
|
Zeile 2979 | Zeile 2986 |
---|
$page->output_footer(); break; case 'multiusergroup':
|
$page->output_footer(); break; case 'multiusergroup':
|
if($mybb->input['processed'] == 1)
| if($mybb->get_input('processed', \MyBB::INPUT_INT) === 1)
|
{ // Determine additional usergroups if(is_array($mybb->input['additionalgroups']))
| { // Determine additional usergroups if(is_array($mybb->input['additionalgroups']))
|
Zeile 3079 | Zeile 3086 |
---|
$display_group_options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']); }
|
$display_group_options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']); }
|
if(!is_array($mybb->input['additionalgroups']))
| if(!$mybb->get_input('additionalgroups', \MyBB::INPUT_ARRAY))
|
{
|
{
|
$mybb->input['additionalgroups'] = explode(',', $mybb->input['additionalgroups']);
| $mybb->input['additionalgroups'] = explode(',', $mybb->get_input('additionalgroups'));
|
}
|
}
|
$form_container->output_row($lang->primary_user_group, "", $form->generate_select_box('usergroup', $options, $mybb->input['usergroup'], array('id' => 'usergroup')), 'usergroup');
| $form_container->output_row($lang->primary_user_group, "", $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->input['additionalgroups'], array('id' => 'additionalgroups', 'multiple' => true, 'size' => 5)), 'additionalgroups'); $form_container->output_row($lang->display_user_group, "", $form->generate_select_box('displaygroup', $display_group_options, $mybb->input['displaygroup'], array('id' => 'displaygroup')), 'displaygroup');
| $form_container->output_row($lang->additional_user_groups, $lang->additional_user_groups_desc, $form->generate_select_box('additionalgroups[]', $options, $mybb->input['additionalgroups'], array('id' => 'additionalgroups', 'multiple' => true, 'size' => 5)), 'additionalgroups'); $form_container->output_row($lang->display_user_group, "", $form->generate_select_box('displaygroup', $display_group_options, $mybb->input['displaygroup'], array('id' => 'displaygroup')), 'displaygroup');
|
Zeile 3860 | Zeile 3867 |
---|
}
$built_view .= '
|
}
$built_view .= '
|
<script type="text/javascript" src="'.$mybb->settings['bburl'].'/jscripts/inline_moderation.js?ver=1821"></script>
| <script type="text/javascript" src="'.$mybb->settings['bburl'].'/jscripts/inline_moderation.js?ver=1838"></script>
|
<form action="index.php?module=user-users" method="post"> <input type="hidden" name="my_post_key" value="'.$mybb->post_code.'" /> <input type="hidden" name="action" value="inline_edit" />
| <form action="index.php?module=user-users" method="post"> <input type="hidden" name="my_post_key" value="'.$mybb->post_code.'" /> <input type="hidden" name="action" value="inline_edit" />
|
Zeile 4162 | Zeile 4169 |
---|
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":
|