Vergleich admin/modules/tools/maillogs.php - 1.8.2 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 45Zeile 45
		}
}


		}
}


	$plugins->run_hooks("admin_tools_mailerrors_prune_commit");

	$plugins->run_hooks("admin_tools_maillogs_prune_commit");


// Log admin action
log_admin_action($num_deleted);


// Log admin action
log_admin_action($num_deleted);

Zeile 56Zeile 56

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


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

	$query = $db->simple_select("maillogs", "*", "mid='".$mybb->get_input('mid', 1)."'");

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

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

if(!$log['mid'])

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

if(!$log['mid'])

Zeile 133Zeile 133

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 168Zeile 168
		}
}


		}
}


	$touid = (int)$mybb->input['touid'];

	$touid = $mybb->get_input('touid', MyBB::INPUT_INT);

	$toname = $db->escape_string($mybb->input['toname']);
$toemail = $db->escape_string_like($mybb->input['toemail']);


	$toname = $db->escape_string($mybb->input['toname']);
$toemail = $db->escape_string_like($mybb->input['toemail']);


	$fromuid = (int)$mybb->input['fromuid'];
$fromname = $db->escape_string($mybb->input['fromname']);

	$fromuid = $mybb->get_input('fromuid', MyBB::INPUT_INT);


	$fromemail = $db->escape_string_like($mybb->input['fromemail']);

$subject = $db->escape_string_like($mybb->input['subject']);

	$fromemail = $db->escape_string_like($mybb->input['fromemail']);

$subject = $db->escape_string_like($mybb->input['subject']);

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

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

		$query = $db->simple_select("users", "uid, username", "LOWER(username) = '{$fromname}'");
$user = $db->fetch_array($query);

		$user = get_user_by_username($mybb->input['fromname'], array('fields' => 'uid, username'));


		$from_filter = $user['username'];

if(!$user['uid'])

		$from_filter = $user['username'];

if(!$user['uid'])

Zeile 270Zeile 268
	$form = new Form("index.php?module=tools-maillogs&action=prune", "post");

$table = new Table;

	$form = new Form("index.php?module=tools-maillogs&action=prune", "post");

$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, array("colspan" => 2));
$table->construct_header($lang->from, array("class" => "align_center", "width" => "20%"));
$table->construct_header($lang->to, array("class" => "align_center", "width" => "20%"));

	$table->construct_header($lang->subject, array("colspan" => 2));
$table->construct_header($lang->from, array("class" => "align_center", "width" => "20%"));
$table->construct_header($lang->to, array("class" => "align_center", "width" => "20%"));

Zeile 450Zeile 448

$page->output_footer();
}


$page->output_footer();
}

?>