Vergleich admin/modules/user/users.php - 1.6.1 - 1.6.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: users.php 5161 2010-08-01 20:45:07Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 159Zeile 159
	// We've selected a new avatar for this user!
if($mybb->input['avatar'])
{

	// We've selected a new avatar for this user!
if($mybb->input['avatar'])
{

 
	if(!verify_post_check($mybb->input['my_post_key']))
{
echo $lang->invalid_post_verify_key2;
exit;
}


		$mybb->input['avatar'] = str_replace(array("./", ".."), "", $mybb->input['avatar']);

if(file_exists("../".$mybb->settings['avatardir']."/".$mybb->input['avatar']))

		$mybb->input['avatar'] = str_replace(array("./", ".."), "", $mybb->input['avatar']);

if(file_exists("../".$mybb->settings['avatardir']."/".$mybb->input['avatar']))

Zeile 181Zeile 187
		// Now a tad of javascript to submit the parent window form
echo "<script type=\"text/javascript\">window.parent.submitUserForm();</script>";
exit;

		// Now a tad of javascript to submit the parent window form
echo "<script type=\"text/javascript\">window.parent.submitUserForm();</script>";
exit;

	}


	}


	echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
echo "<head profile=\"http://gmpg.org/xfn/1\">\n";

	echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
echo "<head profile=\"http://gmpg.org/xfn/1\">\n";

Zeile 204Zeile 210
	if(!is_dir($mybb->settings['avatardir']) && is_dir(MYBB_ROOT."/images/avatars/"))
{
$mybb->settings['avatardir'] = "../images/avatars/";

	if(!is_dir($mybb->settings['avatardir']) && is_dir(MYBB_ROOT."/images/avatars/"))
{
$mybb->settings['avatardir'] = "../images/avatars/";

	}


	}


	// Within a gallery
if(!empty($gallery))
{

	// Within a gallery
if(!empty($gallery))
{

Zeile 223Zeile 229
				$gallery_name = ucwords($gallery_name);

if($gallery_path[$key+1])

				$gallery_name = ucwords($gallery_name);

if($gallery_path[$key+1])

				{

				{

					$breadcrumb .= " &raquo; <a href=\"index.php?module=user-users&amp;action=avatar_gallery&amp;uid={$user['uid']}&amp;gallery={$breadcrumb_url}\">{$gallery_name}</a>";
}
else
{
$breadcrumb .= " &raquo; {$gallery_name}";

					$breadcrumb .= " &raquo; <a href=\"index.php?module=user-users&amp;action=avatar_gallery&amp;uid={$user['uid']}&amp;gallery={$breadcrumb_url}\">{$gallery_name}</a>";
}
else
{
$breadcrumb .= " &raquo; {$gallery_name}";

				}

				}

			}
}
else

			}
}
else

Zeile 238Zeile 244
		}
}
else

		}
}
else

	{

	{

		$path = "";
$real_path = $mybb->settings['avatardir'];
}

		$path = "";
$real_path = $mybb->settings['avatardir'];
}

Zeile 252Zeile 258
		foreach($files as $file)
{
if($file == "." || $file == ".." || $file == ".svn")

		foreach($files as $file)
{
if($file == "." || $file == ".." || $file == ".svn")

			{

			{

				continue;
}


				continue;
}


Zeile 294Zeile 300
					"width" => $dimensions[0],
"height" => $dimensions[1]
);

					"width" => $dimensions[0],
"height" => $dimensions[1]
);

			}
}
}

require_once MYBB_ROOT."inc/functions_image.php";


			}
}
}

require_once MYBB_ROOT."inc/functions_image.php";


	// Now we're done, we can simply show our gallery page
echo "<div id=\"gallery_breadcrumb\">{$breadcrumb}</div>\n";
echo "<div id=\"gallery\">\n";

	// Now we're done, we can simply show our gallery page
echo "<div id=\"gallery_breadcrumb\">{$breadcrumb}</div>\n";
echo "<div id=\"gallery\">\n";

Zeile 322Zeile 328
			$top = ceil((80-$scaled_dimensions['height'])/2);
$left = ceil((80-$scaled_dimensions['width'])/2);
echo "<li><a href=\"index.php?module=user-users&amp;action=avatar_gallery&amp;uid={$user['uid']}&amp;gallery={$gallery['path']}\"><span class=\"image\"><img src=\"{$gallery['thumb']}\" alt=\"\" style=\"margin-top: {$top}px;\" height=\"{$scaled_dimensions['height']}\" width=\"{$scaled_dimensions['width']}\"></span><span class=\"title\">{$gallery['friendly_name']}</span></a></li>\n";

			$top = ceil((80-$scaled_dimensions['height'])/2);
$left = ceil((80-$scaled_dimensions['width'])/2);
echo "<li><a href=\"index.php?module=user-users&amp;action=avatar_gallery&amp;uid={$user['uid']}&amp;gallery={$gallery['path']}\"><span class=\"image\"><img src=\"{$gallery['thumb']}\" alt=\"\" style=\"margin-top: {$top}px;\" height=\"{$scaled_dimensions['height']}\" width=\"{$scaled_dimensions['width']}\"></span><span class=\"title\">{$gallery['friendly_name']}</span></a></li>\n";

		}
}

		}
}

	echo "</ul>\n";
// Build the list of any actual avatars we have
echo "<ul id=\"avatars\">\n";

	echo "</ul>\n";
// Build the list of any actual avatars we have
echo "<ul id=\"avatars\">\n";

Zeile 334Zeile 340
			$scaled_dimensions = scale_image($avatar['width'], $avatar['height'], 80, 80);
$top = ceil((80-$scaled_dimensions['height'])/2);
$left = ceil((80-$scaled_dimensions['width'])/2);

			$scaled_dimensions = scale_image($avatar['width'], $avatar['height'], 80, 80);
$top = ceil((80-$scaled_dimensions['height'])/2);
$left = ceil((80-$scaled_dimensions['width'])/2);

			echo "<li><a href=\"index.php?module=user-users&amp;action=avatar_gallery&amp;uid={$user['uid']}&amp;avatar={$avatar['path']}\"><span class=\"image\"><img src=\"{$mybb->settings['avatardir']}/{$avatar['path']}\" alt=\"\" style=\"margin-top: {$top}px;\" height=\"{$scaled_dimensions['height']}\" width=\"{$scaled_dimensions['width']}\" /></span><span class=\"title\">{$avatar['friendly_name']}</span></a></li>\n";

			echo "<li><a href=\"index.php?module=user-users&amp;action=avatar_gallery&amp;uid={$user['uid']}&amp;avatar={$avatar['path']}&amp;my_post_key={$mybb->post_code}\"><span class=\"image\"><img src=\"{$mybb->settings['avatardir']}/{$avatar['path']}\" alt=\"\" style=\"margin-top: {$top}px;\" height=\"{$scaled_dimensions['height']}\" width=\"{$scaled_dimensions['width']}\" /></span><span class=\"title\">{$avatar['friendly_name']}</span></a></li>\n";

		}

		}

	}

	}

	echo "</ul>\n";
