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


Viewing file:     toba_punto_montaje_factory.php (1.91 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of toba_punto_montaje_factory
 *
 * @author sp14ab
 */
class toba_punto_montaje_factory
{
    
/**
     * Construye un punto de montaje a partir de un registro en la tabla puntos de montaje
     * @param array $registro
     */
    
static function construir($registro)
    {
        
$tipo $registro['tipo'];

        switch(
$tipo) {
            case 
toba_punto_montaje::tipo_indefinido:
                return 
self::construir_indefinido($registro);
            case 
toba_punto_montaje::tipo_proyecto:
                return 
self::construir_proyecto($registro);
            case 
toba_punto_montaje::tipo_pers:
                return 
self::construir_pers($registro);    
            default:
                throw new 
toba_error("PUNTOS DE MONTAJE: El tipo $tipo es inválido");
        }
    }

    
/**
     * Inicializa los valores comunes entre los distintos tipos de punto
     */
    
static protected function init_punto_generico(toba_punto_montaje $punto$registro)
    {
        
$punto->set_id($registro['id']);
        
$punto->set_etiqueta($registro['etiqueta']);
        
$punto->set_proyecto($registro['proyecto']);
        
$punto->set_path($registro['path_pm']);
        
$punto->set_descripcion($registro['descripcion']);
        if (isset(
$registro['etiqueta_anterior'])) {
            
$punto->set_etiqueta_anterior($registro['etiqueta_anterior']);
        }
    }

    static protected function 
construir_indefinido($registro)
    {
        
$punto = new toba_punto_montaje();
        
self::init_punto_generico($punto$registro);
        return 
$punto;
    }

    static protected function 
construir_proyecto($registro)
    {
        
$punto = new toba_punto_montaje_proyecto();
        
self::init_punto_generico($punto$registro);
        
$punto->set_proyecto_referenciado($registro['proyecto_ref']);
        return 
$punto;
    }

    static protected function 
construir_pers($registro)
    {
        
$punto = new toba_punto_montaje_pers();
        
self::init_punto_generico($punto$registro);
        
$punto->set_proyecto_referenciado($registro['proyecto_ref']);
        return 
$punto;
    }
}
?>

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