Vergleich admin/modules/tools/maillogs.php - 1.6.7 - 1.6.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: maillogs.php 5764 2012-03-27 08:54:58Z Tomm $

 * $Id: maillogs.php 5807 2012-04-20 10:03:34Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 132Zeile 132
{
$plugins->run_hooks("admin_tools_maillogs_start");


{
$plugins->run_hooks("admin_tools_maillogs_start");


	$per_page = 20;






	$per_page = $mybb->settings['threadsperpage'];

if(!$per_page)
{
$per_page = 20;
}


if($mybb->input['page'] && $mybb->input['page'] > 1)
{


if($mybb->input['page'] && $mybb->input['page'] > 1)
{

Zeile 183Zeile 188
	if($mybb->input['subject'])
{
$additional_sql_criteria .= " AND l.subject LIKE '%{$subject}%'";

	if($mybb->input['subject'])
{
$additional_sql_criteria .= " AND l.subject LIKE '%{$subject}%'";

		$additional_criteria[] = "subject='".htmlspecialchars_uni($mybb->input['subject'])."'";

		$additional_criteria[] = "subject=".urlencode($mybb->input['subject']);

	}

if($mybb->input['fromuid'])
{
$query = $db->simple_select("users", "uid, username", "uid = '{$fromuid}'");

	}

if($mybb->input['fromuid'])
{
$query = $db->simple_select("users", "uid, username", "uid = '{$fromuid}'");

		$user = $db->fetch_array($query);
$from_filter = $user['username'];


		$user = $db->fetch_array($query);
$from_filter = $user['username'];


		$additional_sql_criteria .= " AND l.fromuid = '{$fromuid}'";

		$additional_sql_criteria .= " AND l.fromuid = '{$fromuid}'";

		$additional_criteria[] = "fromuid='{$fromuid}'";

		$additional_criteria[] = "fromuid={$fromuid}";

	}
else if($mybb->input['fromname'])
{

	}
else if($mybb->input['fromname'])
{

Zeile 201Zeile 206
		$user = $db->fetch_array($query);
$from_filter = $user['username'];


		$user = $db->fetch_array($query);
$from_filter = $user['username'];


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


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


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

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

		$additional_criteria = "fromuid={$user['uid']}";

		$additional_criteria[] = "fromuid={$user['uid']}";

	}

if($mybb->input['fromemail'])

	}

if($mybb->input['fromemail'])

Zeile 225Zeile 230
		$to_filter = $user['username'];

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

		$to_filter = $user['username'];

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

		$additional_criteria[] = "touid='{$touid}'";

		$additional_criteria[] = "touid={$touid}";

	}
else if($mybb->input['toname'])
{

	}
else if($mybb->input['toname'])
{

Zeile 240Zeile 245
		}

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

		}

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

		$additional_criteria = "touid='{$user['uid']}'";

		$additional_criteria[] = "touid={$user['uid']}";

	}

if($mybb->input['toemail'])
{
$additional_sql_criteria .= " AND l.toemail LIKE '%{$toemail}%'";

	}

if($mybb->input['toemail'])
{
$additional_sql_criteria .= " AND l.toemail LIKE '%{$toemail}%'";

		$additional_criteria[] = "toemail='".urlencode($mybb->input['toemail'])."'";

		$additional_criteria[] = "toemail=".urlencode($mybb->input['toemail']);

		$to_filter = $mybb->input['toemail'];
}


		$to_filter = $mybb->input['toemail'];
}


	if($additional_criteria)

	if(!empty($additional_criteria))

	{
$additional_criteria = "&".implode("&", $additional_criteria);

	{
$additional_criteria = "&".implode("&", $additional_criteria);

 
	}
else
{
$additional_criteria = '';

	}

$page->output_header($lang->user_email_log);

	}

$page->output_header($lang->user_email_log);