Vergleich admin/users.php - 1.2.1 - 1.2.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: users.php 2261 2006-09-26 07:49:02Z chris $

 * $Id: users.php 3042 2007-05-06 05:08:28Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 338Zeile 338
		"timezone" => $mybb->input['timezoneoffset'],
"language" => $mybb->input['language'],
"profile_fields" => $mybb->input['profile_fields'],

		"timezone" => $mybb->input['timezoneoffset'],
"language" => $mybb->input['language'],
"profile_fields" => $mybb->input['profile_fields'],

 
		"profile_fields_editable" => true,

		"regip" => $mybb->input['ipaddress'],
"avatar" => $mybb->input['avatar'],
"website" => $mybb->input['website'],

		"regip" => $mybb->input['ipaddress'],
"avatar" => $mybb->input['avatar'],
"website" => $mybb->input['website'],

Zeile 404Zeile 405
		$emailmessage = sprintf($lang->email_activateaccount, $username, $mybb->settings['bbname'], $mybb->settings['bburl'], $uid, $activationcode);
my_mail($email, $emailsubject, $emailmessage);
}

		$emailmessage = sprintf($lang->email_activateaccount, $username, $mybb->settings['bbname'], $mybb->settings['bburl'], $uid, $activationcode);
my_mail($email, $emailsubject, $emailmessage);
}

	$cache->updatestats();

 
	cpredirect("users.php?".SID."&lastuid={$user_info['uid']}", $lang->user_added);
}


	cpredirect("users.php?".SID."&lastuid={$user_info['uid']}", $lang->user_added);
}


Zeile 452Zeile 452
		"timezone" => $mybb->input['timezoneoffset'],
"language" => $mybb->input['language'],
"profile_fields" => $mybb->input['profile_fields'],

		"timezone" => $mybb->input['timezoneoffset'],
"language" => $mybb->input['language'],
"profile_fields" => $mybb->input['profile_fields'],

 
		"profile_fields_editable" => true,

		"regip" => $mybb->input['ipaddress'],
"avatar" => $mybb->input['avatar'],
"website" => $mybb->input['website'],

		"regip" => $mybb->input['ipaddress'],
"avatar" => $mybb->input['avatar'],
"website" => $mybb->input['website'],

Zeile 507Zeile 508
	{
$user_info = $userhandler->update_user();
}

	{
$user_info = $userhandler->update_user();
}

	$cache->updatestats();

 

cpredirect("users.php?".SID."&lastuid={$mybb->input['uid']}", $lang->profile_updated);
}


cpredirect("users.php?".SID."&lastuid={$mybb->input['uid']}", $lang->profile_updated);
}

Zeile 534Zeile 534
		$db->query("DELETE FROM ".TABLE_PREFIX."sessions WHERE uid='".intval($mybb->input['uid'])."'");

// Update forum stats

		$db->query("DELETE FROM ".TABLE_PREFIX."sessions WHERE uid='".intval($mybb->input['uid'])."'");

// Update forum stats

		$cache->updatestats();

		update_stats(array('numusers' => '-1'));


cpredirect("users.php?".SID, $lang->user_deleted);
}


cpredirect("users.php?".SID, $lang->user_deleted);
}

Zeile 671Zeile 671
					'receipt' => 'no'
);
$db->insert_query(TABLE_PREFIX."privatemessages", $insert_pm);

					'receipt' => 'no'
);
$db->insert_query(TABLE_PREFIX."privatemessages", $insert_pm);

 
				
// Update private message count (total, new and unread) for recipient
update_pm_count($user['uid'], 7, $user['lastactive']);

