| <?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> |
| <?php |
| include 'pagePropertyVariables.php'; |
| ?> |
| <link |
| rel="stylesheet" |
| href="http://dev.eclipse.org/default_style.css" /> |
| <link |
| rel="stylesheet" |
| href="../commonPages/wtpDropStyle.css" /> |
| <title><?php echo $pageTitle; ?></title> |
| </head> |
| <body> |
| <?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"> |
| the live public Eclipse site |
| </a>. |
| </p> |
| <hr /> |
| </center>'; |
| |
| } |
| |
| if (function_exists("date_default_timezone_set")) { |
| date_default_timezone_set("UTC"); |
| //echo "<p>default timezone: "; |
| //echo date_default_timezone_get(); |
| //echo "</p>"; |
| } |
| |
| ?> |
| <?php |
| ini_set("display_errors", "true"); |
| error_reporting (E_ALL); |
| ?> |
| <?php |
| $QString = $_SERVER['QUERY_STRING']; |
| $C = strcmp($QString, "test"); |
| ?> |
| <table |
| border=0 |
| cellpadding=2 |
| width="100%"> |
| <tr> |
| <td width="72%"><font class=indextop> Web Tools Platform<br> |
| downloads</font> <br> |
| <font class=indexsub>archived downloads from the Web Tools Platform project</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>On this page you can find the <b>archived builds</b> produced by the <a |
| href="http://www.eclipse.org/webtools/" |
| target="_top"> Eclipse Webtools Project (WTP)</a>. Archived builds consist of older releases and not |
| propagated to Eclipse mirrors.</p> |
| </td> |
| </tr> |
| <tr> |
| <td |
| align=left |
| width="72%"> |
| <p>If you got here to this <b>archive</b> site by accident or casual browsing, please be aware that more <a |
| href="http://download.eclipse.org/webtools/downloads/" |
| target="_top"> current builds</a> are available!</p> |
| </td> |
| </tr> |
| </table> |
| <?php |
| |
| //$fileHandle = fopen("drops/dlconfig.txt", "r"); |
| //while (!feof($fileHandle)) { |
| // |
| // $aLine = fgets($fileHandle, 4096); |
| // parse_str($aLine); |
| // |
| // |
| //} |
| // |
| //fclose($fileHandle); |
| |
| // fix for the next version of php |
| |
| $contents = substr(file_get_contents('drops/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)-1; $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]="R3.1"; |
| $buildBranches[1]="R3.0"; |
| $buildBranches[2]="R2.1"; |
| $buildBranches[3]="R2.0"; |
| $buildBranches[4]="R1.5"; |
| $buildBranches[5]="R1.0"; |
| $buildBranches[6]="R0.7"; |
| $buildBranches[7]="R0.5"; |
| include 'drops/report.php'; |
| $latestTimeStamp=array(); |
| $latestFile = array(); |
| |
| echo "<table border=0 cellpadding=2 width=\"100%\"><tr>"; |
| echo "<td colspan=\"2\" bgcolor=\"#0080C0\"><b><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">Latest Downloads</td></font></b>"; |
| echo "</td></tr></table>"; |
| |
| |
| |
| foreach ($buildBranches as $buildBranch ) { |
| |
| $dirfilename = "drops/".$buildBranch; |
| if (file_exists($dirfilename) && is_dir($dirfilename)) { |
| $aDirectory = dir($dirfilename); |
| $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>"; |
| |
| $parts = explode("-", $anEntry); |
| if (count($parts) == 3) { |
| // debug |
| //echo "yes, counted parts was 3<br>"; |
| $buckets[$buildBranch][$parts[0]][] = $anEntry; |
| |
| $timePart = $parts[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); |
| $timeStamp = mktime($hour, $minute, 0, $month, $day, $year); |
| |
| $timeStamps[$anEntry] = date("D, j M Y -- H:i \(\U\T\C\)", $timeStamp); |
| |
| if (sizeof($latestTimeStamp[$buildBranch]) > 0) { |
| if ($timeStamp > $latestTimeStamp[$buildBranch][$parts[0]]) { |
| $latestTimeStamp[$buildBranch][$parts[0]] = $timeStamp; |
| $latestFile[$buildBranch][$parts[0]] = $anEntry; |
| } |
| }else{ |
| $latestTimeStamp[$buildBranch][$parts[0]] = $timeStamp; |
| $latestFile[$buildBranch][$parts[0]] = $anEntry; |
| |
| } |
| } |
| |
| } |
| } |
| |
| } |
| } |
| |
| $aDirectory->close(); |
| } |
| } |
| |
| ?> |
| <TABLE |
| width="100%" |
| cellpadding=2> |
| <tr> |
| <td width=\"30%\"><b>Build Type</b></td> |
| <td><b>Build Stream</b></td> |
| <td><b>Build Name</b></td> |
| <td><b>Build Date</b></td> |
| </tr> |
| <?php |
| foreach($dropType as $value) { |
| $prefix=$typeToPrefix[$value]; |
| |
| foreach($buildBranches as $bValue) { |
| |
| if (array_key_exists($bValue,$latestFile) && array_key_exists($prefix, $latestFile[$bValue])) { |
| $fileName = $latestFile[$bValue][$prefix]; |
| echo "<tr> |
| <td width=\"30%\">$value</td> <td>$bValue</td>"; |
| |
| $parts = explode("-", $fileName); |
| |
| if (sizeof($parts) > 1) { |
| // Uncomment the line below if we need click through licenses. |
| // echo "<td><a href=license.php?license=drops/$bValue/$fileName>$parts[1]</a></td>"; |
| |
| // Comment the line below if we need click through licenses. |
| echo "<td><a href=\"drops/$bValue/$fileName/\">$parts[1]</a></td>"; |
| |
| echo "<td>$timeStamps[$fileName]</td>"; |
| echo "</tr>"; |
| } |
| } |
| } |
| } |
| ?> |
| </TABLE> |
| <?php |
| 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) { |
| if (array_key_exists($bValue,$buckets) && 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) { |
| $parts = explode("-", $iv); |
| $ts[$i] = $parts[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) { |
| $parts = explode("-", $innerValue); |
| echo "<tr>"; |
| |
| // Uncomment the line below if we need click through licenses. |
| // echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$parts[1]</a></td>"; |
| |
| // Comment the line below if we need click through licenses. |
| echo "<td><a href=\"drops/$bValue/$innerValue/\">$parts[1]</a></td>"; |
| echo "<td>$bValue</td>"; |
| echo "<td>$timeStamps[$innerValue]</td>"; |
| |
| } |
| }}} |
| echo "</table></table>"; |
| } |
| ?> |
| <table |
| border="0" |
| width="100%" |
| cellpadding="2"> |
| <tbody> |
| <tr> |
| <td valign="top"> |
| <table |
| border="0" |
| cellpadding="2"> |
| <tbody> |
| <tr> |
| <td |
| width="100%" |
| bgcolor="#0080c0" |
| valign="top"><b><font face="Arial,Helvetica"><font color="#ffffff">Download Related Links</font> |
| </font></b></td> |
| </tr> |
| <tr> |
| <td valign="top"><!-- moved to /home/data/httpd/archive.eclipse.org/webtools/downloads/translations |
| <p><a |
| href="http://download.eclipse.org/webtools/downloads/translations/M-0.7.1-200509270720/translation.html" |
| target="_top">0.7.1 Language Packs</a> are now |
| available.</p> |
| --> |
| <p><a |
| href="http://download.eclipse.org/webtools/downloads" |
| target="_top">Declared Builds</a> builds are available which are for end-users and adopters.</p> |
| <p><a |
| href="http://download.eclipse.org/webtools/committers/" |
| target="_top">Continuous Builds</a> are produced since the last declared build, but are |
| generally not tested and of interest only to committers and early testers.</p> |
| <p><a |
| href="translations/M-0.7.1-200509270720/translation.html" |
| target="_top">WTP 0.7.x Language Packs</a> are available for download.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <!-- 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> |