Replace root.php
This commit is contained in:
@@ -29,7 +29,11 @@ class events {
|
||||
*/
|
||||
public function __construct() {
|
||||
//create the database connection
|
||||
include "root.php";
|
||||
//set the include path
|
||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||
|
||||
//includes files
|
||||
require_once "resources/classes/database.php";
|
||||
$database = new database;
|
||||
$database->connect();
|
||||
|
||||
Reference in New Issue
Block a user