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


Viewing file:     toba_acciones_js.php (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 

/**
 * Centraliza la generación de código e includes javacript:
 *  - Include centralizado de recursos js
 *  - Conversión de estructuras de datos entre php y js
 * 
 * @package SalidaGrafica
 */
class toba_acciones_js
{
    private static 
$instancia;    
    protected 
$acciones = array();
    
    
/**
     * @return toba_acciones_js
     */
    
static function instancia() 
    {
        if (! isset(
self::$instancia)) {
            
self::$instancia = new toba_acciones_js();
        }
        return 
self::$instancia;
    }    
    
    
/**
     * @ignore
     */
    
function generar_js()
    {
        echo 
implode($this->acciones'');
    }
    
    
    
/**
     * Encola la ejecución de un código generico javascript
     * @param $codigo_js Código js (sin tags de apertura)
     */
    
function encolar($codigo_js)
    {
        
$this->acciones[] = $codigo_js;
    }
    
    
/**
     * Recarga la página actual
     * @param boolean $post Si es true intenta recargar incluyendo los datos del POST (pide confirmación al usuario)
     */
    
function refrescar_ventana($post=false)
    {
        if (
$post) {
            
$accion "window.location.reload(false);\n";
        } else {
            
$accion "window.location.href = window.location.href;\n";
        } 
        
$this->encolar($accion);
    }    

    
/**
     * Cierra la ventana actual 
     */
    
function cerrar_ventana()
    {
        
$accion "window.close();\n";
        
$this->encolar($accion);
    }        
    
    
/**
     * Navega hacia la operación destino indicada en el vinculo
     * @param toba_vinculo $vinculo
     */
    
function navegar(toba_vinculo $vinculo)
    {
        
$id toba::vinculador()->registrar_vinculo($vinculo);
        if (isset(
$id)) {
            
$accion "vinculador.invocar('$id');\n";
            
$this->encolar($accion);
        } else {
            
toba::logger()->warning("El usuario no puede acceder a la operación ".$vinculo->get_item());
        }        
    }
    
    
/**
     * Dado un vinculo, lo abre en una ventana popup 
     * Similar a llamar a $vinculo->activar_popup y usar navegar($vinculo)  
     * @param toba_vinculo $vinculo
     */
    
function abrir_popup(toba_vinculo $vinculo)
    {
        
$vinculo->activar_popup('popup');
        
$this->navegar($vinculo);
    }    
}

?>

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