Vergleich admin/modules/user/mass_mail.php - 1.4.0 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 73Zeile 73
	$html_personalisation = $text_personalisation = "<script type=\"text/javascript\">\n<!--\ndocument.write('{$lang->personalize_message} ";
foreach($replacement_fields as $value => $name)
{

	$html_personalisation = $text_personalisation = "<script type=\"text/javascript\">\n<!--\ndocument.write('{$lang->personalize_message} ";
foreach($replacement_fields as $value => $name)
{

		$html_personalisation .= " [<a href=\"#\" onclick=\"$(\'htmlmessage\').value += \'{$value}\'; return false;\">{$name}</a>], ";
$text_personalisation .= " [<a href=\"#\" onclick=\"$(\'message\').value += \'{$value}\'; return false;\">{$name}</a>], ";

		$html_personalisation .= " [<a href=\"#\" onclick=\"insertText(\'{$value}\', \$(\'htmlmessage\')); return false;\">{$name}</a>], ";
$text_personalisation .= " [<a href=\"#\" onclick=\"insertText(\'{$value}\', \$(\'message\')); return false;\">{$name}</a>], ";

	}

	}

	$html_personalisation = substr($html_personalisation, 0, -2)."');\n</script>\n";
$text_personalisation = substr($text_personalisation, 0, -2)."');\n</script>\n";

	$html_personalisation = substr($html_personalisation, 0, -2)."');\n// --></script>\n";;
$text_personalisation = substr($text_personalisation, 0, -2)."');\n// --></script>\n";


// All done here
if($mybb->request_method == "post")


// All done here
if($mybb->request_method == "post")

Zeile 515Zeile 515
	}

Event.observe($('automatic_text'), 'click', ToggleAutomatic);

	}

Event.observe($('automatic_text'), 'click', ToggleAutomatic);

 
	
function insertText(value, textarea)
{
// Internet Explorer
if(document.selection)
{
textarea.focus();
var selection = document.selection.createRange();
selection.text = value;
}
// Firefox
else if(textarea.selectionStart || textarea.selectionStart == '0')
{
var start = textarea.selectionStart;
var end = textarea.selectionEnd;
textarea.value = textarea.value.substring(0, start) + value + textarea.value.substring(end, textarea.value.length);
}
else
{
textarea.value += value;
}
}

	
</script>";


	
</script>";


Zeile 575Zeile 597
	$html_personalisation = $text_personalisation = "<script type=\"text/javascript\">\n<!--\ndocument.write('{$lang->personalize_message}: ";
foreach($replacement_fields as $value => $name)
{

	$html_personalisation = $text_personalisation = "<script type=\"text/javascript\">\n<!--\ndocument.write('{$lang->personalize_message}: ";
foreach($replacement_fields as $value => $name)
{

		$html_personalisation .= " [<a href=\"#\" onclick=\"$(\'htmlmessage\').value += \'{$value}\'; return false;\">{$name}</a>], ";
$text_personalisation .= " [<a href=\"#\" onclick=\"$(\'message\').value += \'{$value}\'; return false;\">{$name}</a>], ";

		$html_personalisation .= " [<a href=\"#\" onclick=\"insertText(\'{$value}\', \$(\'htmlmessage\')); return false;\">{$name}</a>], ";
$text_personalisation .= " [<a href=\"#\" onclick=\"insertText(\'{$value}\', \$(\'message\')); return false;\">{$name}</a>], ";

	}

	}

	$html_personalisation = substr($html_personalisation, 0, -2)."');\n</script>\n";
$text_personalisation = substr($text_personalisation, 0, -2)."');\n</script>\n";

	$html_personalisation = substr($html_personalisation, 0, -2)."');\n// --></script>\n";
$text_personalisation = substr($text_personalisation, 0, -2)."');\n// --></script>\n";


if($mybb->input['step'] == 4)
{


if($mybb->input['step'] == 4)
{

Zeile 929Zeile 951
			"greater_than" => $lang->greater_than,
"is_exactly" => $lang->is_exactly,
"less_than" => $lang->less_than

			"greater_than" => $lang->greater_than,
"is_exactly" => $lang->is_exactly,
"less_than" => $lang->less_than

		);

		);

		$form_container->output_row($lang->post_count_is, "", $form->generate_select_box('conditions[postnum_dir]', $greater_options, $input['conditions']['postnum_dir'], array('id' => 'numposts_dir'))." ".$form->generate_text_box('conditions[postnum]', $input['conditions']['numposts'], array('id' => 'numposts')), 'numposts');

// Need to do reg date & last visit periods. FIGURE OUT HOW TO HANDLE/DISPLAY (Do the same as StoreSuite)

		$form_container->output_row($lang->post_count_is, "", $form->generate_select_box('conditions[postnum_dir]', $greater_options, $input['conditions']['postnum_dir'], array('id' => 'numposts_dir'))." ".$form->generate_text_box('conditions[postnum]', $input['conditions']['numposts'], array('id' => 'numposts')), 'numposts');

// Need to do reg date & last visit periods. FIGURE OUT HOW TO HANDLE/DISPLAY (Do the same as StoreSuite)

Zeile 1134Zeile 1156
			$type_pm_checked = false;
}
else if($mybb->input['type'] == 1)

			$type_pm_checked = false;
}
else if($mybb->input['type'] == 1)

		{

		{

			$type_email_checked = false;
$type_pm_checked = true;
}

			$type_email_checked = false;
$type_pm_checked = true;
}

Zeile 1254Zeile 1276
		}

