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

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

@@ -14,7 +14,6 @@ if (isset($_SERVER['PWD'])) {
} }
array_pop($docuroot); array_pop($docuroot);
$pathhome = implode(PATH_SEP, $docuroot); $pathhome = implode(PATH_SEP, $docuroot);
//try to find automatically the trunk directory where are placed the RBAC and Gulliver directories //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. //in a normal installation you don't need to change it.
array_pop($docuroot); array_pop($docuroot);
@@ -28,6 +27,9 @@ define('PATH_TRUNK', $pathTrunk . PATH_SEP);
define('PATH_OUTTRUNK', $pathOutTrunk . PATH_SEP); define('PATH_OUTTRUNK', $pathOutTrunk . PATH_SEP);
//***************** include the main config file ****************************** //***************** 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'; $gulliverInstalled = PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php';
if (file_exists($gulliverInstalled)) { if (file_exists($gulliverInstalled)) {
require_once ( $gulliverInstalled ); require_once ( $gulliverInstalled );