Vergleich report.php - 1.2.4 - 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 2747 2007-02-10 09:35:57Z Tikitiki $

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

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

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

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

 
	exit;

}



}



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

	$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 67Zeile 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

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

Zeile 79Zeile 81
		{
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 95Zeile 97
				$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 104Zeile 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
{