blob: d466ac19423a931c9d6d4c34c5d6e5b10fc7598b [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>
7 <td width="35%" align="right"><a
8 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
24$contents = substr(file_get_contents('dlconfig.txt'),0,-1);
25$contents = str_replace("\n", "", $contents);
26
27#split the content file by & and fill the arrays
28$elements = explode("&",$contents);
29$t = 0;
30$p = 0;
31for ($c = 0; $c < count($elements); $c++) {
david_williams29d12192008-01-07 19:11:40 +000032 $tString = "dropType";
33 $pString = "dropPrefix";
34 if (strstr($elements[$c],$tString)) {
35 $temp = preg_split("/=/",$elements[$c]);
36 $dropType[$t] = trim($temp[1]);
37 $t++;
38 }
39 if (strstr($elements[$c],$pString)) {
40 $temp = preg_split("/=/",$elements[$c]);
41 $dropPrefix[$p] = trim($temp[1]);
42 $p++;
43 }
david_williams1a993892007-07-29 19:19:05 +000044}
45
46// debug
47// echo "Debug: droptype count: ", count($dropType), "<br />";
48
49for ($i = 0; $i < count($dropType); $i++) {
david_williams29d12192008-01-07 19:11:40 +000050 $dt = $dropType[$i];
51 $dt = trim($dt);
52 $typeToPrefix[$dt] = $dropPrefix[$i];
david_williams1a993892007-07-29 19:19:05 +000053
david_williams29d12192008-01-07 19:11:40 +000054 // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
55 // echo "Debug dropType: ", $dropType[$i], "<br />";
david_williams1a993892007-07-29 19:19:05 +000056
57}
58
david_williams38cdb422007-09-23 06:24:37 +000059
david_williamsfd220c82008-01-07 07:59:37 +000060include 'report.php';
61include 'report2.php';
62$latestTimeStamp=array();
63$latestFile = array();
64$buckets = array();
65$timeStamps = array();
66
david_williams29d12192008-01-07 19:11:40 +000067function computeBuildName($longname) {
68 $majorParts = explode("/", $longname);
69 $nParts = sizeof($majorParts);
70 if ($nParts > 1) {
71 $innerValueParts = explode("-", $majorParts[$nParts-1]);
72 }
73 else {
74 $innerValueParts = explode("-", $longname);
75 }
76 return $innerValueParts[1];
77}
david_williamsb8003992008-01-07 20:02:41 +000078function computeStreamName($longname) {
79 $majorParts = explode("/", $longname);
80 $nParts = sizeof($majorParts);
81 if ($nParts > 1) {
82 // a format such as "drops/R3.0"
83 $name = $majorParts[1];
84
85 }
86 else {
87 // a format such as "wtp-R3.0-I"
88 $majorParts = explode("-", $longname);
89 $name = $majorParts[1];
90 }
91 return $name;
92}
david_williams1a993892007-07-29 19:19:05 +000093?>