Vergleich report.php - 1.2.0 - 1.2.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: report.php 2165 2006-08-30 06:24:52Z chris $

 * $Id: report.php 3501 2007-11-21 00:42:05Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 31Zeile 31

if(!$post['pid'])
{


if(!$post['pid'])
{

	error($lang->error_invalidpost);




	$error = $lang->error_invalidpost;
eval("\$report_error = \"".$templates->get("report_error")."\";");
output_page($report_error);
exit;

}


$forum = get_forum($post['fid']);
if(!$forum)
{

}


$forum = get_forum($post['fid']);
if(!$forum)
{

	error($lang->error_invalidforum);




	$error = $lang->error_invalidforum;
eval("\$report_error = \"".$templates->get("report_error")."\";");
output_page($report_error);
exit;

}

}

 


// Password protected forums ......... yhummmmy!

// Password protected forums ......... yhummmmy!

check_forum_password($forum['fid'], $forum['password']);

check_forum_password($forum['parentlist']);


$thread = get_thread($post['tid']);



$thread = get_thread($post['tid']);


Zeile 62Zeile 69
		output_page($report);
exit;
}

		output_page($report);
exit;
}

	if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pm")

	if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pms")

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

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

			WHERE u.uid=m.uid AND m.fid IN (".$forum[parentlist].")

			WHERE u.uid=m.uid AND m.fid IN (".$forum['parentlist'].")

		");
$nummods = $db->num_rows($query);
if(!$nummods)
{
unset($query);
$query = $db->query("

		");
$nummods = $db->num_rows($query);
if(!$nummods)
{
unset($query);
$query = $db->query("

				SELECT u.username, u.email, u.receivepms, u.uid

				SELECT u.username, u.email, u.receivepms, u.pmpopup, u.uid, u.newpms, u.unreadpms, u.totalpms

				FROM ".TABLE_PREFIX."users u

				FROM ".TABLE_PREFIX."users u

				LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)

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

				WHERE (g.cancp='yes' OR g.issupermod='yes')
");
}
while($mod = $db->fetch_array($query))
{
$emailsubject = sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);

				WHERE (g.cancp='yes' OR g.issupermod='yes')
");
}
while($mod = $db->fetch_array($query))
{
$emailsubject = sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);

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

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

			
if($mybb->settings['reportmethod'] == "pms" && $mod['receivepms'] != "no" && $mybb->settings['enablepms'] != "no")
{
$reportpm = array(
"uid" => $mod['uid'],
"toid" => $mod['uid'],

			
if($mybb->settings['reportmethod'] == "pms" && $mod['receivepms'] != "no" && $mybb->settings['enablepms'] != "no")
{
$reportpm = array(
"uid" => $mod['uid'],
"toid" => $mod['uid'],

					"fromid" => -2,

					"fromid" => 0,

					"folder" => 1,
"subject" => $db->escape_string($emailsubject),
"message" => $db->escape_string($emailmessage),

					"folder" => 1,
"subject" => $db->escape_string($emailsubject),
"message" => $db->escape_string($emailmessage),

Zeile 99Zeile 106
					"readtime" => 0
);
$db->insert_query(TABLE_PREFIX."privatemessages", $reportpm);

					"readtime" => 0
);
$db->insert_query(TABLE_PREFIX."privatemessages", $reportpm);

				$db->update_query(TABLE_PREFIX."users", array('pmpopup' => 'new'), "uid='{$mod['uid']}'");










				$updated_user = array(
"newpms" => $mod['newpms']+1,
"unreadpms" => $mod['unreadpms']+1,
"totalpms" => $mod['totalpms']+1
);
if($mod['pmpopup'] == "yes")
{
$updated_user['pmpopup'] = "new";
}
$db->update_query(TABLE_PREFIX."users", $updated_user, "uid='{$mod['uid']}'");

			}
else
{

			}
else
{