blob: 08a251ffd2f411b5619b451329784d6e1bf0ff31 [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"
9 src="../wtplogonarrow.jpg" height="95" width="207" /></a></td>
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
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++) {
32 $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 }
44}
45
46// debug
47// echo "Debug: droptype count: ", count($dropType), "<br />";
48
49for ($i = 0; $i < count($dropType); $i++) {
50 $dt = $dropType[$i];
51 $dt = trim($dt);
52 $typeToPrefix[$dt] = $dropPrefix[$i];
53
54 // echo "Debug prefix: ", $dropPrefix[$i], "<br />";
55 // echo "Debug dropType: ", $dropType[$i], "<br />";
56
57}
58
david_williams38cdb422007-09-23 06:24:37 +000059
david_williams1a993892007-07-29 19:19:05 +000060
61?>