fixing gulliver script. Issue with path_installed

This commit is contained in:
Fernando Ontiveros
2025-04-27 04:46:53 +00:00
parent 802db09ff8
commit 8e73898f13

6
gulliver/bin/gulliver Normal file → Executable file
View File

@@ -14,20 +14,22 @@ if (isset($_SERVER['PWD'])) {
}
array_pop($docuroot);
$pathhome = implode(PATH_SEP, $docuroot);
//try to find automatically the trunk directory where are placed the RBAC and Gulliver directories
//in a normal installation you don't need to change it.
array_pop($docuroot);
$pathTrunk = implode(PATH_SEP, $docuroot);
array_pop($docuroot);
$pathOutTrunk = implode(PATH_SEP, $docuroot);
// to do: check previous algorith for Windows $pathTrunk = "c:/home/";
// to do: check previous algorith for Windows $pathTrunk = "c:/home/";
define('PATH_HOME', $pathhome . PATH_SEP);
define('PATH_TRUNK', $pathTrunk . PATH_SEP);
define('PATH_OUTTRUNK', $pathOutTrunk . PATH_SEP);
//***************** include the main config file ******************************
define('PATH_DATA', isset($_SERVER['PATH_DATA']) ? $_SERVER['PATH_DATA'] : PATH_TRUNK . 'shared' . PATH_SEP );
define("FILE_PATHS_INSTALLED", PATH_DATA . "config" . PATH_SEP . "paths_installed.php");
$gulliverInstalled = PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php';
if (file_exists($gulliverInstalled)) {
require_once ( $gulliverInstalled );