-Allow etc and stor directories to be configurable

This commit is contained in:
Martin Konecny 2011-12-22 17:21:18 -05:00
parent ac50c279f7
commit a55b47efff
4 changed files with 20 additions and 7 deletions

View file

@ -8,7 +8,9 @@
* that the user can customize these.
*/
$ini = parse_ini_file('/etc/airtime/airtime.conf', true);
$configFile = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
$ini = parse_ini_file($configFile, true);
$dbhost = $ini['database']['host'];
$dbname = $ini['database']['dbname'];