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/adirectoress/descargar_archivos_desplazamiento_dos.php
<?php
require_once("../Conectarse.php");
global $dbi;


$result = mysql_query('SELECT * FROM control_recorridos WHERE id= "'.$_GET["id"].'" ');
if (!$result) {
	die('Invalid query: ' . mysql_error());
}

if ((mysql_num_rows($result)!=0)) 
{
	$row = mysql_fetch_row($result);
    $id = $row[0];
	$nombre = $row[20];
	$contenido = $row[21];
	$tipo = $row[22];
	header("Content-type: $tipo");
	header("Content-Disposition: attachment; filename=$nombre");
	print $contenido; 

}  

?>