Vergleich admin/users.php - 1.2.1 - 1.2.12

  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 3545 2007-12-08 06:04:22Z 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 532Zeile 532
		$db->query("DELETE FROM ".TABLE_PREFIX."forumsubscriptions WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."favorites WHERE uid='".intval($mybb->input['uid'])."'");
$db->query("DELETE FROM ".TABLE_PREFIX."sessions WHERE uid='".intval($mybb->input['uid'])."'");

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



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

		// Update forum stats

		// 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 578Zeile 578
	if($search['aim'])
{
$conditions .= " AND aim LIKE '%".$db->escape_string($search['aim'])."%'";

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

	}

	}

	if($search['yahoo'])

	if($search['yahoo'])

	{

	{

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

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

	{

	{

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

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

	}

	}

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

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

Zeile 625Zeile 625
	$searchop['page']++;

$plugins->run_hooks("admin_users_do_email");

	$searchop['page']++;

$plugins->run_hooks("admin_users_do_email");

 
	
if(!trim($mybb->input['searchop']['subject']))
{
cperror($lang->error_missing_subject);
}
if(!trim($mybb->input['searchop']['message']))
{
cperror($lang->error_missing_subject);
}


$query = $db->query("SELECT COUNT(*) AS results FROM ".TABLE_PREFIX."users WHERE $conditions ORDER BY uid");
$num = $db->fetch_array($query);


$query = $db->query("SELECT COUNT(*) AS results FROM ".TABLE_PREFIX."users WHERE $conditions ORDER BY uid");
$num = $db->fetch_array($query);

Zeile 671Zeile 680
					'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")
{
$updated_user = array(
"pmnotify" => "new"
);
$db->update_query(TABLE_PREFIX."users", $updated_user, "uid='{$user['uid']}'");

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'])
{
$lang->set_path(MYBB_ROOT."inc/languages");
$lang->set_language($uselang);
$lang->load("messages");
$emailsubject = $lang->emailsubject_newpm;
$emailmessage = $lang->email_newpm;
}
else
{
$userlang = new MyLanguage;
$userlang->set_path(MYBB_ROOT."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 679Zeile 734
				echo sprintf($lang->email_sent, $user['username']);
}
else

				echo sprintf($lang->email_sent, $user['username']);
}
else

			{

			{

				echo sprintf($lang->not_sent, $user['username']);
}
echo "<br />";

				echo sprintf($lang->not_sent, $user['username']);
}
echo "<br />";

Zeile 687Zeile 742
		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)


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

			{

			{

				if(is_array($val))

				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 793
		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 833Zeile 890
	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 969
	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']);

Zeile 954Zeile 1013
	makelabelcode("<div align=\"center\">$lang->confirm_delete_user<br /><br />$yes$no</div>", '');
endtable();
endform();

	makelabelcode("<div align=\"center\">$lang->confirm_delete_user<br /><br />$yes$no</div>", '');
endtable();
endform();

	cpfooter();
}


	cpfooter();
}


if($mybb->input['action'] == "showreferrers")
{
cpheader();

if($mybb->input['action'] == "showreferrers")
{
cpheader();

Zeile 1058Zeile 1117
	cpfooter();
}
if($mybb->input['action'] == "merge")

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

{

{

	$plugins->run_hooks("admin_users_merge");
cpheader();
startform("users.php", '', "do_merge");

	$plugins->run_hooks("admin_users_merge");
cpheader();
startform("users.php", '', "do_merge");

Zeile 1092Zeile 1151
	if($posts == 0)
{
$percent = "0%";

	if($posts == 0)
{
$percent = "0%";

	}

	}

	else
{
$percent = $user['postnum']*100/$posts;

	else
{
$percent = $user['postnum']*100/$posts;

Zeile 1122Zeile 1181
		{
$membday = mktime(0, 0, 0, $membday[1], $membday[0], 0);
$membday = gmdate("F j", $membday);

		{
$membday = mktime(0, 0, 0, $membday[1], $membday[0], 0);
$membday = gmdate("F j", $membday);

			$membdayage = '';

			$membdayage = $lang->not_specified;

		}
}
else

		}
}
else

Zeile 1367Zeile 1426
			}
$fid = "fid".$fid;
if(is_array($value))

			}
$fid = "fid".$fid;
if(is_array($value))

			{

			{

				foreach($value as $condition => $text)
{
$conditions .= " AND $fid='".$db->escape_string($condition)."'";

				foreach($value as $condition => $text)
{
$conditions .= " AND $fid='".$db->escape_string($condition)."'";

Zeile 1470Zeile 1529
			echo "<td class=\"subheader\" align=\"center\">$lang->yahoo_handle</td>\n";
}
if($searchdisp['msn'] == 'yes')

			echo "<td class=\"subheader\" align=\"center\">$lang->yahoo_handle</td>\n";
}
if($searchdisp['msn'] == 'yes')

		{

		{

			echo "<td class=\"subheader\" align=\"center\">$lang->msn_address</td>\n";
}
if($searchdisp['signature'] == 'yes')

			echo "<td class=\"subheader\" align=\"center\">$lang->msn_address</td>\n";
}
if($searchdisp['signature'] == 'yes')

Zeile 1504Zeile 1563
		if($searchdisp['ops'] == 'yes')
{
echo "<td class=\"subheader\" align=\"center\">$lang->options</td>\n";

		if($searchdisp['ops'] == 'yes')
{
echo "<td class=\"subheader\" align=\"center\">$lang->options</td>\n";

		}

		}

		echo "</tr>\n";

$options['edit'] = $lang->edit;

		echo "</tr>\n";

$options['edit'] = $lang->edit;

Zeile 1572Zeile 1631
				echo "<td class=\"$bgcolor\">$user[aim]</td>\n";
}
if($searchdisp['yahoo'] == 'yes')

				echo "<td class=\"$bgcolor\">$user[aim]</td>\n";
}
if($searchdisp['yahoo'] == 'yes')

			{

			{

				echo "<td class=\"$bgcolor\">$user[yahoo]</td>\n";
}
if($searchdisp['msn'] == 'yes')

				echo "<td class=\"$bgcolor\">$user[yahoo]</td>\n";
}
if($searchdisp['msn'] == 'yes')

Zeile 1583Zeile 1642
			{
$user['signature'] = nl2br($user['signature']);
echo "<td class=\"$bgcolor\">$user[signature]</td>\n";

			{
$user['signature'] = nl2br($user['signature']);
echo "<td class=\"$bgcolor\">$user[signature]</td>\n";

			}

			}

			if($searchdisp['usertitle'] == 'yes')
{
echo "<td class=\"$bgcolor\">$user[usertitle]</td>\n";
}
if($searchdisp['regdate'] == 'yes')

			if($searchdisp['usertitle'] == 'yes')
{
echo "<td class=\"$bgcolor\">$user[usertitle]</td>\n";
}
if($searchdisp['regdate'] == 'yes')

			{

			{

				$date = gmdate("d-m-Y", $user['regdate']);

				$date = gmdate("d-m-Y", $user['regdate']);

				echo "<td class=\"$bgcolor\">$date</td>\n";
}

				echo "<td class=\"$bgcolor\">$date</td>\n";
}

			if($searchdisp['lastvisit'] == 'yes')
{
if(!$user['lastvisit'])

			if($searchdisp['lastvisit'] == 'yes')
{
if(!$user['lastvisit'])

				{

				{

					$date = $lang->never;

					$date = $lang->never;

				}

				}

				else
{
$date = gmdate("d-m-Y", $user['lastvisit']);

				else
{
$date = gmdate("d-m-Y", $user['lastvisit']);

Zeile 1606Zeile 1665
				echo "<td class=\"$bgcolor\">$date</td>\n";
}
if($searchdisp['postnum'] == 'yes')

				echo "<td class=\"$bgcolor\">$date</td>\n";
}
if($searchdisp['postnum'] == 'yes')

			{

			{

				echo "<td class=\"$bgcolor\"><a href=\"../search.php?action=finduser&amp;uid=$user[uid]\">$user[postnum]</a></td>\n";
}
if($searchdisp['birthday'] == 'yes')

				echo "<td class=\"$bgcolor\"><a href=\"../search.php?action=finduser&amp;uid=$user[uid]\">$user[postnum]</a></td>\n";
}
if($searchdisp['birthday'] == 'yes')

Zeile 1636Zeile 1695
		{
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 1854
		$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 1868
		$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']),