echo "</div>";
echo "</body>";

	echo "</ul>\n";
echo "</div>";
echo "</body>";

Zeile 347Zeile 353
if($mybb->input['action'] == "activate_user")
{
$plugins->run_hooks("admin_user_users_coppa_activate");

if($mybb->input['action'] == "activate_user")
{
$plugins->run_hooks("admin_user_users_coppa_activate");

	








if(!verify_post_check($mybb->input['my_post_key']))
{
flash_message($lang->invalid_post_verify_key2, 'error');
admin_redirect("index.php?module=user-users");
}


	$query = $db->simple_select("users", "*", "uid='".intval($mybb->input['uid'])."'");
$user = $db->fetch_array($query);


	$query = $db->simple_select("users", "*", "uid='".intval($mybb->input['uid'])."'");
$user = $db->fetch_array($query);


Zeile 611Zeile 623
			"aim" => $mybb->input['aim'],
"yahoo" => $mybb->input['yahoo'],
"msn" => $mybb->input['msn'],

			"aim" => $mybb->input['aim'],
"yahoo" => $mybb->input['yahoo'],
"msn" => $mybb->input['msn'],

 
			"birthday" => array(
"day" => $mybb->input['bday1'],
"month" => $mybb->input['bday2'],
"year" => $mybb->input['bday3']
),

			"style" => $mybb->input['style'],
"signature" => $mybb->input['signature'],
"dateformat" => intval($mybb->input['dateformat']),

			"style" => $mybb->input['style'],
"signature" => $mybb->input['signature'],
"dateformat" => intval($mybb->input['dateformat']),

Zeile 894Zeile 911
		// We need to fetch this users profile field values
$query = $db->simple_select("userfields", "*", "ufid='{$user['uid']}'");
$mybb->input['profile_fields'] = $db->fetch_array($query);

		// We need to fetch this users profile field values
$query = $db->simple_select("userfields", "*", "ufid='{$user['uid']}'");
$mybb->input['profile_fields'] = $db->fetch_array($query);

 
	}

if($mybb->input['bday1'] || $mybb->input['bday2'] || $mybb->input['bday3'])
{
$mybb->input['bday'][0] = $mybb->input['bday1'];
$mybb->input['bday'][1] = $mybb->input['bday2'];
$mybb->input['bday'][2] = intval($mybb->input['bday3']);
}
else
{
$mybb->input['bday'] = array();

if($user['birthday'])
{
$mybb->input['bday'] = explode('-', $user['birthday']);
}

	}

// Fetch custom profile fields

	}

// Fetch custom profile fields

Zeile 973Zeile 1006
		if (!stristr($user['avatar'], 'http://'))
{
$user['avatar'] = "../{$user['avatar']}\n";

		if (!stristr($user['avatar'], 'http://'))
{
$user['avatar'] = "../{$user['avatar']}\n";

		}
}

		}
}

	else
{
$user['avatar'] = "styles/{$page->style}/images/default_avatar.gif";

	else
{
$user['avatar'] = "styles/{$page->style}/images/default_avatar.gif";

Zeile 982Zeile 1015
			"width" => 120,
"height" => 120
);

			"width" => 120,
"height" => 120
);

	}

	}

	$avatar_top = ceil((126-$scaled_dimensions['height'])/2);
if($user['lastactive'])
{
$last_active = my_date($mybb->settings['dateformat'], $user['lastactive']).", ".my_date($mybb->settings['timeformat'], $user['lastactive']);

	$avatar_top = ceil((126-$scaled_dimensions['height'])/2);
if($user['lastactive'])
{
$last_active = my_date($mybb->settings['dateformat'], $user['lastactive']).", ".my_date($mybb->settings['timeformat'], $user['lastactive']);

	}

	}

	else
{
$last_active = $lang->never;
}
$reg_date = my_date($mybb->settings['dateformat'], $user['regdate']).", ".my_date($mybb->settings['timeformat'], $user['regdate']);
if($user['dst'] == 1)

	else
{
$last_active = $lang->never;
}
$reg_date = my_date($mybb->settings['dateformat'], $user['regdate']).", ".my_date($mybb->settings['timeformat'], $user['regdate']);
if($user['dst'] == 1)

	{

	{

		$timezone = $user['timezone']+1;
}
else

		$timezone = $user['timezone']+1;
}
else

Zeile 1033Zeile 1066
	else
{
$reputation = "-";

	else
{
$reputation = "-";

	}


	}


	if($mybb->settings['enablewarningsystem'] != 0 && $user_permissions['canreceivewarnings'] != 0)

	if($mybb->settings['enablewarningsystem'] != 0 && $user_permissions['canreceivewarnings'] != 0)

	{

	{

		$warning_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);
if($warning_level > 100)
{

		$warning_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);
if($warning_level > 100)
{

Zeile 1045Zeile 1078
		$warning_level = get_colored_warning_level($warning_level);
}


		$warning_level = get_colored_warning_level($warning_level);
}



if($user['birthday'])
{
$age = get_age($user['birthday']);
}

else

	$age = $lang->na;
if($user['birthday'])






	{

	{

		$age = '';

		$age = get_age($user['birthday']);

	}

$table->construct_cell("<div style=\"width: 126px; height: 126px;\" class=\"user_avatar\"><img src=\"".htmlspecialchars_uni($user['avatar'])."\" style=\"margin-top: {$avatar_top}px\" width=\"{$scaled_dimensions['width']}\" height=\"{$scaled_dimensions['height']}\" alt=\"\" /></div>", array('rowspan' => 6, 'width' => 1));

	}

$table->construct_cell("<div style=\"width: 126px; height: 126px;\" class=\"user_avatar\"><img src=\"".htmlspecialchars_uni($user['avatar'])."\" style=\"margin-top: {$avatar_top}px\" width=\"{$scaled_dimensions['width']}\" height=\"{$scaled_dimensions['height']}\" alt=\"\" /></div>", array('rowspan' => 6, 'width' => 1));

Zeile 1120Zeile 1148
	$form_container->output_row($lang->aim_handle, "", $form->generate_text_box('aim', $mybb->input['aim'], array('id' => 'aim')), 'aim');
