uawdijnntqw1x1x1
IP : 18.119.121.232
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,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
0d544
/
..
/
..
/
.trash
/
.
/
catalog
/
..
/
.
/
system.1
/
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 */ namespace Opencart\System\Library; class Mail { private string $adaptor; protected string $to = ''; protected string $from = ''; protected string $sender = ''; protected string $reply_to = ''; protected string $subject = ''; protected string $text = ''; protected string $html = ''; protected array $attachments = []; /** * Constructor * * @param string $adaptor * */ public function __construct(string $adaptor = 'mail') { $class = 'Opencart\System\Library\Mail\\' . $adaptor; if (class_exists($class)) { $this->adaptor = $class; } else { throw new \Exception('Error: Could not load mail adaptor ' . $adaptor . '!'); } } /** * * * @param mixed $to */ public function setTo(string $to): void { $this->to = $to; } /** * * * @param string $from */ public function setFrom($from): void { $this->from = $from; } /** * * * @param string $sender */ public function setSender($sender): void { $this->sender = $sender; } /** * * * @param string $reply_to */ public function setReplyTo($reply_to): void { $this->reply_to = $reply_to; } /** * * * @param string $subject */ public function setSubject($subject): void { $this->subject = $subject; } /** * * * @param string $text */ public function setText($text): void { $this->text = $text; } /** * * * @param string $html */ public function setHtml($html): void { $this->html = $html; } /** * * * @param string $filename */ public function addAttachment($filename): void { $this->attachments[] = $filename; } /** * * */ public function send(): bool { 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!'); } $mail_data = []; foreach (get_object_vars($this) as $key => $value) $mail_data[$key] = $value; $mail = new $this->adaptor($mail_data); return $mail->send(); } }
/home/sudancam/public_html/0d544/../../.trash/./catalog/.././system.1/library/mail.php