!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/nucleo/lib/   drwxr-xr-x
Free 14.92 GB of 61.93 GB (24.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_cronometro.php (2.2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//-------------> Armar niveles de ejecucion
define("apex_nivel_nucleo","nucleo");
define("apex_nivel_objeto","objeto");
define("apex_nivel_item","item");
define("apex_nivel_lib","lib");

/**
 * Permite medir el tiempo consumido entre marcas y opcionalmente registrarlo en la base de la instancia
 * @package Debug
 */
class toba_cronometro
{
    protected 
$marcas;
    protected 
$indice;
    static private 
$instancia;
    
    private function 
__construct() {
        
$this->indice 0;
        global 
$cronometro;
        
$cronometro $this;
        
$this->marcar("Inicio medición");
    }
    
    
/**
     * @ignore 
     */
    
static function instancia()
    {
        if (!isset(
self::$instancia)) {
            
self::$instancia = new toba_cronometro();    
        }
        return 
self::$instancia;
    }    

    
/**
     * Guarda una marca en la línea de tiempo
     */
    
function marcar($nombre,$nivel="item"){
        
$microtime explode(' 'microtime());
        
$this->marcas[$this->indice]["t"] =  $microtime[1] . substr($microtime[0], 1);
        
$this->marcas[$this->indice]["n"] = $nombre;
        
$this->marcas[$this->indice]["niv"] = $nivel;
        
$this->indice++;
    }

    
/**
     * Calcula el tiempo enntre la primer y última marca registrada
     * @return float
     */
    
function tiempo_acumulado() {
        
$ultimo = (count($this->marcas)-1);
        return ((
$this->marcas[$ultimo]['t']) - ($this->marcas[0]['t']));
    }

    
/**
     * Retorna la marcas en un arreglo
     */
    
function get_marcas()
    {
        
$marcas = array();
        
$marca_anterior $this->marcas[0]['t'];
        for(
$f=0;$f<count($this->marcas);$f++)
        {
            
$marca_actual $this->marcas[$f]['t'];
            
$marcas[$f]['texto'] = $this->marcas[$f]['n'];
            
$marcas[$f]['tiempo'] = number_format(($marca_actual $marca_anterior),3,'.','');
            
//$marcas[$f]['nivel'] = $this->marcas[$f]['niv'];
            
$marca_anterior $marca_actual;
        }
        return 
$marcas;
    }

    
/**
     *     Guardar el la base las marcas del CRONOMETRO
     */
    
function registrar($proyecto$solicitud)
    {
        
$this->marcar("Fin medición");
        
//dump_arbol($this->marcas);
        
for($f=0;$f<count($this->marcas);$f++) {
            
toba::instancia()->registrar_marca_cronometro($proyecto$solicitud$f$this->marcas[$f]['niv'], $this->marcas[$f]['n'], $this->marcas[$f]['t']);
        }
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6963 ]--