$form_container->output_row($lang->yahoo_messanger_handle, "", $form->generate_text_box('yahoo', $mybb->input['yahoo'], array('id' => 'yahoo')), 'yahoo');
$form_container->output_row($lang->msn_messanger_handle, "", $form->generate_text_box('msn', $mybb->input['msn'], array('id' => 'msn')), 'msn');

	$form_container->output_row($lang->aim_handle, "", $form->generate_text_box('aim', $mybb->input['aim'], array('id' => 'aim')), 'aim');
$form_container->output_row($lang->yahoo_messanger_handle, "", $form->generate_text_box('yahoo', $mybb->input['yahoo'], array('id' => 'yahoo')), 'yahoo');
$form_container->output_row($lang->msn_messanger_handle, "", $form->generate_text_box('msn', $mybb->input['msn'], array('id' => 'msn')), 'msn');

 


	// Birthday

	// Birthday

 
	$birthday_days = array(0 => '');
for($i = 1; $i <= 31; $i++)
{
$birthday_days[$i] = $i;
}

$birthday_months = array(
0 => '',
1 => $lang->january,
2 => $lang->february,
3 => $lang->march,
4 => $lang->april,
5 => $lang->may,
6 => $lang->june,
7 => $lang->july,
8 => $lang->august,
9 => $lang->september,
10 => $lang->october,
11 => $lang->november,
12 => $lang->december
);

$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_text_box('bday3', $mybb->input['bday'][2], array('id' => 'bday_year', 'style' => 'width: 3em;'));

$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);


// Output custom profile fields - optional
output_custom_profile_fields($profile_fields['optional'], $mybb->input['profile_fields'], $form_container, $form);

Zeile 1131Zeile 1187
	//
// ACCOUNT SETTINGS
//

	//
// ACCOUNT SETTINGS
//





	// Plugin hook note - we should add hooks in above each output_row for the below so users can add their own options to each group :>

echo "<div id=\"tab_settings\">\n";

	// Plugin hook note - we should add hooks in above each output_row for the below so users can add their own options to each group :>

echo "<div id=\"tab_settings\">\n";

Zeile 1167Zeile 1223
	foreach($time_formats as $key => $format)
{
$time_format_options[$key] = my_date($format, TIME_NOW, "", 0);

	foreach($time_formats as $key => $format)
{
$time_format_options[$key] = my_date($format, TIME_NOW, "", 0);

	}

	}


$date_options = array(
"<label for=\"dateformat\">{$lang->date_format}:</label><br />".$form->generate_select_box("dateformat", $date_format_options, $mybb->input['dateformat'], array('id' => 'dateformat')),


$date_options = array(
"<label for=\"dateformat\">{$lang->date_format}:</label><br />".$form->generate_select_box("dateformat", $date_format_options, $mybb->input['dateformat'], array('id' => 'dateformat')),

Zeile 1309Zeile 1365
	else
{
$sig_checked = 0;

	else
{
$sig_checked = 0;

	}

	}


$actions = '
<script type="text/javascript">
<!--
var sig_checked = "'.$sig_checked.'";


$actions = '
<script type="text/javascript">
<!--
var sig_checked = "'.$sig_checked.'";





		function toggleAction()
{
if($("suspend_action").visible() == true)
{
$("suspend_action").hide();

		function toggleAction()
{
if($("suspend_action").visible() == true)
{
$("suspend_action").hide();

			}

			}

			else
{
$("suspend_action").show();
}

			else
{
$("suspend_action").show();
}

		}
// -->

		}
// -->

	</script>

<dl style="margin-top: 0; margin-bottom: 0; width: 100%;">

	</script>

<dl style="margin-top: 0; margin-bottom: 0; width: 100%;">

Zeile 1357Zeile 1413
		$form->generate_radio_button("update_posts", "enable", $lang->enable_sig_in_all_posts, array("checked" => 0)),
$form->generate_radio_button("update_posts", "disable", $lang->disable_sig_in_all_posts, array("checked" => 0)),
$form->generate_radio_button("update_posts", "no", $lang->do_nothing, array("checked" => 1))

		$form->generate_radio_button("update_posts", "enable", $lang->enable_sig_in_all_posts, array("checked" => 0)),
$form->generate_radio_button("update_posts", "disable", $lang->disable_sig_in_all_posts, array("checked" => 0)),
$form->generate_radio_button("update_posts", "no", $lang->do_nothing, array("checked" => 1))

	);

	);


$form_container->output_row($lang->singature_preferences, "", implode("<br />", $signature_options));



$form_container->output_row($lang->singature_preferences, "", implode("<br />", $signature_options));


Zeile 1447Zeile 1503
	);

echo "<div id=\"tab_modoptions\">\n";

	);

echo "<div id=\"tab_modoptions\">\n";

	$form_container = new FormContainer($lang->mod_options);

	$form_container = new FormContainer($lang->mod_options.": {$user['username']}");

	$form_container->output_row($lang->user_notes, '', $form->generate_text_area('usernotes', $mybb->input['usernotes'], array('id' => 'usernotes')), 'usernotes');

// Mod posts
// Generate check box
$modpost_options = $form->generate_select_box('modpost_period', $periods, $mybb->input['modpost_period'], array('id' => 'modpost_period'));

	$form_container->output_row($lang->user_notes, '', $form->generate_text_area('usernotes', $mybb->input['usernotes'], array('id' => 'usernotes')), 'usernotes');

// Mod posts
// Generate check box
$modpost_options = $form->generate_select_box('modpost_period', $periods, $mybb->input['modpost_period'], array('id' => 'modpost_period'));





	// Do we have any existing suspensions here?
