Vergleich admin/modules/user/users.php - 1.8.28 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 219Zeile 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 435Zeile 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 942Zeile 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=1837"></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 1093Zeile 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 1112Zeile 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 1126Zeile 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 1138Zeile 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 1165Zeile 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 1174Zeile 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 1201Zeile 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 1237Zeile 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 1267Zeile 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 1345Zeile 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 1359Zeile 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 1372Zeile 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 1381Zeile 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 1411Zeile 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 1669Zeile 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);
}

Zeile 1755Zeile 1759
	$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 2005Zeile 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 2534Zeile 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':
// Get the users that are banned, and check that they have been selected
if($mybb->get_input('no'))
{
admin_redirect("index.php?module=user-users".$vid_url); // User clicked on 'No'

			break;
case 'multilift':
// Get the users that are banned, and check that they have been selected
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 2559Zeile 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 2568Zeile 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&amp;action=inline_edit&amp;inline_action=multilift", $lang->confirm_multilift);
}

			else
{
$page->output_confirm_action("index.php?module=user-users&amp;action=inline_edit&amp;inline_action=multilift", $lang->confirm_multilift);
}





			break;
case 'multiban':
if($mybb->input['processed'] == 1)

			break;
case 'multiban':
if($mybb->input['processed'] == 1)

Zeile 2587Zeile 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 2605Zeile 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 2613Zeile 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 2640Zeile 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 2713Zeile 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 2785Zeile 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 2799Zeile 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 2821Zeile 2835
				else
{
$errors[] = $lang->no_prune_option;

				else
{
$errors[] = $lang->no_prune_option;

				}

if(!$errors)

				}

if(!$errors)

				{
$sql_array = implode(",", $selected);
$prune_array = array();

				{
$sql_array = implode(",", $selected);
$prune_array = array();

Zeile 2895Zeile 2909
							}
$looped_forum = $forum['fid'];
rebuild_forum_counters($forum['fid']);

							}
$looped_forum = $forum['fid'];
rebuild_forum_counters($forum['fid']);

						}

						}

					}

//log_admin_action();

					}

//log_admin_action();

Zeile 2964Zeile 2978
			$form_container->end();

$buttons[] = $form->generate_submit_button($lang->prune_posts);

			$form_container->end();

$buttons[] = $form->generate_submit_button($lang->prune_posts);

			$form->output_submit_wrapper($buttons);
$form->end();
$page->output_footer();
break;

			$form->output_submit_wrapper($buttons);
$form->end();
$page->output_footer();
break;

		case 'multiusergroup':
if($mybb->input['processed'] == 1)
{

		case 'multiusergroup':
if($mybb->input['processed'] == 1)
{

Zeile 2981Zeile 2995
							unset($mybb->input['additionalgroups'][$key]);
}
}

							unset($mybb->input['additionalgroups'][$key]);
}
}





					$additionalgroups = implode(",", array_map('intval', $mybb->input['additionalgroups']));
}
else

					$additionalgroups = implode(",", array_map('intval', $mybb->input['additionalgroups']));
}
else

Zeile 2994Zeile 3008
					"usergroup" => $mybb->get_input('usergroup', MyBB::INPUT_INT),
"additionalgroups" => $additionalgroups,
"displaygroup" => $mybb->get_input('displaygroup', MyBB::INPUT_INT)

					"usergroup" => $mybb->get_input('usergroup', MyBB::INPUT_INT),
"additionalgroups" => $additionalgroups,
"displaygroup" => $mybb->get_input('displaygroup', MyBB::INPUT_INT)

				);

				);


// Create an admin_user_multiusergroup hook array
$hook_params = array(


// Create an admin_user_multiusergroup hook array
$hook_params = array(

Zeile 3003Zeile 3017
				);

$hook_params = $plugins->run_hooks("admin_user_multiusergroup", $hook_params);

				);

$hook_params = $plugins->run_hooks("admin_user_multiusergroup", $hook_params);





				// Do the usergroup update for all those selected
// If the a selected user is a super admin, don't update that user
$users_to_update = array();

				// Do the usergroup update for all those selected
// If the a selected user is a super admin, don't update that user
$users_to_update = array();

Zeile 3111Zeile 3125
			$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);
}
}

				unset($admin_view);
}
}

Zeile 3219Zeile 3233
		$view['conditions'] = my_unserialize($view['conditions']);
}
if(!is_array($view['fields']))

		$view['conditions'] = my_unserialize($view['conditions']);
}
if(!is_array($view['fields']))

	{

	{

		$view['fields'] = my_unserialize($view['fields']);
}
if(!is_array($view['custom_profile_fields']))

		$view['fields'] = my_unserialize($view['fields']);
}
if(!is_array($view['custom_profile_fields']))

Zeile 3288Zeile 3302
			$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

// List of valid LIKE search fields

	// Build the search SQL for users

// List of valid LIKE search fields

Zeile 3399Zeile 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 4147Zeile 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":