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


Viewing file:     pant_vista_previa.php (2.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
class pant_vista_previa extends toba_ei_pantalla
{
    function 
generar_layout()
    {
        
//--- Barra SVN
        
echo "<div class='editor-vista-previa'>".$this->controlador()->get_info_archivo();
        echo 
'<div>';
        
$this->generar_botones_eventos(true);
        echo 
'</div></div>';

        
//--- Barra de convenciones
        
$mensajes_linea = array();
        
$modelo toba_editor::get_modelo_proyecto();
        
$estandar $modelo->get_estandar_convenciones();
        
$path $this->controlador()->get_path_archivo();
        if (
file_exists($path)) {
            
$resultado $estandar->validar(array($path));
            
$titulo '<strong>Convenciones</strong>';
            
$cant_errores $resultado['totals']['errors'];
            
$cant_warnings $resultado['totals']['warnings'];
            
$extra '';
            if (
$cant_errores === && $cant_warnings === 0) {
                
$nivel 'info';
                
$salida 'Ok!';
            } else {
                
$nivel = ($cant_errores !== 0) ? 'error' 'warning';
                
$salida "$cant_errores ";
                
$salida .= ($cant_errores !== 1) ? 'errores' 'error';
                
$salida .= " / $cant_warnings ";
                
$salida .= ($cant_warnings !== 1) ? 'avisos' 'aviso';
                foreach (
$resultado['files'][$path]['messages'] as $linea => $columnas) {
                    
$textos = array();
                    foreach (
$columnas as $column => $mensajes) {
                        foreach (
$mensajes as $mensaje) {
                            
//$extra .= "<strong>$linea</strong>:{$mensaje['message']}";
                            
$imagen = ($mensaje['type'] == 'ERROR') ? 'error.gif' 'warning.gif';
                            
$textos[] = $estandar->parsear_mensaje($mensaje['message']);    //Cambia el id de la convencion por una url
                        
}
                    }
                    
$ayuda implode('<br><br>'$textos);
                    
$ayuda str_replace("'""`"$ayuda);
                    
$mensajes_linea[$linea] = toba_recurso::imagen_toba($imagentruenullnull$ayuda);
                }
            }
            
$this->generar_html_descripcion("$titulo$salida $extra"$nivel);
        }

        
//-- Vista previa
        
echo "<div class='editor-vista-previa-codigo'>";
        
$codigo $this->controlador()->get_previsualizacion();
        require_once(
toba_dir().'/php/3ros/PHP_Highlight.php');
        
$h = new PHP_Highlight(false);
        
$h->loadString($codigo);
        
$formato_linea "<span class='editor-linea-codigo'>%02d</span>&nbsp;&nbsp;";
        echo @
$h->toHtml(truetrue$formato_lineatrue$mensajes_linea);
        echo 
'</div>';
    }

    function 
extender_objeto_js()
    {
        if (
$this->existe_evento('trac_ver')) {
            
$path $this->controlador()->get_path_archivo();
            
$svn = new toba_svn();
            
$url $svn->get_url($path);
            
$proyecto toba_editor::get_proyecto_cargado();
            
$url preg_replace('/svn\/(\w+)/i''trac/$1/browser'$url);
            echo 
"
                
{$this->objeto_js}.evt__trac_ver = function() {
                    var opciones = {'scrollbars' : 1, 'resizable': 1};
                    abrir_popup('trac', '
$url', opciones);
                    return false;
                }
            "
;
        }
    }
}

?>

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