blob: 944875a1ed92eee8fbb475f409641709db122c45 [file] [log] [blame]
<?php
function listGlobalPHP_($directory, $buildType)
{
$dir = dir($directory);
while ($anEntry = $dir->read())
{
if (strncmp($anEntry, $buildType, 1) == 0)
{
$path = $directory."/".$anEntry;
listGlobalPHP($path);
}
}
}
function listGlobalPHP($directory)
{
$dir = dir($directory);
while ($anEntry = $dir->read())
{
$path = $directory."/".$anEntry;
if ($anEntry == "global.php")
{
$id = substr($path, 2);
$pos = strpos($id, '/');
if ($pos > 0)
{
$id = substr($id, 0, $pos);
}
echo "<tr><td><a href=\"$path\">$id</a></td></tr>";
}
else if ($anEntry != "." && $anEntry != ".." && is_dir($path))
{
listGlobalPHP($path);
}
}
}
?>
<html>
<body>
<p><b><font face="Verdana" size="+3">Performance Results</font></b><br><br>
<table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0">
<b><font color="#FFFFFF" face="Arial,Helvetica">Stable Builds</font></b>
</td>
</tr>
</table>
<table border=1" width="100%">
<?php
listGlobalPHP_(".", "S");
?>
</table>
<br>
<table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0">
<b><font color="#FFFFFF" face="Arial,Helvetica">Integration Builds</font></b>
</td>
</tr>
</table>
<table border=1" width="100%">
<?php
listGlobalPHP_(".", "I");
?>
</table>
<br>
<table border=0 cellspacing=5 cellpadding=2 width="100%" >
<tr>
<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0">
<b><font color="#FFFFFF" face="Arial,Helvetica">Nighty Builds</font></b>
</td>
</tr>
</table>
<table border=1" width="100%">
<?php
listGlobalPHP_(".", "N");
?>
</table>
</body>
</html>