Vergleich admin/users.php - 1.2.1 - 1.2.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

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

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

 * $Id: users.php 2630 2007-01-11 10:51:24Z chris $

 */

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 452Zeile 453
		"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 671Zeile 673
					'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 679Zeile 719
				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 727
		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 917Zeile 957
	makeyesnocode($lang->email_notify, "emailnotify", $user['emailnotify']);
makeyesnocode($lang->enable_pms, "receivepms", $user['receivepms']);
makeyesnocode($lang->pm_popup, "pmpopup", $user['pmpopup']);

	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['emailpmnotify']);

	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 1038Zeile 1078
	else
{
makelabelcode($lang->error_no_ips, '', 2);

	else
{
makelabelcode($lang->error_no_ips, '', 2);

	}
endtable();
}

	}
endtable();
}

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

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

Zeile 1520Zeile 1560
				$user[$name] = htmlspecialchars_uni($value);
}
if($user['usergroup'] == 5)

				$user[$name] = htmlspecialchars_uni($value);
}
if($user['usergroup'] == 5)

			{

			{

				$options['activate'] = $lang->activate;
}
$bgcolor = getaltbg();

				$options['activate'] = $lang->activate;
}
$bgcolor = getaltbg();

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

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

			{

			{

				$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";
}

Zeile 1610Zeile 1650
				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')

			{

			{

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

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

Zeile 1636Zeile 1676
		{
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 1835
		$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 1849
		$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']),