!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/swiftmailer/swiftmailer/lib/classes/Swift/   drwxr-xr-x
Free 116.64 GB of 200.55 GB (58.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of SwiftMailer.
 * (c) 2011 Fabien Potencier <fabien.potencier@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Stores Messages in memory.
 *
 * @author Fabien Potencier
 */
class Swift_MemorySpool implements Swift_Spool
{
    protected 
$messages = array();
    private 
$flushRetries 3;

    
/**
     * Tests if this Transport mechanism has started.
     *
     * @return bool
     */
    
public function isStarted()
    {
        return 
true;
    }

    
/**
     * Starts this Transport mechanism.
     */
    
public function start()
    {
    }

    
/**
     * Stops this Transport mechanism.
     */
    
public function stop()
    {
    }

    
/**
     * @param int $retries
     */
    
public function setFlushRetries($retries)
    {
        
$this->flushRetries $retries;
    }

    
/**
     * Stores a message in the queue.
     *
     * @param Swift_Mime_Message $message The message to store
     *
     * @return bool Whether the operation has succeeded
     */
    
public function queueMessage(Swift_Mime_Message $message)
    {
        
//clone the message to make sure it is not changed while in the queue
        
$this->messages[] = clone $message;

        return 
true;
    }

    
/**
     * Sends messages using the given transport instance.
     *
     * @param Swift_Transport $transport        A transport instance
     * @param string[]        $failedRecipients An array of failures by-reference
     *
     * @return int The number of sent emails
     */
    
public function flushQueue(Swift_Transport $transport, &$failedRecipients null)
    {
        if (!
$this->messages) {
            return 
0;
        }

        if (!
$transport->isStarted()) {
            
$transport->start();
        }

        
$count 0;
        
$retries $this->flushRetries;
        while (
$retries--) {
            try {
                while (
$message array_pop($this->messages)) {
                    
$count += $transport->send($message$failedRecipients);
                }
            } catch (
Swift_TransportException $exception) {
                if (
$retries) {
                    
// re-queue the message at the end of the queue to give a chance
                    // to the other messages to be sent, in case the failure was due to
                    // this message and not just the transport failing
                    
array_unshift($this->messages$message);

                    
// wait half a second before we try again
                    
usleep(500000);
                } else {
                    throw 
$exception;
                }
            }
        }

        return 
$count;
    }
}

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