浏览代码

Add server variables and project path

FusionPBX 2 年之前
父节点
当前提交
e3f0508917
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      core/install/install.php

+ 6 - 3
core/install/install.php

@@ -17,7 +17,7 @@
 
 
 	The Initial Developer of the Original Code is
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2019
+	Portions created by the Initial Developer are Copyright (C) 2022
 	the Initial Developer. All Rights Reserved.
 	the Initial Developer. All Rights Reserved.
 
 
 	Contributor(s):
 	Contributor(s):
@@ -25,8 +25,11 @@
 */
 */
 
 
 //set the include path
 //set the include path
-	$document_root = substr(getcwd(), 0, strlen($document_root) - strlen('/core/install'));
-	set_include_path($document_root);
+        $document_root = substr(getcwd(), 0, strlen($document_root) - strlen('/core/install'));
+        set_include_path($document_root);
+        $_SERVER["DOCUMENT_ROOT"] = $document_root;
+        $_SERVER["PROJECT_ROOT"] = $document_root;
+        define("PROJECT_PATH", '');
 
 
 //includes files
 //includes files
 	require_once "resources/functions.php";
 	require_once "resources/functions.php";