Vergleich admin/users.php - 1.2.0 - 1.2.5

  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 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 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 1032Zeile 1072
				echo "<tr>\n<td class=\"$bgcolor\" valign=\"top\" width=\"40%\">$row[ipaddress]</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]=$row[ipaddress]');\" class=\"submitbutton\" /> <input type=\"button\" value=\"$lang->find_users_posted_with_ip\" onclick=\"hopto('users.php?".SID."&action=find&search[postip]=$row[ipaddress]');\" class=\"submitbutton\" />";
echo "</td>\n</tr>\n";

				echo "<tr>\n<td class=\"$bgcolor\" valign=\"top\" width=\"40%\">$row[ipaddress]</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]=$row[ipaddress]');\" class=\"submitbutton\" /> <input type=\"button\" value=\"$lang->find_users_posted_with_ip\" onclick=\"hopto('users.php?".SID."&action=find&search[postip]=$row[ipaddress]');\" class=\"submitbutton\" />";
echo "</td>\n</tr>\n";

			}
}
}
else
{

			}
}
}
else
{

		makelabelcode($lang->error_no_ips, '', 2);
}
endtable();

		makelabelcode($lang->error_no_ips, '', 2);
}
endtable();

Zeile 1155Zeile 1195

$query = $db->simple_select(TABLE_PREFIX."privatemessages", "COUNT(*) AS total", "uid='$uid'");
$pmscount = $db->fetch_array($query);


$query = $db->simple_select(TABLE_PREFIX."privatemessages", "COUNT(*) AS total", "uid='$uid'");
$pmscount = $db->fetch_array($query);





	$query = $db->simple_select(TABLE_PREFIX."privatemessages", "COUNT(*) AS newpms", "uid='$uid' AND dateline>$user[lastvisit] AND folder='1'");
$newpmscount = $db->fetch_array($query);


	$query = $db->simple_select(TABLE_PREFIX."privatemessages", "COUNT(*) AS newpms", "uid='$uid' AND dateline>$user[lastvisit] AND folder='1'");
$newpmscount = $db->fetch_array($query);


Zeile 1392Zeile 1432
	if(!$searchop['perpage'])
{
$searchop['perpage'] = '30';

	if(!$searchop['perpage'])
{
$searchop['perpage'] = '30';

	}

	}

	if(!$searchop['page'])
{
$searchop['page'] = '1';

	if(!$searchop['page'])
{
$searchop['page'] = '1';

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

				$options['activate'] = $lang->activate;
}
$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 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')
{
$user['signature'] = nl2br($user['signature']);
echo "<td class=\"$bgcolor\">$user[signature]</td>\n";

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

			}

			}

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

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

Zeile 1606Zeile 1644
					$date = gmdate("d-m-Y", $user['lastvisit']);
}
echo "<td class=\"$bgcolor\">$date</td>\n";

					$date = gmdate("d-m-Y", $user['lastvisit']);
}
echo "<td class=\"$bgcolor\">$date</td>\n";

			}

			}

			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')
{
echo "<td class=\"$bgcolor\">$user[birthday]</td>\n";

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

			}

			}

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

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

			{

			{

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

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

			}

			}

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

// Generate hiddens for form for next/prev pages
if(is_array($search))

		}
endtable();

// Generate hiddens for form for next/prev pages
if(is_array($search))

		{

		{

			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 1713Zeile 1768
			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 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 1795Zeile 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']),