Event.observe($('automatic_text'), 'click', ToggleAutomatic);

		}

Event.observe($('automatic_text'), 'click', ToggleAutomatic);

 
		
function insertText(value, textarea)
{
// Internet Explorer
if(document.selection)
{
textarea.focus();
var selection = document.selection.createRange();
selection.text = value;
}
// Firefox
else if(textarea.selectionStart || textarea.selectionStart == '0')
{
var start = textarea.selectionStart;
var end = textarea.selectionEnd;
textarea.value = textarea.value.substring(0, start) + value + textarea.value.substring(end, textarea.value.length);
}
else
{
textarea.value += value;
}
}

		
</script>";


		
</script>";


Zeile 1289Zeile 1333
		$plugins->run_hooks("admin_user_mass_email_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_user_mass_email_delete_commit");

// Log admin action

		log_admin_action($mass_email['mid'], $mass_email['subject']);

flash_message($lang->success_mass_mail_deleted, 'success');
admin_redirect("index.php?module=user/mass_mail");
}
else
{
$page->output_confirm_action("index.php?module=user/mass_mail&amp;action=delete&amp;mid={$mass_email['mid']}", $lang->mass_mail_deletion_confirmation);
}
}

















		log_admin_action($mass_email['mid'], $mass_email['subject']);

if($mybb->input['archive'] == 1)
{
flash_message($lang->success_mass_mail_deleted, 'success');
admin_redirect("index.php?module=user/mass_mail&action=archive");
}
else
{
flash_message($lang->success_mass_mail_deleted, 'success');
admin_redirect("index.php?module=user/mass_mail");
}
}
else
{
if($mybb->input['archive'] == 1)
{
$page->output_confirm_action("index.php?module=user/mass_mail&amp;action=delete&amp;mid={$mass_email['mid']}&amp;archive=1", $lang->mass_mail_deletion_confirmation);
}
else
{
$page->output_confirm_action("index.php?module=user/mass_mail&amp;action=delete&amp;mid={$mass_email['mid']}", $lang->mass_mail_deletion_confirmation);
}
}
}


if($mybb->input['action'] == "preview")
{
$query = $db->simple_select("massemails", "*", "mid='".intval($mybb->input['mid'])."'");

if($mybb->input['action'] == "preview")
{
$query = $db->simple_select("massemails", "*", "mid='".intval($mybb->input['mid'])."'");

Zeile 1309Zeile 1368
	{
flash_message($lang->error_invalid_mid, 'error');
admin_redirect("index.php?module=user/mass_mail");

	{
flash_message($lang->error_invalid_mid, 'error');
admin_redirect("index.php?module=user/mass_mail");

	}


	}


	?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/1">

	?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/1">

Zeile 1325Zeile 1384
		<div id="content">	
<?php


		<div id="content">	
<?php


	if($mybb->input['format'] == 'text' || !$mass_email['message'])

	if($mybb->input['format'] == 'text' || !$mass_email['htmlmessage'])

	{
// Show preview of the text version
echo nl2br($mass_email['message']);

	{
// Show preview of the text version
echo nl2br($mass_email['message']);

		exit;

 
	}
else
{
// Preview the HTML version
echo $mass_email['htmlmessage'];

	}
else
{
// Preview the HTML version
echo $mass_email['htmlmessage'];

		exit;

 
	}

?>

	}

?>

Zeile 1344Zeile 1401
	</body>
</html>
<?php

	</body>
</html>
<?php

 
	exit;

}

}

 


if($mybb->input['action'] == "resend")
{
// Copy and resend an email

if($mybb->input['action'] == "resend")
{
// Copy and resend an email

Zeile 1368Zeile 1427
		"subject" => $db->escape_string($mass_email['subject']),
"message" => $db->escape_string($mass_email['message']),
"htmlmessage" => $db->escape_string($mass_email['htmlmessage']),

		"subject" => $db->escape_string($mass_email['subject']),
"message" => $db->escape_string($mass_email['message']),
"htmlmessage" => $db->escape_string($mass_email['htmlmessage']),

 
		"type" => $db->escape_string($mass_email['type']),

		"format" => $db->escape_string($mass_email['format']),
"dateline" => TIME_NOW,
"senddate" => '0',

		"format" => $db->escape_string($mass_email['format']),
"dateline" => TIME_NOW,
"senddate" => '0',

Zeile 1445Zeile 1505
		$table->construct_cell(my_number_format($email['totalcount']), array("class" => "align_center"));

$table->construct_cell("<a href=\"index.php?module=user/mass_mail&amp;action=resend&amp;mid={$email['mid']}\">{$lang->resend}</a>", array("width" => 100, "class" => "align_center"));

		$table->construct_cell(my_number_format($email['totalcount']), array("class" => "align_center"));

$table->construct_cell("<a href=\"index.php?module=user/mass_mail&amp;action=resend&amp;mid={$email['mid']}\">{$lang->resend}</a>", array("width" => 100, "class" => "align_center"));

		$table->construct_cell("<a href=\"index.php?module=user/mass_mail&amp;action=delete&amp;mid={$email['mid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->mass_mail_deletion_confirmation}')\">{$lang->delete}</a>", array("width" => 100, "class" => "align_center"));

		$table->construct_cell("<a href=\"index.php?module=user/mass_mail&amp;action=delete&amp;mid={$email['mid']}&amp;my_post_key={$mybb->post_code}&amp;archive=1\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->mass_mail_deletion_confirmation}')\">{$lang->delete}</a>", array("width" => 100, "class" => "align_center"));


$table->construct_row();
}


$table->construct_row();
}