File: /home/asjudine/www/apostventas/descargar_archivos_contratos_dos.php
<?php
require_once("../Conectarse.php");
global $dbi;
if ($_GET["tipo"]=="COA01" )
{
$result = mysql_query('SELECT * FROM contratos_COA01 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA SEGUNDA PARTE
if ($_GET["tipo"]=="COA02" )
{
$result = mysql_query('SELECT * FROM contratos_COA02 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA TERCERA PARTE
if ($_GET["tipo"]=="EJC1" )
{
$result = mysql_query('SELECT * FROM contratos_EJC1 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA CUARTA PARTE
if ($_GET["tipo"]=="EJC2" )
{
$result = mysql_query('SELECT * FROM contratos_EJC2 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA QUINTA PARTE
if ($_GET["tipo"]=="LITI" )
{
$result = mysql_query('SELECT * FROM contratos_LITI WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA SEXTA PARTE
if ($_GET["tipo"]=="PCP" )
{
$result = mysql_query('SELECT * FROM contratos_PCP WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA SEPTIMA PARTE
if ($_GET["tipo"]=="PFM" )
{
$result = mysql_query('SELECT * FROM contratos_PFM WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA OCTAVA PARTE
if ($_GET["tipo"]=="PIP" )
{
$result = mysql_query('SELECT * FROM contratos_PIP WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA NOVENA PARTE
if ($_GET["tipo"]=="PME" )
{
$result = mysql_query('SELECT * FROM contratos_PME WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA DECIMA PARTE
if ($_GET["tipo"]=="PPE" )
{
$result = mysql_query('SELECT * FROM contratos_PPE WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA ONCEAVA PARTE
if ($_GET["tipo"]=="SCP1" )
{
$result = mysql_query('SELECT * FROM contratos_SCP1 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA DOCEAVA PARTE
if ($_GET["tipo"]=="SCP2" )
{
$result = mysql_query('SELECT * FROM contratos_SCP2 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA TRECEAVA PARTE
if ($_GET["tipo"]=="SCP3" )
{
$result = mysql_query('SELECT * FROM contratos_SCP3 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 14 PARTE
if ($_GET["tipo"]=="SFM" )
{
$result = mysql_query('SELECT * FROM contratos_SFM WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 15 PARTE
if ($_GET["tipo"]=="SIP" )
{
$result = mysql_query('SELECT * FROM contratos_SIP WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 16 PARTE
if ($_GET["tipo"]=="SJ01" )
{
$result = mysql_query('SELECT * FROM contratos_SJ01 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 17 PARTE
if ($_GET["tipo"]=="SJ02" )
{
$result = mysql_query('SELECT * FROM contratos_SJ02 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 18 PARTE
if ($_GET["tipo"]=="SJ03" )
{
$result = mysql_query('SELECT * FROM contratos_SJ03 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 19 PARTE
if ($_GET["tipo"]=="SJ04" )
{
$result = mysql_query('SELECT * FROM contratos_SJ04 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 20 PARTE
if ($_GET["tipo"]=="SJ05" )
{
$result = mysql_query('SELECT * FROM contratos_SJ05 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 21 PARTE
if ($_GET["tipo"]=="SJ06" )
{
$result = mysql_query('SELECT * FROM contratos_SJ06 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 22 PARTE
if ($_GET["tipo"]=="SJ07" )
{
$result = mysql_query('SELECT * FROM contratos_SJ07 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 23 PARTE
if ($_GET["tipo"]=="SJ08" )
{
$result = mysql_query('SELECT * FROM contratos_SJ08 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 24 PARTE
if ($_GET["tipo"]=="SJ09" )
{
$result = mysql_query('SELECT * FROM contratos_SJ09 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 25 PARTE
if ($_GET["tipo"]=="SJ10" )
{
$result = mysql_query('SELECT * FROM contratos_SJ10 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 26 PARTE
if ($_GET["tipo"]=="SJ11" )
{
$result = mysql_query('SELECT * FROM contratos_SJ11 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 27 PARTE
if ($_GET["tipo"]=="SME" )
{
$result = mysql_query('SELECT * FROM contratos_SME WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 28 PARTE
if ($_GET["tipo"]=="SPE" )
{
$result = mysql_query('SELECT * FROM contratos_SPE WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 29 PARTE
if ($_GET["tipo"]=="SP01" )
{
$result = mysql_query('SELECT * FROM contratos_SP01 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 30 PARTE
if ($_GET["tipo"]=="SP02" )
{
$result = mysql_query('SELECT * FROM contratos_SP02 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 31 PARTE
if ($_GET["tipo"]=="SP03" )
{
$result = mysql_query('SELECT * FROM contratos_SP03 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 32 PARTE
if ($_GET["tipo"]=="SP04" )
{
$result = mysql_query('SELECT * FROM contratos_SP04 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 35 PARTE
if ($_GET["tipo"]=="SP05" )
{
$result = mysql_query('SELECT * FROM contratos_SP05 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 36 PARTE
if ($_GET["tipo"]=="SP09" )
{
$result = mysql_query('SELECT * FROM contratos_SP09 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 37 PARTE
if ($_GET["tipo"]=="SP10" )
{
$result = mysql_query('SELECT * FROM contratos_SP10 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 38 PARTE
if ($_GET["tipo"]=="SP11" )
{
$result = mysql_query('SELECT * FROM contratos_SP11 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
/////// ACA COMENZARIA LA 39 PARTE
if ($_GET["tipo"]=="SCP2" )
{
$result = mysql_query('SELECT * FROM contratos_SCP2 WHERE cedula= "'.$_GET["cedula"].'" and clase_contrato= "'.$_GET["tipo"].'" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($result)!=0))
{
$row = mysql_fetch_row($result);
$cedula = $row[0];
$nombre = $row[8];
$contenido = $row[9];
$tipo = $row[10];
header("Content-type: $tipo");
header("Content-Disposition: attachment; filename=$nombre");
print $contenido;
}
}
?>