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


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

class ci_visor_modelo extends toba_ci
{
    protected 
$fuente;
    protected 
$s__tabla;
    
    function 
ini()
    {
        if (
$editable toba::zona()->get_editable()) {
            
$this->fuente $editable[1];
        } else {
            throw new 
toba_error('ERROR: Esta operacion debe ser llamada desde la zona de fuentes');
        }
    }

    function 
evt__volver()
    {
        
$this->set_pantalla('pant_tablas');
        unset(
$this->s__tabla);
    }

    
//-- TABLAS -------------------------------------------------

    
function conf__pant_tablas()
    {
        
$this->pantalla()->set_descripcion('Listado de tablas de la FUENTE de DATOS <strong>'.$this->fuente.'</strong>');    
    }

    function 
evt__tablas__seleccion($seleccion)
    {
        
$this->s__tabla $seleccion['nombre'];
        
$this->set_pantalla('pant_columnas');
    }

    function 
conf__tablas(toba_ei_cuadro $cuadro)
    {
        return 
toba::db($this->fuentetoba_editor::get_proyecto_cargado())->get_lista_tablas_y_vistas();
    }

    
//-- COLUMNAS -------------------------------------------------
    
    
function conf__pant_columnas()
    {
        
$this->pantalla()->set_descripcion('Columnas de la TABLA <strong>'.$this->s__tabla.'</strong>');
    }

    function 
conf__columnas(toba_ei_cuadro $cuadro)
    {
        
$columnas toba::db($this->fuentetoba_editor::get_proyecto_cargado())->get_definicion_columnas($this->s__tabla);
        foreach (
array_keys($columnas) as $id) {
            if (
$columnas[$id]['pk']) {
                
$columnas[$id]['pk'] = toba_recurso::imagen_toba('aplicar.png'truenullnull);
            } else {
                
$columnas[$id]['pk'] = '&nbsp;';
            }
            if (
$columnas[$id]['not_null']) {
                
$columnas[$id]['not_null'] = toba_recurso::imagen_toba('aplicar.png'truenullnull);
            } else {
                
$columnas[$id]['not_null'] = '&nbsp;';                
            }
            if (!
$columnas[$id]['secuencia']) {
                
$columnas[$id]['secuencia'] = '&nbsp;';                
            }
        }
        
$cuadro->set_datos($columnas);
    }

    function 
evt__columnas__seleccion($seleccion)
    {
        
$columnas toba::db($this->fuentetoba_editor::get_proyecto_cargado())->get_definicion_columnas($this->s__tabla);
        foreach (
$columnas as $columna) {
            if (
$seleccion['nombre'] === $columna['nombre']) {
                
$this->s__tabla $columna['fk_tabla'];
            }
        }
    }
}

?>

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