diff --git a/downloadsites/webtools/archive/index.php b/downloadsites/webtools/archive/index.php index a4c938b794d35c65b72fd54e0b5cdf31b204c6c3..462a55fa7f7a2c740dcb9c3856bb07a219ea501c 100644 --- a/downloadsites/webtools/archive/index.php +++ b/downloadsites/webtools/archive/index.php @@ -56,8 +56,7 @@ $C = strcmp($QString, "test"); 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> + archived downloads</font> </td> <td width="28%"><img src="wtplogonarrow.jpg" diff --git a/downloadsites/webtools/archive/pagePropertyVariables.php b/downloadsites/webtools/archive/pagePropertyVariables.php new file mode 100644 index 0000000000000000000000000000000000000000..f475df886af4b48f462b28e4992478fe4e0456b1 --- /dev/null +++ b/downloadsites/webtools/archive/pagePropertyVariables.php @@ -0,0 +1,15 @@ +<?php + +$pageTitle="Eclipse Web Tools Platform (WTP) Archived Releases"; + +$indexTop=""; + +$pageExplanation=""; + +$mainTableHeader=""; + +$pageFooterEnd=""; + +$subsectionHeading=""; + +?> \ No newline at end of file diff --git a/downloadsites/webtools/archive/report.php b/downloadsites/webtools/archive/report.php deleted file mode 100644 index d285cba60f30dffd5abd9a17bab7518d32411d42..0000000000000000000000000000000000000000 --- a/downloadsites/webtools/archive/report.php +++ /dev/null @@ -1,137 +0,0 @@ -<?php - function count_pattern($directory, $filenameFilter, $pattern) - { - $count = 0; - $dir = dir($directory); - while ($anEntry = $dir->read()) - { - if ($anEntry != "." && $anEntry != "..") - { - $anEntry = $directory."/".$anEntry; - if (is_dir($anEntry)) - { - $count += count_pattern($anEntry, $filenameFilter, $pattern); - } - else - { - if (stristr($anEntry, $filenameFilter)) - { - $handle = fopen($anEntry, "r"); - $size = filesize($anEntry); - $content = fread($handle, $size); - fclose($handle); - $count += substr_count($content, $pattern); - } - } - } - } - return $count; - } - - function parse_testResult($filename) - { - $junitFailures = 0; - $compileErrors = 0; - $compileWarnings = 0; - $handle = fopen($filename, "r"); - if ($handle) - { - $size = filesize($filename); - $content = fread($handle, $size); - fclose($handle); - $junitStart = strpos($content, "Errors & Failures"); - $junitEnd = strpos($content, "</table>", $junitStart); - $junitInfo = substr($content, $junitStart, $junitEnd - $junitStart); - $start = strpos($junitInfo, "<td><b><font color=\"#ff0000\">"); - while ($start !== false) - { - $start += 29; - $stop = strpos($junitInfo, "</font></b></td>", $start); - if ($stop !== false) - { - $result = substr($junitInfo, $start, $stop - $start); - if (is_numeric($result)) - { - $junitFailures += $result; - } - else if (strcmp($result, "DNF") == 0) - { - $junitFailures++; - } - } - $start = strpos($junitInfo, "<td><b><font color=\"#ff0000\">", $stop); - } - $compileStart = strpos($content, "Compile Logs (Jar Files)"); - $compileEnd = strpos($content, "</table>", $compileStart); - $compileInfo = substr($content, $compileStart, $compileEnd - $compileStart); - $rowStart = strpos($compileInfo, "<tr>"); - while ($rowStart !== false) - { - $start += 4; - $rowStop = strpos($compileInfo, "</tr>", $rowStart); - if ($rowStop !== false) - { - $row = substr($compileInfo, $rowStart, $rowStop - $rowStart); - $cellStart = strpos($row, "<td>"); - $gotError = false; - $gotWarning = false; - while ($cellStart !== false && (!$gotError || !$gotWarning)) - { - $cellStart += 4; - $cellStop = strpos($row, "</td>", $cellStart); - if ($cellStop !== false) - { - $cell = substr($row, $cellStart, $cellStop - $cellStart); - if (is_numeric($cell)) - { - if (!$gotError) - { - $compileErrors += $cell; - $gotError = true; - } - else if (!$gotWarning) - { - $compileWarnings += $cell; - $gotWarning = true; - } - } - } - $cellStart = strpos($row, "<td>", $cellStop); - } - } - $rowStart = strpos($compileInfo, "<tr>", $rowStop); - } - } - $results = array($compileErrors, $compileWarnings, $junitFailures); - return $results; - } - - function parse($filename, $key) - { - if (!is_readable($filename)) - { - return 0; - } - $value; - $handle = fopen($filename, "r"); - if (!$handle) - { - return 0; - } - $size = filesize($filename); - $content = fread($handle, $size); - fclose($handle); - $start = strpos($content, $key); - while ($start !== false) - { - $start += strlen($key); - $stop = strpos($content, "\"", $start); - if ($stop !== false) - { - $value += substr($content, $start, $stop - $start); - } - $start = strpos($content, $key, $stop); - } - return $value; - } -?> diff --git a/downloadsites/webtools/archive/wtplogonarrow.jpg b/downloadsites/webtools/archive/wtplogonarrow.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c433588d247c19ea24ca812544ab13149f469f2e Binary files /dev/null and b/downloadsites/webtools/archive/wtplogonarrow.jpg differ