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


Viewing file:     ci_jasper.php (1.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class ci_jasper extends toba_ci
{
    protected 
$s__paths;
    

    
//-----------------------------------------------------------------------------------
    //---- cuadro -----------------------------------------------------------------------
    //-----------------------------------------------------------------------------------

    
function conf__cuadro(toba_ei_cuadro $cuadro)
    {
        
$path toba::proyecto()->get_path();
        
$archivos toba_manejador_archivos::get_archivos_directorio($path'/.jasper$/'true);
        
        
$datos = array();
        
$i 0;
        foreach (
$archivos  as $archivo) {
            
$this->s__paths[$i] = $archivo;
            
$datos[$i]['path'] = $i;
            
$datos[$i]['reporte'] = ucwords(str_replace('_'' 'basename($archivo'.jasper')));
            
$i++;
        }
        
$cuadro->set_datos($datos);
        
    }
    
    function 
vista_jasperreports(toba_vista_jasperreports $report
    {
        
$path toba::memoria()->get_parametro('path');
        if (! isset(
$path) || ! is_numeric($path) || ! isset($this->s__paths[$path])) {
            throw new 
toba_error_def("Parámetro no definido");
        }
        
$report->set_path_reporte($this->s__paths[$path]);
        
$db toba::instancia()->get_db();
        
$report->set_conexion($db);
    }
    
    
    
    
/**
     * Atrapa el evento seleccion del cuadro e invoca manualmente el serviccio vista_jasperreports pasandole el hash por parámetro
     */
    
function extender_objeto_js()
    {
        if (
$this->get_id_pantalla() == 'pant_estaticos') {
            echo 
"
                
{$this->dep('cuadro')->objeto_js}.evt__imprimir = function(params) {
                    location.href = vinculador.get_url(null, null, 'vista_jasperreports', {'path': params});
                    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.6019 ]--