!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/symfony/mailer/Transport/   drwxrwxr-x
Free 13.21 GB of 57.97 GB (22.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AbstractTransport.php (2.76 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

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

namespace Symfony\Component\Mailer\Transport;

use 
Psr\EventDispatcher\EventDispatcherInterface;
use 
Psr\Log\LoggerInterface;
use 
Psr\Log\NullLogger;
use 
Symfony\Component\Mailer\Envelope;
use 
Symfony\Component\Mailer\Event\MessageEvent;
use 
Symfony\Component\Mailer\SentMessage;
use 
Symfony\Component\Mime\Address;
use 
Symfony\Component\Mime\RawMessage;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
abstract class AbstractTransport implements TransportInterface
{
    private 
$dispatcher;
    private 
$logger;
    private 
float $rate 0;
    private 
float $lastSent 0;

    public function 
__construct(EventDispatcherInterface $dispatcher nullLoggerInterface $logger null)
    {
        
$this->dispatcher $dispatcher;
        
$this->logger $logger ?? new NullLogger();
    }

    
/**
     * Sets the maximum number of messages to send per second (0 to disable).
     *
     * @return $this
     */
    
public function setMaxPerSecond(float $rate): static
    {
        if (
>= $rate) {
            
$rate 0;
        }

        
$this->rate $rate;
        
$this->lastSent 0;

        return 
$this;
    }

    public function 
send(RawMessage $messageEnvelope $envelope null): ?SentMessage
    
{
        
$message = clone $message;
        
$envelope null !== $envelope ? clone $envelope Envelope::create($message);

        if (
null !== $this->dispatcher) {
            
$event = new MessageEvent($message$envelope, (string) $this);
            
$this->dispatcher->dispatch($event);
            
$envelope $event->getEnvelope();
        }

        
$message = new SentMessage($message$envelope);
        
$this->doSend($message);

        
$this->checkThrottling();

        return 
$message;
    }

    abstract protected function 
doSend(SentMessage $message): void;

    
/**
     * @param Address[] $addresses
     *
     * @return string[]
     */
    
protected function stringifyAddresses(array $addresses): array
    {
        return 
array_map(function (Address $a) {
            return 
$a->toString();
        }, 
$addresses);
    }

    protected function 
getLogger(): LoggerInterface
    
{
        return 
$this->logger;
    }

    private function 
checkThrottling()
    {
        if (
== $this->rate) {
            return;
        }

        
$sleep = ($this->rate) - (microtime(true) - $this->lastSent);
        if (
$sleep) {
            
$this->logger->debug(sprintf('Email transport "%s" sleeps for %.2f seconds'__CLASS__$sleep));
            
usleep($sleep 1000000);
        }
        
$this->lastSent microtime(true);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--