Vergleich admin/modules/tools/mailerrors.php - 1.8.2 - 1.8.4

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

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

if(!$log['eid'])

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;
}
else

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

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

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

?>