Vergleich inc/functions_modcp.php - 1.8.10 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 143Zeile 143
 */
function send_report($report, $report_type='post')
{

 */
function send_report($report, $report_type='post')
{

	global $db, $lang, $forum, $mybb, $post, $thread, $reputation, $user;

	global $db, $lang, $forum, $mybb, $post, $thread, $reputation, $user, $plugins;


$report_reason = '';
if($report['reasonid'])


$report_reason = '';
if($report['reasonid'])

Zeile 224Zeile 224
			$send_report_url = "reputation.php?uid={$reputation['uid']}#rid{$reputation['rid']}";
break;
}

			$send_report_url = "reputation.php?uid={$reputation['uid']}#rid{$reputation['rid']}";
break;
}

 

$plugins->run_hooks("send_report_report_type");


$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)

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

		{

		{

			$pm_recipients[] = $mod['uid'];
}
else

			$pm_recipients[] = $mod['uid'];
}
else

Zeile 253Zeile 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);