mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Added for better backwards compatibility
This commit is contained in:
@@ -125,6 +125,14 @@
|
||||
$autoload = new auto_loader();
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
global $database;
|
||||
$database = database::new(['config' => $config]);
|
||||
|
||||
//load settings
|
||||
global $settings;
|
||||
$settings = new settings(['database' => $database, 'domain_uuid' => $_SESSION['domain_uuid'] ?? '', 'user_uuid' => $_SESSION['user_uuid'] ?? '']);
|
||||
|
||||
//additional includes
|
||||
if (!defined('STDIN')) {
|
||||
require_once "resources/php.php";
|
||||
|
||||
Reference in New Issue
Block a user