@@ -28,8 +28,11 @@
//disable this feature
exit;
-//includes
- 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 fileshp";
require_once "resources/require.php";
require_once "resources/check_auth.php";