Vergleich admin/users.php - 1.2.7 - 1.2.13

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

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

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

 * $Id: users.php 3545 2007-12-08 06:04:22Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

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_stats(array('numusers' => '-1'));

		// Update forum stats
update_stats(array('numusers' => '-1'));





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

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

	}

	}

	else

	else

	{

	{

		header("Location: users.php?".SID."&123");
}
}

		header("Location: users.php?".SID."&123");
}
}

Zeile 550Zeile 550
	$search = $mybb->input['search'];

if($search['username'])

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

if($search['username'])

	{

	{

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

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

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

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

	{

	{

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

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

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

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

	{

	{

		$conditions .= " AND yahoo LIKE '%".$db->escape_string($search['yahoo'])."%'";
}
if($search['msn'])
{
$conditions .= " AND msn LIKE '%".$db->escape_string($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'])."%'";

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

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

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

	}

	}

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

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

	{

	{

		$conditions .= " AND allownotices!='no'";
}


		$conditions .= " AND allownotices!='no'";
}


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 674Zeile 683
				
// Update private message count (total, new and unread) for recipient
update_pm_count($user['uid'], 7, $user['lastactive']);

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

				



				if($user['pmnotify'] == "yes")
{

				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'];

					if($user['language'] != "" && $lang->language_exists($user['language']))
{
$uselang = $user['language'];

Zeile 692Zeile 706
					
if($uselang == $mybb->settings['bblanguage'])
{

					
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;

						$emailsubject = $lang->emailsubject_newpm;
$emailmessage = $lang->email_newpm;
}
else
{
$userlang = new MyLanguage;

						$userlang->set_path("./inc/languages");

						$userlang->set_path(MYBB_ROOT."inc/languages");

						$userlang->set_language($uselang);
$userlang->load("messages");
$emailsubject = $userlang->emailsubject_newpm;

						$userlang->set_language($uselang);
$userlang->load("messages");
$emailsubject = $userlang->emailsubject_newpm;

Zeile 1164Zeile 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