!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/nucleo/lib/salidas/   drwxr-xr-x
Free 14.63 GB of 61.93 GB (23.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_impr_html.php (2.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Genera un HTML básico pensado para impresión con un browser
 * Toma un conjunto de componentes e les invoca el método <pre>vista_impresion</pre>
 * @package SalidaGrafica
 */
class toba_impr_html implements toba_impresion
{
    private 
$objetos = array();
    private 
$configuracion = array();
    private 
$limpiar;
    private 
$debug true;
    
    function 
asignar_objetos$objetos )
    {
        
$this->objetos $objetos;
    }

    
/**
     * Envia al browser el HTML con estructura de impresión
     */
    
function generar_salida()
    {
        
header('Content-Type: text/html; charset=iso-8859-1'true); 
        
$this->generar_html_encabezado();
        foreach( 
$this->objetos as $objeto ) {
            
$objeto->vista_impresion$this );    
        }
        
$this->generar_html_pie();
    }

    protected function 
generar_html_encabezado()
    {
        echo 
"<html><head>";
        
$estilo toba::proyecto()->get_parametro('estilo');
        echo 
toba_recurso::link_css("toba_impr"'screen');
        echo 
toba_recurso::link_css("toba_impr"'print');
         echo 
"<style type='text/css' media='print'>
            .barra-impresion {
                display: none;                
            }
            </style>\n"
;
        
toba_js::cargar_consumos_basicos();
        echo 
"</head><body>\n";
        echo 
"<div class='barra-impresion'>";
        echo 
"<button onclick='window.print()'>".
                    
toba_recurso::imagen_toba('impresora.gif',true,null,null).
            
"    Imprimir</button>";        
        echo 
"</div>";
        echo 
$this->encabezado();
    }

    private function 
generar_html_pie()
    {
        
$this->pie();
        echo 
"</div>";
        echo 
"</body></html>";
    }

    protected function 
encabezado()
    {
    }
    
    protected function 
pie()
    {
    }

    
//------------------------------------------------------------------------
    //-- Primitivas graficas
    //------------------------------------------------------------------------
    
    
function salto_pagina()
    {
        echo 
"<div class='salto-pagina'></div>\n";            
    }
    
    function 
titulo$texto )
    {
        if( 
trim($texto) != '' ) {
            echo 
"<div class='imp-titulo'>$texto</div>\n";            
        }
    }
    
    function 
subtitulo$texto )
    {
        if( 
trim($texto) != '' ) {
            echo 
"<div class='imp-subtitulo'>$texto</div>\n";            
        }
    }

    function 
mensaje$texto )
    {
        if( 
trim($texto) != '' ) {
            echo 
"<div class='imp-mensaje'>$texto</div>\n";            
        }
    }
}
?>

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