Vergleich report.php - 1.2.1 - 1.2.12

  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 2202 2006-09-07 04:01:17Z Tikitiki $

 * $Id: report.php 3596 2008-01-20 08:27:39Z 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 55Zeile 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 62Zeile 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 74Zeile 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')
");
}
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 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
{