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


Viewing file:     ci_edicion.php (3.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
php_referencia
::instancia()->agregar(__FILE__);

class 
ci_edicion extends toba_ci
{
    function 
get_relacion()    
    {
        return 
$this->controlador->get_relacion();
    }

    
//-------------------------------------------------------------------
    //--- Pantalla 'persona'
    //-------------------------------------------------------------------


    
function conf__form_persona()
    {
        
$datos $this->get_relacion()->tabla('persona')->get();
        
$fp_imagen $this->get_relacion()->tabla('persona')->get_blob('imagen');
        if (isset(
$fp_imagen)) {
              
//-- Se necesita el path fisico y la url de una archivo temporal que va a contener la imagen
              
$temp_nombre md5(uniqid(time()));
              
$temp_archivo toba::proyecto()->get_www_temp($temp_nombre);
    
              
//-- Se pasa el contenido al archivo temporal
              
$temp_fp fopen($temp_archivo['path'], 'w');
              
stream_copy_to_stream($fp_imagen$temp_fp);
              
fclose($temp_fp);
              
$tamaņo round(filesize($temp_archivo['path']) / 1024);
              
              
//-- Se muestra la imagen temporal
              
$datos['imagen_vista_previa'] = "<img src='{$temp_archivo['url']}' alt=''>";
              
$datos['imagen'] = 'Tamaņo: '.$tamaņo' KB';
        } else {
            
$datos['imagen'] = null;
        }
        return 
$datos;
    }

    function 
evt__form_persona__modificacion($registro)
    {
        
$this->get_relacion()->tabla('persona')->set($registro);
        if (
is_array($registro['imagen'])) {
            
//Se subio una imagen
            
$fp fopen($registro['imagen']['tmp_name'], 'rb');
            
$this->get_relacion()->tabla('persona')->set_blob('imagen'$fp);
        }        
    }

    
//-------------------------------------------------------------------
    //--- Pantalla 'juegos'
    //-------------------------------------------------------------------

    
function conf__form_juegos()    
    {
        return 
$this->get_relacion()->tabla('juegos')->get_filas(nulltrue);
    }

    function 
evt__form_juegos__modificacion($datos)
    {
        
$this->get_relacion()->tabla('juegos')->procesar_filas($datos);    
    }

    
//-------------------------------------------------------------------
    //--- Pantalla 'deportes'
    //-------------------------------------------------------------------

    //-- Cuadro --

    
function conf__cuadro_deportes()    
    {
        
$buscador $this->get_relacion()->tabla('deportes')->nueva_busqueda();
        
$buscador->    set_columnas_orden(array('hora_fin' => SORT_DESC,'desc_deporte' => SORT_ASC));
        return 
$buscador->buscar_filas();
    }

    function 
evt__cuadro_deportes__seleccion($seleccion)
    {
        
$this->get_relacion()->tabla('deportes')->set_cursor($seleccion);
    }
    
    
//-- Formulario --

    
function conf__form_deportes()
    {
        if (
$this->get_relacion()->tabla('deportes')->hay_cursor()) {
            return 
$this->get_relacion()->tabla('deportes')->get();
        }
    }

    function 
evt__form_deportes__modificacion($registro)
    {
        
$this->get_relacion()->tabla('deportes')->set($registro);
        
$this->evt__form_deportes__cancelar();
    }

    function 
evt__form_deportes__baja()
    {
        
$this->get_relacion()->tabla('deportes')->set(null);
        
$this->evt__form_deportes__cancelar();
    }

    function 
evt__form_deportes__alta($registro)
    {
        
$this->get_relacion()->tabla('deportes')->nueva_fila($registro);
    }

    function 
evt__form_deportes__cancelar()
    {
        
$this->get_relacion()->tabla('deportes')->resetear_cursor();
    }
    
}
?>

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