use /var/www/conf

This commit is contained in:
Michael Erdely 2024-10-09 15:32:13 -04:00
parent 93680320c7
commit 4a84c81ca6

View file

@ -18,8 +18,8 @@ function getGlobalOptions() {
$mysql_conn_string = "mysql:host=localhost;dbname=giftreg";
$mysql_username = "giftreg";
$mysql_password = "cn3Malk";
if (file_exists('/conf/phpgiftreg.conf')) {
$ini_file = parse_ini_file('/conf/phpgiftreg.conf');
if (file_exists('/var/www/conf/phpgiftreg.conf')) {
$ini_file = parse_ini_file('/var/www/conf/phpgiftreg.conf');
if (isset($ini_file['mysql_conn_string'])) {
$mysql_conn_string = $ini_file['mysql_conn_string'];
}