david_williams | 97651d1 | 2007-07-28 03:46:34 +0000 | [diff] [blame] | 1 | <? |
| 2 | function displayBuildMachine() |
| 3 | { |
| 4 | include 'parseProperties.php'; |
| 5 | $properties = parseProperties("buildmachineinfo.properties"); |
| 6 | $constString = "This build brought to you by "; |
| 7 | $varString = ""; |
| 8 | $buildComputerPropValue = $properties["buildComputer"]; |
| 9 | |
| 10 | if (strcmp($buildComputerPropValue, "build") == 0) { |
| 11 | $varString = "a server donated from lomboz.org"; |
| 12 | } |
| 13 | else { |
| 14 | if (strcmp($buildComputerPropValue, "utils") == 0) { |
| 15 | $varString = "a server donated from eclipse.org"; |
| 16 | } |
| 17 | else { |
| 18 | $varString = " a non-standard build server: ".$buildComputerPropValue; |
| 19 | } |
| 20 | } |
| 21 | $result = $constString.$varString; |
| 22 | return $result; |
| 23 | } |
| 24 | |
| 25 | ?> |