!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/php/modelo/info/componentes_perfil/   drwxr-xr-x
Free 14.76 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:     toba_rf_item.php (3.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class toba_rf_item extends toba_rf
{
    protected 
$icono "item.gif";
    protected 
$expandir_deps_sin_pantalla;
    
    function 
__construct($restriccion$proyecto$item$id_padre$expandir_dep_sueltas=false
    {
        
$this->id_padre $id_padre;        
        
$this->restriccion $restriccion;
        
$this->proyecto $proyecto;
        
$this->item $item;
        
$datos $this->cargar_datos();
        
$this->imagen $datos['imagen'];
        
$this->imagen_origen $datos['imagen_recurso_origen'];
        
$this->expandir_deps_sin_pantalla $expandir_dep_sueltas;
        if (
$datos['cant_dependencias'] > 0) {
            
$this->es_hoja false;
            
//-- Solo debe cargarse inicialmente si existe alguna dependencia que tiene una restricción
            
if ($this->tiene_dependencia_con_restriccion($datos)) {
                
$this->cargar_hijos();
            }
        }
        
parent::__construct($datos['nombre'], null$this->item);
        if (! isset(
$datos['descripcion']) || empty($datos['descripcion'])) {
            
$this->nombre_largo $this->nombre_corto;
        } else {
            
$this->nombre_largo $datos['descripcion'];
        }
        
$this->get_imagen();
    }
    
    function 
get_id()
    {
        return 
'item_'.parent::get_id();
    }
    
    function 
sincronizar()
    {
        if (
$this->tiene_hijos_cargados()) {
            foreach (
$this->get_hijos() as $hijo) {
                
$hijo->sincronizar();
            }
        }
    }
    
    function 
cargar_datos()
    {
        
$item quote($this->item);
        
$proyecto quote($this->proyecto);
        
$sql "SELECT         nombre,
                            descripcion,
                            padre,
                            imagen_recurso_origen,
                            imagen,
                            (SELECT COUNT(*) FROM apex_item_objeto                    WHERE item = i.item AND proyecto = i.proyecto) as cant_dependencias,                            
                            (SELECT COUNT(*) FROM apex_restriccion_funcional_ef        WHERE item = i.item AND proyecto = i.proyecto) as cant_rest_ef,
                            (SELECT COUNT(*) FROM apex_restriccion_funcional_pantalla    WHERE item = i.item AND proyecto = i.proyecto) as cant_rest_pant,
                            (SELECT COUNT(*) FROM apex_restriccion_funcional_evt        WHERE item = i.item AND proyecto = i.proyecto) as cant_rest_evt,
                            (SELECT COUNT(*) FROM apex_restriccion_funcional_ei        WHERE item = i.item AND proyecto = i.proyecto) as cant_rest_ei,
                            (SELECT COUNT(*) FROM apex_restriccion_funcional_cols         WHERE item = i.item AND proyecto = i.proyecto) as cant_rest_cols,
                            (SELECT COUNT(*) FROM apex_restriccion_funcional_filtro_cols  WHERE item = i.item AND proyecto = i.proyecto) as cant_rest_filtro_cols
                FROM 
                    apex_item i
                WHERE item = 
$item
                AND proyecto = 
$proyecto";
        return 
toba::db()->consultar_fila($sql);
    }

    protected function 
tiene_dependencia_con_restriccion($datos)
    {
        return (
$datos['cant_rest_ef'] > ||
                
$datos['cant_rest_pant'] > ||
                
$datos['cant_rest_evt'] > ||
                
$datos['cant_rest_ei'] > ||
                
$datos['cant_rest_cols'] > ||
                
$datos['cant_rest_filtro_cols'] > 0);
    }
    
    function 
cargar_hijos()
    {
        
$hijos = array();
        
$opciones $this->buscar_hijos();
        foreach (
$opciones as $hijo) {
            
$hijos[] = new toba_rf_ci($this->restriccion$this->proyecto$this->item$hijo['componente'], $thistrue$this->expandir_deps_sin_pantalla);
        }
        if (! empty(
$hijos)) {
            
$this->set_hijos($hijos);
        }
    }
    
    function 
buscar_hijos()
    {
        
$item quote($this->item);
        
$proyecto quote($this->proyecto);
        
$sql "SELECT
                    o.objeto as componente
                FROM
                    apex_item_objeto io,
                    apex_objeto o
                WHERE
                    io.item = 
$item AND
                    io.proyecto = 
$proyecto AND
                    io.objeto = o.objeto AND
                    io.proyecto = o.proyecto AND
                    o.clase = 'toba_ci'"
;
        return 
toba::db()->consultar($sql);
    }
}
?>

:: 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: 1.0327 ]--