Vergleich admin/modules/tools/mailerrors.php - 1.8.1 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 43Zeile 43
			$db->delete_query("mailerrors", "eid IN ({$log_ids})");
$num_deleted = $db->affected_rows();
}

			$db->delete_query("mailerrors", "eid IN ({$log_ids})");
$num_deleted = $db->affected_rows();
}

	}

$plugins->run_hooks("admin_tools_mailerrors_prune_commit");

// Log admin action
log_admin_action($num_deleted);


// Log admin action
log_admin_action($num_deleted);
}

$plugins->run_hooks("admin_tools_mailerrors_prune_commit");


flash_message($lang->selected_logs_deleted, 'success');
admin_redirect("index.php?module=tools-mailerrors");


flash_message($lang->selected_logs_deleted, 'success');
admin_redirect("index.php?module=tools-mailerrors");

Zeile 56Zeile 56

if($mybb->input['action'] == "view")
{


if($mybb->input['action'] == "view")
{

	$query = $db->simple_select("mailerrors", "*", "eid='".(int)$mybb->input['eid']."'");

	$query = $db->simple_select("mailerrors", "*", "eid='".$mybb->get_input('eid', MyBB::INPUT_INT)."'");

	$log = $db->fetch_array($query);

if(!$log['eid'])
{
exit;

	$log = $db->fetch_array($query);

if(!$log['eid'])
{
exit;

	}

$plugins->run_hooks("admin_tools_mailerrors_view");

	}

$plugins->run_hooks("admin_tools_mailerrors_view");


$log['toaddress'] = htmlspecialchars_uni($log['toaddress']);
$log['fromaddress'] = htmlspecialchars_uni($log['fromaddress']);


$log['toaddress'] = htmlspecialchars_uni($log['toaddress']);
$log['fromaddress'] = htmlspecialchars_uni($log['fromaddress']);

Zeile 83Zeile 83
	$table = new Table();

$table->construct_cell($log['error'], array("colspan" => 2));

	$table = new Table();

$table->construct_cell($log['error'], array("colspan" => 2));

	$table->construct_row();

	$table->construct_row();


if($log['smtpcode'])
{


if($log['smtpcode'])
{

Zeile 137Zeile 137

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


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

		$mybb->input['page'] = $mybb->get_input('page', 1);

		$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);

		$start = ($mybb->input['page']*$per_page)-$per_page;

		$start = ($mybb->input['page']*$per_page)-$per_page;

	}
else
{

	}
else
{

		$mybb->input['page'] = 1;
$start = 0;
}

		$mybb->input['page'] = 1;
$start = 0;
}

Zeile 166Zeile 166
	if($mybb->input['subject'])
{
$additional_sql_criteria .= " AND subject LIKE '%".$db->escape_string_like($mybb->input['subject'])."%'";

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

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

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

		$form->generate_hidden_field("subject", $mybb->input['subject']);
}

if($mybb->input['fromaddress'])
{
$additional_sql_criteria .= " AND fromaddress LIKE '%".$db->escape_string_like($mybb->input['fromaddress'])."%'";

		$form->generate_hidden_field("subject", $mybb->input['subject']);
}

if($mybb->input['fromaddress'])
{
$additional_sql_criteria .= " AND fromaddress LIKE '%".$db->escape_string_like($mybb->input['fromaddress'])."%'";

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

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

		$form->generate_hidden_field("fromaddress", $mybb->input['fromaddress']);
}

if($mybb->input['toaddress'])
{
$additional_sql_criteria .= " AND toaddress LIKE '%".$db->escape_string_like($mybb->input['toaddress'])."%'";

		$form->generate_hidden_field("fromaddress", $mybb->input['fromaddress']);
}

if($mybb->input['toaddress'])
{
$additional_sql_criteria .= " AND toaddress LIKE '%".$db->escape_string_like($mybb->input['toaddress'])."%'";

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

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

		$form->generate_hidden_field("toaddress", $mybb->input['toaddress']);

		$form->generate_hidden_field("toaddress", $mybb->input['toaddress']);

	}

	}


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


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

	{

	{

		$additional_sql_criteria .= " AND error LIKE '%".$db->escape_string_like($mybb->input['error'])."%'";

		$additional_sql_criteria .= " AND error LIKE '%".$db->escape_string_like($mybb->input['error'])."%'";

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

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

		$form->generate_hidden_field("error", $mybb->input['error']);

		$form->generate_hidden_field("error", $mybb->input['error']);

	}


	}


	if($additional_criteria)

	if($additional_criteria)

	{

	{

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

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

 
	}
else
{
$additional_criteria = '';

	}

$table = new Table;

	}

$table = new Table;

	$table->construct_header($form->generate_check_box("checkall", 1, '', array('class' => 'checkall')));

	$table->construct_header($form->generate_check_box("allbox", 1, '', array('class' => 'checkall')));

	$table->construct_header($lang->subject);
$table->construct_header($lang->to, array("class" => "align_center", "width" => "20%"));
$table->construct_header($lang->error_message, array("class" => "align_center", "width" => "30%"));
$table->construct_header($lang->date_sent, array("class" => "align_center", "width" => "20%"));

	$table->construct_header($lang->subject);
$table->construct_header($lang->to, array("class" => "align_center", "width" => "20%"));
$table->construct_header($lang->error_message, array("class" => "align_center", "width" => "30%"));
$table->construct_header($lang->date_sent, array("class" => "align_center", "width" => "20%"));


$query = $db->query("
SELECT *
FROM ".TABLE_PREFIX."mailerrors
WHERE 1=1 {$additional_sql_criteria}
ORDER BY dateline DESC
LIMIT {$start}, {$per_page}
");

	
$query = $db->simple_select('mailerrors', '*', "1=1 $additional_sql_criteria", array('order_by' => 'dateline', 'order_dir' => 'DESC', 'limit_start' => $start, 'limit' => $per_page));







	while($log = $db->fetch_array($query))
{
$log['subject'] = htmlspecialchars_uni($log['subject']);

	while($log = $db->fetch_array($query))
{
$log['subject'] = htmlspecialchars_uni($log['subject']);

Zeile 262Zeile 261

$page->output_footer();
}


$page->output_footer();
}

?>