File:  [mozdev] / accountex / www / download.php
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Fri Sep 23 13:15:58 2005 UTC (13 years, 8 months ago) by astrapi
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

    1: <?
    2: 
    3: // Passenden Datentyp erzeugen.
    4: header("Content-Type: application/xpi");
    5: 
    6: // Passenden Dateinamen im Download-Requester vorgeben,
    7: // z. B. den Original-Dateinamen
    8: $save_as_name = basename($filelist[$download]);
    9: header("Content-Disposition: attachment; filename=\"http://downloads.mozdev.org/accountex/accountex_0.1.2-tb.xpi\"");
   10: 
   11: // Datei ausgeben.
   12: readfile($filename);
   13: ?>

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