File:  [mozdev] / accountex / www / download.php
Revision 1.18: download - view: text, annotated - select for diffs - revision graph
Mon Dec 5 07:03:04 2005 UTC (13 years, 7 months ago) by astrapi
Branches: MAIN
CVS tags: www_1_0, HEAD
*** empty log message ***

    1: <?php
    2: $dateiname = $_GET["datei"];
    3: $dateipfad = "/mozdev/sandbox/data/helm/htdoc/accountex/www/files/";
    4: 
    5: header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    6: header("Content-type: application/x-xpinstall");
    7: header("Content-Length: " . filesize($dateipfad . $dateiname));
    8: header("Content-Disposition: attachment; filename=" . $dateiname . "");
    9: readfile($dateipfad . $dateiname);
   10: ?>

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