if($user['moderateposts'] || ($mybb->input['moderateposting'] && !empty($errors)))
{
$mybb->input['moderateposting'] = 1;
if($user['moderationtime'] != 0)

	// Do we have any existing suspensions here?
if($user['moderateposts'] || ($mybb->input['moderateposting'] && !empty($errors)))
{
$mybb->input['moderateposting'] = 1;
if($user['moderationtime'] != 0)

		{

		{

			$expired = my_date($mybb->settings['dateformat'], $user['moderationtime']).", ".my_date($mybb->settings['timeformat'], $user['moderationtime']);
$existing_info = $lang->sprintf($lang->moderate_length, $expired);
}

			$expired = my_date($mybb->settings['dateformat'], $user['moderationtime']).", ".my_date($mybb->settings['timeformat'], $user['moderationtime']);
$existing_info = $lang->sprintf($lang->moderate_length, $expired);
}

Zeile 1471Zeile 1527

$modpost_div = '<div id="modpost">'.$existing_info.''.$lang->moderate_for.' '.$form->generate_text_box("modpost_time", $mybb->input['modpost_time'], array('style' => 'width: 2em;')).' '.$modpost_options.'</div>';
$lang->moderate_posts_info = $lang->sprintf($lang->moderate_posts_info, $user['username']);


$modpost_div = '<div id="modpost">'.$existing_info.''.$lang->moderate_for.' '.$form->generate_text_box("modpost_time", $mybb->input['modpost_time'], array('style' => 'width: 2em;')).' '.$modpost_options.'</div>';
$lang->moderate_posts_info = $lang->sprintf($lang->moderate_posts_info, $user['username']);

	$form_container->output_row($form->generate_check_box("moderateposting", 1, $lang->moderate_posts, array("id" => "moderateposting", "onclick" => "toggleBox('modpost');", "checked" => $mybb->input['moderateposting'])), $lang->moderate_posts_info, $modpost_div);

	$form_container->output_row($form->generate_check_box("moderateposting", 1, $lang->moderate_posts, array("id" => "moderateposting", "onclick" => "toggleBox('modpost');", "checked" => $mybb->input['moderateposting'])), $lang->moderate_posts_info, $modpost_div);


// Suspend posts
// Generate check box


// Suspend posts
// Generate check box

Zeile 1483Zeile 1539
		$mybb->input['suspendposting'] = 1;

if($user['suspensiontime'] == 0 || $mybb->input['suspost_period'] == "never")

		$mybb->input['suspendposting'] = 1;

if($user['suspensiontime'] == 0 || $mybb->input['suspost_period'] == "never")

		{

		{

			$existing_info = $lang->suspended_perm;
}
else

			$existing_info = $lang->suspended_perm;
}
else

Zeile 1500Zeile 1556

$form_container->end();
echo "</div>\n";


$form_container->end();
echo "</div>\n";





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


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


Zeile 1521Zeile 1577
			$("modpost").show();
}
else if($("moderateposting").checked == false)

			$("modpost").show();
}
else if($("moderateposting").checked == false)

		{

		{

			$("modpost").hide();
}
}

			$("modpost").hide();
}
}

Zeile 1542Zeile 1598
}

if($("moderateposting").checked == false)

}

if($("moderateposting").checked == false)

{

{

	$("modpost").hide();

	$("modpost").hide();

}
else
{

}
else
{

	$("modpost").show();
}

if($("suspendposting").checked == false)

	$("modpost").show();
}

if($("suspendposting").checked == false)

{

{

	$("suspost").hide();
}
else

	$("suspost").hide();
}
else

Zeile 1561Zeile 1617

// -->
</script>';


// -->
</script>';





	$page->output_footer();
}


	$page->output_footer();
}


Zeile 1576Zeile 1632
	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']))
{
flash_message($lang->error_no_perms_super_admin, 'error');

	
if(is_super_admin($mybb->input['uid']) && $mybb->user['uid'] != $mybb->input['uid'] && !is_super_admin($mybb->user['uid']))
{
flash_message($lang->error_no_perms_super_admin, 'error');

		admin_redirect("index.php?module=user-users");
}

		admin_redirect("index.php?module=user-users");
}


// User clicked no
if($mybb->input['no'])


// User clicked no
if($mybb->input['no'])

Zeile 1594Zeile 1650
	if($mybb->request_method == "post")
{
// Delete the user

	if($mybb->request_method == "post")
{
// Delete the user

		$db->update_query("posts", array('uid' => 0), "uid='{$user['uid']}'");

 
		$db->delete_query("userfields", "ufid='{$user['uid']}'");
$db->delete_query("privatemessages", "uid='{$user['uid']}'");
$db->delete_query("events", "uid='{$user['uid']}'");

		$db->delete_query("userfields", "ufid='{$user['uid']}'");
$db->delete_query("privatemessages", "uid='{$user['uid']}'");
$db->delete_query("events", "uid='{$user['uid']}'");

Zeile 1607Zeile 1662
		$db->delete_query("joinrequests", "uid='{$user['uid']}'");
$db->delete_query("warnings", "uid='{$user['uid']}'");
$db->delete_query("reputation", "uid='{$user['uid']}' OR adduid='{$user['uid']}'");

		$db->delete_query("joinrequests", "uid='{$user['uid']}'");
$db->delete_query("warnings", "uid='{$user['uid']}'");
$db->delete_query("reputation", "uid='{$user['uid']}' OR adduid='{$user['uid']}'");

		$db->delete_query("awaitingactivation", "uid='{$uid}'");



		$db->delete_query("awaitingactivation", "uid='{$user['uid']}'");
$db->delete_query("posts", "uid = '{$user['uid']}' AND visible = '-2'");
$db->delete_query("threads", "uid = '{$user['uid']}' AND visible = '-2'");


// Update forum stats
update_stats(array('numusers' => '-1'));


// Update forum stats
update_stats(array('numusers' => '-1'));

 

// Update forums & threads if user is the lastposter
$db->update_query("posts", array('uid' => 0), "uid='{$user['uid']}'");
$db->update_query("forums", array("lastposteruid" => 0), "lastposteruid = '{$user['uid']}'");
$db->update_query("threads", array("lastposteruid" => 0), "lastposteruid = '{$user['uid']}'");


// Did this user have an uploaded avatar?
if($user['avatartype'] == "upload")


// Did this user have an uploaded avatar?
if($user['avatartype'] == "upload")

Zeile 1624Zeile 1686
		{
$db->delete_query("moderators", "id='{$user['uid']}' AND isgroup = '0'");
$cache->update_moderators();

		{
$db->delete_query("moderators", "id='{$user['uid']}' AND isgroup = '0'");
$cache->update_moderators();

		}


		}


		$plugins->run_hooks("admin_user_users_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_user_users_delete_commit");

// Log admin action

Zeile 1706Zeile 1768
	if(empty($user['lastip']))
{
$user['lastip'] = $lang->unknown;

	if(empty($user['lastip']))
{
$user['lastip'] = $lang->unknown;

		$controls = '';
}
else

		$controls = '';
}
else

	{
$popup = new PopupMenu("user_last", $lang->options);
$popup->add_item($lang->show_users_regged_with_ip,

	{
$popup = new PopupMenu("user_last", $lang->options);
$popup->add_item($lang->show_users_regged_with_ip,

Zeile 1820Zeile 1882
			$db->update_query("pollvotes", $uid_update, "uid='{$source_user['uid']}'");
$db->update_query("posts", $uid_update, "uid='{$source_user['uid']}'");
$db->update_query("privatemessages", $uid_update, "uid='{$source_user['uid']}'");

			$db->update_query("pollvotes", $uid_update, "uid='{$source_user['uid']}'");
$db->update_query("posts", $uid_update, "uid='{$source_user['uid']}'");
$db->update_query("privatemessages", $uid_update, "uid='{$source_user['uid']}'");

 
			$db->update_query("reportedposts", $uid_update, "uid='{$source_user['uid']}'");

			$db->update_query("threadratings", $uid_update, "uid='{$source_user['uid']}'");
$db->update_query("threads", $uid_update, "uid='{$source_user['uid']}'");
$db->delete_query("sessions", "uid='{$source_user['uid']}'");

			$db->update_query("threadratings", $uid_update, "uid='{$source_user['uid']}'");
$db->update_query("threads", $uid_update, "uid='{$source_user['uid']}'");
$db->delete_query("sessions", "uid='{$source_user['uid']}'");

Zeile 1832Zeile 1895
				// Update the moderator cache...
$cache->update_moderators();
}

				// Update the moderator cache...
$cache->update_moderators();
}

 

// Forums & Threads
$db->update_query("forums", array("lastposteruid" => $destination_user['uid']), "lastposteruid = '{$source_user['uid']}'");
$db->update_query("threads", array("lastposteruid" => $destination_user['uid']), "lastposteruid = '{$source_user['uid']}'");

// Banning
$db->update_query("banned", array('admin' => $destination_user['uid']), "admin = '{$source_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 2044Zeile 2114
			$admin_view['sortby'] = $mybb->input['sortby'];
}


			$admin_view['sortby'] = $mybb->input['sortby'];
}


		if($mybb->input['perpage'])

		if(intval($mybb->input['perpage']))

		{
$admin_view['perpage'] = $mybb->input['perpage'];
}

		{
$admin_view['perpage'] = $mybb->input['perpage'];
}

Zeile 2388Zeile 2458
				echo $form->generate_hidden_field('inline_action', 'multiban');
echo $form->generate_hidden_field('processed', '1');


				echo $form->generate_hidden_field('inline_action', 'multiban');
echo $form->generate_hidden_field('processed', '1');


				$form_container = new FormContainer('<div class="float_right"><a href="index.php?module=user-users&amp;action=inline_edit&amp;inline_action=multilift&amp;my_post_key={$mybb->post_code}">'.$lang->lift_bans.'</a></div>'.$lang->mass_ban);

				$form_container = new FormContainer('<div class="float_right"><a href="index.php?module=user-users&amp;action=inline_edit&amp;inline_action=multilift&amp;my_post_key='.$mybb->post_code.'">'.$lang->lift_bans.'</a></div>'.$lang->mass_ban);

				$form_container->output_row($lang->ban_reason, "", $form->generate_text_box('reason', $mybb->input['reason'], array('id' => 'reason')), 'reason');				
$ban_times = fetch_ban_times();
foreach($ban_times as $time => $period)

				$form_container->output_row($lang->ban_reason, "", $form->generate_text_box('reason', $mybb->input['reason'], array('id' => 'reason')), 'reason');				
$ban_times = fetch_ban_times();
foreach($ban_times as $time => $period)

Zeile 2573Zeile 2643
						}

// Require the rebuild functions

						}

// Require the rebuild functions

						require_once(MYBB_ROOT.'/inc/functions.php');
require_once(MYBB_ROOT.'/inc/functions_rebuild.php');

						require_once MYBB_ROOT.'/inc/functions.php';
require_once MYBB_ROOT.'/inc/functions_rebuild.php';


// We've finished deleting user's posts, so let's delete the threads
if(is_array($prune_array['to_delete']) && count($prune_array['to_delete']) > 0)


// We've finished deleting user's posts, so let's delete the threads
if(is_array($prune_array['to_delete']) && count($prune_array['to_delete']) > 0)

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

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

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

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

					}
