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


Viewing file:     ci_abm.php (2.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
//--------------------------------------------------------------------
class ci_abm extends toba_ci
{
    protected 
$es_nuevo false;
        
    function 
mantener_estado_sesion()
    {
        
$propiedades parent::mantener_estado_sesion();
        
$propiedades[] = 'es_nuevo';
        return 
$propiedades;
    }
    
    function 
conf()
    {
        if (
$this->es_nuevo) {
            
$this->pantalla()->eliminar_evento('eliminar');
        }
    }
    
    
//---- Eventos CI -------------------------------------------------------

    
function evt__procesar()
    {
        if (
$this->es_nuevo) {
            
//Seteo los datos asociados al uso de este editor
            
$this->dependencia('relacion')->tabla('base')->set_fila_columna_valor(0"proyecto"toba_editor::get_proyecto_cargado());
        }        
        
$this->dependencia('relacion')->sincronizar();
        
$this->dependencia('relacion')->resetear();
        
$this->es_nuevo false;
    }

    function 
evt__cancelar()
    {
        
$this->dependencia('relacion')->resetear();
        
$this->set_pantalla('seleccion');
        
$this->es_nuevo false;
    }

    function 
evt__nuevo()
    {
        
$this->es_nuevo true;    
        
$this->set_pantalla('edicion');
    }
    
    function 
evt__eliminar()
    {
        
$this->dependencia('relacion')->eliminar();
    }
    
    
//-------------------------------------------------------------------
    //--- DEPENDENCIAS
    //-------------------------------------------------------------------

    //---- listado -------------------------------------------------------

    
function evt__listado__seleccion($seleccion)
    {
        
$this->dependencia('relacion')->cargar($seleccion);
        
$this->set_pantalla('edicion');
    }

    function 
conf__listado()
    {
        
$sql "
            SELECT 
                ef.elemento_formulario,
                ef.descripcion,
                ef.obsoleto,
                CASE 
                    WHEN obsoleto = 1 THEN 'Obsoletos'
                    ELSE 'Activos'
                END as obsoleto_desc
            FROM
                apex_elemento_formulario ef
            WHERE
                ef.proyecto = "
.quote(toba_editor::get_proyecto_cargado()).'
            ORDER BY obsoleto,ef.elemento_formulario
        '
;
        return 
consultar_fuente($sql);
    }

    
    function 
conf__form_base()
    {
        return     
$this->dependencia('relacion')->tabla('base')->get();
    }
    
    function 
evt__form_base__modificacion($datos)
    {
        
$this->dependencia('relacion')->tabla('base')->set($datos);
    }

}

?>

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