Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 60b66db1e7a1228158a142f296fb8b2197a27ecf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<html>
<body>

<?php
  $parts=explode("&","$QUERY_STRING");
  $buildType=trim($parts[0]);
  $packageprefix=trim($parts[1]);

  $aDirectory=dir("$buildType-scenarios");
  $index = 0;

  while ($anEntry = $aDirectory->read()) {

    if ($anEntry != "." && $anEntry != "..") {
      if (strstr($anEntry,$packageprefix) && strstr($anEntry,".html")){
        $scenarioname=substr($anEntry,0,-5);
        $scenarios[$index]=$scenarioname;
        $index++;

      }
    }
  }

  $scenarioCount=count($scenarios);
  if ($scenarioCount==0){
    echo "Results being generated.";
  }
  else{
  sort($scenarios);
  echo "<h2>$packageprefix* ($scenarioCount scenarios)</h2>";

  for ($counter=0;$counter<count($scenarios);$counter++){
    $line = "<a href=\"$buildType-scenarios/$scenarios[$counter].html\">$scenarios[$counter]</a><br>";
     echo "$line";
  }
  }
}
$aDirectory->close();
?>

</body>
</html>

Back to the top