!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.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     toba_admin_fuentes.php (2.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Colección de Fuentes de Datos (toba_fuente_datos)
 * @package Fuentes
 */
class toba_admin_fuentes
{
    static private 
$instancia;
    private 
$fuentes;
    
    
/**
     * @return toba_admin_fuentes
     */
    
static function instancia()
    {
        if (!isset(
self::$instancia)) {
            
self::$instancia = new toba_admin_fuentes();
        }
        return 
self::$instancia;        
    }
    
    private function 
__construct() {}
    
    
/**
     * Retorna el nombre de la fuente marcada en el editor como predeterminada
     * @param boolean $obligatorio Tira una excepción en caso de no existir
     * @return string
     */
    
static function get_fuente_predeterminada($obligatorio=false$proyecto=null)
    {
        
$predeterminada toba::proyecto()->get_parametro('fuente_datos');    
        if( !(
$predeterminada) && $obligatorio ) {
            throw new 
toba_error('No existe una fuente de datos predeterminada');
        }
        return 
$predeterminada;
    }
    
    
/**
     * Retorna una fuente de datos
     *
     * @param string $id Id. de la fuente
     * @param string $proyecto Proyecto al que pertenece la fuente
     * @return toba_fuente_datos
     */
    
function get_fuente($id$proyecto=null)
    {
        if (!isset(
$proyecto)) {
            
$proyecto toba::proyecto()->get_id();
        }
        if(!isset(
$id)) {
            
$id $this->get_fuente_predeterminada(true$proyecto);    
        }
        if ( !isset(
$this->fuentes[$id]) ) {
            
$parametros toba::proyecto()->get_info_fuente_datos($id$proyecto);
            if (isset(
$parametros['subclase_archivo'])) {
                if (
toba::proyecto()->get_id() != $proyecto) {
                    
//Si la fuente esta extendida, puede necesitar otros archivos del proyecto, agregar el include path                
                    
$path_proyecto toba::instancia()->get_path_proyecto($proyecto) . '/php';
                    
agregar_dir_include_path($path_proyecto);
                }                
                
$archivo $parametros['subclase_archivo'];
            } else {
                
$archivo "nucleo/lib/toba_fuente_datos.php";
            }
            if (isset(
$parametros['subclase_nombre'])) {
                
$clase $parametros['subclase_nombre'];
            } else {
                
$clase "toba_fuente_datos";
            }
            require_once(
$archivo);
            
$this->fuentes[$id] = new $clase($parametros);
        }
        return 
$this->fuentes[$id];
    }
}
?>

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