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


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

/**
 * Permite hacer reemplazos masivos en una cadena de texto
 * @package Varios
 */
class toba_editor_texto
{
    protected 
$sustituciones;
    protected 
$id_sustitucion;
    
    
/**
     * Ingresa criterios de reemplazo
     * @param string $texto_buscado Exp. regular
     * @param string $texto_reemplazo
     */
    
function agregar_sustitucion$texto_buscado$texto_reemplazo )
    {
        
$this->sustituciones$this->id_sustitucion ]['buscado'] = $texto_buscado;
        
$this->sustituciones$this->id_sustitucion ]['reemplazo'] = $texto_reemplazo;
        
$this->id_sustitucion++;
    }    

    
/**
     * Procesa todos las sustituciones ingresadas
     * @param string $texto
     * @return string texto resultante
     */
    
function procesar($texto)
    {
        foreach( 
$this->sustituciones as $sustitucion ) {
            
$texto preg_replace$sustitucion['buscado'], $sustitucion['reemplazo'], $texto );
        }
        return 
$texto;
    }
}

/**
 * Permite hacer reemplazos masivos en un archivo de texto
 * @package Varios
 */
class toba_editor_archivos extends toba_editor_texto
{
    
/**
     * Procesa todos las sustituciones ingresadas tomando un archivo de entrada y uno de salida
     * @param string $archivo Path del archivo de entrada
     * @param string $archivo_resultado Path del archivo resultante
     */
    
function procesar_archivo$archivo$archivo_resultado=null )
    {
        
$archivo_resultado = isset($archivo_resultado) ? $archivo_resultado $archivo;
        
$texto $this->procesar(file_get_contents$archivo ));
        
file_put_contents$archivo_resultado$texto );
    }
    
    
/**
     * Procesa las sustituciones en un conjunto de archivos 
     * @param array $archivos Arreglo de paths de archivos
     */
    
function procesar_archivos$archivos )
    {
        foreach( 
$archivos as $archivo ) {
            
$this->procesar_archivo$archivo );
        }
    }
}
?>

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