Vergleich admin/modules/tools/mailerrors.php - 1.8.5 - 1.8.23

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

 

// Log admin action
log_admin_action($num_deleted);

	}

$plugins->run_hooks("admin_tools_mailerrors_prune_commit");

	}

$plugins->run_hooks("admin_tools_mailerrors_prune_commit");


// Log admin action
log_admin_action($num_deleted);

 

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 71Zeile 71
	$log['subject'] = htmlspecialchars_uni($log['subject']);
$log['error'] = htmlspecialchars_uni($log['error']);
$log['smtperror'] = htmlspecialchars_uni($log['smtpcode']);

	$log['subject'] = htmlspecialchars_uni($log['subject']);
$log['error'] = htmlspecialchars_uni($log['error']);
$log['smtperror'] = htmlspecialchars_uni($log['smtpcode']);

	$log['dateline'] = date($mybb->settings['dateformat'], $log['dateline']).", ".date($mybb->settings['timeformat'], $log['dateline']);

	$log['dateline'] = my_date('relative', $log['dateline']);

	$log['message'] = nl2br(htmlspecialchars_uni($log['message']));

?>

	$log['message'] = nl2br(htmlspecialchars_uni($log['message']));

?>

Zeile 93Zeile 93
	}

if($log['smtperror'])

	}

if($log['smtperror'])

	{

	{

		$table->construct_cell($lang->smtp_server_response);
$table->construct_cell($log['smtperror']);
$table->construct_row();

		$table->construct_cell($lang->smtp_server_response);
$table->construct_cell($log['smtperror']);
$table->construct_row();

Zeile 101Zeile 101
	$table->output($lang->error);

$table = new Table();

	$table->output($lang->error);

$table = new Table();





	$table->construct_cell($lang->to.":");
$table->construct_cell("<a href=\"mailto:{$log['toaddress']}\">{$log['toaddress']}</a>");

	$table->construct_cell($lang->to.":");
$table->construct_cell("<a href=\"mailto:{$log['toaddress']}\">{$log['toaddress']}</a>");

	$table->construct_row();

	$table->construct_row();


$table->construct_cell($lang->from.":");
$table->construct_cell("<a href=\"mailto:{$log['fromaddress']}\">{$log['fromaddress']}</a>");


$table->construct_cell($lang->from.":");
$table->construct_cell("<a href=\"mailto:{$log['fromaddress']}\">{$log['fromaddress']}</a>");

Zeile 112Zeile 112

$table->construct_cell($lang->subject.":");
$table->construct_cell($log['subject']);


$table->construct_cell($lang->subject.":");
$table->construct_cell($log['subject']);

	$table->construct_row();


	$table->construct_row();


	$table->construct_cell($lang->date.":");
$table->construct_cell($log['dateline']);

	$table->construct_cell($lang->date.":");
$table->construct_cell($log['dateline']);

	$table->construct_row();


	$table->construct_row();


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

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





	$table->output($lang->email);

?>

	$table->output($lang->email);

?>

Zeile 133Zeile 133

if(!$mybb->input['action'])
{


if(!$mybb->input['action'])
{

 
	$query = $db->simple_select("mailerrors l", "COUNT(eid) AS logs", "1=1 {$additional_sql_criteria}");
$total_rows = $db->fetch_field($query, "logs");


	$per_page = 20;

if($mybb->input['page'] && $mybb->input['page'] > 1)
{
$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
$start = ($mybb->input['page']*$per_page)-$per_page;

	$per_page = 20;

if($mybb->input['page'] && $mybb->input['page'] > 1)
{
$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
$start = ($mybb->input['page']*$per_page)-$per_page;

	}
else
{







		$pages = ceil($total_rows / $per_page);
if($mybb->input['page'] > $pages)
{
$mybb->input['page'] = 1;
$start = 0;
}
}
else
{

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

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

Zeile 166Zeile 175
	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']);
}

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

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

if($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']);
}


Zeile 214Zeile 223
		$log['subject'] = htmlspecialchars_uni($log['subject']);
$log['toemail'] = htmlspecialchars_uni($log['toemail']);
$log['error'] = htmlspecialchars_uni($log['error']);

		$log['subject'] = htmlspecialchars_uni($log['subject']);
$log['toemail'] = htmlspecialchars_uni($log['toemail']);
$log['error'] = htmlspecialchars_uni($log['error']);

		$log['dateline'] = date($mybb->settings['dateformat'], $log['dateline']).", ".date($mybb->settings['timeformat'], $log['dateline']);

		$log['dateline'] = my_date('relative', $log['dateline']);


$table->construct_cell($form->generate_check_box("log[{$log['eid']}]", $log['eid'], ''));
$table->construct_cell("<a href=\"javascript:MyBB.popupWindow('index.php?module=tools-mailerrors&amp;action=view&amp;eid={$log['eid']}', null, true);\">{$log['subject']}</a>");


$table->construct_cell($form->generate_check_box("log[{$log['eid']}]", $log['eid'], ''));
$table->construct_cell("<a href=\"javascript:MyBB.popupWindow('index.php?module=tools-mailerrors&amp;action=view&amp;eid={$log['eid']}', null, true);\">{$log['subject']}</a>");

Zeile 240Zeile 249
	}

$form->end();

	}

$form->end();


$query = $db->simple_select("mailerrors l", "COUNT(eid) AS logs", "1=1 {$additional_sql_criteria}");
$total_rows = $db->fetch_field($query, "logs");

 

echo "<br />".draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=tools-mailerrors&amp;page={page}{$additional_criteria}");



echo "<br />".draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=tools-mailerrors&amp;page={page}{$additional_criteria}");