Zeile 143 | Zeile 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']) { $query = $db->simple_select("reportreasons", "title", "rid = '".(int)$report['reasonid']."'", array('limit' => 1)); $reason = $db->fetch_array($query);
$lang->load('report');
$report_reason = $lang->parse($reason['title']); }
if($report['reason']) { $report_reason = $lang->sprintf($lang->email_report_comment_extra, $report_reason, $report['reason']); }
|
$modsjoin = $modswhere = ''; if(!empty($forum['parentlist']))
| $modsjoin = $modswhere = ''; if(!empty($forum['parentlist']))
|
Zeile 184 | Zeile 200 |
---|
$lang_string_subject = "emailsubject_report{$report_type}"; $lang_string_message = "email_report{$report_type}";
|
$lang_string_subject = "emailsubject_report{$report_type}"; $lang_string_message = "email_report{$report_type}";
|
|
|
if(empty($lang->$lang_string_subject) || empty($lang->$lang_string_message)) { return false;
| if(empty($lang->$lang_string_subject) || empty($lang->$lang_string_message)) { return false;
|
Zeile 208 | Zeile 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']);
|
$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']);
| $emailmessage = $lang->sprintf($lang->$lang_string_message, $mybb->user['username'], $mybb->settings['bbname'], $send_report_subject, $mybb->settings['bburl'], $send_report_url, $report_reason);
|
while($mod = $db->fetch_array($query)) {
| while($mod = $db->fetch_array($query)) {
|