blob: fbd2067bb0879ac81c73559448263c6ed479ca4d [file] [log] [blame]
david_williams8ef1ed32008-09-30 02:13:01 +00001<?php
2echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?> \n" ;
3?>
4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5<html xmlns="http://www.w3.org/1999/xhtml">
david_williamsffa51102008-09-30 01:35:21 +00006<head>
david_williams8ef1ed32008-09-30 02:13:01 +00007<?php
8include 'pagePropertyVariables.php';
9?>
10<link
11 rel="stylesheet"
12 href="http://dev.eclipse.org/default_style.css" />
13<link
14 rel="stylesheet"
15 href="../commonPages/wtpDropStyle.css" />
16<title><?php echo $pageTitle; ?></title>
david_williamsffa51102008-09-30 01:35:21 +000017</head>
18<body>
david_williamsffa51102008-09-30 01:35:21 +000019<?php
20
david_williams8ef1ed32008-09-30 02:13:01 +000021// tiny banner to remind when looking at "local" machine results
22$serverName = $_SERVER["SERVER_NAME"];
david_williamsffa51102008-09-30 01:35:21 +000023
david_williams8ef1ed32008-09-30 02:13:01 +000024if (!stristr($serverName, "eclipse.org") && !stristr($serverName,"you.are.at.eclipsecon.org")) {
25 echo '<center>
26 <p>
27 Reminder: this is <font color="#FF0000">' .
28 $serverName .
29 '</font>
30 See also
31 <a href="http://download.eclipse.org/webtools/downloads" target="_top">
32 the live public Eclipse site
33 </a>.
34 </p>
35 <hr />
36 </center>';
david_williamsffa51102008-09-30 01:35:21 +000037
david_williamsffa51102008-09-30 01:35:21 +000038}
39
david_williams8ef1ed32008-09-30 02:13:01 +000040if (function_exists("date_default_timezone_set")) {
41 date_default_timezone_set("UTC");
42 //echo "<p>default timezone: ";
43 //echo date_default_timezone_get();
44 //echo "</p>";
45}
david_williamsffa51102008-09-30 01:35:21 +000046
47?>
david_williams8ef1ed32008-09-30 02:13:01 +000048<?php
49ini_set("display_errors", "true");
50error_reporting (E_ALL);
51?>
52<?php
53$QString = $_SERVER['QUERY_STRING'];
54$C = strcmp($QString, "test");
55?>
56<table
57 border=0
58 cellpadding=2
59 width="100%">
david_williamsffa51102008-09-30 01:35:21 +000060 <tr>
61 <td width="72%"><font class=indextop> Web Tools Platform<br>
62 downloads</font> <br>
63 <font class=indexsub>archived downloads from the Web Tools Platform project</font><br>
64 </td>
65 <td width="28%"><img
david_williams8ef1ed32008-09-30 02:13:01 +000066 src="http://dev.eclipse.org/images/Idea.jpg"
67 height=86
david_williamsffa51102008-09-30 01:35:21 +000068 width=120></td>
69 </tr>
70</table>
david_williamsffa51102008-09-30 01:35:21 +000071<!-- heading end -->
david_williamsffa51102008-09-30 01:35:21 +000072<hr />
david_williams8ef1ed32008-09-30 02:13:01 +000073<table
74 border=0
75 cellpadding=2
76 width="100%">
77 <tr>
david_williamsffa51102008-09-30 01:35:21 +000078 <td>
david_williams8ef1ed32008-09-30 02:13:01 +000079 <p>On this page you can find the <b>archived builds</b> produced by the <a
80 href="http://www.eclipse.org/webtools/"
81 target="_top"> Eclipse Webtools Project (WTP)</a>. Archived builds consist of older releases and not
82 propagated to Eclipse mirrors.</p>
david_williamsffa51102008-09-30 01:35:21 +000083 </td>
84 </tr>
david_williamsffa51102008-09-30 01:35:21 +000085 <tr>
david_williams8ef1ed32008-09-30 02:13:01 +000086 <td
87 align=left
88 width="72%">
89 <p>If you got here to this <b>archive</b> site by accident or casual browsing, please be aware that more <a
david_williamsffa51102008-09-30 01:35:21 +000090 href="http://download.eclipse.org/webtools/downloads/"
91 target="_top"> current builds</a> are available!</p>
92 </td>
93 </tr>
david_williamsffa51102008-09-30 01:35:21 +000094</table>
david_williamsffa51102008-09-30 01:35:21 +000095<?php
96
97//$fileHandle = fopen("drops/dlconfig.txt", "r");
98//while (!feof($fileHandle)) {
99//
100// $aLine = fgets($fileHandle, 4096);
101// parse_str($aLine);
102//
103//
104//}
105//
106//fclose($fileHandle);
107
108// fix for the next version of php
109
david_williams8ef1ed32008-09-30 02:13:01 +0000110$contents = substr(file_get_contents('drops/dlconfig.txt'),0,-1);
111$contents = str_replace("\n", "", $contents);
david_williamsffa51102008-09-30 01:35:21 +0000112
david_williams8ef1ed32008-09-30 02:13:01 +0000113#split the content file by & and fill the arrays
114$elements = explode("&",$contents);
115$t = 0;
116$p = 0;
117for ($c = 0; $c < count($elements)-1; $c++) {
118 $tString = "dropType";
119 $pString = "dropPrefix";
120 if (strstr($elements[$c],$tString)) {
121 $temp = preg_split("/=/",$elements[$c]);
122 $dropType[$t] = trim($temp[1]);
123 $t++;
124 }
125 if (strstr($elements[$c],$pString)) {
126 $temp = preg_split("/=/",$elements[$c]);
127 $dropPrefix[$p] = trim($temp[1]);
128 $p++;
129 }
130}
david_williamsffa51102008-09-30 01:35:21 +0000131
132// debug
133// echo "Debug: droptype count: ", count($dropType), "<br />";
134
135for ($i = 0; $i < count($dropType); $i++) {
david_williams8ef1ed32008-09-30 02:13:01 +0000136 $dt = $dropType[$i];
137 $dt = trim($dt);
138 $typeToPrefix[$dt] = $dropPrefix[$i];
david_williamsffa51102008-09-30 01:35:21 +0000139
david_williams8ef1ed32008-09-30 02:13:01 +0000140 // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
141 // echo "Debug dropType: ", $dropType[$i], "<br />";
david_williamsffa51102008-09-30 01:35:21 +0000142
143}
144
145$buildBranches = array();
146$buildBranches[0]="R3.1";
david_williams8ef1ed32008-09-30 02:13:01 +0000147$buildBranches[1]="R3.0";
148$buildBranches[2]="R2.1";
149$buildBranches[3]="R2.0";
150$buildBranches[4]="R1.5";
151$buildBranches[5]="R1.0";
152$buildBranches[6]="R0.7";
153$buildBranches[7]="R0.5";
david_williamsffa51102008-09-30 01:35:21 +0000154include 'drops/report.php';
155$latestTimeStamp=array();
156$latestFile = array();
157
158echo "<table border=0 cellpadding=2 width=\"100%\"><tr>";
159echo "<td colspan=\"2\" bgcolor=\"#0080C0\"><b><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">Latest Downloads</td></font></b>";
160echo "</td></tr></table>";
161
162
163
164foreach ($buildBranches as $buildBranch ) {
165
david_williams8ef1ed32008-09-30 02:13:01 +0000166 $dirfilename = "drops/".$buildBranch;
167 if (file_exists($dirfilename) && is_dir($dirfilename)) {
168 $aDirectory = dir($dirfilename);
169 $latestTimeStamp[$buildBranch] = array();
170 $latestFile[$buildBranch] = array();
david_williamsffa51102008-09-30 01:35:21 +0000171
172
david_williams8ef1ed32008-09-30 02:13:01 +0000173 while (false !== ($anEntry = $aDirectory->read())) {
david_williamsffa51102008-09-30 01:35:21 +0000174
david_williams8ef1ed32008-09-30 02:13:01 +0000175 // Short cut because we know aDirectory only contains other directories.
176 if ($anEntry != "." && $anEntry!=".." ) {
david_williamsffa51102008-09-30 01:35:21 +0000177 //echo "Debug anEntry: $anEntry<br />" ;
178 $aDropDirectoryName = "drops/".$buildBranch."/".$anEntry;
179 if (is_Readable($aDropDirectoryName)) {
david_williams8ef1ed32008-09-30 02:13:01 +0000180 $aDropDirectory = dir($aDropDirectoryName);
181 //echo "Debug aDropDirectory: $aDropDirectory->path <br />" ;
david_williamsffa51102008-09-30 01:35:21 +0000182
david_williams8ef1ed32008-09-30 02:13:01 +0000183 $fileCount = 0;
184 while ($aDropEntry = $aDropDirectory->read()) {
185 // echo "Debug aDropEntry: $aDropEntry<br />" ;
186 if ( (stristr($aDropEntry, ".tar.gz")) || (stristr($aDropEntry, ".zip")) ) {
187 // Count the dropfile entry in the directory (so we won't display links, if not all there
188 $fileCount = $fileCount + 1;
david_williamsffa51102008-09-30 01:35:21 +0000189 }
david_williams8ef1ed32008-09-30 02:13:01 +0000190 }
david_williamsffa51102008-09-30 01:35:21 +0000191
david_williams8ef1ed32008-09-30 02:13:01 +0000192 $aDropDirectory->close();
david_williamsffa51102008-09-30 01:35:21 +0000193 }
194 // Read the count file
195 $countFile = "drops/".$buildBranch."/".$anEntry."/files.count";
196 $indexFile = "drops/".$buildBranch."/".$anEntry."/index.html";
197
198
199 if (!file_exists($indexFile)) {
david_williams8ef1ed32008-09-30 02:13:01 +0000200 $indexFile = "drops/".$buildBranch."/".$anEntry."/index.php";
david_williamsffa51102008-09-30 01:35:21 +0000201 }
202
203
204 if (file_exists($countFile) && file_exists($indexFile)) {
david_williams8ef1ed32008-09-30 02:13:01 +0000205 $anArray = file($countFile);
206 // debug
207 //echo "Number according to files.count: ", $anArray[0];
208 //echo " actual counted files: ", $fileCount;
209
210 // If a match - process the directoryVV
211 if ($anArray[0] <= $fileCount) {
david_williamsffa51102008-09-30 01:35:21 +0000212 // debug
david_williams8ef1ed32008-09-30 02:13:01 +0000213 //echo "yes, counted equaled expected count<br>";
david_williamsffa51102008-09-30 01:35:21 +0000214
david_williams8ef1ed32008-09-30 02:13:01 +0000215 $parts = explode("-", $anEntry);
216 if (count($parts) == 3) {
217 // debug
218 //echo "yes, counted parts was 3<br>";
219 $buckets[$buildBranch][$parts[0]][] = $anEntry;
david_williamsffa51102008-09-30 01:35:21 +0000220
david_williams8ef1ed32008-09-30 02:13:01 +0000221 $timePart = $parts[2];
222 $year = substr($timePart, 0, 4);
223 $month = substr($timePart, 4, 2);
224 $day = substr($timePart, 6, 2);
225 $hour = substr($timePart,8,2);
226 $minute = substr($timePart,10,2);
227 $timeStamp = mktime($hour, $minute, 0, $month, $day, $year);
david_williamsffa51102008-09-30 01:35:21 +0000228
david_williams8ef1ed32008-09-30 02:13:01 +0000229 $timeStamps[$anEntry] = date("D, j M Y -- H:i \(\U\T\C\)", $timeStamp);
david_williamsffa51102008-09-30 01:35:21 +0000230
david_williams8ef1ed32008-09-30 02:13:01 +0000231 if (sizeof($latestTimeStamp[$buildBranch]) > 0) {
232 if ($timeStamp > $latestTimeStamp[$buildBranch][$parts[0]]) {
233 $latestTimeStamp[$buildBranch][$parts[0]] = $timeStamp;
234 $latestFile[$buildBranch][$parts[0]] = $anEntry;
david_williamsffa51102008-09-30 01:35:21 +0000235 }
david_williams8ef1ed32008-09-30 02:13:01 +0000236 }else{
237 $latestTimeStamp[$buildBranch][$parts[0]] = $timeStamp;
238 $latestFile[$buildBranch][$parts[0]] = $anEntry;
david_williamsffa51102008-09-30 01:35:21 +0000239
david_williams8ef1ed32008-09-30 02:13:01 +0000240 }
241 }
242
243 }
david_williamsffa51102008-09-30 01:35:21 +0000244 }
245
david_williams8ef1ed32008-09-30 02:13:01 +0000246 }
david_williamsffa51102008-09-30 01:35:21 +0000247 }
david_williamsffa51102008-09-30 01:35:21 +0000248
david_williams8ef1ed32008-09-30 02:13:01 +0000249 $aDirectory->close();
250 }
david_williamsffa51102008-09-30 01:35:21 +0000251}
252
253?>
david_williams8ef1ed32008-09-30 02:13:01 +0000254<TABLE
255 width="100%"
256 cellpadding=2>
david_williamsffa51102008-09-30 01:35:21 +0000257 <tr>
258 <td width=\"30%\"><b>Build Type</b></td>
259 <td><b>Build Stream</b></td>
260 <td><b>Build Name</b></td>
261 <td><b>Build Date</b></td>
262 </tr>
david_williamsffa51102008-09-30 01:35:21 +0000263 <?php
david_williams8ef1ed32008-09-30 02:13:01 +0000264 foreach($dropType as $value) {
265 $prefix=$typeToPrefix[$value];
david_williamsffa51102008-09-30 01:35:21 +0000266
david_williams8ef1ed32008-09-30 02:13:01 +0000267 foreach($buildBranches as $bValue) {
david_williamsffa51102008-09-30 01:35:21 +0000268
david_williams8ef1ed32008-09-30 02:13:01 +0000269 if (array_key_exists($bValue,$latestFile) && array_key_exists($prefix, $latestFile[$bValue])) {
270 $fileName = $latestFile[$bValue][$prefix];
271 echo "<tr>
272 <td width=\"30%\">$value</td> <td>$bValue</td>";
david_williamsffa51102008-09-30 01:35:21 +0000273
david_williams8ef1ed32008-09-30 02:13:01 +0000274 $parts = explode("-", $fileName);
david_williamsffa51102008-09-30 01:35:21 +0000275
david_williams8ef1ed32008-09-30 02:13:01 +0000276 if (sizeof($parts) > 1) {
277 // Uncomment the line below if we need click through licenses.
278 // echo "<td><a href=license.php?license=drops/$bValue/$fileName>$parts[1]</a></td>";
david_williamsffa51102008-09-30 01:35:21 +0000279
david_williams8ef1ed32008-09-30 02:13:01 +0000280 // Comment the line below if we need click through licenses.
281 echo "<td><a href=\"drops/$bValue/$fileName/\">$parts[1]</a></td>";
282
283 echo "<td>$timeStamps[$fileName]</td>";
284 echo "</tr>";
david_williamsffa51102008-09-30 01:35:21 +0000285 }
david_williams8ef1ed32008-09-30 02:13:01 +0000286 }
287 }
288 }
289 ?>
david_williamsffa51102008-09-30 01:35:21 +0000290</TABLE>
david_williams8ef1ed32008-09-30 02:13:01 +0000291 <?php
292 foreach($dropType as $value) {
293 $prefix=$typeToPrefix[$value];
david_williamsffa51102008-09-30 01:35:21 +0000294
295
david_williams8ef1ed32008-09-30 02:13:01 +0000296 echo "
297 <table width=\"100%\" cellpadding=2>
298 <tr bgcolor=\"#999999\">
299 <td align=left width=\"30%\"><b><a name=\"$value\"><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">$value";
300 echo "</font></a></b></td>
david_williamsffa51102008-09-30 01:35:21 +0000301 </TR>
302 <TR>
303 <td align=left>
304 <TABLE width=\"100%\" cellpadding=\"2\">
305 <tr>
306 <td width=\"30%\"><b>Build Name</b></td><td><b>Build Stream</b></td>
307 <td><b>Build Date</b></td>
308 </tr>";
david_williamsffa51102008-09-30 01:35:21 +0000309
david_williams8ef1ed32008-09-30 02:13:01 +0000310 foreach($buildBranches as $bValue) {
311 if (array_key_exists($bValue,$buckets) && array_key_exists($prefix, $buckets[$bValue])) {
312 echo "<tr><td colspan=\"7\"/><hr/></tr>";
313 $aBucket = $buckets[$bValue][$prefix];
314 if (isset($aBucket)) {
315 rsort($aBucket);
david_williamsffa51102008-09-30 01:35:21 +0000316
david_williams8ef1ed32008-09-30 02:13:01 +0000317 $i = 0;
318 $ts = array();
319 $ts2iv = array();
320 foreach($aBucket as $iv) {
321 $parts = explode("-", $iv);
322 $ts[$i] = $parts[2];
323 $ts2iv[$ts[$i]] = $iv;
324 $i++;
325 }
david_williamsffa51102008-09-30 01:35:21 +0000326
david_williams8ef1ed32008-09-30 02:13:01 +0000327 rsort($ts);
328 $i = 0;
329 $aBucket = array();
330 foreach($ts as $tsvalue) {
331 $aBucket[$i] = $ts2iv[$tsvalue];
332 $i++;
333 }
david_williamsffa51102008-09-30 01:35:21 +0000334
david_williams8ef1ed32008-09-30 02:13:01 +0000335 foreach($aBucket as $innerValue) {
336 $parts = explode("-", $innerValue);
337 echo "<tr>";
david_williamsffa51102008-09-30 01:35:21 +0000338
david_williams8ef1ed32008-09-30 02:13:01 +0000339 // Uncomment the line below if we need click through licenses.
340 // echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$parts[1]</a></td>";
david_williamsffa51102008-09-30 01:35:21 +0000341
david_williams8ef1ed32008-09-30 02:13:01 +0000342 // Comment the line below if we need click through licenses.
343 echo "<td><a href=\"drops/$bValue/$innerValue/\">$parts[1]</a></td>";
344 echo "<td>$bValue</td>";
345 echo "<td>$timeStamps[$innerValue]</td>";
david_williamsffa51102008-09-30 01:35:21 +0000346
david_williams8ef1ed32008-09-30 02:13:01 +0000347 }
348 }}}
349 echo "</table></table>";
350 }
351 ?>
352<table
353 border="0"
354 width="100%"
355 cellpadding="2">
david_williamsffa51102008-09-30 01:35:21 +0000356 <tbody>
357 <tr>
358 <td valign="top">
david_williams8ef1ed32008-09-30 02:13:01 +0000359 <table
360 border="0"
361 cellpadding="2">
david_williamsffa51102008-09-30 01:35:21 +0000362 <tbody>
363 <tr>
david_williams8ef1ed32008-09-30 02:13:01 +0000364 <td
365 width="100%"
366 bgcolor="#0080c0"
367 valign="top"><b><font face="Arial,Helvetica"><font color="#ffffff">Download Related Links</font>
368 </font></b></td>
david_williamsffa51102008-09-30 01:35:21 +0000369 </tr>
370 <tr>
david_williams8ef1ed32008-09-30 02:13:01 +0000371 <td valign="top"><!-- moved to /home/data/httpd/archive.eclipse.org/webtools/downloads/translations
david_williamsffa51102008-09-30 01:35:21 +0000372 <p><a
373 href="http://download.eclipse.org/webtools/downloads/translations/M-0.7.1-200509270720/translation.html"
374 target="_top">0.7.1 Language Packs</a> are now
375 available.</p>
376 -->
david_williamsffa51102008-09-30 01:35:21 +0000377 <p><a
378 href="http://download.eclipse.org/webtools/downloads"
david_williams8ef1ed32008-09-30 02:13:01 +0000379 target="_top">Declared Builds</a> builds are available which are for end-users and adopters.</p>
david_williamsffa51102008-09-30 01:35:21 +0000380 <p><a
381 href="http://download.eclipse.org/webtools/committers/"
david_williams8ef1ed32008-09-30 02:13:01 +0000382 target="_top">Continuous Builds</a> are produced since the last declared build, but are
383 generally not tested and of interest only to committers and early testers.</p>
384 <p><a
385 href="translations/M-0.7.1-200509270720/translation.html"
386 target="_top">WTP 0.7.x Language Packs</a> are available for download.</p>
387 </td>
david_williamsffa51102008-09-30 01:35:21 +0000388 </tr>
389 </tbody>
390 </table>
391 </td>
david_williamsffa51102008-09-30 01:35:21 +0000392 </tr>
393 </tbody>
394</table>
david_williamsffa51102008-09-30 01:35:21 +0000395<!-- footer -->
396<center>
397<hr />
david_williams8ef1ed32008-09-30 02:13:01 +0000398<p>All downloads are provided under the terms and conditions of the <a href="http://www.eclipse.org/legal/notice.html">Eclipse.org
399Software User Agreement</a> unless otherwise specified.</p>
david_williamsffa51102008-09-30 01:35:21 +0000400<p>If you have problems downloading the drops, contact the <font
david_williams8ef1ed32008-09-30 02:13:01 +0000401 size="-1"
402 face="arial,helvetica,geneva"><a href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
david_williamsffa51102008-09-30 01:35:21 +0000403</center>
404<!-- end footer -->
david_williamsffa51102008-09-30 01:35:21 +0000405</body>
406</html>