Vergleich inc/mailhandlers/php.php - 1.8.1 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 29Zeile 29
	/**
* Sends the email.
*

	/**
* Sends the email.
*

	 * @return true/false whether or not the email got sent or not.

	 * @return bool whether or not the email got sent or not.

	 */
function send()
{

	 */
function send()
{

Zeile 49Zeile 49
		if($this->sendmail_from != $mybb->settings['adminemail'])
{
@ini_set("sendmail_from", $mybb->settings['adminemail']);

		if($this->sendmail_from != $mybb->settings['adminemail'])
{
@ini_set("sendmail_from", $mybb->settings['adminemail']);

 
		}

$dir = "/{$mybb->config['admin_dir']}/";
$pos = strrpos($_SERVER['PHP_SELF'], $dir);
if(defined('IN_ADMINCP') && $pos !== false)
{
$temp_script_path = $_SERVER['PHP_SELF'];
$_SERVER['PHP_SELF'] = substr($_SERVER['PHP_SELF'], $pos + strlen($dir) - 1);

		}

// If safe mode is on, don't send the additional parameters as we're not allowed to
if($mybb->safemode)

		}

// If safe mode is on, don't send the additional parameters as we're not allowed to
if($mybb->safemode)

		{

		{

			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));

			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));

		}

		}

		else

		else

		{

		{

			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);

			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);

		}

		}

		$function_used = 'mail()';

		$function_used = 'mail()';

 

if(defined('IN_ADMINCP') && $pos !== false)
{
$_SERVER['PHP_SELF'] = $temp_script_path;
}


if(!$sent)
{


if(!$sent)
{