Vergleich inc/functions_modcp.php - 1.8.9 - 1.8.18

  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)