!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/lib/   drwxr-xr-x
Free 14.92 GB of 61.93 GB (24.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * Conjunto de aserciones básicas, en caso de fallo lanzan una excepción toba_error
 * @see toba_error
 * @package Debug
 */
class toba_asercion
{
    static function 
no_es_nulo($variable$texto="ATENCION, el elemento es NULO")
    {
        if(!isset(
$variable)){
            throw new 
toba_error($texto);
        }
    }

    static function 
es_objeto($instancia$texto="ATENCION, el elemento no es un OBJETO")
    {
        if(!
is_object($instancia)){
            throw new 
toba_error($texto);
        }
    }

    static function 
es_array($array$texto="ATENCION, el elemento no es un ARRAY"$en_lugar_de=false)
    {
        if(!
is_array($array)){
            if (
$en_lugar_de) {
                
$recibido var_export($arraytrue);
                
$texto .= "\nEn su lugar se recibio el valor: <pre>$recibido</pre>";
            }
            throw new 
toba_error($texto);
        }
    }

    static function 
arrays_igual_largo($array_1$array_2$texto="ATENCION, los arrays no tienen el mismo tamaño")
    {
        
self::es_array($array_1,$texto "- El parametro 1 no es un array");
        
self::es_array($array_2,$texto "- El parametro 2 no es un array");
        if( 
count($array_1) != count($array_2) ){
            throw new 
toba_error($texto);
        }        
    }

    static function 
es_array_dimension($array$dimension$texto="ERROR: ")
    {
        if(!
is_array($array)){
            throw new 
toba_error($texto "el elemento no es un ARRAY");
        }else{
            
$dim_real count($array);
            if(
$dim_real!=$dimension){
                throw new 
toba_error($texto "El tamaño del array es incorrecto: $dim_real (Esperado: $dimension).");
            }
        }
    }

    static function 
es_array_o_null($array$texto="ATENCION, el elemento no es un ARRAY y no es NULO")
    {
        if(
is_null($array)){
            return;
        }
        if(!
is_array($array)){
            throw new 
toba_error($texto);
        }
    }

    static function 
error($texto)
    {
        throw new 
toba_error($texto);
    }
}        
?>

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