Diff for /accountex/www/download.php between versions 1.4 and 1.18

version 1.4, 2005/09/23 13:15:58 version 1.18, 2005/12/05 07:03:04
Line 1 Line 1
<?<?php
 $dateiname = $_GET["datei"];
 $dateipfad = "/mozdev/sandbox/data/helm/htdoc/accountex/www/files/";
   
// Passenden Datentyp erzeugen.header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/xpi");header("Content-type: application/x-xpinstall");
header("Content-Length: " . filesize($dateipfad . $dateiname));
// Passenden Dateinamen im Download-Requester vorgeben,header("Content-Disposition: attachment; filename=" . $dateiname . "");
// z. B. den Original-Dateinamenreadfile($dateipfad . $dateiname);
$save_as_name = basename($filelist[$download]); 
header("Content-Disposition: attachment; filename=\"http://downloads.mozdev.org/accountex/accountex_0.1.2-tb.xpi\""); 
 
// Datei ausgeben. 
readfile($filename); 
 ?>  ?>
   

Removed from v.1.4  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>