!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/proyectos/toba_editor/php/utilitarios/analizador_sql/   drwxrwxr-x
Free 14.36 GB of 61.93 GB (23.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ci_analizador_sql.php (2.24 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ci_analizador_sql extends toba_ci
{
    protected 
$s__formateado;
    
    function 
ini__operacion()
    {
        
$this->s__formateado false;
    }
    
    
//-----------------------------------------------------------------------------------
    //---- cuadro -----------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function conf__cuadro(toba_ei_cuadro $cuadro)
    {
        
$info toba::memoria()->get_dato_instancia('previsualizacion_consultas');
        if (! isset(
$info)) {
            throw new 
toba_error('No se encontró información de consultas ejecutadas');
        }
        
$datos $info['datos'];
        require_once(
'3ros/Text_Highlighter/Highlighter.php');
        
$hlSQL Text_Highlighter::factory('SQL');
        
$i 1;
        foreach (
array_keys($datos) as $id) {
            
$datos[$id]['numero'] = $i;
            
$datos[$id]['id'] = $id;
            if (isset(
$datos[$id]['fin'])) {
                
$datos[$id]['tiempo'] = ($datos[$id]['fin'] - $datos[$id]['inicio']);
            } else {
                
$datos[$id]['tiempo'] = 0;
            }
            
$datos[$id]['sql'] = $hlSQL->highlight($datos[$id]['sql']);
            
$i++; 
        }
        if (
$this->s__formateado) {
            
$cuadro->set_formateo_columna('sql''pre');
        }
        
$cuadro->set_formateo_columna('tiempo''tiempo_ms');        
        
$cuadro->set_datos($datos);
    }
    
    function 
evt__cuadro__formateado()
    {
        
$this->s__formateado = ! $this->s__formateado;
    }

    function 
evt__cuadro__explain($seleccion)
    {
        
$info toba::memoria()->get_dato_instancia('previsualizacion_consultas');
        if (! isset(
$info)) {
            throw new 
toba_error('No se encontró información de consultas ejecutadas');
        }
        if (isset(
$info['datos'][$seleccion['id']])) {
            
$fuente $info['fuente'];
            
$base toba_admin_fuentes::instancia()->get_fuente($fuentetoba_editor::get_proyecto_cargado())->get_db();
            
$sql 'EXPLAIN ANALYZE  '.$info['datos'][$seleccion['id']]['sql'];
            
$base->abrir_transaccion();
            
$datos $base->consultar($sqltoba_db_fetch_num);
            
$base->abortar_transaccion();
            
$salida '';
            foreach (
$datos as $fila) {
                
$salida .= $fila[0]."\n   ";
            }
            
$salida '<pre>'.$salida.'</pre>';
            
toba::notificacion()->info($salida);        
        }
    }
    
    function 
generar_html()
    {
        echo 
toba_recurso::link_css('highlighter'nulltrue);        
        
parent::generar_html();
    }

}

?>

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