Vergleich admin/modules/tools/maillogs.php - 1.8.34 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 59Zeile 59
	$query = $db->simple_select("maillogs", "*", "mid='".$mybb->get_input('mid', MyBB::INPUT_INT)."'");
$log = $db->fetch_array($query);


	$query = $db->simple_select("maillogs", "*", "mid='".$mybb->get_input('mid', MyBB::INPUT_INT)."'");
$log = $db->fetch_array($query);


	if(!$log['mid'])

	if(!$log)

	{
exit;
}

	{
exit;
}

Zeile 207Zeile 207
	else if(!empty($mybb->input['fromname']))
{
$user = get_user_by_username($mybb->input['fromname'], array('fields' => 'uid, username'));

	else if(!empty($mybb->input['fromname']))
{
$user = get_user_by_username($mybb->input['fromname'], array('fields' => 'uid, username'));

		$from_filter = $user['username'];

if(!$user['uid'])


if(!$user)


		{
flash_message($lang->error_invalid_user, 'error');
admin_redirect("index.php?module=tools-maillogs");

		{
flash_message($lang->error_invalid_user, 'error');
admin_redirect("index.php?module=tools-maillogs");

		}



		}

$from_filter = $user['username'];


$additional_sql_criteria .= "AND l.fromuid = '{$user['uid']}'";
$additional_criteria[] = "fromuid={$user['uid']}";


$additional_sql_criteria .= "AND l.fromuid = '{$user['uid']}'";
$additional_criteria[] = "fromuid={$user['uid']}";

Zeile 230Zeile 231
	{
$query = $db->simple_select("users", "uid, username", "uid = '{$touid}'");
$user = $db->fetch_array($query);

	{
$query = $db->simple_select("users", "uid, username", "uid = '{$touid}'");
$user = $db->fetch_array($query);

		$to_filter = $user['username'];

		$to_filter = $user['username'];


$additional_sql_criteria .= " AND l.touid = '{$touid}'";
$additional_criteria[] = "touid={$touid}";


$additional_sql_criteria .= " AND l.touid = '{$touid}'";
$additional_criteria[] = "touid={$touid}";

Zeile 238Zeile 239
	else if(!empty($mybb->input['toname']))
{
$user = get_user_by_username($toname, array('fields' => 'username'));

	else if(!empty($mybb->input['toname']))
{
$user = get_user_by_username($toname, array('fields' => 'username'));

		$to_filter = $user['username'];

if(!$user['uid'])


if(!$user)


		{
flash_message($lang->error_invalid_user, 'error');
admin_redirect("index.php?module=tools-maillogs");
}

		{
flash_message($lang->error_invalid_user, 'error');
admin_redirect("index.php?module=tools-maillogs");
}

 

$to_filter = $user['username'];


$additional_sql_criteria .= "AND l.touid='{$user['uid']}'";
$additional_criteria[] = "touid={$user['uid']}";


$additional_sql_criteria .= "AND l.touid='{$user['uid']}'";
$additional_criteria[] = "touid={$user['uid']}";