tazwok view web/download.php @ rev 529

tazwok: Fixed making new receipts. Add $CONFIGURE_ARGS back in. Fixed gen-wok-db to build wok-depends.txt with just $WOK. This is in case there is nothing in packages.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon May 23 06:24:41 2011 +0000 (2011-05-23)
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 ?>