tazwok view web/download.php @ rev 466

Fix a typo
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Mar 27 18:14:20 2011 +0200 (2011-03-27)
parents c627f671fbca
children
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 happen...";
19 }
20 ?>