if($user['pmnotify'] == "yes")
{
if($user['language'] != "" && $lang->language_exists($user['language']))
{
$uselang = $user['language'];
}
elseif($mybb->settings['bblanguage'])
{
$uselang = $mybb->settings['bblanguage'];
}
else
{
$uselang = "english";
}

if($uselang == $mybb->settings['bblanguage'])
{
$emailsubject = $lang->emailsubject_newpm;
$emailmessage = $lang->email_newpm;
}
else
{
$userlang = new MyLanguage;
$userlang->set_path("./inc/languages");
$userlang->set_language($uselang);
$userlang->load("messages");
$emailsubject = $userlang->emailsubject_newpm;
$emailmessage = $userlang->email_newpm;
}
$emailmessage = sprintf($emailmessage, $user['username'], $mybbadmin['username'], $mybb->settings['bbname'], $mybb->settings['bburl']);
$emailsubject = sprintf($emailsubject, $mybb->settings['bbname']);
my_mail($user['email'], $emailsubject, $emailmessage);
}


				echo sprintf($lang->pm_sent, $user['username']);
}
elseif($user['email'] != '')

				echo sprintf($lang->pm_sent, $user['username']);
}
elseif($user['email'] != '')

Zeile 687Zeile 725
		echo $lang->done;
echo "</td>\n</tr>\n";
endtable();

		echo $lang->done;
echo "</td>\n</tr>\n";
endtable();

		startform("users.php", '', "do_email");
if(is_array($search))

		if($num['results'] > $searchop['perpage'])


		{

		{

			foreach($search as $key => $val)
{
if(is_array($val))


			startform("users.php", '', "do_email");
if(is_array($search))
{
foreach($search as $key => $val)

				{

				{

					foreach($val as $subkey => $subval)








					if(is_array($val))
{
foreach($val as $subkey => $subval)
{
$hiddens .= "\n<input type=\"hidden\" name=\"search[$key][$subkey]\" value=\"".htmlspecialchars_uni($subval)."\" />";
}
}
else

					{

					{

						$hiddens .= "\n<input type=\"hidden\" name=\"search[$key][$subkey]\" value=\"$subval\" />";

						$hiddens .= "\n<input type=\"hidden\" name=\"search[$key]\" value=\"".htmlspecialchars_uni($val)."\" />";

					}

					}

				}
else
{
$hiddens .= "\n<input type=\"hidden\" name=\"search[$key]\" value=\"$val\" />";

 
				}
}

				}
}

		}
foreach($searchop as $key => $val)
{
$hiddens .= "\n<input type=\"hidden\" name=\"searchop[$key]\" value=\"$val\" />";
}
echo $hiddens;
if($num['results'] > $searchop['perpage'])
{

			foreach($searchop as $key => $val)
{
$hiddens .= "\n<input type=\"hidden\" name=\"searchop[$key]\" value=\"".htmlspecialchars_uni($val)."\" />";
}
echo $hiddens;




			endform($lang->next_page, '');
}
cpfooter();

			endform($lang->next_page, '');
}
cpfooter();

