Vergleich sendthread.php - 1.8.4 - 1.8.12

  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,post_captcha_recaptcha,post_captcha_nocaptcha,post_captcha_ayah";

$templatelist = "sendthread,sendthread_fromemail,forumdisplay_password_wrongpass,forumdisplay_password,post_captcha,post_captcha_recaptcha,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 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");