!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/lib/   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_estandar_convenciones.php (1.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once('3ros/PHP_CodeSniffer/CodeSniffer.php');

class 
toba_estandar_convenciones
{
    protected 
$estandar;
    protected 
$sniffer;
    protected 
$warnings;

    function 
__construct($estandar='Toba'$warnings=true)
    {
        
$this->warnings $warnings;
        if (
$estandar == 'Toba') {
            
$this->estandar toba_dir().'/php/convenciones/Toba';
            
$this->estandar toba_manejador_archivos::path_a_plataforma($this->estandar);
        } else {
            
$this->estandar $estandar;
        }
        
$this->sniffer = new PHP_CodeSniffer(0);
        if (!
$this->sniffer->isInstalledStandard($this->estandar)) {
            throw new 
toba_error("El estandar '{$this->estandar}' no esta instalado");
        }
    }

    function 
validar($paths)
    {
        @
$this->sniffer->process($paths$this->estandar, array(), false);
        return 
$this->sniffer->prepareErrorReport();
    }

    function 
get_consola_reporte()
    {
        
ob_start();
        
$this->sniffer->printErrorReport($this->warnings);
        
$contenido ob_get_contents();
        
ob_get_clean();
        return 
$contenido;
    }

    function 
get_consola_sumario($path_relativo=null)
    {
        
ob_start();
        
$this->sniffer->printErrorReportSummary($this->warnings$path_relativo);
        
$contenido ob_get_contents();
        
ob_get_clean();
        return 
$contenido;
    }

    
/**
     * Cambia el id de una convencion por su URL 
     */
    
function parsear_mensaje($mensaje)
    {
        
$resultado = array();
        
$expresion '/^\[(.*)\](.*)/';
        if (
preg_match_all($expresion$mensaje$resultado)) {
            
$pagina $resultado[1][0];
            
$despues $resultado[2][0];
            
$url get_url_desarrollos().'/trac/siu/wiki/Convenciones/Codigo/'.$pagina;
            
$mensaje "$despues <br><br><a href=$url target=wiki>Ver detalles de la convención</a>";
            return 
$mensaje;
        } else {
            return 
$mensaje;
        }
    }
    
    
}
?>

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