Zeile 738Zeile 776
		cperror($lang->error_invalid_destination);
}
$plugins->run_hooks("admin_users_do_do_merge");

		cperror($lang->error_invalid_destination);
}
$plugins->run_hooks("admin_users_do_do_merge");

 
	$db->query("UPDATE ".TABLE_PREFIX."adminoptions SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."adminlog SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."announcements SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."events SET author='".$destuser['uid']."' WHERE author='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."favorites SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."adminlog SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."announcements SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."events SET author='".$destuser['uid']."' WHERE author='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."favorites SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."forums SET lastposter='".$destuser['username']."' WHERE lastposter='".$sourceuser['username']."'");

	$db->query("UPDATE ".TABLE_PREFIX."forums SET lastposter='".$db->escape_string($destuser['username'])."' WHERE lastposter='".$db->escape_string($sourceuser['username'])."'");

	$db->query("UPDATE ".TABLE_PREFIX."forumsubscriptions SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."moderatorlog SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."moderators SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."pollvotes SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."forumsubscriptions SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."moderatorlog SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."moderators SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."pollvotes SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."posts SET uid='".$destuser['uid']."', username='".$destuser['username']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."posts SET uid='".$destuser['uid']."', username='".$db->escape_string($destuser['username'])."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."posts SET edituid='".$destuser['uid']."' WHERE edituid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET toid='".$destuser['uid']."' WHERE toid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET fromid='".$destuser['uid']."' WHERE fromid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."reputation SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."threadratings SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."posts SET edituid='".$destuser['uid']."' WHERE edituid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET toid='".$destuser['uid']."' WHERE toid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET fromid='".$destuser['uid']."' WHERE fromid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."reputation SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."threadratings SET uid='".$destuser['uid']."' WHERE uid='".$sourceuser['uid']."'");

	$db->query("UPDATE ".TABLE_PREFIX."threads SET uid='".$destuser['uid']."', username='".$destuser['username']."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."threads SET lastposter='".$destuser['username']."', username='".$destuser['username']."' WHERE lastposter='".$sourceuser['username']."'");

	$db->query("UPDATE ".TABLE_PREFIX."threads SET uid='".$destuser['uid']."', username='".$db->escape_string($destuser['username'])."' WHERE uid='".$sourceuser['uid']."'");
$db->query("UPDATE ".TABLE_PREFIX."threads SET lastposter='".$db->escape_string($destuser['username'])."', username='".$db->escape_string($destuser['username'])."' WHERE lastposter='".$db->escape_string($sourceuser['username'])."'");

	$db->query("DELETE FROM ".TABLE_PREFIX."users WHERE uid='".$sourceuser['uid']."'");
$db->query("DELETE FROM ".TABLE_PREFIX."banned WHERE uid='".$sourceuser['uid']."'");
$query = $db->query("SELECT COUNT(*) AS postnum FROM ".TABLE_PREFIX."posts WHERE uid='".$destuser['uid']."'");
$num = $db->fetch_array($query);
$db->query("UPDATE ".TABLE_PREFIX."users SET postnum='".$num['postnum']."' WHERE uid='".$destuser['uid']."'");

	$db->query("DELETE FROM ".TABLE_PREFIX."users WHERE uid='".$sourceuser['uid']."'");
$db->query("DELETE FROM ".TABLE_PREFIX."banned WHERE uid='".$sourceuser['uid']."'");
$query = $db->query("SELECT COUNT(*) AS postnum FROM ".TABLE_PREFIX."posts WHERE uid='".$destuser['uid']."'");
$num = $db->fetch_array($query);
$db->query("UPDATE ".TABLE_PREFIX."users SET postnum='".$num['postnum']."' WHERE uid='".$destuser['uid']."'");

 
	update_stats(array('numusers' => '-1'));

	$lang->users_merged = sprintf($lang->users_merged, $sourceuser['username'], $sourceuser['username'], $destuser['username']);
cpmessage($lang->users_merged);
}

	$lang->users_merged = sprintf($lang->users_merged, $sourceuser['username'], $sourceuser['username'], $destuser['username']);
cpmessage($lang->users_merged);
}

Zeile 771Zeile 811
	if(!$sourceuser['uid'])
{
cperror($lang->error_invalid_source);

	if(!$sourceuser['uid'])
{
cperror($lang->error_invalid_source);

	}

	}


$query = $db->simple_select(TABLE_PREFIX."users", "uid, username", "username='".$db->escape_string($mybb->input['destination'])."'");
$destuser = $db->fetch_array($query);


$query = $db->simple_select(TABLE_PREFIX."users", "uid, username", "username='".$db->escape_string($mybb->input['destination'])."'");
$destuser = $db->fetch_array($query);

Zeile 801Zeile 841
	$plugins->run_hooks("admin_users_add");
cpheader();
startform("users.php", '', "do_add", 0);

	$plugins->run_hooks("admin_users_add");
cpheader();
startform("users.php", '', "do_add", 0);

	starttable();

	starttable();

	tableheader($lang->add_user);
tablesubheader($lang->required_info);
makeinputcode($lang->username, "userusername", '', 25, '', $mybb->settings['maxnamelength'], 0);

	tableheader($lang->add_user);
tablesubheader($lang->required_info);
makeinputcode($lang->username, "userusername", '', 25, '', $mybb->settings['maxnamelength'], 0);

Zeile 833Zeile 873
	makelabelcode($lang->birthday, $birthday_dropdown);
make_profile_field_input();
tablesubheader($lang->account_prefs);

	makelabelcode($lang->birthday, $birthday_dropdown);
