From 07916dec2e5df8e8d4cd2d6073a6750de294b06a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 14 Oct 2022 10:30:52 -0600 Subject: [PATCH] Add server variables and project path --- core/install/install.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/install/install.php b/core/install/install.php index 439cb39bf0..f1d40ffec0 100644 --- a/core/install/install.php +++ b/core/install/install.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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. Contributor(s): @@ -25,8 +25,11 @@ */ //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 require_once "resources/functions.php";