Jelajahi Sumber

Update file_read.php

FusionPBX 2 tahun lalu
induk
melakukan
65e36eec08
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      file_read.php

+ 5 - 2
file_read.php

@@ -24,8 +24,11 @@
 	Mark J Crane <[email protected]>
 */
 
-//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 files
 	require_once "resources/require.php";
 	require_once "resources/check_auth.php";