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


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

class ci_propiedades extends toba_ci
{
    protected 
$usuario_actual '';
    protected 
$grupo_acceso;
    protected 
$eliminado false;
    const 
clave_falsa 'xS34Io9gF2JD';
    
    function 
ini()
    {
        
$zona toba::zona();
        
$cargar false;
        
$editable $zona->get_editable();
        if (isset(
$editable)) {
            if (
$editable != $this->usuario_actual) {
                
//Lo que tiene la zona es nuevo, asi que se cargan los datos
                
$this->usuario_actual $editable;
                
$condiciones['basicas'] = "basicas.usuario='{$this->usuario_actual}'";
                
$condiciones['proyecto'] = "proyecto.proyecto='".toba_editor::get_proyecto_cargado()."'";
                
$this->dependencia('datos')->persistidor()->cargar_con_wheres($condiciones);
            }
        }
        
        
//Si se pasa el grupo de acceso se resetea la operación porque se asume un alta
        
$g_acceso toba::memoria()->get_parametro('grupo_acceso');
        if (isset(
$g_acceso)) {
            
$this->evt__cancelar();
            
$this->grupo_acceso $g_acceso;
        }
    }
    
    function 
mantener_estado_sesion()
    {
        
$propiedades parent::mantener_estado_sesion();
        
$propiedades[] = 'usuario_actual';
        return 
$propiedades;
    }
    
    
//---- Eventos CI -------------------------------------------------------

    
function conf()
    {
        if (! isset(
$this->usuario_actual)) {
            
$this->pantalla()->eliminar_estado_sesion('eliminar');
        }
    }        
    
    function 
evt__procesar()
    {
        
$this->dependencia('datos')->sincronizar();
        if (! isset(
$this->usuario_actual)) {
            
//Si era un alta
            
$basicas $this->dependencia('datos')->tabla('basicas')->get();
            
$this->usuario_actual $basicas['usuario'];
            
//Hay que avisarle a la zona
            
toba::zona()->cargar($this->usuario_actual);
        }
    }

    function 
evt__cancelar()
    {
        
$this->dependencia('datos')->resetear();
        unset(
$this->usuario_actual);
        
toba::solicitud()->zona()->resetear();
    }

    function 
evt__eliminar()
    {
        
$this->dependencia('datos')->eliminar();
        
$this->eliminado true;
        
toba::notificacion()->agregar('El usuario ha sido eliminado.''info');
        
$this->evt__cancelar();
    }
    
//-------------------------------------------------------------------
    //--- DEPENDENCIAS
    //-------------------------------------------------------------------

    //---- form_basicas -------------------------------------------------------

    
function evt__form_basicas__modificacion($datos)
    {
        
//Esto produce que si el usuario no modifica explicitamente la clave, esta no se cambie
        
if ($datos['clave'] == self::clave_falsa ) {
            unset(
$datos['clave']);    
        }
        
$this->dependencia('datos')->tabla('basicas')->set($datos);
    }

    function 
conf__form_basicas()
    {
        
$datos $this->dependencia('datos')->tabla('basicas')->get();
        if (isset(
$datos)) {
            
$datos['clave'] = self::clave_falsa;
        }
        return 
$datos;
    }

    
//---- form_proyecto -------------------------------------------------------

    
function evt__form_proyecto__modificacion($datos)
    {
        if (isset(
$datos['usuario_grupo_acc'])) {
            
//--- Se agrega o cambia el grupo de acceso
            
$datos['proyecto'] = toba_editor::get_proyecto_cargado();
            
$this->dependencia('datos')->tabla('proyecto')->set($datos);
        } else {
            
//--- Se elimina o se mantiene sin grupo de acceso en este proyecto
            
$this->dependencia('datos')->tabla('proyecto')->set(null);
        }
    }

    function 
conf__form_proyecto()
    {
        
$base $this->dependencia('datos')->tabla('proyecto')->get();
        if (!isset(
$base) && isset($this->grupo_acceso)) {
            
$base = array();
            
$base['usuario_grupo_acc'] = $this->grupo_acceso;
        }
        return 
$base;
    }


}

?>

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