MOON
Server: Apache
System: Linux kvm.asjudinet.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: asjudine (1001)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/asjudine/www/iuris/pages/call_center/php/DESCARGAR_ARCHIVO_TICKET.php
<?php
    
    include("conexion_inter.php");
    
    $result = mysql_query('SELECT nombre, tipo, contenido FROM archivos_tickets WHERE id= "'.$_GET["id"].'"  ');
    if (!$result) {
        die('Invalid query: ' . mysql_error());
    }

    if ((mysql_num_rows($result)!=0)) 
    {
        list($nombre, $tipo, $contenido) = mysql_fetch_row($result);
        

        header("Content-type: $tipo");
        header("Content-Disposition: attachment; filename=$nombre");
        print $contenido; 
    }  
?>