Vergleich report.php - 1.2.0 - 1.2.5

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

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

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

 * $Id: report.php 2747 2007-02-10 09:35:57Z 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);

}


$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);

}

}

 


// Password protected forums ......... yhummmmy!
check_forum_password($forum['fid'], $forum['password']);


// Password protected forums ......... yhummmmy!
check_forum_password($forum['fid'], $forum['password']);


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

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

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

		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")
{

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