blob: fecc5a2f3f394e0bcbf83f0f6fed4a86e471e20a [file] [log] [blame]
david_williams1a993892007-07-29 19:19:05 +00001
2
3
4<table border=0 cellpadding=0 width="100%">
5 <tr>
6 <td width="35%"><?php echo $indexTop; ?></td>
david_williamsdd6b7b52008-02-27 15:04:01 +00007 <td width="25%" align="right"><a
david_williams1a993892007-07-29 19:19:05 +00008 href="http://www.eclipse.org/webtools/main.php"><img border="0"
david_williams87c86542008-01-14 05:59:55 +00009 src="../commonPages/wtplogonarrow.jpg" height="95" width="207" /></a></td>
david_williams1a993892007-07-29 19:19:05 +000010 </tr>
11</table>
12
13<!-- heading end -->
14
15
16<hr />
17<table border=0 cellpadding=2 width="70%" align="center">
18 <tr>
19 <td><?php echo $pageExplanation; ?></td>
20 </tr>
21</table>
22
23<?php
david_williamscabcbbf2008-07-08 00:40:30 +000024
25if (!isset($dlconfigfilename)) {
26 $dlconfigfilename='dlconfig.txt';
27}
david_williamsc8d90d82008-07-08 03:03:51 +000028
david_williamscabcbbf2008-07-08 00:40:30 +000029$contents = substr(file_get_contents($dlconfigfilename),0,-1);
david_williams1a993892007-07-29 19:19:05 +000030$contents = str_replace("\n", "", $contents);
31
32#split the content file by & and fill the arrays
33$elements = explode("&",$contents);
34$t = 0;
35$p = 0;
36for ($c = 0; $c < count($elements); $c++) {
david_williams29d12192008-01-07 19:11:40 +000037 $tString = "dropType";
38 $pString = "dropPrefix";
39 if (strstr($elements[$c],$tString)) {
40 $temp = preg_split("/=/",$elements[$c]);
41 $dropType[$t] = trim($temp[1]);
42 $t++;
43 }
44 if (strstr($elements[$c],$pString)) {
45 $temp = preg_split("/=/",$elements[$c]);
46 $dropPrefix[$p] = trim($temp[1]);
47 $p++;
48 }
david_williams1a993892007-07-29 19:19:05 +000049}
50
51// debug
52// echo "Debug: droptype count: ", count($dropType), "<br />";
53
54for ($i = 0; $i < count($dropType); $i++) {
david_williams29d12192008-01-07 19:11:40 +000055 $dt = $dropType[$i];
56 $dt = trim($dt);
57 $typeToPrefix[$dt] = $dropPrefix[$i];
david_williams1a993892007-07-29 19:19:05 +000058
david_williams29d12192008-01-07 19:11:40 +000059 // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
60 // echo "Debug dropType: ", $dropType[$i], "<br />";
david_williams1a993892007-07-29 19:19:05 +000061
62}
63
david_williams38cdb422007-09-23 06:24:37 +000064
david_williamsfd220c82008-01-07 07:59:37 +000065include 'report.php';
66include 'report2.php';
67$latestTimeStamp=array();
68$latestFile = array();
69$buckets = array();
70$timeStamps = array();
71
david_williams29d12192008-01-07 19:11:40 +000072function computeBuildName($longname) {
73 $majorParts = explode("/", $longname);
74 $nParts = sizeof($majorParts);
75 if ($nParts > 1) {
76 $innerValueParts = explode("-", $majorParts[$nParts-1]);
77 }
78 else {
79 $innerValueParts = explode("-", $longname);
80 }
81 return $innerValueParts[1];
82}
david_williamsb8003992008-01-07 20:02:41 +000083function computeStreamName($longname) {
84 $majorParts = explode("/", $longname);
85 $nParts = sizeof($majorParts);
86 if ($nParts > 1) {
87 // a format such as "drops/R3.0"
88 $name = $majorParts[1];
89
90 }
91 else {
92 // a format such as "wtp-R3.0-I"
93 $majorParts = explode("-", $longname);
94 $name = $majorParts[1];
95 }
96 return $name;
97}
david_williams1a993892007-07-29 19:19:05 +000098?>