Use raw scanner mode in config_get()
[aur.git] / web / lib / confparser.inc.php
blob397791138cafbcaad7bc3c269a2ef29e1ff0b9be
1 <?php
3 function config_get($section, $key) {
4 global $AUR_CONFIG;
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');