3 function config_get($section, $key) {
6 if (!isset($AUR_CONFIG)) {
7 $AUR_CONFIG = parse_ini_file("../../conf/config", true, INI_SCANNER_RAW
);
10 return $AUR_CONFIG[$section][$key];
13 function config_get_int($section, $key) {
14 return intval(config_get($section, $key));
17 function config_get_bool($section, $key) {
18 $val = strtolower(config_get($section, $key));
19 return ($val == 'yes' ||
$val == 'true' ||
$val == '1');