tazwok view web/download.php @ rev 337

doc: rename french manual and link to default english one
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 22 12:42:20 2011 +0100 (2011-02-22)
parents
children eb6a2f0a9faa
line source
1 <?php
2 $version=$_GET["version"];
3 if (file_exists("conf-$version.php")) {
4 include("conf-$version.php");
5 }
6 else {
7 if (file_exists("conf.php")) {
8 include("conf.php");
9 }
10 }
11 $package=$_GET["package"];
12 $filename=preg_replace('/.*\//', '', $package);
13 if (file_exists("$version-$package")) {
14 header("Content-disposition: attachment; filename=$filename");
15 readfile("$version-$package");
16 }
17 else {
18 echo "Strange things happens...";
19 }
20 ?>