2023-12-26 11:16:24 +01:00
|
|
|
|
<?php
|
|
|
|
|
|
2023-12-31 20:35:15 +01:00
|
|
|
|
require __DIR__.'/ckkeys.php';
|
2023-12-26 11:16:24 +01:00
|
|
|
|
|
|
|
|
|
function getiniarr() {
|
|
|
|
|
$inifp='../../conf/mustard.ini';
|
|
|
|
|
$iniarr=parse_ini_file($inifp)
|
|
|
|
|
or muoribene('Couldn’t open configuration file «'.$inifp.'».',false);
|
2023-12-31 20:35:15 +01:00
|
|
|
|
$missing=ckkeys(['db_host','db_port','db_socket','db_name','db_admin_name','db_admin_password','ref_name','ref_email','site_domain','mail_test_to'],$iniarr);
|
2023-12-26 11:16:24 +01:00
|
|
|
|
if (count($missing)>0)
|
|
|
|
|
muoribene('Configuration file «'.$inifp.'» is missing some required fields: “'.implode('”, “',$missing).'”.',false);
|
|
|
|
|
return($iniarr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$iniarr=getiniarr();
|
|
|
|
|
|
|
|
|
|
?>
|