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


Viewing file:     eiform_gatillos.php (1.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

class eiform_gatillos extends toba_ei_formulario_ml
{
    protected 
$tablas;
    protected 
$contexto_opuesto;

    function 
set_tablas_utilizadas($tablas$contexto_opuesto)
    {
        
$this->tablas $tablas;
        
$this->contexto_opuesto $contexto_opuesto;
    }
    
    
//-----------------------------------------------------------------------------------
    //---- JAVASCRIPT -------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function extender_objeto_js()
    {
        echo 
"
        //---- Validacion general ----------------------------------
        
        
{$this->objeto_js}.evt__validar_datos = function()
        {
            var tablas = new Array();
            var repetidas = new Array();
            var filas = this.filas();
            // Control de filas repetidas
            for (var id_fila in filas) {
                var valor = this.ef('tabla_rel_dim').ir_a_fila(filas[id_fila]).get_estado();
                if( in_array(valor, tablas) ) {
                    repetidas.push( valor );
                } else {
                    tablas.push( valor );
                }
            }
            
            // Control de valores duplicados con los datos del contexto
            var tablas_utilizadas = "
.toba_js::arreglo($this->tablas).";
            var reutilizadas = new Array();
            for ( id_fila in tablas ) {
                if( in_array(tablas[id_fila], tablas_utilizadas) ) {
                    reutilizadas.push( tablas[id_fila] );
                }
            }
            
            // Notificacion y validacion
            var ok = true;
            if( repetidas.length > 0 ) {
                notificacion.agregar('No es posible repetir GATILLOS dentro de una dimension. (' + repetidas.join(', ')  + ')' );
                ok = false;
            }
            if( reutilizadas.length > 0 ) {
                notificacion.agregar('Existen gatillos que ya fueron utilizados como GATILLOS 
$this->contexto_opuesto. (' + reutilizadas.join(', ') + ')' );
                ok = false;
            }
            return ok;
        }
        "
;
    }
}
?>

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