Vergleich report.php - 1.2.8 - 1.2.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

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

 * $Id: report.php 3030 2007-04-26 00:19:47Z Tikitiki $

 * $Id: report.php 3596 2008-01-20 08:27:39Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 48Zeile 48
}

// 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 62
}
elseif($mybb->input['action'] == "do_report" && $mybb->request_method == "post")
{

}
elseif($mybb->input['action'] == "do_report" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("report_do_report_start");
if(!trim($mybb->input['reason']))
{

	$plugins->run_hooks("report_do_report_start");
if(!trim($mybb->input['reason']))
{

Zeile 69Zeile 72
		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

	{
$query = $db->query("
SELECT DISTINCT u.username, u.email, u.receivepms, u.uid

Zeile 81Zeile 84
		{
unset($query);
$query = $db->query("

		{
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')
");
}

				WHERE (g.cancp='yes' OR g.issupermod='yes')
");
}

Zeile 97Zeile 100
				$reportpm = array(
"uid" => $mod['uid'],
"toid" => $mod['uid'],

				$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 106Zeile 109
					"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
{