diff --git downloadsites/eclipse/downloads/createIndex4x.php downloadsites/eclipse/downloads/createIndex4x.php index fd9066e..4145d7e 100644 --- downloadsites/eclipse/downloads/createIndex4x.php +++ downloadsites/eclipse/downloads/createIndex4x.php @@ -1,26 +1,79 @@ - - - -
- - -
- Eclipse Project .x Stream Downloads + Eclipse Project .x Stream Downloads Latest downloads from the Eclipse project @@ -55,7 +108,7 @@ Software User Agreement unless otherwise specified. - Eclipse .x downloads are available. +Eclipse .x downloads are available. See the main Eclispe download site for other packages and projects. Help out with Eclipse translations - check out the Babel project. If you prefer, try downloading with the SDK Torrents @@ -79,7 +132,7 @@ // sanity check input if (isset($dirName) && strlen($dirName) > 0) { $firstChar = substr($dirName, 0, 1); - //echo "first char: ".$firstChar; + //print "first char: ".$firstChar; foreach($dropPrefix as $type) { if ($firstChar == "$type") { $result = true; @@ -89,7 +142,7 @@ } } else { - echo "dropPrefix not defined as expected\n"; + print "dropPrefix not defined as expected\n"; } return $result; } @@ -97,7 +150,6 @@ // hard code for now the tests ran on one box // https://bugs.eclipse.org/bugs/show_bug.cgi?id=378706 return 1; - global $subdirDrops; $testBoxes=array("linux", "macosx", "win32"); $length=count($testBoxes); @@ -120,7 +172,7 @@ global $subdirDrops; // no file name, write empty column if ($fileName == "") { - echo " | \n"; + print " | \n"; return; } // get build name, date and time @@ -145,13 +197,13 @@ // presumably this particular md5 was choosen since last one made, I'd guess? //$build_done=file_exists("$dropDir/checksum/swt-$buildName-win32-wce_ppc-arm-j2me.zip.md5"); $build_done=file_exists("$dropDir/eclipse-SDK-$buildName-linux-gtk.tar.gz"); - echo " | \n"; + print " | \n"; // hard code for now the build is done // https://bugs.eclipse.org/bugs/show_bug.cgi?id=378706 // if ($build_done) { if (true) { $boxes=runTestBoxes($fileName); - echo "\n"; + print "\n"; //$testResults="$dropDir/testresults/xml"; //if (file_exists("$testResults")) { switch ($boxes) { @@ -160,21 +212,21 @@ //if ($diff > 480) { // for now, hard code to "0" since we are not reunning tests if ($diff > 0) { - echo "\n"; + print "\n"; } else { - echo "\n"; + print "\n"; } break; case 5: - echo "\n"; + print "\n"; break; default: // if more than 12 hours then consider that the regression tests did not finish if ($diff > 720) { - echo "\n"; + print "\n"; } else { - echo "\n"; + print "\n"; } } //break; @@ -184,9 +236,9 @@ // $perfsFile="$perfsDir/performance.php"; // if (file_exists("$perfsFile")) { // if (file_exists("$perfsDir/global.php")) { - //echo "\n"; + //print "\n"; // } else { - // echo "\n"; + // print "\n"; /// } // } else { // if (file_exists("$perfsDir/consolelogs")) { @@ -197,9 +249,9 @@ // } else { // $reason="either they were not stored in DB or not generated"; // } - // echo "\n"; + // print "\n"; //} else { - // echo "\n"; + // print "\n"; // } // } // } @@ -208,12 +260,12 @@ else { // if more than 5 hours then consider that the build did not finish if ($diff > 300) { - echo "\n"; + print "\n"; } else { - echo "\n"; + print "\n"; } } - echo " | \n"; + print "\n"; return $buildName; } ?> @@ -226,7 +278,7 @@ if ($anEntry != "." && $anEntry!=".." && $anEntry!="TIME" && startsWithDropPrefix($anEntry,$dropPrefix)) { $parts = explode("-", $anEntry); - // echo "|||||||||||||
$value | \n"; + print "|||||||||||||||||
$value | \n"; if (array_key_exists($prefix,$latestFile)) { @@ -299,7 +351,7 @@ $parts = explode("-", $fileName); // Uncomment the line below if we need click through licenses. - // echo "$parts[1] | \n"; + // print "$parts[1] | \n"; // Comment the line below if we need click through licenses. @@ -308,13 +360,13 @@ $buildName=$parts[1]; } if ($fileName == "") { - echo "\n"; + print " | \n"; } else { - echo " | $buildName | \n"; + print "$buildName | \n"; } $buildName = printBuildColumns($fileName, $parts); - echo "$timeStamps[$fileName] | \n"; - echo "$timeStamps[$fileName] | \n"; + print "\n"; } } ?> @@ -327,31 +379,31 @@ // skip whole section, if bucket is empty if (array_key_exists($prefix,$buckets)) { - echo "
\n"; - echo "$value\n"; - echo " | \n"; - echo "\n"; + print "$value\n"; + print " | \n"; + print "\n"; - echo "||||||||||||||||
\n";
- echo "\n";
- echo "\n";
- echo "\n";
- echo "\n";
- echo "
|