403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.15
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/classes/email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/classes/email/save.php
<?php

/**
 * Creates a JSON serializable object to save emails
 *
 * @package Caldera_Forms
 * @author    Josh Pollock <[email protected]>
 * @license   GPL-2.0+
 * @link
 * @copyright 2016 CalderaWP LLC
 */
abstract class Caldera_Forms_Email_Save implements JsonSerializable {

	/**
	 * The mail data
	 *
	 * @since 1.4.1
	 *
	 * @var array
	 */
	protected $mail;


	/**
	 * Caldera_Forms_Email_Preview constructor.
	 *
	 * @since 1.4.1
	 *
	 * @param array $mail Mail data
	 */
	public function __construct( $mail ){
		$this->mail = $mail;

	}

	/**
	 * Get the raw mail message array
	 * 
	 * @since 1.4.1
	 * 
	 * @return array
	 */
	public function get_mail(){
		return $this->mail;
	}

	/**
	 * Get content type
	 *
	 * @since 1.4.1
	 *
	 * @return string
	 */
	public function content_type(){
		if( isset( $this->mail[ 'html' ] ) && $this->mail[ 'html' ] ){
			return 'text/html';
		}

		return 'text/plain';
	}

	/**
	 * Get email headers
	 *
	 * @since 1.4.1
	 *
	 * @return array
	 */
	public function headers(){
		$headers = array();
		$headers[ 'recipients' ]  = $this->recipients();
		$headers[ 'subject' ] = $this->subject();
		$headers[ 'all' ] = $this->headers_all();
		return $headers;
	}

	/**
	 * Get the email message
	 *
	 * @since 1.4.1
	 *
	 * @return string
	 */
	public function body(){
		if( isset( $this->mail[ 'message' ] ) ){
			return $this->mail[ 'message' ];
		}

		return '';
	}

	/**
	 * Get the email's attachments
	 *
	 * @since 1.4.1
	 *
	 * @return array
	 */
	public function attachments(){

		if( is_array( $this->mail->attachments) ? $attachments = $this->mail->attachments : $attachments = array() );
		return $attachments;

	}

	/**
	 * Get the email's reply to address
	 *
	 * @since 1.4.1
	 *
	 * @return string
	 */
	public function reply_to(){

		if( is_array( $this->mail->replyto ) ? $replyto = $this->mail->replyto : $replyto = '' );
		return $replyto;

	}

	/**
	 * Get the email's subject
	 *
	 * @since 1.4.1
	 *
	 * @return string
	 */
	public function subject(){
		return $this->mail[ 'subject' ];
	}

	/**
	 * Get the email's recipients
	 *
	 * @since 1.4.1
	 *
	 * @return array
	 */
	public function recipients(){
		if ( ! empty(  $this->mail[ 'recipients' ] ) ? $recipients = $this->mail[ 'recipients' ] : $recipients = array() );
		return $recipients;
	}

	/**
	 * Get all of the email's headers
	 *
	 * @since 1.4.1
	 *
	 * @return array
	 */
	public function headers_all(){
		if ( ! empty( $this->mail[ 'headers' ] ) ? $headers = $this->mail[ 'headers' ] : $headers = array() );
		return $headers;

	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit