MOON
Server: Apache
System: Linux kvm.asjudinet.com 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
User: asjudine (1001)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/asjudine/public_html/avigilajudicial/descargar_archivos_vigi_judicial.php
<?php
require_once("../Conectarse_.php");
global $dbi;



$result = mysql_query('SELECT * FROM procesos WHERE identificacion_demandante = "'.$_GET["cedula"].'" and numero_proceso = "'.$_GET["numpro"].'" ');
if (!$result) {
	die('Invalid query: ' . mysql_error());
}


if ((mysql_num_rows($result)!=0)) 
{
	$row = mysql_fetch_row($result);
    $id = $row[0];
	$nombre = $row[24];
	$contenido = $row[25];
	$tipo = $row[26];
	$ruta_archivo = $row[27];
	
	
	// AquĆ­, establecemos la cabecera del documento 
	//header("Content-Description: Descargar imagen"); 
	//header("Content-Disposition: attachment; filename=$nombre");
	//header("Content-Type: application/force-download"); 
	//header("Content-Length: " . filesize($nombre)); 
	//header("Content-Transfer-Encoding: binary");
	
	//header("Content-type: $tipo");
	//header("Content-Disposition: attachment; filename=$nombre");
	//print $contenido;
	//print $ruta_archivo;
	
	header('Content-Type: application/force-download');
	header('Content-Disposition: attachment; filename='.$nombre);
	header('Content-Transfer-Encoding: binary');
	header('Content-Length: '.filesize($ruta_archivo));

	readfile($ruta_archivo);
	
	
	
	/*header("Content-type: $tipo");
	header("Content-Disposition: attachment; filename=$nombre");
	print $contenido; */

}  


  

?>