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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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 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)

	$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;

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

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

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

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

	}

$additional_criteria = array();

	}

$additional_criteria = array();


$plugins->run_hooks("admin_tools_mailerrors_start");



$plugins->run_hooks("admin_tools_mailerrors_start");


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>");
$find_from = "<div class=\"float_right\"><a href=\"index.php?module=tools-mailerrors&amp;toaddress={$log['toaddress']}\"><img src=\"styles/{$page->style}/images/icons/find.png\" title=\"{$lang->fine_emails_to_addr}\" alt=\"{$lang->find}\" /></a></div>";
$table->construct_cell("{$find_from}<div>{$log['toaddress']}</div>");
$table->construct_cell($log['error']);
$table->construct_cell($log['dateline'], array("class" => "align_center"));

		$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>");
$find_from = "<div class=\"float_right\"><a href=\"index.php?module=tools-mailerrors&amp;toaddress={$log['toaddress']}\"><img src=\"styles/{$page->style}/images/icons/find.png\" title=\"{$lang->fine_emails_to_addr}\" alt=\"{$lang->find}\" /></a></div>";
$table->construct_cell("{$find_from}<div>{$log['toaddress']}</div>");
$table->construct_cell($log['error']);
$table->construct_cell($log['dateline'], array("class" => "align_center"));

		$table->construct_row();

		$table->construct_row();

	}

if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_logs, array("colspan" => 5));
$table->construct_row();

	}

if($table->num_rows() == 0)
{
$table->construct_cell($lang->no_logs, array("colspan" => 5));
$table->construct_row();

		$table->output($lang->system_email_log);
}

		$table->output($lang->system_email_log);
}

	else
{
$table->output($lang->system_email_log);

	else
{
$table->output($lang->system_email_log);

Zeile 238Zeile 247
		$buttons[] = $form->generate_submit_button($lang->delete_all, array('name' => 'delete_all', 'onclick' => "return confirm('{$lang->confirm_delete_all_logs}');"));
$form->output_submit_wrapper($buttons);
}

		$buttons[] = $form->generate_submit_button($lang->delete_all, array('name' => 'delete_all', 'onclick' => "return confirm('{$lang->confirm_delete_all_logs}');"));
$form->output_submit_wrapper($buttons);
}





	$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}");