!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.74 GB of 61.93 GB (23.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     eiform_abm_detalle.php (3.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once('seleccion_imagenes.php');

class 
eiform_abm_detalle extends toba_ei_formulario_ml
{
    private 
$fila_protegida;

    function 
set_fila_protegida($fila)
    {
        
$this->fila_protegida $fila;    
    }

    function 
generar_input_ef($ef)
    {
        if (
$ef == 'imagen') {
            echo 
"<div class='editor-imagen-preview'>";
        }
        
parent::generar_input_ef($ef);
        if (
$ef == 'imagen') {
            
$fila $this->ef($ef)->get_fila_actual();
            
$origen $this->ef('imagen_recurso_origen')->get_estado();
            
$img $this->ef($ef)->get_estado();
            
seleccion_imagenes::generar_input_ef($origen$img$this->objeto_js$fila);            
        } 
        if (
$ef == 'imagen') {
            echo 
'</div>';
        }
    }    

    function 
extender_objeto_js()
    {
        
// La fila seleccionada no se puede eliminar
        
if (isset($this->fila_protegida)) {
            echo 
"    {$this->objeto_js}.evt__baja = function (fila) {
                    if( fila == 
{$this->fila_protegida}) {
                        alert('No es posible eliminar la columna que se esta editando');
                        return false;
                    }else{
                        return true;
                    }
                }
            "
;
        }
        
//Si cambia el obligatorio muestra el relajado por oculto
        
echo "
            
{$this->objeto_js}.evt__obligatorio__procesar = function(inicial, fila_actual) {
                if (isset(this.ef('oculto_relaja_obligatorio'))) {
                    if (this.ef('obligatorio').ir_a_fila(fila_actual).chequeado()) {
                        this.ef('oculto_relaja_obligatorio').ir_a_fila(fila_actual).activar();
                    } else {
                        this.ef('oculto_relaja_obligatorio').ir_a_fila(fila_actual).desactivar();
                    }
                }
            }
        "
;        
        
        
//Si se selecciona uno implicito, deseleccionar el resto.
        //Tambien seteo el manejo de datos (un implicito sin datos no tiene sentido)
        
echo "
            
{$this->objeto_js}.evt__implicito__procesar = function(inicial, fila_actual) {
                if (this.ef('implicito').ir_a_fila(fila_actual).chequeado()) {
                    this.ef('maneja_datos').ir_a_fila(fila_actual).chequear();
                    for (var id_fila in this._filas) {
                        if (this._filas[id_fila] != fila_actual) {
                            this.ef('implicito').ir_a_fila(this._filas[id_fila]).chequear(false);
                        }
                    }
                }
            }
        "
;
        
// Si se selecciona EN BOTONERA, no puede ser SOBRE FILA
        
echo "
            
{$this->objeto_js}.evt__en_botonera__procesar = function(inicial, fila_actual) {
                if (this.ef('en_botonera').ir_a_fila(fila_actual).chequeado()) {
                    if(this.ef('sobre_fila')) {// Esta extension se usa en varios forms...
                        if (this.ef('sobre_fila').ir_a_fila(fila_actual).chequeado()) {
                            this.ef('sobre_fila').ir_a_fila(fila_actual).chequear(false);
                        }
                    }
                    if(this.ef('es_seleccion_multiple')) {// Esta extension se usa en varios forms...
                        if (this.ef('es_seleccion_multiple').ir_a_fila(fila_actual).chequeado()) {
                            this.ef('es_seleccion_multiple').ir_a_fila(fila_actual).chequear(false);
                        }
                    }
                }
            }
        "
;
        
// Si se selecciona SOBRE FILA, no puede esta EN BOTONERA
        
echo "
            
{$this->objeto_js}.evt__sobre_fila__procesar = function(inicial, fila_actual) {
                if (this.ef('sobre_fila').ir_a_fila(fila_actual).chequeado()) {
                    if (this.ef('en_botonera').ir_a_fila(fila_actual).chequeado()) {
                        this.ef('en_botonera').ir_a_fila(fila_actual).chequear(false);
                    }
                }
            }
        "
;
    

        
//------------------------------------------------------------------------
        //-------------------------- PREVIEW DE IMAGENES --------------------------
        //------------------------------------------------------------------------
        
        
seleccion_imagenes::generar_js($this->objeto_jstrue);
    }
}
?>

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