david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 1 | |
| 2 | |
| 3 | |
| 4 | <table border=0 cellpadding=0 width="100%"> |
| 5 | <tr> |
| 6 | <td width="35%"><?php echo $indexTop; ?></td> |
david_williams | dd6b7b5 | 2008-02-27 15:04:01 +0000 | [diff] [blame] | 7 | <td width="25%" align="right"><a |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 8 | href="http://www.eclipse.org/webtools/main.php"><img border="0" |
david_williams | 87c8654 | 2008-01-14 05:59:55 +0000 | [diff] [blame] | 9 | src="../commonPages/wtplogonarrow.jpg" height="95" width="207" /></a></td> |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 10 | </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_williams | cabcbbf | 2008-07-08 00:40:30 +0000 | [diff] [blame] | 24 | |
| 25 | if (!isset($dlconfigfilename)) { |
| 26 | $dlconfigfilename='dlconfig.txt'; |
| 27 | } |
david_williams | c8d90d8 | 2008-07-08 03:03:51 +0000 | [diff] [blame] | 28 | |
david_williams | cabcbbf | 2008-07-08 00:40:30 +0000 | [diff] [blame] | 29 | $contents = substr(file_get_contents($dlconfigfilename),0,-1); |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 30 | $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; |
| 36 | for ($c = 0; $c < count($elements); $c++) { |
david_williams | 29d1219 | 2008-01-07 19:11:40 +0000 | [diff] [blame] | 37 | $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_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | // debug |
| 52 | // echo "Debug: droptype count: ", count($dropType), "<br />"; |
| 53 | |
| 54 | for ($i = 0; $i < count($dropType); $i++) { |
david_williams | 29d1219 | 2008-01-07 19:11:40 +0000 | [diff] [blame] | 55 | $dt = $dropType[$i]; |
| 56 | $dt = trim($dt); |
| 57 | $typeToPrefix[$dt] = $dropPrefix[$i]; |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 58 | |
david_williams | 29d1219 | 2008-01-07 19:11:40 +0000 | [diff] [blame] | 59 | // echo "Debug prefix: ", $dropPrefix[$i], "<br />"; |
| 60 | // echo "Debug dropType: ", $dropType[$i], "<br />"; |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 61 | |
| 62 | } |
| 63 | |
david_williams | 38cdb42 | 2007-09-23 06:24:37 +0000 | [diff] [blame] | 64 | |
david_williams | fd220c8 | 2008-01-07 07:59:37 +0000 | [diff] [blame] | 65 | include 'report.php'; |
| 66 | include 'report2.php'; |
| 67 | $latestTimeStamp=array(); |
| 68 | $latestFile = array(); |
| 69 | $buckets = array(); |
| 70 | $timeStamps = array(); |
| 71 | |
david_williams | 29d1219 | 2008-01-07 19:11:40 +0000 | [diff] [blame] | 72 | function 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_williams | b800399 | 2008-01-07 20:02:41 +0000 | [diff] [blame] | 83 | function 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_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 98 | ?> |