uawdijnntqw1x1x1
IP : 3.15.186.220
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
tyblue.6
/
..
/
css.3
/
..
/
system.2
/
library
/
mail.php
/
/
<?php /** * @package OpenCart * @author Daniel Kerr * @copyright Copyright (c) 2005 - 2017, OpenCart, Ltd. (https://www.opencart.com/) * @license https://opensource.org/licenses/GPL-3.0 * @link https://www.opencart.com */ /** * Mail class */ class Mail { protected $to; protected $from; protected $sender; protected $reply_to; protected $subject; protected $text; protected $html; protected $attachments = array(); public $parameter; /** * Constructor * * @param string $adaptor * */ public function __construct($adaptor = 'mail') { $class = 'Mail\\' . $adaptor; if (class_exists($class)) { $this->adaptor = new $class(); } else { trigger_error('Error: Could not load mail adaptor ' . $adaptor . '!'); exit(); } } /** * * * @param mixed $to */ public function setTo($to) { $this->to = $to; } /** * * * @param string $from */ public function setFrom($from) { $this->from = $from; } /** * * * @param string $sender */ public function setSender($sender) { $this->sender = $sender; } /** * * * @param string $reply_to */ public function setReplyTo($reply_to) { $this->reply_to = $reply_to; } /** * * * @param string $subject */ public function setSubject($subject) { $this->subject = $subject; } /** * * * @param string $text */ public function setText($text) { $this->text = $text; } /** * * * @param string $html */ public function setHtml($html) { $this->html = $html; } /** * * * @param string $filename */ public function addAttachment($filename) { $this->attachments[] = $filename; } /** * * */ public function send() { if (!$this->to) { throw new \Exception('Error: E-Mail to required!'); } if (!$this->from) { throw new \Exception('Error: E-Mail from required!'); } if (!$this->sender) { throw new \Exception('Error: E-Mail sender required!'); } if (!$this->subject) { throw new \Exception('Error: E-Mail subject required!'); } if ((!$this->text) && (!$this->html)) { throw new \Exception('Error: E-Mail message required!'); } foreach (get_object_vars($this) as $key => $value) { $this->adaptor->$key = $value; } $this->adaptor->send(); } }
/home/sudancam/.trash/tyblue.6/../css.3/../system.2/library/mail.php