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


Viewing file:     ci_navegacion_principal.php (1.79 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
php_referencia
::instancia()->agregar(__FILE__);

class 
ci_navegacion_principal extends toba_ci
{
    protected 
$precio_entrada 300;
    protected 
$maximas_reservas 3;
    protected 
$s__pago;
    protected 
$s__reservas = array();
    

    function 
evt__reservar()
    {
        
$this->s__reservas[] = $this->s__pago;
        
//--- Cambio explicito de pantalla
        
$this->set_pantalla('pant_pago');    
    }
    
    
//----------------------------------------------------------
    //-------------------------- Formulario --------------------
    //----------------------------------------------------------
    
    
function conf__form_pago()
    {
        if (isset(
$this->s__pago)) {
            return 
$this->s__pago;
        }
    }
    
    function 
evt__form_pago__pagar($datos)
    {
        
$this->s__pago $datos;
        
//--- Cambio explicito de pantalla
        
$this->set_pantalla('pant_ubicacion');
    }
    
    
//----------------------------------------------------------
    //-------------------------- Pantallas --------------------------
    //----------------------------------------------------------
    
    
    
function conf__pant_pago()
    {
        
$cantidad = isset($this->s__reservas) ? count($this->s__reservas) : 0;
        
$this->pantalla()->set_descripcion("Precio de la entrada $ {$this->precio_entrada}<br>"
                    
"Cantidad de reservas: $cantidad");
    }
    
    function 
conf__pant_ubicacion()
    {
        
$this->pantalla()->set_descripcion("Se reservará una entrada por $ {$this->s__pago['importe']}");
    }
    
    function 
evt__pant_pago__salida()
    {
        if (
$this->s__pago['importe'] < $this->precio_entrada) {
            throw new 
toba_error("Debe abonar al menos $ {$this->precio_entrada}");
        }
    }

    function 
evt__pant_ubicacion__entrada()
    {
        if (
count($this->s__reservas) >= $this->maximas_reservas) {
            throw new 
toba_error("Lo sentimos, se ha llegado al límite de reservas ({$this->maximas_reservas})");
        }
    }
    

}

?>

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