1<html>
2<head>
3<?php
4	$parts = explode("/", getcwd());
5	$parts2 = explode("-", $parts[count($parts) - 1]);
6	$buildName = $parts2[1];
7
8	// Get build type names
9
10	$fileHandle = fopen("../../dlconfig.txt", "r");
11	while (!feof($fileHandle)) {
12
13		$aLine = fgets($fileHandle, 4096); // Length parameter only optional after 4.2.0
14		$parts = explode(",", $aLine);
15		$dropNames[trim($parts[0])] = trim($parts[1]);
16 	}
17	fclose($fileHandle);
18
19	$buildType = $dropNames[$parts2[0]];
20
21	echo "<title>Build Notes for $buildType $buildName </title>";
22?>
23<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
24<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css">
25</head>
26<body>
27
28<p><b><font face="Verdana" size="+3">Build Notes</font></b> </p>
29
30<table border=0 cellspacing=5 cellpadding=2 width="100%" >
31  <tr>
32    <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">
33	   Build Notes for <?php echo "$buildType $buildName"; ?></font></b></td>
34  </tr>
35</table>
36<table border="0">
37
38<?php
39	$hasNotes = false;
40	$aDirectory = dir("buildnotes");
41	while ($anEntry = $aDirectory->read()) {
42		if ($anEntry != "." && $anEntry != "..") {
43			$parts = explode("_", $anEntry);
44			$baseName = $parts[1];
45			$parts = explode(".", $baseName);
46			$component = $parts[0];
47			$line = "<td>Component: <a href=\"buildnotes/$anEntry\">$component</a></td>";
48			echo "<tr>";
49			echo "$line";
50			echo "</tr>";
51			$hasNotes = true;
52		}
53	}
54	aDirectory.closedir();
55	if (!$hasNotes) {
56		echo "<br>There are no build notes for this build.";
57	}
58?>
59
60</table>
61</body>
62</html>
63