1402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<html> 2402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<head> 3402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<?php 4402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $parts = explode("/", getcwd()); 5402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $parts2 = explode("-", $parts[count($parts) - 1]); 6402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $buildName = $parts2[1]; 7402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 8402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll // Get build type names 9402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 10402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $fileHandle = fopen("../../dlconfig.txt", "r"); 11402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll while (!feof($fileHandle)) { 12402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 13402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $aLine = fgets($fileHandle, 4096); // Length parameter only optional after 4.2.0 14402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $parts = explode(",", $aLine); 15402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $dropNames[trim($parts[0])] = trim($parts[1]); 16402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll } 17402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll fclose($fileHandle); 18402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 19402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $buildType = $dropNames[$parts2[0]]; 20402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 21402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll echo "<title>Build Notes for $buildType $buildName </title>"; 22402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll?> 23402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 24402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" type="text/css"> 25402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll</head> 26402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<body> 27402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 28402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<p><b><font face="Verdana" size="+3">Build Notes</font></b> </p> 29402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 30402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<table border=0 cellspacing=5 cellpadding=2 width="100%" > 31402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll <tr> 32402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica"> 33402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll Build Notes for <?php echo "$buildType $buildName"; ?></font></b></td> 34402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll </tr> 35402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll</table> 36402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<table border="0"> 37402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 38402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll<?php 39402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $hasNotes = false; 40402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $aDirectory = dir("buildnotes"); 41402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll while ($anEntry = $aDirectory->read()) { 42402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll if ($anEntry != "." && $anEntry != "..") { 43402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $parts = explode("_", $anEntry); 44402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $baseName = $parts[1]; 45402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $parts = explode(".", $baseName); 46402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $component = $parts[0]; 47402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $line = "<td>Component: <a href=\"buildnotes/$anEntry\">$component</a></td>"; 48402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll echo "<tr>"; 49402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll echo "$line"; 50402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll echo "</tr>"; 51402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll $hasNotes = true; 52402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll } 53402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll } 54402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll aDirectory.closedir(); 55402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll if (!$hasNotes) { 56402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll echo "<br>There are no build notes for this build."; 57402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll } 58402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll?> 59402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 60402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll</table> 61402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll</body> 62402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll</html> 63