mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use require.php
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
$conf = parse_ini_file($config_glob[0]);
|
||||
set_include_path($conf['document.root']);
|
||||
|
||||
//config file
|
||||
$config_file = $config_glob[0] ?? '';
|
||||
|
||||
//check if the config file exists
|
||||
$config_exists = file_exists($config_file) ? true : false;
|
||||
|
||||
//set the server variables and define project path constant
|
||||
$_SERVER["DOCUMENT_ROOT"] = $conf['document.root'];
|
||||
$_SERVER["PROJECT_ROOT"] = $conf['document.root'];
|
||||
|
||||
Reference in New Issue
Block a user