!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/laravel-crm/vendor/symfony/mime/   drwxrwxrwx
Free 12.98 GB of 57.97 GB (22.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RawMessage.php (2.63 KB)      -rw-rw-rw-
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\Mime;

use 
Symfony\Component\Mime\Exception\LogicException;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
class RawMessage
{
    
/** @var iterable<string>|string|resource */
    
private $message;
    private 
bool $isGeneratorClosed;

    
/**
     * @param iterable<string>|string|resource $message
     */
    
public function __construct(mixed $message)
    {
        
$this->message $message;
    }

    public function 
__destruct()
    {
        if (
\is_resource($this->message)) {
            
fclose($this->message);
        }
    }

    public function 
toString(): string
    
{
        if (
\is_string($this->message)) {
            return 
$this->message;
        }

        if (
\is_resource($this->message)) {
            return 
stream_get_contents($this->message, -10);
        }

        
$message '';
        foreach (
$this->message as $chunk) {
            
$message .= $chunk;
        }

        return 
$this->message $message;
    }

    public function 
toIterable(): iterable
    
{
        if (
$this->isGeneratorClosed ?? false) {
            
trigger_deprecation('symfony/mime''6.4''Sending an email with a closed generator is deprecated and will throw in 7.0.');
            
// throw new LogicException('Unable to send the email as its generator is already closed.');
        
}

        if (
\is_string($this->message)) {
            yield 
$this->message;

            return;
        }

        if (
\is_resource($this->message)) {
            
rewind($this->message);
            while (
$line fgets($this->message)) {
                yield 
$line;
            }

            return;
        }

        if (
$this->message instanceof \Generator) {
            
$message fopen('php://temp''w+');
            foreach (
$this->message as $chunk) {
                
fwrite($message$chunk);
                yield 
$chunk;
            }
            
$this->isGeneratorClosed = !$this->message->valid();
            
$this->message $message;

            return;
        }

        foreach (
$this->message as $chunk) {
            yield 
$chunk;
        }
    }

    
/**
     * @return void
     *
     * @throws LogicException if the message is not valid
     */
    
public function ensureValidity()
    {
    }

    public function 
__serialize(): array
    {
        return [
$this->toString()];
    }

    public function 
__unserialize(array $data): void
    
{
        [
$this->message] = $data;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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