tazwok annotate web/log.php @ rev 407
Improve chroot configuration
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Mar 04 06:23:07 2011 +0100 (2011-03-04) |
parents | 919becf8fe71 |
children | eb6a2f0a9faa |
rev | line source |
---|---|
gokhlayeh@186 | 1 <?php |
gokhlayeh@235 | 2 $version=$_GET["version"]; |
gokhlayeh@235 | 3 if (file_exists("conf-$version.php")) { |
gokhlayeh@235 | 4 include("conf-$version.php"); |
gokhlayeh@186 | 5 } |
gokhlayeh@235 | 6 else { |
gokhlayeh@235 | 7 if (file_exists("conf.php")) { |
gokhlayeh@235 | 8 include("conf.php"); |
gokhlayeh@186 | 9 } |
gokhlayeh@235 | 10 } |
gokhlayeh@235 | 11 $package=$_GET["package"]; |
gokhlayeh@235 | 12 if ("$package") { |
gokhlayeh@235 | 13 if (file_exists("$log_dir/$package.html")) { |
gokhlayeh@235 | 14 include ("$log_dir/$package.html"); |
gokhlayeh@235 | 15 } |
gokhlayeh@186 | 16 else { |
gokhlayeh@235 | 17 echo "No log available for $package."; |
gokhlayeh@186 | 18 } |
gokhlayeh@186 | 19 } |
gokhlayeh@186 | 20 else { |
gokhlayeh@235 | 21 echo "Strange things happens..."; |
gokhlayeh@186 | 22 } |
gokhlayeh@186 | 23 ?> |