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


Viewing file:     toba_molde_elemento_componente.php (3.87 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
*    
*/
class toba_molde_elemento_componente extends toba_molde_elemento
{
    protected 
$clase_proyecto ='toba';
    protected 
$subclase;
    protected 
$molde_php null;                    // Clase molde de codigo PHP
    
protected $carpeta_archivo;
    
    function 
ini()
    {
        
//Averiguo cual es el punto de montaje /php
        
$db toba_contexto_info::get_db(); 
        
$datos $this->datos->tabla('base')->get_clave_valor(0);        
        
$sql 'SELECT pm_contexto FROM apex_proyecto WHERE proyecto = '.$db->quote($datos['proyecto']);
        
$rs $db->consultar_fila($sql);
        
$this->datos->tabla('base')->set_fila_columna_valor(0,'punto_montaje'$rs['pm_contexto']);                        
        
$this->datos->tabla('base')->set_fila_columna_valor(0,'clase',$this->clase);
        
$this->datos->tabla('base')->set_fila_columna_valor(0,'clase_proyecto',$this->clase_proyecto);
        
$this->carpeta_archivo $this->asistente->get_carpeta_archivos();        
    }
    
    function 
get_clase()
    {
        if (isset(
$this->clase)) {
            return 
$this->clase;
        }
    }
    
    
//---------------------------------------------------
    //-- Extension de clases
    //---------------------------------------------------    

    /**
    *    Declara la extension del archivo, despues de su invocacion se puede usar
    *    el metodo php() para acceder al molde de la clase
    */
    
function extender($subclase$archivo)
    {
        if(!isset(
$this->molde_php)) {
            
$this->subclase $subclase;
            
$this->archivo $archivo;
            
$this->molde_php = new toba_codigo_clase$this->subclase$this->clase);
            
//Dejo la marca
            
if( file_exists($this->archivo_absoluto()) ) {
                
$txt "Reemplazar archivo: " $this->archivo_relativo();
                
$ayuda "Si no desea reemplazar el archivo, modifique el molde especificando otra carpeta de destino u otro prefijo para la generacion de clases.";
                
//$this->asistente->agregar_opcion_generacion( $this->get_id_opcion_archivo(), $txt, $ayuda );
            
}
        }
    }
    
    
/**
     * Tiene una subclase?
     * @return boolean
     */
    
function extendido()
    {
        return 
$this->datos->tabla('base')->get_columna('subclase') != '';
    }

    function 
php()
    {
        return 
$this->molde_php;    
    }
    
    
/*function generar_archivo()
    {
        if (file_exists($this->archivo_absoluto())) {
            //if( $this->asistente->consultar_opcion_generacion($this->get_id_opcion_archivo()) ) {
                return parent::generar_archivo();
            //} else {
            //    return false;    
            //}
        } else {
            return parent::generar_archivo();
        }    
    }*/
    
    //---------------------------------------------------
    //-- Generacion de METADATOS & ARCHIVOS
    //---------------------------------------------------    

    
protected function get_codigo_php()
    {
        
$existente null;
        if (!
$this->pisar_archivo && file_exists($this->archivo_absoluto())) {
            
$existente toba_archivo_php::codigo_sacar_tags_php(file_get_contents($this->archivo_absoluto()));
        }
        return 
$this->molde_php->get_codigo($existente);    
    }

    protected function 
asociar_archivo()
    {
        
$this->datos->tabla('base')->set_fila_columna_valor(0,'subclase',$this->subclase);
        
$this->datos->tabla('base')->set_fila_columna_valor(0,'subclase_archivo',$this->archivo_relativo());
    }
    
    function 
get_clave_componente_generado()
    {
        
$datos $this->datos->tabla('base')->get_clave_valor(0);
        return array(
'clave' => $datos['objeto'], 'proyecto' => $datos['proyecto']);
    }
    
    
//----------------------------------------------------------
    //    Ubicacion mediante punto de montaje
    //----------------------------------------------------------
    
function directorio_absoluto()
    {
        
$datos $this->datos->tabla('base')->get_fila(0);        
        if (!
is_null($datos['punto_montaje']) && ($datos['punto_montaje'] !== 0)) {     
            
$punto_montaje toba_pms::instancia()->get_instancia_pm_proyecto($datos['proyecto'], $datos['punto_montaje']);
            return 
$punto_montaje->get_path_absoluto(). '/' $this->directorio_relativo();
        } else {
            return 
parent::directorio_absoluto();
        }
    }
}
?>

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