adding patches web site to source control
diff --git a/downloadsites/webtools/patches/index.php b/downloadsites/webtools/patches/index.php
index d292083..c8d8e9d 100644
--- a/downloadsites/webtools/patches/index.php
+++ b/downloadsites/webtools/patches/index.php
@@ -1,18 +1,40 @@
-<html>
+<?php
+echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?> \n" ;
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
<head>
-<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css">
-<title>Eclipse Web Tools Platform (WTP) Patches</title>
+<?php
+include 'pagePropertyVariables.php';
+?>
+
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css" />
+<link rel="stylesheet" href="../wtpDropStyle.css" />
+<title><?php echo $pageTitle; ?></title>
</head>
<body>
-<!-- heading start -->
+
<?php
// tiny banner to remind when looking at "local" machine results
$serverName = $_SERVER["SERVER_NAME"];
if (!stristr($serverName, "eclipse.org") && !stristr($serverName,"you.are.at.eclipsecon.org")) {
- echo '<center><p>Reminder: this is <font color="#FF0000">', $serverName,'</font> See also <a href="http://download.eclipse.org/webtools/downloads" target="_top">Live public eclipse site</a>.</center><hr />';
+ echo '<center>
+ <p>
+ Reminder: this is <font color="#FF0000">' .
+ $serverName .
+ '</font>
+ See also
+ <a href="http://download.eclipse.org/webtools/downloads" target="_top">
+ the live public Eclipse site
+ </a>.
+ </p>
+ <hr />
+ </center>';
+
}
if (function_exists("date_default_timezone_set")) {
@@ -25,307 +47,25 @@
?>
-<?
-
-// we will do our own error handling, unless 0 used, which means "off"
-error_reporting(0);
-//error_reporting(E_ALL);
-
+<?php
+ini_set("display_errors", "true");
+error_reporting (E_ALL);
?>
-
-<table border=0 cellpadding=2 width="100%">
- <tr>
- <td width="72%"><font class=indextop> Web Tools Platform<br>
- patch downloads</font> <br>
- </td>
- <td width="28%"><img src="http://dev.eclipse.org/images/Idea.jpg"
- height=86 width=120></td>
- </tr>
-</table>
-
-<!-- heading end -->
-
-
-<hr />
-<table border=0 cellpadding=2 width="100%">
- <tr>
- <td>
- <p>This pages is for patches to WTP releases. They are normaly very
- specialized, for a specific purpose or adopter, and not for general
- use. Those that are for general use -- and end-users -- will be made
- available via update manager.
-
- </tr>
- <tr>
- <td align=left>
- <p>If you got here to this patch-build site by accident or casual
- browsing, please be aware that <a
- href="http://download.eclipse.org/webtools/downloads/" target="_top">
- declared builds</a> are available!</p>
- </td>
- </tr>
-
-
-</table>
-
-
+<?php
+$QString = $_SERVER['QUERY_STRING'];
+$C = strcmp($QString, "test");
+?>
<?php
-
-
-// fix for the next version of php
-
-$contents = substr(file_get_contents('dlconfig.txt'),0,-1);
-$contents = str_replace("\n", "", $contents);
-
-#split the content file by & and fill the arrays
-$elements = explode("&",$contents);
-$t = 0;
-$p = 0;
-for ($c = 0; $c < count($elements); $c++) {
- $tString = "dropType";
- $pString = "dropPrefix";
- if (strstr($elements[$c],$tString)) {
- $temp = preg_split("/=/",$elements[$c]);
- $dropType[$t] = trim($temp[1]);
- $t++;
- }
- if (strstr($elements[$c],$pString)) {
- $temp = preg_split("/=/",$elements[$c]);
- $dropPrefix[$p] = trim($temp[1]);
- $p++;
- }
-}
-
-// debug
-// echo "Debug: droptype count: ", count($dropType), "<br />";
-
-for ($i = 0; $i < count($dropType); $i++) {
- $dt = $dropType[$i];
- $dt = trim($dt);
- $typeToPrefix[$dt] = $dropPrefix[$i];
-
- // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
- // echo "Debug dropType: ", $dropType[$i], "<br />";
-
-}
-
-$buildBranches = array();
-$buildBranches[0]="R2.0";
-$buildBranches[1]="R1.5";
-//$buildBranches[2]="R1.0";
-//$buildBranches[3]="R0.7";
-include 'report.php';
-
-
-foreach ($buildBranches as $buildBranch ) {
-
-
- $aDirectory = dir("drops/".$buildBranch);
- $latestTimeStamp[$buildBranch] = array();
- $latestFile[$buildBranch] = array();
-
-
- while (false !== ($anEntry = $aDirectory->read())) {
-
- // Short cut because we know aDirectory only contains other directories.
- if ($anEntry != "." && $anEntry!=".." ) {
- //echo "Debug anEntry: $anEntry<br />" ;
- $aDropDirectoryName = "drops/".$buildBranch."/".$anEntry;
- if (is_Readable($aDropDirectoryName)) {
- $aDropDirectory = dir($aDropDirectoryName);
- //echo "Debug aDropDirectory: $aDropDirectory->path <br />" ;
-
- $fileCount = 0;
- while ($aDropEntry = $aDropDirectory->read()) {
- // echo "Debug aDropEntry: $aDropEntry<br />" ;
- if ( (stristr($aDropEntry, ".tar.gz")) || (stristr($aDropEntry, ".zip")) ) {
- // Count the dropfile entry in the directory (so we won't display links, if not all there
- $fileCount = $fileCount + 1;
- }
- }
-
- $aDropDirectory->close();
- }
- // Read the count file
- $countFile = "drops/".$buildBranch."/".$anEntry."/files.count";
- $indexFile = "drops/".$buildBranch."/".$anEntry."/index.html";
-
-
- if (!file_exists($indexFile)) {
- $indexFile = "drops/".$buildBranch."/".$anEntry."/index.php";
- }
-
-
- if (file_exists($countFile) && file_exists($indexFile)) {
- $anArray = file($countFile);
- // debug
- //echo "Number according to files.count: ", $anArray[0];
- //echo " actual counted files: ", $fileCount;
-
- // If a match - process the directoryVV
- if ($anArray[0] == $fileCount) {
- // debug
- //echo "yes, counted equaled expected count<br>";
-
- $entryParts = explode("-", $anEntry);
- if (count($entryParts) == 3) {
- // debug
- //echo "yes, counted parts was 3<br>";
- $buildTypePart = $entryParts[0];
- $buckets[$buildBranch][$buildTypePart][] = $anEntry;
-
- $timePart = $entryParts[2];
- $year = substr($timePart, 0, 4);
- $month = substr($timePart, 4, 2);
- $day = substr($timePart, 6, 2);
- $hour = substr($timePart,8,2);
- $minute = substr($timePart,10,2);
-
- $newTimePart = "$year-$month-$day $hour:$minute UTC";
-
- $timeStamp = strtotime($newTimePart);
-
- $timeStamps[$anEntry] = gmdate("D, j M Y -- H:i \(\U\T\C\)", $timeStamp);
-
- // debug
- // echo "<br />buildBranch: $buildBranch <br />";
- // echo "<br />parts[0]: -$buildTypePart- <br />";
- // echo "latestTimeStamp[buildBranch]:";
- // echo $latestTimeStamp[$buildBranch];
- // echo "latestTimeStamp:";
- // echo $latestTimeStamp;
-
- if ((sizeof($latestTimeStamp[$buildBranch]) > 0) && (isset($latestTimeStamp[$buildBranch][$buildTypePart])))
- {
- // echo "<br />spot one<br />";
- if ($timeStamp > $latestTimeStamp[$buildBranch][$buildTypePart])
- {
- $latestTimeStamp[$buildBranch][$buildTypePart] = $timeStamp;
- $latestFile[$buildBranch][$buildTypePart] = $anEntry;
- }
- }
- else
- {
- // echo "<br />spot two<br />";
- $latestTimeStamp[$buildBranch][$buildTypePart] = $timeStamp;
- $latestFile[$buildBranch][$buildTypePart] = $anEntry;
-
- }
- }
-
- }
- }
-
- }
- }
-
- $aDirectory->close();
-}
-
-
-
-
-
-
-foreach($dropType as $value) {
- $prefix=$typeToPrefix[$value];
-
-
- echo "
- <table width=\"100%\" cellpadding=2>
- <tr bgcolor=\"#999999\">
- <td align=left width=\"30%\"><b><a name=\"$value\"><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">$value";
- echo "</font></a></b></td>
- </TR>
- <TR>
- <td align=left>
- <TABLE width=\"100%\" CELLPADDING=2>
- <tr>
- <td width=\"30%\"><b>Build Name</b></td><td><b>Build Stream</b></td>
- <td><b>Build Date</b></td>
- </tr>";
-
- foreach($buildBranches as $bValue) {
-
- // echo "bValue: $bValue";
- // echo "prefix: $prefix";
- if (array_key_exists($bValue, $buckets) && $buckets[$bValue] != NULL && array_key_exists($prefix, $buckets[$bValue])) {
- echo "<tr><td colspan=\"7\"/><hr/></tr>";
- $aBucket = $buckets[$bValue][$prefix];
- if (isset($aBucket)) {
- rsort($aBucket);
-
- $i = 0;
- $ts = array();
- $ts2iv = array();
- foreach($aBucket as $iv) {
- $ivParts = explode("-", $iv);
- $ts[$i] = $ivParts[2];
- $ts2iv[$ts[$i]] = $iv;
- $i++;
- }
-
- rsort($ts);
- $i = 0;
- $aBucket = array();
- foreach($ts as $tsvalue) {
- $aBucket[$i] = $ts2iv[$tsvalue];
- $i++;
- }
-
- foreach($aBucket as $innerValue) {
- $innerValueParts = explode("-", $innerValue);
- echo "<tr>";
-
- // Uncomment the line below if we need click through licenses.
- // echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$innerValueParts[1]</a></td>";
-
- // Comment the line below if we need click through licenses.
- echo "<td><a href=\"drops/$bValue/$innerValue/\">$innerValueParts[1]</a></td>";
- echo "<td>$bValue</td>";
- echo "<td>$timeStamps[$innerValue]</td>";
-
- $testResults = parse_testResult("drops/$bValue/$innerValue/testResults.php");
- list ($compileErrors, $compileWarnings, $junitFailures) = $testResults;
-
- // $violations = parse("drops/$bValue/$innerValue/apitools/index.xml", "count=\"");
- // $tc = parse("drops/$buildBranch/$bValue/apitools/index-api-tc.xml", "missing-coverage-count=\"");
- // $removed_apis = parse("drops/$bValue/$innerValue/apitools/index-api-compatibility.xml", "removed-api-count=\"");
-
- echo "<td width=\"50\"><img src=\"http://download.eclipse.org/webtools/downloads/compile_err.gif\" width=\"16\" height=\"16\"/><font color=red>$compileErrors</font></td>";
- echo "<td width=\"50\"><img src=\"http://download.eclipse.org/webtools/downloads/compile_warn.gif\" width=\"16\" height=\"16\"/><font color=orange>$compileWarnings</font></td>";
- echo "<td width=\"50\"><img src=\"http://download.eclipse.org/webtools/downloads/junit_err.gif\" width=\"16\" height=\"16\"/><font color=red>$junitFailures</font></td>";
- // echo "<td width=\"50\"><img src=\"http://download.eclipse.org/webtools/downloads/api_err.gif\" width=\"20\" height=\"16\"/><font color=red>$violations</font></td>";
- // echo "<td width=\"50\"><img src=\"http://download.eclipse.org/webtools/downloads/api_junit.gif\"/ width=\"16\" height=\"16\"/><font color=red>$tc</font></td>";
- // echo "<td width=\"50\"><img src=\"http://download.eclipse.org/webtools/downloads/api_removed.gif\" width=\"20\" height=\"16\"/><font color=red>$removed_apis</font></td>";
-
- echo "</tr>";
- }
- }}}
- echo "</table></table>";
-}
+include '../topAndInit.php';
+include '../latestBuilds.php';
+//include '../recentHistory.php';
+include '../bottomAndFooter.php';
?>
-
-
-<!-- footer -->
-<center>
-<hr />
-<p>All downloads are provided under the terms and conditions of the <a
- href="http://www.eclipse.org/legal/notice.html">Eclipse.org Software
-User Agreement</a> unless otherwise specified.</p>
-
-<p>If you have problems downloading the drops, contact the <font
- size="-1" face="arial,helvetica,geneva"><a
- href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
-</center>
-<!-- end footer -->
-
-
</body>
</html>
diff --git a/downloadsites/webtools/patches/pagePropertyVariables.php b/downloadsites/webtools/patches/pagePropertyVariables.php
new file mode 100644
index 0000000..3d2f7ea
--- /dev/null
+++ b/downloadsites/webtools/patches/pagePropertyVariables.php
@@ -0,0 +1,30 @@
+<?php
+
+$pageTitle="Eclipse Web Tools Platform (WTP) Patch Downloads";
+$indexTop="<font class=indextop>
+ Web Tools Platform<br />
+patch downloads</font><br />
+<font class=indexsub>Latest patch downloads from the Web Tools Platform project</font>";
+
+$pageExplanation="
+ <p>This is the starting page for where you can find the latest <a
+ href=\"http://wiki.eclipse.org/index.php/WTP_Build_Types\">patch features</a> produced by the <a
+ href=\"http://www.eclipse.org/webtools\">Eclipse Web Tools
+ Platform (WTP) Project</a>.</p>
+ <p>They are normaly very specialized, for a specific purpose or adopter, and not for
+ general use. Those that are for general use -- and end-users -- will be made available
+ via update manager.
+ </p>
+ <p>If you got here to this patch-build site by accident or casual
+ browsing, please be aware that <a
+ href=\"http://download.eclipse.org/webtools/downloads/\" target=\"_top\">
+ declared builds</a> are available!</p>
+";
+
+$mainTableHeader="Latest Patch Feature Downloads";
+
+$pageFooterEnd="<p><a href=\"http://download.eclipse.org/webtools/committers/\"
+ target=\"_top\">Continuous builds</a> are also available which are for
+ committers and early testers.</p>";
+
+?>
\ No newline at end of file