tazwok view web/log.php @ rev 554

Compatibility fix for $install variable in compile_rules
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Mar 11 19:13:46 2012 +0100 (2012-03-11)
parents d30774579470
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 if ("$package") {
13 if (file_exists("$log_dir/$package.html")) {
14 include ("$log_dir/$package.html");
15 }
16 else {
17 echo "No log available for $package.";
18 }
19 }
20 else {
21 echo "Strange things happen...";
22 }
23 ?>