<!-- Loads all build types based on buildTypes.file file --> | |
<!-- The result is 3 globals: | |
- buildTypes[] | |
- buildLabels[] | |
- typeToLabels[] | |
--> | |
<?php | |
global $buildTypes, $buildLabels, $typeTolabels; | |
$fileHandle = fopen("buildTypes.file", "r"); | |
while (!feof($fileHandle)) { | |
$aLine = fgets($fileHandle, 4096); | |
parse_str($aLine); | |
} | |
fclose($fileHandle); | |
for ($i = 0; $i < count($buildTypes); $i++) { | |
$typeToLabels[$buildTypes[$i]] = $buildLabels[$i]; | |
} | |
?> |