Пример #1
0
/**
* Load the location information
* 
*/
function LoadLocations()
{
    $locations = LoadLocationsIni();
    FilterLocations($locations);
    // strip out any sensitive information
    foreach ($locations as $index => &$loc) {
        // count the number of tests at each location
        if (isset($loc['localDir'])) {
            $loc['backlog'] = CountTests($loc['localDir']);
            unset($loc['localDir']);
        }
        if (isset($loc['key'])) {
            unset($loc['key']);
        }
        if (isset($loc['remoteDir'])) {
            unset($loc['remoteDir']);
        }
        if (isset($loc['notify'])) {
            unset($loc['notify']);
        }
    }
    return $locations;
}
Пример #2
0
/**
* Load the location information
* 
*/
function LoadLocations()
{
    $locations = parse_ini_file('./settings/locations.ini', true);
    // strip out any sensitive information
    foreach ($locations as $index => &$loc) {
        // count the number of tests at each location
        if (isset($loc['localDir'])) {
            $loc['backlog'] = CountTests($loc['localDir']);
            unset($loc['localDir']);
        }
        if (isset($loc['key'])) {
            unset($loc['key']);
        }
        if (isset($loc['remoteDir'])) {
            unset($loc['remoteDir']);
        }
    }
    return $locations;
}