-Allow etc and stor directories to be configurable
This commit is contained in:
parent
ac50c279f7
commit
a55b47efff
4 changed files with 20 additions and 7 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue