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


Viewing file:     ci_dependencias.php (2.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
    El controlador tiene que implementar:
    
        - get_dbr_dependencias()
*/
class ci_dependencias extends toba_ci
{
    private 
$tabla;
    protected 
$seleccion_dependencia;
    protected 
$seleccion_dependencia_anterior;

    
/*function destruir()
    {
        parent::destruir();
        //ei_arbol($this->get_tabla()->info(true));
    }*/

    
function mantener_estado_sesion()
    {
        
$propiedades parent::mantener_estado_sesion();
        
$propiedades[] = 'seleccion_dependencia';
        
$propiedades[] = 'seleccion_dependencia_anterior';
        return 
$propiedades;
    }

    function 
get_tabla()    
    {    
//Acceso al db_tablas
        
if (! isset($this->tabla)) {
            
$this->tabla $this->controlador->get_dbr_dependencias();
        }
        return 
$this->tabla;
    }

    function 
limpiar_seleccion()
    {
        unset(
$this->seleccion_dependencia_anterior);
        unset(
$this->seleccion_dependencia);
        
$this->dependencia('cuadro')->deseleccionar();
    }

    
//-------------------------------------------------------------
    //-- Formulario
    //-------------------------------------------------------------

    
function evt__formulario__alta($datos)
    {
        
$this->get_tabla()->nueva_fila($datos);
    }
    
    function 
evt__formulario__baja()
    {
        
$id_dep $this->get_tabla()->get_fila_columna($this->seleccion_dependencia_anterior'identificador');
        
$this->get_tabla()->eliminar_fila($this->seleccion_dependencia_anterior);
        
$this->evt__formulario__cancelar();
    }
    
    function 
evt__formulario__modificacion($datos)
    {
        
$id_nuevo $datos['identificador'];
        
$id_anterior $this->get_tabla()->get_fila_columna($this->seleccion_dependencia_anterior'identificador');
        
$this->get_tabla()->modificar_fila($this->seleccion_dependencia_anterior$datos);
        
$this->evt__formulario__cancelar();
    }
    
    function 
conf__formulario()
    {
        if (isset(
$this->seleccion_dependencia)) {
            
$this->seleccion_dependencia_anterior $this->seleccion_dependencia;
            return 
$this->get_tabla()->get_fila($this->seleccion_dependencia_anterior);
        }
    }

    function 
evt__formulario__cancelar()
    {
        
$this->limpiar_seleccion();
    }

    
//-------------------------------------------------------------
    //-- Cuadro
    //-------------------------------------------------------------

    
function evt__cuadro__seleccion($id)
    {
        
$this->seleccion_dependencia $id;
    }

    function 
conf__cuadro()
    {
        return 
$this->get_tabla()->get_filas();
    }
    
//-------------------------------------------------------------
}
?>

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