Browse Source

Update login.php

FusionPBX 2 years ago
parent
commit
672961f6b9
1 changed files with 7 additions and 0 deletions
  1. 7 0
      resources/login.php

+ 7 - 0
resources/login.php

@@ -24,6 +24,13 @@
 	Mark J Crane <[email protected]>
 	Mark J Crane <[email protected]>
 */
 */
 
 
+//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";
+
 //add multi-lingual support
 //add multi-lingual support
 	$language = new text;
 	$language = new text;
 	$text = $language->get(null,'core/user_settings');
 	$text = $language->get(null,'core/user_settings');