Vergleich report.php - 1.4.1 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
<?php
/**
* MyBB 1.4

<?php
/**
* MyBB 1.4

 * Copyright � 2008 MyBB Group, All Rights Reserved

 * Copyright © 2008 MyBB Group, All Rights Reserved

 *
* Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 *
* Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: report.php 4111 2008-08-13 06:14:12Z Tikitiki $

 * $Id: report.php 4374 2009-05-19 12:10:25Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 94Zeile 94
					$query = $db->query("
SELECT u.username, u.email, u.receivepms, u.uid
FROM ".TABLE_PREFIX."users u

					$query = $db->query("
SELECT u.username, u.email, u.receivepms, u.uid
FROM ".TABLE_PREFIX."users u

						LEFT JOIN ".TABLE_PREFIX."usergroups g ON (((CONCAT(','|| u.additionalgroups|| ',') LIKE CONCAT('%,'|| g.gid|| ',%')) OR u.usergroup = g.gid))

						LEFT JOIN ".TABLE_PREFIX."usergroups g ON (((','|| u.additionalgroups|| ',' LIKE '%,'|| g.gid|| ',%') OR u.usergroup = g.gid))

						WHERE (g.cancp=1 OR g.issupermod=1)
");
break;

						WHERE (g.cancp=1 OR g.issupermod=1)
");
break;

Zeile 111Zeile 111
		while($mod = $db->fetch_array($query))
{
$emailsubject = $lang->sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);

		while($mod = $db->fetch_array($query))
{
$emailsubject = $lang->sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);

			$emailmessage = $lang->sprintf($lang->email_reportpost, $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], str_replace('&amp;', '&', get_post_link($post['pid'], $thread['tid'])), $thread['subject'], $mybb->input['reason']);

			$emailmessage = $lang->sprintf($lang->email_reportpost, $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], str_replace('&amp;', '&', get_post_link($post['pid'], $thread['tid'])."#pid".$post['pid']), $thread['subject'], $mybb->input['reason']);

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

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

Zeile 126Zeile 126
		if(count($pm_recipients) > 0)
{
$emailsubject = $lang->sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);

		if(count($pm_recipients) > 0)
{
$emailsubject = $lang->sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);

			$emailmessage = $lang->sprintf($lang->email_reportpost, $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], str_replace('&amp;', '&', get_post_link($post['pid'], $thread['tid'])), $thread['subject'], $mybb->input['reason']);

			$emailmessage = $lang->sprintf($lang->email_reportpost, $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], str_replace('&amp;', '&', get_post_link($post['pid'], $thread['tid'])."#pid".$post['pid']), $thread['subject'], $mybb->input['reason']);


require_once MYBB_ROOT."inc/datahandlers/pm.php";
$pmhandler = new PMDataHandler();


require_once MYBB_ROOT."inc/datahandlers/pm.php";
$pmhandler = new PMDataHandler();

Zeile 135Zeile 135
				"subject" => $emailsubject,
"message" => $emailmessage,
"icon" => 0,

				"subject" => $emailsubject,
"message" => $emailmessage,
"icon" => 0,

				"fromid" => 0,

				"fromid" => $mybb->user['uid'],

				"toid" => $pm_recipients
);


				"toid" => $pm_recipients
);