else
{

					}
else
{

Zeile 2709Zeile 2779

// Create an update array
$update_array = array(


// Create an update array
$update_array = array(

						"usergroup" => $mybb->input['usergroup'],

						"usergroup" => intval($mybb->input['usergroup']),

						"additionalgroups" => $additionalgroups,

						"additionalgroups" => $additionalgroups,

						"displaygroup" => $mybb->input['displaygroup']

						"displaygroup" => intval($mybb->input['displaygroup'])

					);

// Do the usergroup update for all those selected

					);

// Do the usergroup update for all those selected

Zeile 2951Zeile 3021
	if(!isset($admin_session['data']['last_users_view']) || $admin_session['data']['last_users_view'] != str_replace("&amp;", "&", $view['url']))
{
update_admin_session('last_users_url', str_replace("&amp;", "&", $view['url']));

	if(!isset($admin_session['data']['last_users_view']) || $admin_session['data']['last_users_view'] != str_replace("&amp;", "&", $view['url']))
{
update_admin_session('last_users_url', str_replace("&amp;", "&", $view['url']));

 
	}

if(isset($view['conditions']['referrer'])){
$view['url'] .= "&amp;action=referrers&amp;uid=".htmlspecialchars($view['conditions']['referrer']);

	}

// Do we not have any views?

	}

// Do we not have any views?

Zeile 2963Zeile 3037

// Build header for table based view
if($view['view_type'] != "card")


// Build header for table based view
if($view['view_type'] != "card")

	{

	{

		foreach($view['fields'] as $field)
{
if(!$user_view_fields[$field])

		foreach($view['fields'] as $field)
{
if(!$user_view_fields[$field])

Zeile 2973Zeile 3047
			$view_field = $user_view_fields[$field];
$field_options = array();
if($view_field['width'])

			$view_field = $user_view_fields[$field];
$field_options = array();
if($view_field['width'])

			{

			{

				$field_options['width'] = $view_field['width'];
}
if($view_field['align'])

				$field_options['width'] = $view_field['width'];
}
if($view_field['align'])

Zeile 2993Zeile 3067
	$user_like_fields = array("username", "email", "website", "icq", "aim", "yahoo", "msn", "signature", "usertitle");
foreach($user_like_fields as $search_field)
{

	$user_like_fields = array("username", "email", "website", "icq", "aim", "yahoo", "msn", "signature", "usertitle");
foreach($user_like_fields as $search_field)
{

		if($view['conditions'][$search_field])

		if($view['conditions'][$search_field] && !$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(isset($view['conditions'][$search_field.'_blank']))
{
$search_sql .= " AND u.{$search_field} != ''";

		}
}


		}
}


Zeile 3004Zeile 3082
	foreach($user_exact_fields as $search_field)
{
if($view['conditions'][$search_field])

	foreach($user_exact_fields as $search_field)
{
if($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])."'";

		}
}


		}
}


	// LESS THAN or GREATER THAN
$direction_fields = array("postnum");
foreach($direction_fields as $search_field)

	// LESS THAN or GREATER THAN
$direction_fields = array("postnum");
foreach($direction_fields as $search_field)

	{

	{

		$direction_field = $search_field."_dir";
if(($view['conditions'][$search_field] || $view['conditions'][$search_field] === '0') && $view['conditions'][$direction_field])
{

		$direction_field = $search_field."_dir";
if(($view['conditions'][$search_field] || $view['conditions'][$search_field] === '0') && $view['conditions'][$direction_field])
{

Zeile 3020Zeile 3098
			{
case "greater_than":
$direction = ">";

			{
case "greater_than":
$direction = ">";

					break;

					break;

				case "less_than":
$direction = "<";
break;

				case "less_than":
$direction = "<";
break;

Zeile 3028Zeile 3106
					$direction = "=";
}
$search_sql .= " AND u.{$search_field}{$direction}'".$db->escape_string($view['conditions'][$search_field])."'";

					$direction = "=";
}
$search_sql .= " AND u.{$search_field}{$direction}'".$db->escape_string($view['conditions'][$search_field])."'";

 
		}
}

// Registration searching
$reg_fields = array("regdate");
foreach($reg_fields as $search_field)
{
if(intval($view['conditions'][$search_field]))
{
$threshold = TIME_NOW - (intval($view['conditions'][$search_field]) * 24 * 60 * 60);

$search_sql .= " AND u.{$search_field} >= '{$threshold}'";

		}
}


		}
}


Zeile 3100Zeile 3190
			{
foreach($input as $value => $text)
{

			{
foreach($input as $value => $text)
{

					if($value == "N/A")






					if($value == $column)
{
$value = $text;
}

if($value == $lang->na)

					{
continue;
}

					{
continue;
}

					
$userfield_sql .= ' AND '.$db->escape_string($column)."='".$db->escape_string($value)."'";
}










if(strpos($column, '_blank') !== false)
{
$column = str_replace('_blank', '', $column);
$userfield_sql .= ' AND '.$db->escape_string($column)." != ''";
}
else
{
$userfield_sql .= ' AND '.$db->escape_string($column)."='".$db->escape_string($value)."'";
}
}

			}
else if(!empty($input))
{

			}
else if(!empty($input))
{

				if($input == "N/A")

				if($input == $lang->na)

				{
continue;
}

				{
continue;
}

					
$userfield_sql .= ' AND '.$db->escape_string($column)." LIKE '%".$db->escape_string($input)."%'";









				
if(strpos($column, '_blank') !== false)
{
$column = str_replace('_blank', '', $column);
$userfield_sql .= ' AND '.$db->escape_string($column)." != ''";
}
else
{
$userfield_sql .= ' AND '.$db->escape_string($column)." LIKE '%".$db->escape_string($input)."%'";
}

			}
}

			}
}

		



		if($userfield_sql != '1=1')
{
$userfield_uids = array(0);

		if($userfield_sql != '1=1')
{
$userfield_uids = array(0);

Zeile 3142Zeile 3253

foreach($view['conditions']['usergroup'] as $usergroup)
{


foreach($view['conditions']['usergroup'] as $usergroup)
{

 
			$usergroup = intval($usergroup);

if(!$usergroup)
{
continue;
}


			switch($db->type)
{
case "pgsql":

			switch($db->type)
{
case "pgsql":

Zeile 3152Zeile 3270
					$additional_sql .= "OR CONCAT(',',additionalgroups,',') LIKE '%,{$usergroup},%'";
}
}

					$additional_sql .= "OR CONCAT(',',additionalgroups,',') LIKE '%,{$usergroup},%'";
}
}

		$search_sql .= " AND (u.usergroup IN (".implode(",", $view['conditions']['usergroup']).") {$additional_sql})";



$search_sql .= " AND (u.usergroup IN (".implode(",", array_map('intval', $view['conditions']['usergroup'])).") {$additional_sql})";

	}

// COPPA users only?

	}

