Vergleich sendthread.php - 1.8.1 - 1.8.21

  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,sendthread_fromemail_hidden,forumdisplay_password_wrongpass,forumdisplay_password,post_captcha";

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


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 22Zeile 22
$lang->load("sendthread");

// Get thread info

$lang->load("sendthread");

// Get thread info

$tid = $mybb->get_input('tid', 1);

$tid = $mybb->get_input('tid', MyBB::INPUT_INT);

$thread = get_thread($tid);

// Invalid thread

$thread = get_thread($tid);

// Invalid thread

Zeile 152Zeile 152
	if(!validate_email_format($mybb->input['email']))
{
$errors[] = $lang->error_invalidemail;

	if(!validate_email_format($mybb->input['email']))
{
$errors[] = $lang->error_invalidemail;

 
	}

if($mybb->user['uid'])
{
$mybb->input['fromemail'] = $mybb->user['email'];
$mybb->input['fromname'] = $mybb->user['username'];

	}

if(!validate_email_format($mybb->input['fromemail']))

	}

if(!validate_email_format($mybb->input['fromemail']))

Zeile 199Zeile 205
		else
{
$from = "{$mybb->input['fromname']} <{$mybb->input['fromemail']}>";

		else
{
$from = "{$mybb->input['fromname']} <{$mybb->input['fromemail']}>";

		}

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

		}

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



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


Zeile 248Zeile 254
		$fromemail = htmlspecialchars_uni($mybb->input['fromemail']);
$subject = htmlspecialchars_uni($mybb->input['subject']);
$message = htmlspecialchars_uni($mybb->input['message']);

		$fromemail = htmlspecialchars_uni($mybb->input['fromemail']);
$subject = htmlspecialchars_uni($mybb->input['subject']);
$message = htmlspecialchars_uni($mybb->input['message']);

	}
else

	}
else

	{
$errors = '';
$email = '';

	{
$errors = '';
$email = '';

Zeile 279Zeile 285
	if($mybb->user['uid'] == 0)
{
eval("\$from_email = \"".$templates->get("sendthread_fromemail")."\";");

	if($mybb->user['uid'] == 0)
{
eval("\$from_email = \"".$templates->get("sendthread_fromemail")."\";");

	}
else
{
eval("\$from_email = \"".$templates->get("sendthread_fromemail_hidden")."\";");

 
	}

$plugins->run_hooks("sendthread_end");

	}

$plugins->run_hooks("sendthread_end");