From 8e73898f137b770dc6cb8e8055524efe74871e7d Mon Sep 17 00:00:00 2001 From: Fernando Ontiveros Date: Sun, 27 Apr 2025 04:46:53 +0000 Subject: [PATCH] fixing gulliver script. Issue with path_installed --- gulliver/bin/gulliver | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 gulliver/bin/gulliver diff --git a/gulliver/bin/gulliver b/gulliver/bin/gulliver old mode 100644 new mode 100755 index d4ed1b3e1..0bed21bda --- a/gulliver/bin/gulliver +++ b/gulliver/bin/gulliver @@ -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 );