// COPPA users only?

Zeile 3214Zeile 3333
			case "postnum":
case "reputation":
$view['sortby'] = $db->escape_string($view['sortby']);

			case "postnum":
case "reputation":
$view['sortby'] = $db->escape_string($view['sortby']);

				break;

				break;

			case "numposts":
$view['sortby'] = "postnum";
break;

			case "numposts":
$view['sortby'] = "postnum";
break;

Zeile 3269Zeile 3388
			{
if($user['coppauser'])
{

			{
if($user['coppauser'])
{

					$popup->add_item($lang->approve_coppa_user, "index.php?module=user-users&amp;action=activate_user&amp;uid={$user['uid']}{$from_bit}");

					$popup->add_item($lang->approve_coppa_user, "index.php?module=user-users&amp;action=activate_user&amp;uid={$user['uid']}&amp;my_post_key={$mybb->post_code}{$from_bit}");

				}
else
{

				}
else
{

					$popup->add_item($lang->approve_user, "index.php?module=user-users&amp;action=activate_user&amp;uid={$user['uid']}{$from_bit}");

					$popup->add_item($lang->approve_user, "index.php?module=user-users&amp;action=activate_user&amp;uid={$user['uid']}&amp;my_post_key={$mybb->post_code}{$from_bit}");

				}
}


				}
}


Zeile 3301Zeile 3420
					$warning_level = 100;
}
$user['view']['warninglevel'] = get_colored_warning_level($warning_level);

					$warning_level = 100;
}
$user['view']['warninglevel'] = get_colored_warning_level($warning_level);

			}

			}


if($user['avatar'] && !stristr($user['avatar'], 'http://'))


if($user['avatar'] && !stristr($user['avatar'], 'http://'))

			{

			{

				$user['avatar'] = "../{$user['avatar']}";

				$user['avatar'] = "../{$user['avatar']}";

			}
if($view['view_type'] == "card")
{

			}
if($view['view_type'] == "card")
{

				$scaled_avatar = fetch_scaled_avatar($user, 80, 80);
}
else

				$scaled_avatar = fetch_scaled_avatar($user, 80, 80);
}
else

Zeile 3322Zeile 3441
			$user['view']['avatar'] = "<img src=\"".htmlspecialchars_uni($user['avatar'])."\" alt=\"\" width=\"{$scaled_avatar['width']}\" height=\"{$scaled_avatar['height']}\" />";

if($view['view_type'] == "card")

			$user['view']['avatar'] = "<img src=\"".htmlspecialchars_uni($user['avatar'])."\" alt=\"\" width=\"{$scaled_avatar['width']}\" height=\"{$scaled_avatar['height']}\" />";

if($view['view_type'] == "card")

			{

			{

				$users .= build_user_view_card($user, $view, $i);

				$users .= build_user_view_card($user, $view, $i);

			}

			}

			else
{
build_user_view_table($user, $view, $table);
}

			else
{
build_user_view_table($user, $view, $table);
}

		}

		}


