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


Viewing file:     dt_foto.php (3.98 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class dt_foto extends toba_datos_tabla
{
    
/*function get_listado($filtro=array())
    {
        $where = array();
        if (isset($filtro['nombre_insumo'])) {
            $where[] = "t_i.nombre_insumo ILIKE ".quote("%{$filtro['nombre_insumo']}%");
        }
        if (isset($filtro['codigo_sap'])) {
            $where[] = "t_i.codigo_sap ILIKE ".quote("%{$filtro['codigo_sap']}%");
        }
        if (isset($filtro['codigo_redline'])) {
            $where[] = "t_i.codigo_redline ILIKE ".quote("%{$filtro['codigo_redline']}%");
        }
        if (isset($filtro['id_ficha_tecnica'])) {
            $where[] = "t_i.id_ficha_tecnica = ".quote($filtro['id_ficha_tecnica']);
        }
        if (isset($filtro['id_rubro'][0])) {
            $and="(";
            foreach($filtro['id_rubro'] as $id_rubro){
                    $and.= "t_i.id_rubro = ".quote($id_rubro)." OR ";
            }
            $and.=")";
            $and = str_replace('OR )', ')', $and);
            $where[] = $and;
        }
        if (isset($filtro['usuario_alta'])) {
            $where[] = "t_i.usuario_alta ILIKE ".quote("%{$filtro['usuario_alta']}%");
        }
        if (isset($filtro['usuario_baja'])) {
            $where[] = "t_i.usuario_baja ILIKE ".quote("%{$filtro['usuario_baja']}%");
        }
        if (isset($filtro['baja'])) {
            $where[] = "t_i.baja = ".quote($filtro['baja']);
        }
        if (isset($filtro['dato_alcohol']) and $filtro['dato_alcohol'] == 1) {
            $where[] = "t_i.dato_alcohol = ".quote($filtro['dato_alcohol']);
        }
        if (isset($filtro['dato_cosecha']) and $filtro['dato_cosecha'] == 1) {
            $where[] = "t_i.dato_cosecha = ".quote($filtro['dato_cosecha']);
        }

        $folder_path = "insumo/";
        $sql = "SELECT
                    t_i.id_insumo,
                    t_i.codigo_sap,
                    t_i.nombre_insumo,
                    t_i.archivo1,
                    t_i.archivo2,
                    CASE WHEN t_i.archivo1 is null THEN 'NO' 
                         WHEN t_i.archivo1 = '' THEN 'NO' 
                         ELSE '<a href=\"$folder_path'||t_i.archivo1||'\" target=\"_blank\">'||t_i.archivo1||'</a>' 
                    END as url_archivo1,
                    CASE WHEN t_i.archivo2 is null THEN 'NO' 
                         WHEN t_i.archivo2 = '' THEN 'NO' 
                         ELSE '<a href=\"$folder_path'||t_i.archivo2||'\" target=\"_blank\">'||t_i.archivo2||'</a>' 
                    END as url_archivo2,
                    t_i.fecha_alta,
                    t_i.usuario_alta,
                    t_au.nombre as usuario_alta_nombre,
                    t_i.id_ficha_tecnica,
                    t_i.estado,
                    t_i.fecha_baja,
                    t_i.usuario_baja,
                    t_au1.nombre as usuario_baja_nombre,
                    t_i.id_rubro,
                    t_r.nombre_rubro,
                    t_i.baja,
                    t_i.codigo_redline,
                    t_i.dato_alcohol,
                    t_i.dato_cosecha 
                FROM
                    insumo as t_i    
                    LEFT OUTER JOIN desarrollo.apex_usuario as t_au1 ON (t_i.usuario_baja = t_au1.usuario)
                    LEFT OUTER JOIN rubro as t_r ON (t_i.id_rubro = t_r.id_rubro),
                    desarrollo.apex_usuario as t_au
                WHERE
                    t_i.usuario_alta = t_au.usuario
                ORDER BY t_i.codigo_sap";

        if (count($where)>0) {
            $sql = sql_concatenar_where($sql, $where);
        }

        $datos = toba::db('proveedores')->consultar($sql);

        if(count($datos)>0){
            foreach ($datos as $key => $dato) {
                if($dato['baja'] == 0){
                    $datos[$key]['usuario_baja_nombre'] = null;
                    $datos[$key]['usuario_baja'] = null;
                    $datos[$key]['fecha_baja'] = null;
                }
            }
        }

        return $datos;
    }*/

    
function get_fotos_galeria($id_galeria)
    {
        
$sql "SELECT id_foto, foto, epigrafe, vinculo, id_galeria, orden
                FROM foto
                WHERE id_galeria = '
$id_galeria
                ORDER BY orden"
;
        
#return toba::db('tdfonline')->consultar($sql);  
        
return toba::db('tdfonline')->consultar($sql);         
    }

    function 
get_foto($id_foto '')
    {
        if(!empty(
$id_foto)){
             
$sql "SELECT foto FROM foto WHERE id_foto = '$id_foto'";
            return 
toba::db('tdfonline')->consultar_fila($sql);           
        }
    }

    function 
eliminar_archivo($nombre_archivo)
    {
        
        
$folder_path "../www/fotos/";
        
$destino=$folder_path.$nombre_archivo;
        if(
unlink($destino)){
            return 
true;
        }else{
            return 
false;
        }

    }

}

?>

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