blob: 32ccf8b0a6a085b7b0f388991450bd325fdf877b [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="30%" align="right"><a href="http://www.eclipsecon.org/2008/"><img border="0"
8 src="http://www.eclipsecon.org/2008/image125x125.gif"
9 height="125" width="125" alt="EclipseCon 2008"/></a>
10 </td>
11 <td width="25%" align="right"><a
david_williams1a993892007-07-29 19:19:05 +000012 href="http://www.eclipse.org/webtools/main.php"><img border="0"
david_williams87c86542008-01-14 05:59:55 +000013 src="../commonPages/wtplogonarrow.jpg" height="95" width="207" /></a></td>
david_williams1a993892007-07-29 19:19:05 +000014 </tr>
15</table>
16
17<!-- heading end -->
18
19
20<hr />
21<table border=0 cellpadding=2 width="70%" align="center">
22 <tr>
23 <td><?php echo $pageExplanation; ?></td>
24 </tr>
25</table>
26
27<?php
28$contents = substr(file_get_contents('dlconfig.txt'),0,-1);
29$contents = str_replace("\n", "", $contents);
30
31#split the content file by & and fill the arrays
32$elements = explode("&",$contents);
33$t = 0;
34$p = 0;
35for ($c = 0; $c < count($elements); $c++) {
david_williams29d12192008-01-07 19:11:40 +000036 $tString = "dropType";
37 $pString = "dropPrefix";
38 if (strstr($elements[$c],$tString)) {
39 $temp = preg_split("/=/",$elements[$c]);
40 $dropType[$t] = trim($temp[1]);
41 $t++;
42 }
43 if (strstr($elements[$c],$pString)) {
44 $temp = preg_split("/=/",$elements[$c]);
45 $dropPrefix[$p] = trim($temp[1]);
46 $p++;
47 }
david_williams1a993892007-07-29 19:19:05 +000048}
49
50// debug
51// echo "Debug: droptype count: ", count($dropType), "<br />";
52
53for ($i = 0; $i < count($dropType); $i++) {
david_williams29d12192008-01-07 19:11:40 +000054 $dt = $dropType[$i];
55 $dt = trim($dt);
56 $typeToPrefix[$dt] = $dropPrefix[$i];
david_williams1a993892007-07-29 19:19:05 +000057
david_williams29d12192008-01-07 19:11:40 +000058 // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
59 // echo "Debug dropType: ", $dropType[$i], "<br />";
david_williams1a993892007-07-29 19:19:05 +000060
61}
62
david_williams38cdb422007-09-23 06:24:37 +000063
david_williamsfd220c82008-01-07 07:59:37 +000064include 'report.php';
65include 'report2.php';
66$latestTimeStamp=array();
67$latestFile = array();
68$buckets = array();
69$timeStamps = array();
70
david_williams29d12192008-01-07 19:11:40 +000071function computeBuildName($longname) {
72 $majorParts = explode("/", $longname);
73 $nParts = sizeof($majorParts);
74 if ($nParts > 1) {
75 $innerValueParts = explode("-", $majorParts[$nParts-1]);
76 }
77 else {
78 $innerValueParts = explode("-", $longname);
79 }
80 return $innerValueParts[1];
81}
david_williamsb8003992008-01-07 20:02:41 +000082function computeStreamName($longname) {
83 $majorParts = explode("/", $longname);
84 $nParts = sizeof($majorParts);
85 if ($nParts > 1) {
86 // a format such as "drops/R3.0"
87 $name = $majorParts[1];
88
89 }
90 else {
91 // a format such as "wtp-R3.0-I"
92 $majorParts = explode("-", $longname);
93 $name = $majorParts[1];
94 }
95 return $name;
96}
david_williams1a993892007-07-29 19:19:05 +000097?>