make_profile_field_input();
tablesubheader($lang->account_prefs);

 
	makeyesnocode($lang->enable_dst, "enabledst", 'no');

	makeyesnocode($lang->invisible_mode, "invisible", 'no');
makeyesnocode($lang->admin_emails, "allownotices", 'yes');
makeyesnocode($lang->hide_email, "hideemail", 'no');

	makeyesnocode($lang->invisible_mode, "invisible", 'no');
makeyesnocode($lang->admin_emails, "allownotices", 'yes');
makeyesnocode($lang->hide_email, "hideemail", 'no');

Zeile 911Zeile 952
	makelabelcode($lang->birthday, $birthday_dropdown);
make_profile_field_input(0, $user['uid']);
tablesubheader($lang->account_prefs);

	makelabelcode($lang->birthday, $birthday_dropdown);
make_profile_field_input(0, $user['uid']);
tablesubheader($lang->account_prefs);

 
	makeyesnocode($lang->enable_dst, "enabledst", $user['dst']);

	makeyesnocode($lang->invisible_mode, "invisible", $user['invisible']);
makeyesnocode($lang->admin_emails, "allownotices", $user['allownotices']);
makeyesnocode($lang->hide_email, "hideemail", $user['hideemail']);
makeyesnocode($lang->email_notify, "emailnotify", $user['emailnotify']);
makeyesnocode($lang->enable_pms, "receivepms", $user['receivepms']);
makeyesnocode($lang->pm_popup, "pmpopup", $user['pmpopup']);

	makeyesnocode($lang->invisible_mode, "invisible", $user['invisible']);
makeyesnocode($lang->admin_emails, "allownotices", $user['allownotices']);
makeyesnocode($lang->hide_email, "hideemail", $user['hideemail']);
makeyesnocode($lang->email_notify, "emailnotify", $user['emailnotify']);
makeyesnocode($lang->enable_pms, "receivepms", $user['receivepms']);
makeyesnocode($lang->pm_popup, "pmpopup", $user['pmpopup']);

	makeyesnocode($lang->pm_notify, "pmnotify", $user['pmnotify']);

	makeyesnocode($lang->pm_notify, "emailpmnotify", $user['pmnotify']);

	makeinputcode($lang->time_offset, "timezoneoffset", $user['timezone']);
if(!$user['style'])
{
$user['style'] = 0;

	makeinputcode($lang->time_offset, "timezoneoffset", $user['timezone']);
if(!$user['style'])
{
$user['style'] = 0;

	}
makeselectcode($lang->style, "stylesel", "themes", "tid", "name", $user['style'], $lang->use_default, '', "tid>1");

	}
makeselectcode($lang->style, "style", "themes", "tid", "name", $user['style'], $lang->use_default, '', "tid>1");

	maketextareacode($lang->signature, "signature", $user['signature'], 6, 50);
if(!$user['regip']) { $user['regip'] = "&nbsp;"; }
makelabelcode($lang->reg_ip, $user['regip']);

	maketextareacode($lang->signature, "signature", $user['signature'], 6, 50);
if(!$user['regip']) { $user['regip'] = "&nbsp;"; }
makelabelcode($lang->reg_ip, $user['regip']);





	endtable();
endform($lang->update_user, $lang->reset_button);
}

	endtable();
endform($lang->update_user, $lang->reset_button);
}

Zeile 936Zeile 978
	if(is_super_admin($mybb->input['uid']) && $mybb->user['uid'] != $mybb->input['uid'] && !is_super_admin($mybb->user['uid']))
{
cperror($lang->cannot_perform_action_super_admin);

	if(is_super_admin($mybb->input['uid']) && $mybb->user['uid'] != $mybb->input['uid'] && !is_super_admin($mybb->user['uid']))
{
cperror($lang->cannot_perform_action_super_admin);

	}

$uid = intval($mybb->input['uid']);

	}

$uid = intval($mybb->input['uid']);

	$query = $db->simple_select(TABLE_PREFIX."users", "username", "uid='$uid'");
