Vergleich sendthread.php - 1.8.16 - 1.8.36

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


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


$templatelist = "sendthread,sendthread_fromemail,forumdisplay_password_wrongpass,forumdisplay_password,post_captcha,post_captcha_nocaptcha";

$templatelist = "sendthread,sendthread_fromemail,forumdisplay_password_wrongpass,forumdisplay_password,post_captcha,post_captcha_nocaptcha,post_captcha_hcaptcha";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";

Zeile 145Zeile 145
if($mybb->input['action'] == "do_sendtofriend" && $mybb->request_method == "post")
{
// Verify incoming POST request

if($mybb->input['action'] == "do_sendtofriend" && $mybb->request_method == "post")
{
// Verify incoming POST request

	verify_post_check($mybb->input['my_post_key']);

	verify_post_check($mybb->get_input('my_post_key'));


$plugins->run_hooks("sendthread_do_sendtofriend_start");



$plugins->run_hooks("sendthread_do_sendtofriend_start");


Zeile 198Zeile 198
	// No errors detected
if(count($errors) == 0)
{

	// No errors detected
if(count($errors) == 0)
{

		if($mybb->settings['mail_handler'] == 'smtp')
{
$from = $mybb->input['fromemail'];
}
else
{
$from = "{$mybb->input['fromname']} <{$mybb->input['fromemail']}>";
}


 
		$threadlink = get_thread_link($thread['tid']);

$message = $lang->sprintf($lang->email_sendtofriend, $mybb->input['fromname'], $mybb->settings['bbname'], $mybb->settings['bburl']."/".$threadlink, $mybb->input['message']);

// Send the actual message

		$threadlink = get_thread_link($thread['tid']);

$message = $lang->sprintf($lang->email_sendtofriend, $mybb->input['fromname'], $mybb->settings['bbname'], $mybb->settings['bburl']."/".$threadlink, $mybb->input['message']);

// Send the actual message

		my_mail($mybb->input['email'], $mybb->input['subject'], $message, $from, "", "", false, "text", "", $mybb->input['fromemail']);

		my_mail($mybb->input['email'], $mybb->input['subject'], $message, "", "", "", false, "text", "", $mybb->input['fromemail']);


if($mybb->settings['mail_logging'] > 0)
{


if($mybb->settings['mail_logging'] > 0)
{