// If card view, we need to output the results
if($view['view_type'] == "card")


// If card view, we need to output the results
if($view['view_type'] == "card")

Zeile 3357Zeile 3476
	else
{
$switch_view .= "<a href=\"{$switch_url}&amp;type=table\" style=\"font-weight: normal;\">{$lang->table_view}</a> | <strong>{$lang->card_view}</strong>";

	else
{
$switch_view .= "<a href=\"{$switch_url}&amp;type=table\" style=\"font-weight: normal;\">{$lang->table_view}</a> | <strong>{$lang->card_view}</strong>";

	}

	}

	$switch_view .= "</div>";

// Do we need to construct the pagination?

	$switch_view .= "</div>";

// Do we need to construct the pagination?

Zeile 3371Zeile 3490
	{
$search_class = '';
$search_style = "text-align: right;";

	{
$search_class = '';
$search_style = "text-align: right;";

	}

	}

	
$search_action = $view['url'];
// stop &username= in the query string
if($view_upos = strpos($search_action, '&amp;username='))
{
$search_action = substr($search_action, 0, $view_upos);

	
$search_action = $view['url'];
// stop &username= in the query string
if($view_upos = strpos($search_action, '&amp;username='))
{
$search_action = substr($search_action, 0, $view_upos);

	}

	}

	$search_action = str_replace("&amp;", "&", $search_action);
$search = new Form(htmlspecialchars_uni($search_action), 'post', 'search_form', 0, '', true);
$built_view = $search->construct_return;
$built_view .= "<div class=\"{$search_class}\" style=\"padding-bottom: 3px; margin-top: -9px; {$search_style}\">";
$built_view .= $search->generate_hidden_field('action', 'search')."\n";
if($view['conditions']['username'])

	$search_action = str_replace("&amp;", "&", $search_action);
$search = new Form(htmlspecialchars_uni($search_action), 'post', 'search_form', 0, '', true);
$built_view = $search->construct_return;
$built_view .= "<div class=\"{$search_class}\" style=\"padding-bottom: 3px; margin-top: -9px; {$search_style}\">";
$built_view .= $search->generate_hidden_field('action', 'search')."\n";
if($view['conditions']['username'])

	{

	{

		$default_class = '';
$value = $view['conditions']['username'];
}

		$default_class = '';
$value = $view['conditions']['username'];
}

Zeile 3413Zeile 3532

var search = document.getElementById('search_keywords');
search.onfocus = function()


