uawdijnntqw1x1x1
IP : 3.12.150.151
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
/
public_html
/
0d544
/
..
/
..
/
.trash
/
images
/
..
/
system.1
/
library
/
mail
/
mail.php
/
/
<?php namespace Opencart\System\Library\Mail; class Mail { 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 = []; protected string $parameter; public function __construct(array $args) { foreach ($args as $key => $value) { if (property_exists($this, $key)) { $this->{$key} = $value; } } } public function send(): bool { if (is_array($this->to)) { $to = implode(',', $this->to); } else { $to = $this->to; } $boundary = '----=_NextPart_' . md5(time()); $header = 'MIME-Version: 1.0' . PHP_EOL; $header .= 'Date: ' . date('D, d M Y H:i:s O') . PHP_EOL; $header .= 'From: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL; if (!$this->reply_to) { $header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->sender) . '?= <' . $this->from . '>' . PHP_EOL; } else { $header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->reply_to) . '?= <' . $this->reply_to . '>' . PHP_EOL; } $header .= 'Return-Path: ' . $this->from . PHP_EOL; $header .= 'X-Mailer: PHP/' . phpversion() . PHP_EOL; $header .= 'Content-Type: multipart/mixed; boundary="' . $boundary . '"' . PHP_EOL . PHP_EOL; if (!$this->html) { $message = '--' . $boundary . PHP_EOL; $message .= 'Content-Type: text/plain; charset="utf-8"' . PHP_EOL; $message .= 'Content-Transfer-Encoding: base64' . PHP_EOL . PHP_EOL; $message .= base64_encode($this->text) . PHP_EOL; } else { $message = '--' . $boundary . PHP_EOL; $message .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '_alt"' . PHP_EOL . PHP_EOL; $message .= '--' . $boundary . '_alt' . PHP_EOL; $message .= 'Content-Type: text/plain; charset="utf-8"' . PHP_EOL; $message .= 'Content-Transfer-Encoding: base64' . PHP_EOL . PHP_EOL; if ($this->text) { $message .= base64_encode($this->text) . PHP_EOL; } else { $message .= base64_encode('This is a HTML email and your email client software does not support HTML email!') . PHP_EOL; } $message .= '--' . $boundary . '_alt' . PHP_EOL; $message .= 'Content-Type: text/html; charset="utf-8"' . PHP_EOL; $message .= 'Content-Transfer-Encoding: base64' . PHP_EOL . PHP_EOL; $message .= base64_encode($this->html) . PHP_EOL; $message .= '--' . $boundary . '_alt--' . PHP_EOL; } foreach ($this->attachments as $attachment) { if (is_file($attachment)) { $handle = fopen($attachment, 'r'); $content = fread($handle, filesize($attachment)); fclose($handle); $message .= '--' . $boundary . PHP_EOL; $message .= 'Content-Type: application/octet-stream; name="' . basename($attachment) . '"' . PHP_EOL; $message .= 'Content-Transfer-Encoding: base64' . PHP_EOL; $message .= 'Content-Disposition: attachment; filename="' . basename($attachment) . '"' . PHP_EOL; $message .= 'Content-ID: <' . urlencode(basename($attachment)) . '>' . PHP_EOL; $message .= 'X-Attachment-Id: ' . urlencode(basename($attachment)) . PHP_EOL . PHP_EOL; $message .= chunk_split(base64_encode($content)); } } $message .= '--' . $boundary . '--' . PHP_EOL; ini_set('sendmail_from', $this->from); if ($this->parameter) { return mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter); } else { return mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header); } } }
/home/sudancam/public_html/0d544/../../.trash/images/../system.1/library/mail/mail.php