$user = $db->fetch_array($query);
$plugins->run_hooks("admin_users_delete");

	$query = $db->simple_select(TABLE_PREFIX."users", "username", "uid='$uid'");
$user = $db->fetch_array($query);
$plugins->run_hooks("admin_users_delete");

Zeile 1042Zeile 1084
	endtable();
}
if($mybb->input['action'] == "misc")

	endtable();
}
if($mybb->input['action'] == "misc")

{

{

	$plugins->run_hooks("admin_users_misc");
cpheader();
$uid = intval($mybb->input['uid']);

	$plugins->run_hooks("admin_users_misc");
cpheader();
$uid = intval($mybb->input['uid']);

Zeile 1281Zeile 1323
		foreach($search['additionalgroups'] as $group)
{
$conditions .= " AND CONCAT(',',additionalgroups,',') LIKE '%,".intval($group).",%'";

		foreach($search['additionalgroups'] as $group)
{
$conditions .= " AND CONCAT(',',additionalgroups,',') LIKE '%,".intval($group).",%'";

		}
}

		}
}

    if(is_array($search['usergroups']) && count($search['usergroups']) > 0)
{
// Searching for users in both primary usergroups and secondary usergroups

    if(is_array($search['usergroups']) && count($search['usergroups']) > 0)
{
// Searching for users in both primary usergroups and secondary usergroups

Zeile 1290Zeile 1332
		{
$conditions .= " AND (usergroup='".intval($group)."' OR CONCAT(',',additionalgroups,',') LIKE '%,".intval($group).",%')";
}

		{
$conditions .= " AND (usergroup='".intval($group)."' OR CONCAT(',',additionalgroups,',') LIKE '%,".intval($group).",%')";
}

	}

	}

	if($search['email'])
{
$search['email'] = $db->escape_string($search['email']);
$conditions .= " AND email LIKE '%$search[email]%'";
}
if($search['website'])

	if($search['email'])
{
$search['email'] = $db->escape_string($search['email']);
$conditions .= " AND email LIKE '%$search[email]%'";
}
if($search['website'])

	{

	{

		$search['website'] = $db->escape_string($search['website']);
$conditions .= " AND website LIKE '%$search[website]%'";
}

		$search['website'] = $db->escape_string($search['website']);
$conditions .= " AND website LIKE '%$search[website]%'";
}

Zeile 1305Zeile 1347
	{
$search['icq'] = intval($search['icq']);
$conditions .= " AND icq LIKE '%$search[icq]%'";

	{
$search['icq'] = intval($search['icq']);
$conditions .= " AND icq LIKE '%$search[icq]%'";

	}

	}

	if($search['aim'])
{
$search['aim'] = $db->escape_string($search['aim']);
$conditions .= " AND aim LIKE '%$search[aim]%'";
}
if($search['yahoo'])

	if($search['aim'])
{
$search['aim'] = $db->escape_string($search['aim']);
$conditions .= " AND aim LIKE '%$search[aim]%'";
}
if($search['yahoo'])

	{

	{

		$search['yahoo'] = $db->escape_string($search['yahoo']);
$conditions .= " AND yahoo LIKE '%$search[yahoo]%'";
}

		$search['yahoo'] = $db->escape_string($search['yahoo']);
$conditions .= " AND yahoo LIKE '%$search[yahoo]%'";
}

Zeile 1320Zeile 1362
	{
$search['msn'] = $db->escape_string($search['msn']);
$conditions .= " AND msn LIKE '%$search[msn]%'";

	{
$search['msn'] = $db->escape_string($search['msn']);
$conditions .= " AND msn LIKE '%$search[msn]%'";

	}

	}

	if($search['signature'])
{
$search['signature'] = $db->escape_string($search['signature']);
$conditions .= " AND signature LIKE '%$search[signature]%'";
}
if($search['usertitle'])

	if($search['signature'])
{
$search['signature'] = $db->escape_string($search['signature']);
$conditions .= " AND signature LIKE '%$search[signature]%'";
}
if($search['usertitle'])

	{

	{

		$search['usertitle'] = $db->escape_string($search['usertitle']);
$conditions .= " AND usertitle LIKE '%$search[usertitle]%'";
}

		$search['usertitle'] = $db->escape_string($search['usertitle']);
$conditions .= " AND usertitle LIKE '%$search[usertitle]%'";
}

