Vergleich admin/users.php - 1.2.0 - 1.2.2

  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 2172 2006-08-30 14:49:42Z Kilroy $

 * $Id: users.php 2427 2006-11-23 17:28:27Z 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 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 551Zeile 553

if($search['username'])
{


if($search['username'])
{

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

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

	}
if(is_array($search['usergroups']))
{

	}
if(is_array($search['usergroups']))
{

Zeile 644Zeile 646
		echo "<tr>\n<td class=\"$bgcolor\" valign=\"top\">\n";
@set_time_limit(0);
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE $conditions ORDER BY uid LIMIT ".intval($searchop['start']).", ".intval($searchop['perpage']));

		echo "<tr>\n<td class=\"$bgcolor\" valign=\"top\">\n";
@set_time_limit(0);
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."users WHERE $conditions ORDER BY uid LIMIT ".intval($searchop['start']).", ".intval($searchop['perpage']));

    while($user = $db->fetch_array($query))

    	while($user = $db->fetch_array($query))

		{
$sendmessage = $searchop['message'];
$sendmessage = str_replace("{uid}", $user['uid'], $sendmessage);

		{
$sendmessage = $searchop['message'];
$sendmessage = str_replace("{uid}", $user['uid'], $sendmessage);

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 867Zeile 907

cpheader();
starttable();


cpheader();
starttable();

	makelabelcode("<ul>\n<li><a href=\"users.php?".SID."&action=delete&uid=$uid\">$lang->delete_account</a></li>\n<li><a href=\"users.php?".SID."&action=misc&uid=$uid\">$lang->view_user_stats</a></li>\n</ul>");

	makelabelcode("<ul>\n<li><a href=\"users.php?".SID."&amp;action=delete&amp;uid=$uid\">$lang->delete_account</a></li>\n<li><a href=\"users.php?".SID."&amp;action=misc&amp;uid=$uid\">$lang->view_user_stats</a></li>\n</ul>");

	endtable();

starttable();

	endtable();

starttable();

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 1015Zeile 1055
		echo "<tr>\n<td class=\"$bgcolor\" width=\"40%\">$user[regip]</td>\n";
echo "<td class=\"$bgcolor\" align=\"right\" width=\"60%\"><input type=\"button\" value=\"$lang->find_users_reg_with_ip\" onclick=\"hopto('users.php?".SID."&action=find&search[regip]=$user[regip]');\" class=\"submitbutton\" /> <input type=\"button\" value=\"$lang->find_users_posted_with_ip\" onclick=\"hopto('users.php?".SID."&action=find&search[postip]=$user[regip]');\" class=\"submitbutton\" />";
echo "</td>\n</tr>\n";

		echo "<tr>\n<td class=\"$bgcolor\" width=\"40%\">$user[regip]</td>\n";
echo "<td class=\"$bgcolor\" align=\"right\" width=\"60%\"><input type=\"button\" value=\"$lang->find_users_reg_with_ip\" onclick=\"hopto('users.php?".SID."&action=find&search[regip]=$user[regip]');\" class=\"submitbutton\" /> <input type=\"button\" value=\"$lang->find_users_posted_with_ip\" onclick=\"hopto('users.php?".SID."&action=find&search[postip]=$user[regip]');\" class=\"submitbutton\" />";
echo "</td>\n</tr>\n";

	}

	}

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

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

Zeile 1239Zeile 1279
	$searchdisp = $mybb->input['searchdisp'];
$search = $mybb->input['search'];
$searchop = $mybb->input['searchop'];

	$searchdisp = $mybb->input['searchdisp'];
$search = $mybb->input['search'];
$searchop = $mybb->input['searchop'];





	$dispcount = count($searchdisp);
$yescount = 0;
if($mybb->input['searchdisp'])

	$dispcount = count($searchdisp);
$yescount = 0;
if($mybb->input['searchdisp'])

Zeile 1462Zeile 1502
			echo "<td class=\"subheader\" align=\"center\">$lang->icq_number</td>\n";
}
if($searchdisp['aim'] == 'yes')

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

		{

		{

			echo "<td class=\"subheader\" align=\"center\">$lang->aim_handle</td>\n";

			echo "<td class=\"subheader\" align=\"center\">$lang->aim_handle</td>\n";

		}

		}

		if($searchdisp['yahoo'] == 'yes')

		if($searchdisp['yahoo'] == 'yes')

		{

		{

			echo "<td class=\"subheader\" align=\"center\">$lang->yahoo_handle</td>\n";

			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['msn'] == 'yes')
{
echo "<td class=\"subheader\" align=\"center\">$lang->msn_address</td>\n";

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

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

		}

		}

		if($searchdisp['usertitle'] == 'yes')

		if($searchdisp['usertitle'] == 'yes')

		{

		{

			echo "<td class=\"subheader\" align=\"center\">$lang->usertitle</td>\n";

			echo "<td class=\"subheader\" align=\"center\">$lang->usertitle</td>\n";

		}

		}

		if($searchdisp['regdate'] == 'yes')

		if($searchdisp['regdate'] == 'yes')

		{

		{

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

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

Zeile 1490Zeile 1530
			echo "<td class=\"subheader\" align=\"center\">$lang->last_visit</td>\n";
}
if($searchdisp['postnum'] == 'yes')

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

		{

		{

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

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

Zeile 1518Zeile 1558
			foreach($user as $name => $value)
{
$user[$name] = htmlspecialchars_uni($value);

			foreach($user as $name => $value)
{
$user[$name] = htmlspecialchars_uni($value);

			}

			}

			if($user['usergroup'] == 5)

			if($user['usergroup'] == 5)

			{

			{

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

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

			}

			}

			$bgcolor = getaltbg();

			$bgcolor = getaltbg();

			startform("users.php");
makehiddencode("uid", $user['uid']);
makehiddencode("auid", $user['uid']);

 
			echo "<tr>\n";
if($searchdisp['uid'] == 'yes')
{

			echo "<tr>\n";
if($searchdisp['uid'] == 'yes')
{

Zeile 1535Zeile 1572
			if($searchdisp['username'] == 'yes')
{
echo "<td class=\"$bgcolor\">$user[username]</td>\n";

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

			}

			}

			if($searchdisp['usergroup'] == 'yes')
{
echo "<td class=\"$bgcolor\" align=\"center\">";

			if($searchdisp['usergroup'] == 'yes')
{
echo "<td class=\"$bgcolor\" align=\"center\">";

Zeile 1560Zeile 1597
			}
if($searchdisp['email'] == 'yes')
{

			}
if($searchdisp['email'] == 'yes')
{

				echo "<td class=\"$bgcolor\"><a href=\"mailto:$user[email]\">$user[email]</td>\n";

				echo "<td class=\"$bgcolor\"><a href=\"mailto:$user[email]\">$user[email]</a></td>\n";

			}
if($searchdisp['website'] == 'yes')
{

			}
if($searchdisp['website'] == 'yes')
{

Zeile 1578Zeile 1615
			{
echo "<td class=\"$bgcolor\">$user[yahoo]</td>\n";
}

			{
echo "<td class=\"$bgcolor\">$user[yahoo]</td>\n";
}

			if($searchdisp['msn'] == 'yes') {


			if($searchdisp['msn'] == 'yes') 
{

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

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

Zeile 1609Zeile 1647
			}
if($searchdisp['postnum'] == 'yes')
{

			}
if($searchdisp['postnum'] == 'yes')
{

				echo "<td class=\"$bgcolor\"><a href=\"../search.php?action=finduser&uid=$user[uid]\">$user[postnum]</a></td>\n";

				echo "<td class=\"$bgcolor\"><a href=\"../search.php?action=finduser&amp;uid=$user[uid]\">$user[postnum]</a></td>\n";

			}
if($searchdisp['birthday'] == 'yes')
{

			}
if($searchdisp['birthday'] == 'yes')
{

Zeile 1621Zeile 1659
			}
if($searchdisp['ops'] == 'yes')
{

			}
if($searchdisp['ops'] == 'yes')
{

				echo "<td class=\"$bgcolor\" align=\"right\">".makehopper("action", $options)."</td>\n";







				echo "<td class=\"$bgcolor\" align=\"right\">";
startform("users.php");
makehiddencode("uid", $user['uid']);
makehiddencode("auid", $user['uid']);
echo makehopper("action", $options);
endform();
echo"</td>\n";

			}
echo "</tr>\n";

			}
echo "</tr>\n";

			endform();

 
		}
endtable();


		}
endtable();


Zeile 1713Zeile 1756
			echo '</div>';
}
echo $first_page_button.$prev_page_button.$next_page_button.$last_page_button;

			echo '</div>';
}
echo $first_page_button.$prev_page_button.$next_page_button.$last_page_button;

		echo '</div>';

 
		cpfooter();
}
}

		cpfooter();
}
}

Zeile 1781Zeile 1823
		$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 1795Zeile 1837
		$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']),