Diff for /accountex/www/download.php between versions 1.7 and 1.11

version 1.7, 2005/09/23 14:10:37 version 1.11, 2005/09/27 04:10:27
Line 1 Line 1
 <?php  <?php
   $dateiname = $_GET["datei"];
   $dateipfad = "http://ftp.mozilla.org/pub/mozilla.org/extensions/accountex/";
   
 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");  header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
 header("Content-type: application/x-xpinstall");  header("Content-type: application/x-xpinstall");
 header("Content-Length: " . filesize("http://downloads.mozdev.org/accountex/accountex_0.1.2-tb.xpi"));  
 header("Content-Disposition: attachment; filename=http://downloads.mozdev.org/accountex/accountex_0.1.2-tb.xpi");  
 readfile("http://downloads.mozdev.org/accountex/accountex_0.1.2-tb.xpi");  
 ?>  
   
   header("Content-Length: " . filesize($dateipfad . $dateiname));
   header("Content-Disposition: attachment; filename=" . $dateiname . "");
   readfile($dateipfad . $dateiname);
   ?>

Removed from v.1.7  
changed lines
  Added in v.1.11


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