!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/barryvdh/laravel-debugbar/src/DataFormatter/   drwxrwxrwx
Free 13.1 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Barryvdh\Debugbar\DataFormatter;

use 
DebugBar\DataFormatter\DataFormatter;

/**
 * Simple DataFormatter based on the deprecated Symfony ValueExporter
 *
 * @see https://github.com/symfony/symfony/blob/v3.4.4/src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php
 */
#[\AllowDynamicProperties]
class 
SimpleFormatter extends DataFormatter
{
    
/**
     * @param $data
     * @return string
     */
    
public function formatVar($data)
    {
        return 
$this->exportValue($data);
    }

    
/**
     * Converts a PHP value to a string.
     *
     * @param mixed $value The PHP value
     * @param int   $depth Only for internal usage
     * @param bool  $deep  Only for internal usage
     *
     * @return string The string representation of the given value
     *  @author Bernhard Schussek <bschussek@gmail.com>
     */
    
private function exportValue($value$depth 1$deep false)
    {
        if (
$value instanceof \__PHP_Incomplete_Class) {
            return 
sprintf('__PHP_Incomplete_Class(%s)'$this->getClassNameFromIncomplete($value));
        }

        if (
is_object($value)) {
            if (
$value instanceof \DateTimeInterface) {
                return 
sprintf('Object(%s) - %s'get_class($value), $value->format(\DateTime::ATOM));
            }

            return 
sprintf('Object(%s)'get_class($value));
        }

        if (
is_array($value)) {
            if (empty(
$value)) {
                return 
'[]';
            }

            
$indent str_repeat('  '$depth);

            
$a = [];
            foreach (
$value as $k => $v) {
                if (
is_array($v)) {
                    
$deep true;
                }
                
$a[] = sprintf('%s => %s'$k$this->exportValue($v$depth 1$deep));
            }

            if (
$deep) {
                
$args = [$indentimplode(sprintf(", \n%s"$indent), $a), str_repeat('  '$depth 1)];
                return 
sprintf("[\n%s%s\n%s]", ...$args);
            }

            
$s sprintf('[%s]'implode(', '$a));

            if (
80 strlen($s)) {
                return 
$s;
            }

            return 
sprintf("[\n%s%s\n]"$indentimplode(sprintf(",\n%s"$indent), $a));
        }

        if (
is_resource($value)) {
            return 
sprintf('Resource(%s#%d)'get_resource_type($value), $value);
        }

        if (
null === $value) {
            return 
'null';
        }

        if (
false === $value) {
            return 
'false';
        }

        if (
true === $value) {
            return 
'true';
        }

        return (string) 
$value;
    }

    
/**
     * @param \__PHP_Incomplete_Class $value
     * @return mixed
     * @author Bernhard Schussek <bschussek@gmail.com>
     */
    
private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value)
    {
        
$array = new \ArrayObject($value);

        return 
$array['__PHP_Incomplete_Class_Name'];
    }
}

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