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> |
| 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; |
| 31 | for ($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 | |
| 49 | for ($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_williams | 38cdb42 | 2007-09-23 06:24:37 +0000 | [diff] [blame] | 59 | |
david_williams | 1a99389 | 2007-07-29 19:19:05 +0000 | [diff] [blame] | 60 | |
| 61 | ?> |