blob: 944875a1ed92eee8fbb475f409641709db122c45 [file] [log] [blame]
jeffliu04979e12005-05-16 06:39:35 +00001<?php
2 function listGlobalPHP_($directory, $buildType)
3 {
4 $dir = dir($directory);
5 while ($anEntry = $dir->read())
6 {
7 if (strncmp($anEntry, $buildType, 1) == 0)
8 {
9 $path = $directory."/".$anEntry;
10 listGlobalPHP($path);
11 }
12 }
13 }
14
15 function listGlobalPHP($directory)
16 {
17 $dir = dir($directory);
18 while ($anEntry = $dir->read())
19 {
20 $path = $directory."/".$anEntry;
21 if ($anEntry == "global.php")
22 {
23 $id = substr($path, 2);
24 $pos = strpos($id, '/');
25 if ($pos > 0)
26 {
27 $id = substr($id, 0, $pos);
28 }
29 echo "<tr><td><a href=\"$path\">$id</a></td></tr>";
30 }
31 else if ($anEntry != "." && $anEntry != ".." && is_dir($path))
32 {
33 listGlobalPHP($path);
34 }
35 }
36 }
37?>
38
39<html>
40 <body>
41
42 <p><b><font face="Verdana" size="+3">Performance Results</font></b><br><br>
43
44 <table border=0 cellspacing=5 cellpadding=2 width="100%" >
45 <tr>
46 <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0">
47 <b><font color="#FFFFFF" face="Arial,Helvetica">Stable Builds</font></b>
48 </td>
49 </tr>
50 </table>
51
52 <table border=1" width="100%">
53 <?php
54 listGlobalPHP_(".", "S");
55 ?>
56 </table>
57 <br>
58
59 <table border=0 cellspacing=5 cellpadding=2 width="100%" >
60 <tr>
61 <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0">
62 <b><font color="#FFFFFF" face="Arial,Helvetica">Integration Builds</font></b>
63 </td>
64 </tr>
65 </table>
66
67 <table border=1" width="100%">
68 <?php
69 listGlobalPHP_(".", "I");
70 ?>
71 </table>
72 <br>
73
74 <table border=0 cellspacing=5 cellpadding=2 width="100%" >
75 <tr>
76 <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0">
77 <b><font color="#FFFFFF" face="Arial,Helvetica">Nighty Builds</font></b>
78 </td>
79 </tr>
80 </table>
81
82 <table border=1" width="100%">
83 <?php
84 listGlobalPHP_(".", "N");
85 ?>
86 </table>
87
88 </body>
89</html>