Zeile 1335Zeile 1377
	{
$search['postsgreater'] = intval($search['postsgreater']);
$conditions .= " AND postnum>$search[postsgreater]";

	{
$search['postsgreater'] = intval($search['postsgreater']);
$conditions .= " AND postnum>$search[postsgreater]";

	}

	}

	if($search['postsless'])
{
$search['postsless'] = intval($search['postsless']);
$conditions .= " AND postnum<$search[postsless]";
}
if($search['regip'])

	if($search['postsless'])
{
$search['postsless'] = intval($search['postsless']);
$conditions .= " AND postnum<$search[postsless]";
}
if($search['regip'])

	{

	{

		$search['regip'] = $db->escape_string($search['regip']);
$conditions .= " AND regip LIKE '$search[regip]%'";
}

		$search['regip'] = $db->escape_string($search['regip']);
$conditions .= " AND regip LIKE '$search[regip]%'";
}

Zeile 1372Zeile 1414
				{
$conditions .= " AND $fid='".$db->escape_string($condition)."'";
}

				{
$conditions .= " AND $fid='".$db->escape_string($condition)."'";
}

			}

			}

			else
{
$conditions .= " AND $fid='".$db->escape_string($value)."'";

			else
{
$conditions .= " AND $fid='".$db->escape_string($value)."'";

Zeile 1401Zeile 1443
	else
{
$searchop['start'] = ($searchop['page']-1) * $searchop['perpage'];

	else
{
$searchop['start'] = ($searchop['page']-1) * $searchop['perpage'];

	}

	}

	$searchop['page'];

$plugins->run_hooks("admin_users_find");

	$searchop['page'];

$plugins->run_hooks("admin_users_find");

Zeile 1636Zeile 1678
		{
foreach($search as $key => $val)
{

		{
foreach($search as $key => $val)
{

				if($key != 'additionalgroups' && $key != "profilefields")

				if($key != 'usergroups' && $key != 'additionalgroups' && $key != "profilefields")

				{
$hiddens .= "<input type=\"hidden\" name=\"search[$key]\" value=\"$val\" />";
}
}
}

				{
$hiddens .= "<input type=\"hidden\" name=\"search[$key]\" value=\"$val\" />";
}
}
}

 
		if(is_array($search['usergroups']))
{
foreach($search['usergroups'] as $key => $val)
{
$hiddens .= "<input type=\"hidden\" name=\"search[usergroups][]\" value=\"$val\" />";
}
}
else if($search['usergroups'])
{
$hiddens .= "<input type=\"hidden\" name=\"search[usergroups]\" value=\"$val\" />";
}


		if(is_array($search['additionalgroups']))
{
foreach($search['additionalgroups'] as $key => $val)

		if(is_array($search['additionalgroups']))
{
foreach($search['additionalgroups'] as $key => $val)

Zeile 1783Zeile 1837
		$banneduser = array(
"admin" => $mybbadmin['uid'],
"dateline" => time(),

		$banneduser = array(
"admin" => $mybbadmin['uid'],
"dateline" => time(),

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

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

			"bantime" => $db->escape_string($mybb->input['liftafter']),
"lifted" => $liftdate,
"reason" => $db->escape_string($mybb->input['banreason'])

			"bantime" => $db->escape_string($mybb->input['liftafter']),
"lifted" => $liftdate,
"reason" => $db->escape_string($mybb->input['banreason'])

Zeile 1797Zeile 1851
		$banneduser = array(
"uid" => $user['uid'],
"admin" => $mybbadmin['uid'],

		$banneduser = array(
"uid" => $user['uid'],
"admin" => $mybbadmin['uid'],

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

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

			"oldgroup" => $user['usergroup'],
"dateline" => time(),
"bantime" => $db->escape_string($mybb->input['liftafter']),

			"oldgroup" => $user['usergroup'],
"dateline" => time(),
"bantime" => $db->escape_string($mybb->input['liftafter']),