!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_cache_db.php (1.48 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @ignore 
 *     Levanta el contenido de las tablas a la memoria y crea indices
 *     para porder solicitar subconjuntos de datos
 */
class toba_cache_db
{
    private 
$db;
    private 
$tablas = array();
    private 
$indices = array();

    function 
__construct$db )
    {
        
$this->db $db;
    }

    
/*
    *    Recuperacion de datos del CACHE
    */
    
function get_datos_tabla$tabla$clave )
    {
        if (isset(
$this->tablas[$tabla])) {
            if (isset(
$this->indices[$tabla][$clave])) {
                foreach (
$this->indices[$tabla][$clave] as $fila ) {
                    
$datos[] = $this->tablas[$tabla][$fila];
                }
                return 
$datos;
            } else {
                
//En el caso de algunas tablas, esto puede pasar 
                //throw new toba_error("CACHE: La clave '$clave' de la tabla '$tabla' no existe");
            
}
        } else {
            throw new 
toba_error("CACHE: La tabla '$tabla' no existe");
        }
    }

    
/*
    *    Levanta una tabla a la memoria y la indexa
    */
    
function agregar_tabla$tabla$sql$columna_clave )
    {
        
//Recupero el contenido
        
$this->tablas[$tabla] = $this->db->consultar$sql );

        
//Genero indices
        
$this->indices[$tabla] = array();
        for (
$a=0$a count($this->tablas[$tabla]); $a++) {
            
$id $this->tablas[$tabla][$a][$columna_clave];
            
$this->indices[$tabla][$id][] = $a;
        }
    }

    
/*
    *    Muestra un resumen del contenido del CACHE
    */
    
function info()
    {
        foreach (
$this->tablas as $tabla => $contenido) {
            
$resumen[$tabla]['registros'] = count($contenido);
            
$resumen[$tabla]['indices'] = count($this->indices[$tabla]);
        }    
        return 
$resumen;
    }
}
?>

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