Vergleich inc/functions_modcp.php - 1.8.14 - 1.8.35

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 229Zeile 229

$emailsubject = $lang->sprintf($lang->$lang_string_subject, $mybb->settings['bbname']);
$emailmessage = $lang->sprintf($lang->$lang_string_message, $mybb->user['username'], $mybb->settings['bbname'], $send_report_subject, $mybb->settings['bburl'], $send_report_url, $report_reason);


$emailsubject = $lang->sprintf($lang->$lang_string_subject, $mybb->settings['bbname']);
$emailmessage = $lang->sprintf($lang->$lang_string_message, $mybb->user['username'], $mybb->settings['bbname'], $send_report_subject, $mybb->settings['bburl'], $send_report_url, $report_reason);




	$pm_recipients = array();


	while($mod = $db->fetch_array($query))
{
if($mybb->settings['reportmethod'] == "pms" && $mod['receivepms'] != 0 && $mybb->settings['enablepms'] != 0)
{
$pm_recipients[] = $mod['uid'];

	while($mod = $db->fetch_array($query))
{
if($mybb->settings['reportmethod'] == "pms" && $mod['receivepms'] != 0 && $mybb->settings['enablepms'] != 0)
{
$pm_recipients[] = $mod['uid'];

		}

		}

		else
{
my_mail($mod['email'], $emailsubject, $emailmessage);
}
}

		else
{
my_mail($mod['email'], $emailsubject, $emailmessage);
}
}





	if(count($pm_recipients) > 0)
{
require_once MYBB_ROOT."inc/datahandlers/pm.php";

	if(count($pm_recipients) > 0)
{
require_once MYBB_ROOT."inc/datahandlers/pm.php";

Zeile 255Zeile 256
			"toid" => $pm_recipients,
"ipaddress" => $mybb->session->packedip
);

			"toid" => $pm_recipients,
"ipaddress" => $mybb->session->packedip
);

 

$pm['options'] = array(
"signature" => 0,
"disablesmilies" => 0,
"savecopy" => 0,
"readreceipt" => 0
);
$pm['saveasdraft'] = 0;


$pmhandler->admin_override = true;
$pmhandler->set_data($pm);


$pmhandler->admin_override = true;
$pmhandler->set_data($pm);