var search = document.getElementById('search_keywords');
search.onfocus = function()

		{

		{

			if(this.value == '{$lang->search_for_user}')
{
$(this).removeClassName('search_default');

			if(this.value == '{$lang->search_for_user}')
{
$(this).removeClassName('search_default');

Zeile 3524Zeile 3643
			if($user['view'][$field])
{
$value = $user['view'][$field];

			if($user['view'][$field])
{
$value = $user['view'][$field];

			}

			}

			else
{
$value = $user[$field];

			else
{
$value = $user[$field];

Zeile 3635Zeile 3754
		list($type, $options) = explode("\n", $profile_field['type'], 2);
$type = trim($type);
$field_name = "fid{$profile_field['fid']}";

		list($type, $options) = explode("\n", $profile_field['type'], 2);
$type = trim($type);
$field_name = "fid{$profile_field['fid']}";

 


		switch($type)
{
case "multiselect":

		switch($type)
{
case "multiselect":

Zeile 3687Zeile 3807
				{
$profile_field['length'] = 1;
}

				{
$profile_field['length'] = 1;
}

				$code = $form->generate_select_box("profile_fields[{$field_name}]", $options, $values[$field_name], array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));








				if($search == true)
{
$code = $form->generate_select_box("profile_fields[{$field_name}][{$field_name}]", $options, $values[$field_name], array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));
}
else
{
$code = $form->generate_select_box("profile_fields[{$field_name}]", $options, $values[$field_name], array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));
}

				break;
case "radio":
$radio_options = array();

				break;
case "radio":
$radio_options = array();

Zeile 3728Zeile 3855
				}
break;
case "textarea":

				}
break;
case "textarea":

				$code = $form->generate_text_area("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'rows' => 6, 'cols' => 50));







				$extra = '';
if($mybb->input['action'] == "search")
{
$extra = " {$lang->or} ".$form->generate_check_box("profile_fields[{$field_name}_blank]", 1, $lang->is_not_blank, array('id' => "{$field_name}_blank", 'checked' => $values[$field_name.'_blank']));
}

$code = $form->generate_text_area("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'rows' => 6, 'cols' => 50)).$extra;

				break;
default:

				break;
default:

				$code = $form->generate_text_box("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'maxlength' => $profile_field['maxlength'], 'length' => $profile_field['length']));







				$extra = '';
if($mybb->input['action'] == "search")
{
$extra = " {$lang->or} ".$form->generate_check_box("profile_fields[{$field_name}_blank]", 1, $lang->is_not_blank, array('id' => "{$field_name}_blank", 'checked' => $values[$field_name.'_blank']));
}

$code = $form->generate_text_box("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'maxlength' => $profile_field['maxlength'], 'length' => $profile_field['length'])).$extra;

				break;
}

				break;
}

 


		$form_container->output_row($profile_field['name'], $profile_field['description'], $code, "", array('id' => "profile_field_{$field_name}"));
$code = $user_options = $selected_options = $radio_options = $val = $options = '';
}

		$form_container->output_row($profile_field['name'], $profile_field['description'], $code, "", array('id' => "profile_field_{$field_name}"));
$code = $user_options = $selected_options = $radio_options = $val = $options = '';
}

Zeile 3750Zeile 3890
	
if(!is_array($input['conditions']))
{

	
if(!is_array($input['conditions']))
{

		$input['conditions'] = unserialize($input['conditions']);






		$input['conditions'] = unserialize($input['conditions']);
}

if(!is_array($input['profile_fields']))
{
$input['profile_fields'] = unserialize($input['profile_fields']);

	}

if(!is_array($input['fields']))

	}

if(!is_array($input['fields']))

Zeile 3770Zeile 3915

$form_container->output_row($lang->is_member_of_groups, $lang->additional_user_groups_desc, $form->generate_select_box('conditions[usergroup][]', $options, $input['conditions']['usergroup'], array('id' => 'usergroups', 'multiple' => true, 'size' => 5)), 'usergroups');



$form_container->output_row($lang->is_member_of_groups, $lang->additional_user_groups_desc, $form->generate_select_box('conditions[usergroup][]', $options, $input['conditions']['usergroup'], array('id' => 'usergroups', 'multiple' => true, 'size' => 5)), 'usergroups');


	$form_container->output_row($lang->website_contains, "", $form->generate_text_box('conditions[website]', $input['conditions']['website'], array('id' => 'website')), 'website');
$form_container->output_row($lang->icq_number_contains, "", $form->generate_text_box('conditions[icq]', $input['conditions']['icq'], array('id' => 'icq')), 'icq');
$form_container->output_row($lang->aim_handle_contains, "", $form->generate_text_box('conditions[aim]', $input['conditions']['aim'], array('id' => 'aim')), 'aim');
$form_container->output_row($lang->yahoo_contains, "", $form->generate_text_box('conditions[yahoo]', $input['conditions']['yahoo'], array('id' => 'yahoo')), 'yahoo');
$form_container->output_row($lang->msn_contains, "", $form->generate_text_box('conditions[msn]', $input['conditions']['msn'], array('id' => 'msn')), 'msn');
$form_container->output_row($lang->signature_contains, "", $form->generate_text_box('conditions[signature]', $input['conditions']['signature'], array('id' => 'signature')), 'signature');
$form_container->output_row($lang->user_title_contains, "", $form->generate_text_box('conditions[usertitle]', $input['conditions']['usertitle'], array('id' => 'usertitle')), 'usertitle');

	$form_container->output_row($lang->website_contains, "", $form->generate_text_box('conditions[website]', $input['conditions']['website'], array('id' => 'website'))." {$lang->or} ".$form->generate_check_box('conditions[website_blank]', 1, $lang->is_not_blank, array('id' => 'website_blank', 'checked' => $input['conditions']['website_blank'])), 'website');
$form_container->output_row($lang->icq_number_contains, "", $form->generate_text_box('conditions[icq]', $input['conditions']['icq'], array('id' => 'icq'))." {$lang->or} ".$form->generate_check_box('conditions[icq_blank]', 1, $lang->is_not_blank, array('id' => 'icq_blank', 'checked' => $input['conditions']['icq_blank'])), 'icq');
$form_container->output_row($lang->aim_handle_contains, "", $form->generate_text_box('conditions[aim]', $input['conditions']['aim'], array('id' => 'aim'))." {$lang->or} ".$form->generate_check_box('conditions[aim_blank]', 1, $lang->is_not_blank, array('id' => 'aim_blank', 'checked' => $input['conditions']['aim_blank'])), 'aim');
$form_container->output_row($lang->yahoo_contains, "", $form->generate_text_box('conditions[yahoo]', $input['conditions']['yahoo'], array('id' => 'yahoo'))." {$lang->or} ".$form->generate_check_box('conditions[yahoo_blank]', 1, $lang->is_not_blank, array('id' => 'yahoo_blank', 'checked' => $input['conditions']['yahoo_blank'])), 'yahoo');
$form_container->output_row($lang->msn_contains, "", $form->generate_text_box('conditions[msn]', $input['conditions']['msn'], array('id' => 'msn'))." {$lang->or} ".$form->generate_check_box('conditions[msn_blank]', 1, $lang->is_not_blank, array('id' => 'msn_blank', 'checked' => $input['conditions']['msn_blank'])), 'msn');
$form_container->output_row($lang->signature_contains, "", $form->generate_text_box('conditions[signature]', $input['conditions']['signature'], array('id' => 'signature'))." {$lang->or} ".$form->generate_check_box('conditions[signature_blank]', 1, $lang->is_not_blank, array('id' => 'signature_blank', 'checked' => $input['conditions']['signature_blank'])), 'signature');
$form_container->output_row($lang->user_title_contains, "", $form->generate_text_box('conditions[usertitle]', $input['conditions']['usertitle'], array('id' => 'usertitle'))." {$lang->or} ".$form->generate_check_box('conditions[usertitle_blank]', 1, $lang->is_not_blank, array('id' => 'usertitle_blank', 'checked' => $input['conditions']['usertitle_blank'])), 'usertitle');

	$greater_options = array(
"greater_than" => $lang->greater_than,
"is_exactly" => $lang->is_exactly,

	$greater_options = array(
"greater_than" => $lang->greater_than,
"is_exactly" => $lang->is_exactly,

Zeile 3784Zeile 3929
	);
$form_container->output_row($lang->post_count_is, "", $form->generate_select_box('conditions[postnum_dir]', $greater_options, $input['conditions']['postnum_dir'], array('id' => 'numposts_dir'))." ".$form->generate_text_box('conditions[postnum]', $input['conditions']['postnum'], array('id' => 'numposts')), 'numposts');


	);
$form_container->output_row($lang->post_count_is, "", $form->generate_select_box('conditions[postnum_dir]', $greater_options, $input['conditions']['postnum_dir'], array('id' => 'numposts_dir'))." ".$form->generate_text_box('conditions[postnum]', $input['conditions']['postnum'], array('id' => 'numposts')), 'numposts');


 
	$form_container->output_row($lang->reg_in_x_days, '', $form->generate_text_box('conditions[regdate]', $input['conditions']['regdate'], array('id' => 'regdate')).' '.$lang->days, 'regdate');

	$form_container->output_row($lang->reg_ip_matches, $lang->wildcard, $form->generate_text_box('conditions[regip]', $input['conditions']['regip'], array('id' => 'regip')), 'regip');
$form_container->output_row($lang->last_known_ip, $lang->wildcard, $form->generate_text_box('conditions[lastip]', $input['conditions']['lastip'], array('id' => 'lastip')), 'lastip');
$form_container->output_row($lang->posted_with_ip, $lang->wildcard, $form->generate_text_box('conditions[postip]', $input['conditions']['postip'], array('id' => 'postip')), 'postip');

	$form_container->output_row($lang->reg_ip_matches, $lang->wildcard, $form->generate_text_box('conditions[regip]', $input['conditions']['regip'], array('id' => 'regip')), 'regip');
$form_container->output_row($lang->last_known_ip, $lang->wildcard, $form->generate_text_box('conditions[lastip]', $input['conditions']['lastip'], array('id' => 'lastip')), 'lastip');
$form_container->output_row($lang->posted_with_ip, $lang->wildcard, $form->generate_text_box('conditions[postip]', $input['conditions']['postip'], array('id' => 'postip')), 'postip');

Zeile 3807Zeile 3953
		}
}


		}
}


	output_custom_profile_fields($profile_fields['required'], $mybb->input['profile_fields'], $form_container, $form, true);
output_custom_profile_fields($profile_fields['optional'], $mybb->input['profile_fields'], $form_container, $form, true);

	output_custom_profile_fields($profile_fields['required'], $input['profile_fields'], $form_container, $form, true);
output_custom_profile_fields($profile_fields['optional'], $input['profile_fields'], $form_container, $form, true);

	
$form_container->end();


	
$form_container->end();