!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/wataxi.picotech.app/public_html/vendor/barryvdh/laravel-debugbar/src/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Barryvdh\Debugbar;

use 
Barryvdh\Debugbar\Middleware\DebugbarEnabled;
use 
Barryvdh\Debugbar\Middleware\InjectDebugbar;
use 
DebugBar\DataFormatter\DataFormatter;
use 
DebugBar\DataFormatter\DataFormatterInterface;
use 
Illuminate\Contracts\Http\Kernel;
use 
Illuminate\Foundation\Application;
use 
Illuminate\Routing\Router;
use 
Illuminate\Session\SessionManager;
use 
Illuminate\Support\Collection;
use 
Illuminate\View\Engines\EngineResolver;
use 
Barryvdh\Debugbar\Facade as DebugBar;

class 
ServiceProvider extends \Illuminate\Support\ServiceProvider
{
    
/**
     * Register the service provider.
     *
     * @return void
     */
    
public function register()
    {
        
$configPath __DIR__ '/../config/debugbar.php';
        
$this->mergeConfigFrom($configPath'debugbar');

        
$this->app->alias(
            
DataFormatter::class,
            
DataFormatterInterface::class
        );

        
$this->app->singleton(LaravelDebugbar::class, function ($app) {
            
$debugbar = new LaravelDebugbar($app);

            if (
$app->bound(SessionManager::class)) {
                
$sessionManager $app->make(SessionManager::class);
                
$httpDriver = new SymfonyHttpDriver($sessionManager);
                
$debugbar->setHttpDriver($httpDriver);
            }

            return 
$debugbar;
        });

        
$this->app->alias(LaravelDebugbar::class, 'debugbar');

        
$this->app->singleton(
            
'command.debugbar.clear',
            function (
$app) {
                return new 
Console\ClearCommand($app['debugbar']);
            }
        );

        
$this->app->extend(
            
'view.engine.resolver',
            function (
EngineResolver $resolverApplication $application): EngineResolver {
                
$laravelDebugbar $application->make(LaravelDebugbar::class);

                
$shouldTrackViewTime $laravelDebugbar->isEnabled() &&
                    
$laravelDebugbar->shouldCollect('time'true) &&
                    
$laravelDebugbar->shouldCollect('views'true) &&
                    
$application['config']->get('debugbar.options.views.timeline'false);

                if (! 
$shouldTrackViewTime) {
                    
/* Do not swap the engine to save performance */
                    
return $resolver;
                }

                return new class (
$resolver$laravelDebugbar) extends EngineResolver {
                    private 
$laravelDebugbar;

                    public function 
__construct(EngineResolver $resolverLaravelDebugbar $laravelDebugbar)
                    {
                        foreach (
$resolver->resolvers as $engine => $resolver) {
                            
$this->register($engine$resolver);
                        }
                        
$this->laravelDebugbar $laravelDebugbar;
                    }

                    public function 
register($engine\Closure $resolver)
                    {
                        
parent::register($engine, function () use ($resolver) {
                            return new 
DebugbarViewEngine($resolver(), $this->laravelDebugbar);
                        });
                    }
                };
            }
        );

        
Collection::macro('debug', function () {
            
debug($this);
            return 
$this;
        });
    }

    
/**
     * Bootstrap the application events.
     *
     * @return void
     */
    
public function boot()
    {
        
$configPath __DIR__ '/../config/debugbar.php';
        
$this->publishes([$configPath => $this->getConfigPath()], 'config');

        
$this->loadRoutesFrom(realpath(__DIR__ '/debugbar-routes.php'));

        
$this->registerMiddleware(InjectDebugbar::class);

        if (
$this->app->runningInConsole()) {
            
$this->commands(['command.debugbar.clear']);
        }
    }

    
/**
     * Get the active router.
     *
     * @return Router
     */
    
protected function getRouter()
    {
        return 
$this->app['router'];
    }

    
/**
     * Get the config path
     *
     * @return string
     */
    
protected function getConfigPath()
    {
        return 
config_path('debugbar.php');
    }

    
/**
     * Publish the config file
     *
     * @param  string $configPath
     */
    
protected function publishConfig($configPath)
    {
        
$this->publishes([$configPath => config_path('debugbar.php')], 'config');
    }

    
/**
     * Register the Debugbar Middleware
     *
     * @param  string $middleware
     */
    
protected function registerMiddleware($middleware)
    {
        
$kernel $this->app[Kernel::class];
        
$kernel->pushMiddleware($middleware);
    }
}

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