blob: 67449163a8b74eae4d22af81e7b7b89f39d72f0f [file]
<?php
include "constants.php";
include "classes.php";
include "parse_dom.php";
$debug = $_GET[debug]; // are we in debug mode?
$file_names = array();
$handle = opendir(".");
while (false !== ($file = readdir($handle))) {
if (is_file($file) && ereg("\.ip_log",$file)) {
array_push($file_names, $file);
}
}
closedir($handle);
debug("IP Files: ".count($file_names));
echo "<table BORDER=0 CELLSPACING=5 CELLPADDING=2 WIDTH=\"100%\" >\n";
foreach ($file_names as $file) {
$file = trim($file);
debug("Processing file: ".$file);
$project_versions = parse($file);
foreach ($project_versions as $project) {
printProject($project);
}
}
echo "</table>";
function printProject($project) {
echo "<tr>\n";
echo "<td width=\"2%\" align=RIGHT valign=TOP><img src=\"http://eclipse.org/images/Adarrow.gif\" width=\"16\" height=\"16\" border=\"0\"></td>\n";
echo "<td width=\"98%\">";
$image;
switch ($project->status) {
case STATUS_DONE :
$image="ok.gif";
break;
default :
$image="small_x.gif";
break;
}
echo "<img src=\"images\\".$image."\" width=\"16\" height=\"16\" border=\"0\">";
echo "<strong><a href=\"".$project->info->reference."\">".$project->info->name."</a> version ".$project->version." ";
echo "<a href=\"http://dev.eclipse.org/viewcvs/index.cgi/".$project->info->location."/?root=Tools_Project&pathrev=".$project->info->tag."\" style=\"text-decoration: none\">(".$project->id.")</a> ";
$colour;
switch ($project->status) {
case STATUS_DONE :
$colour=green;
break;
default :
$colour=red;
break;
}
echo tab()."<font color=".$colour.">status:".$colour."</font></strong><br>";
if (isSet($project->legal)) {
foreach ($project->legal as $legal) {
echo tab()."<strong>License:</strong> ";
if (isSet($legal->package)) {
echo "(".$legal->package.")";
}
echo " <a href=\"".$legal->license->reference."\">".$legal->license->name."</a>";
echo " (<a href=\"https://dev.eclipse.org/ipzilla/show_bug.cgi?id=".$legal->ipzilla."\">IPZilla</a>)<br>\n";
}
}
echo tab()."<strong>Contact:</strong> <a href=\"mailto:".$project->contact->email."\">".$project->contact->name."</a> (".$project->contact->company.")<br>\n";
foreach ($project->notes as $note) {
echo tab()."<strong>Note:</strong> ".$note."<p>\n";
}
echo "\n</td>\n";
echo "</tr>\n";
}
function tab() {
return "&nbsp;&nbsp;&nbsp;&nbsp;";
}
// print out the given message if we are in debug mode
function debug($str) {
global $debug;
if (isset($debug))
echo $str."<br>\n";
}
?>