!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/Cache/DataCollector/   drwxr-xr-x
Free 83.26 GB of 96.73 GB (86.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Cache\DataCollector;

use 
Symfony\Component\Cache\Adapter\TraceableAdapter;
use 
Symfony\Component\Cache\Adapter\TraceableAdapterEvent;
use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpFoundation\Response;
use 
Symfony\Component\HttpKernel\DataCollector\DataCollector;
use 
Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface;

/**
 * @author Aaron Scherer <[email protected]>
 * @author Tobias Nyholm <[email protected]>
 *
 * @final
 */
class CacheDataCollector extends DataCollector implements LateDataCollectorInterface
{
    
/**
     * @var TraceableAdapter[]
     */
    
private $instances = [];

    public function 
addInstance(string $nameTraceableAdapter $instance)
    {
        
$this->instances[$name] = $instance;
    }

    
/**
     * {@inheritdoc}
     */
    
public function collect(Request $requestResponse $response, \Throwable $exception null)
    {
        
$empty = ['calls' => [], 'config' => [], 'options' => [], 'statistics' => []];
        
$this->data = ['instances' => $empty'total' => $empty];
        foreach (
$this->instances as $name => $instance) {
            
$this->data['instances']['calls'][$name] = $instance->getCalls();
        }

        
$this->data['instances']['statistics'] = $this->calculateStatistics();
        
$this->data['total']['statistics'] = $this->calculateTotalStatistics();
    }

    public function 
reset()
    {
        
$this->data = [];
        foreach (
$this->instances as $instance) {
            
$instance->clearCalls();
        }
    }

    public function 
lateCollect()
    {
        
$this->data['instances']['calls'] = $this->cloneVar($this->data['instances']['calls']);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName(): string
    
{
        return 
'cache';
    }

    
/**
     * Method returns amount of logged Cache reads: "get" calls.
     */
    
public function getStatistics(): array
    {
        return 
$this->data['instances']['statistics'];
    }

    
/**
     * Method returns the statistic totals.
     */
    
public function getTotals(): array
    {
        return 
$this->data['total']['statistics'];
    }

    
/**
     * Method returns all logged Cache call objects.
     *
     * @return mixed
     */
    
public function getCalls()
    {
        return 
$this->data['instances']['calls'];
    }

    private function 
calculateStatistics(): array
    {
        
$statistics = [];
        foreach (
$this->data['instances']['calls'] as $name => $calls) {
            
$statistics[$name] = [
                
'calls' => 0,
                
'time' => 0,
                
'reads' => 0,
                
'writes' => 0,
                
'deletes' => 0,
                
'hits' => 0,
                
'misses' => 0,
            ];
            
/** @var TraceableAdapterEvent $call */
            
foreach ($calls as $call) {
                ++
$statistics[$name]['calls'];
                
$statistics[$name]['time'] += $call->end $call->start;
                if (
'get' === $call->name) {
                    ++
$statistics[$name]['reads'];
                    if (
$call->hits) {
                        ++
$statistics[$name]['hits'];
                    } else {
                        ++
$statistics[$name]['misses'];
                        ++
$statistics[$name]['writes'];
                    }
                } elseif (
'getItem' === $call->name) {
                    ++
$statistics[$name]['reads'];
                    if (
$call->hits) {
                        ++
$statistics[$name]['hits'];
                    } else {
                        ++
$statistics[$name]['misses'];
                    }
                } elseif (
'getItems' === $call->name) {
                    
$statistics[$name]['reads'] += $call->hits $call->misses;
                    
$statistics[$name]['hits'] += $call->hits;
                    
$statistics[$name]['misses'] += $call->misses;
                } elseif (
'hasItem' === $call->name) {
                    ++
$statistics[$name]['reads'];
                    if (
false === $call->result) {
                        ++
$statistics[$name]['misses'];
                    } else {
                        ++
$statistics[$name]['hits'];
                    }
                } elseif (
'save' === $call->name) {
                    ++
$statistics[$name]['writes'];
                } elseif (
'deleteItem' === $call->name) {
                    ++
$statistics[$name]['deletes'];
                }
            }
            if (
$statistics[$name]['reads']) {
                
$statistics[$name]['hit_read_ratio'] = round(100 $statistics[$name]['hits'] / $statistics[$name]['reads'], 2);
            } else {
                
$statistics[$name]['hit_read_ratio'] = null;
            }
        }

        return 
$statistics;
    }

    private function 
calculateTotalStatistics(): array
    {
        
$statistics $this->getStatistics();
        
$totals = [
            
'calls' => 0,
            
'time' => 0,
            
'reads' => 0,
            
'writes' => 0,
            
'deletes' => 0,
            
'hits' => 0,
            
'misses' => 0,
        ];
        foreach (
$statistics as $name => $values) {
            foreach (
$totals as $key => $value) {
                
$totals[$key] += $statistics[$name][$key];
            }
        }
        if (
$totals['reads']) {
            
$totals['hit_read_ratio'] = round(100 $totals['hits'] / $totals['reads'], 2);
        } else {
            
$totals['hit_read_ratio'] = null;
        }

        return 
$totals;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0049 ]--