Vergleich admin/modules/tools/maillogs.php - 1.8.1 - 1.8.9

  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 432Zeile 430
	{
$from_type = "email";
}

	{
$from_type = "email";
}

	$form_container->output_row($lang->from, "", $form->generate_select_box('from_type', $user_email, $from_type)." ".$form->generate_text_box('from_value', $from_filter, array('id' => 'from_value')), 'from_value');

	$form_container->output_row($lang->from, "", $form->generate_select_box('from_type', $user_email, $from_type)." ".$form->generate_text_box('from_value', htmlspecialchars_uni($from_filter), array('id' => 'from_value')), 'from_value');

	if($to_username)
{
$to_type = "user";

	if($to_username)
{
$to_type = "user";

Zeile 441Zeile 439
	{
$to_type = "email";
}

	{
$to_type = "email";
}

	$form_container->output_row($lang->to, "", $form->generate_select_box('to_type', $user_email, $to_type)." ".$form->generate_text_box('to_value', $to_filter, array('id' => 'to_value')), 'to_value');

	$form_container->output_row($lang->to, "", $form->generate_select_box('to_type', $user_email, $to_type)." ".$form->generate_text_box('to_value', htmlspecialchars_uni($to_filter), array('id' => 'to_value')), 'to_value');

	$form_container->end();
$buttons = array();
$buttons[] = $form->generate_submit_button($lang->filter_user_email_log);

	$form_container->end();
$buttons = array();
$buttons[] = $form->generate_submit_button($lang->filter_user_email_log);

Zeile 450Zeile 448

$page->output_footer();
}


$page->output_footer();
}

?>