Vergleich report.php - 1.6.9 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 12Zeile 12
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'report.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'report.php');


$templatelist = "report,email_reportpost,emailsubject_reportpost,report_thanks";

$templatelist = "report,report_thanks,report_error,report_noreason,forumdisplay_password_wrongpass,forumdisplay_password";

require_once "./global.php";

// Load global language phrases

require_once "./global.php";

// Load global language phrases

Zeile 57Zeile 57
{
$plugins->run_hooks("report_start");
$pid = $mybb->input['pid'];

{
$plugins->run_hooks("report_start");
$pid = $mybb->input['pid'];

	



	$plugins->run_hooks("report_end");

	$plugins->run_hooks("report_end");

	



	eval("\$report = \"".$templates->get("report")."\";");
output_page($report);
}

	eval("\$report = \"".$templates->get("report")."\";");
output_page($report);
}

Zeile 108Zeile 108
					");
}
}

					");
}
}

		



		while($mod = $db->fetch_array($query))
{
$emailsubject = $lang->sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);
$emailmessage = $lang->sprintf($lang->email_reportpost, $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], str_replace('&', '&', get_post_link($post['pid'], $thread['tid'])."#pid".$post['pid']), $thread['subject'], $mybb->input['reason']);

		while($mod = $db->fetch_array($query))
{
$emailsubject = $lang->sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);
$emailmessage = $lang->sprintf($lang->email_reportpost, $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], str_replace('&', '&', get_post_link($post['pid'], $thread['tid'])."#pid".$post['pid']), $thread['subject'], $mybb->input['reason']);

			



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

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

Zeile 167Zeile 167
		$db->insert_query("reportedposts", $reportedpost);
$cache->update_reportedposts();
}

		$db->insert_query("reportedposts", $reportedpost);
$cache->update_reportedposts();
}

	



	$plugins->run_hooks("report_do_report_end");

	$plugins->run_hooks("report_do_report_end");

	



	eval("\$report = \"".$templates->get("report_thanks")."\";");
output_page($report);
}

	eval("\$report = \"".$templates->get("report_thanks")."\";");
output_page($report);
}