change to luos in docker
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,6 +11,7 @@ update.sh
|
|||||||
# Ignore build artifacts and logs
|
# Ignore build artifacts and logs
|
||||||
workflow/public_html/build-log.html
|
workflow/public_html/build-log.html
|
||||||
workflow/public_html/mix-manifest.json
|
workflow/public_html/mix-manifest.json
|
||||||
|
workflow/public_html/index.html
|
||||||
workflow/public_html/webapp/
|
workflow/public_html/webapp/
|
||||||
workflow/public_html/translations/
|
workflow/public_html/translations/
|
||||||
workflow/public_html/files/
|
workflow/public_html/files/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
README
|
README
|
||||||
======
|
======
|
||||||
|
|
||||||
Lurana v3.8
|
Lurana v1.0
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ composer update
|
|||||||
composer install
|
composer install
|
||||||
|
|
||||||
# Construct the Docker image tag name
|
# Construct the Docker image tag name
|
||||||
tagname="gitlab.luranasoft.com:5050/pm/processmaker:$1"
|
tagname="gitlab.luranasoft.com:5050/luos/core/luos:$1"
|
||||||
echo "Docker tag name: $tagname"
|
echo "Docker tag name: $tagname"
|
||||||
|
|
||||||
# Build the Docker image using the new tag name
|
# Build the Docker image using the new tag name
|
||||||
|
|||||||
@@ -605,11 +605,7 @@ class TemplatePower extends TemplatePowerParser
|
|||||||
public function newBlock($blockname)
|
public function newBlock($blockname)
|
||||||
{
|
{
|
||||||
$parent = &$this->content[$this->parent[$blockname] . '_' . $this->index[$this->parent[$blockname]]];
|
$parent = &$this->content[$this->parent[$blockname] . '_' . $this->index[$this->parent[$blockname]]];
|
||||||
if (is_array($parent) || $parent instanceof Countable) {
|
|
||||||
$lastitem = sizeof($parent);
|
$lastitem = sizeof($parent);
|
||||||
} else {
|
|
||||||
$lastitem = 0; // or handle it in another way as needed
|
|
||||||
}
|
|
||||||
$lastitem > 1 ? $lastitem-- : $lastitem = 0;
|
$lastitem > 1 ? $lastitem-- : $lastitem = 0;
|
||||||
$ind_blockname = $blockname . '_' . $this->index[$blockname];
|
$ind_blockname = $blockname . '_' . $this->index[$blockname];
|
||||||
if (!isset($parent[$lastitem]["_B:$blockname"])) {
|
if (!isset($parent[$lastitem]["_B:$blockname"])) {
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ class PMPlugin extends PmPluginCompatibility
|
|||||||
public $sPluginFolder = '';
|
public $sPluginFolder = '';
|
||||||
public $aWorkspaces = null;
|
public $aWorkspaces = null;
|
||||||
public $bPrivate = false;
|
public $bPrivate = false;
|
||||||
public $sDescription;
|
|
||||||
public $sSetupPage;
|
|
||||||
/**
|
/**
|
||||||
* This function sets values to the plugin
|
* This function sets values to the plugin
|
||||||
* @param string $sNamespace
|
* @param string $sNamespace
|
||||||
@@ -29,8 +28,6 @@ class PMPlugin extends PmPluginCompatibility
|
|||||||
$this->sClassName = $sNamespace . 'Plugin';
|
$this->sClassName = $sNamespace . 'Plugin';
|
||||||
$this->sPluginFolder = $sNamespace;
|
$this->sPluginFolder = $sNamespace;
|
||||||
$this->sFilename = $sFilename;
|
$this->sFilename = $sFilename;
|
||||||
$this->sDescription = null;
|
|
||||||
$this->sSetupPage = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ if (isset($_GET['ux'])) {
|
|||||||
window.parent.location.href = \'casesListExtJs\';
|
window.parent.location.href = \'casesListExtJs\';
|
||||||
}
|
}
|
||||||
}';
|
}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
echo "try {parent.parent.updateCasesTree();parent.parent.highlightCasesTree();} catch(e) {}";
|
echo "try {parent.parent.updateCasesTree();parent.parent.highlightCasesTree();} catch(e) {}";
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -242,9 +242,8 @@ try {
|
|||||||
$timeZoneOffset = $dateTime->getTimeZoneOffsetByTimeZoneId($_SESSION['USR_TIME_ZONE']);
|
$timeZoneOffset = $dateTime->getTimeZoneOffsetByTimeZoneId($_SESSION['USR_TIME_ZONE']);
|
||||||
|
|
||||||
if ($timeZoneOffset === false || $timeZoneOffset != (int)($_POST['form']['BROWSER_TIME_ZONE_OFFSET'])) {
|
if ($timeZoneOffset === false || $timeZoneOffset != (int)($_POST['form']['BROWSER_TIME_ZONE_OFFSET'])) {
|
||||||
// disable the validation, because plugin enhanced inbox was not working...
|
$_SESSION['__TIME_ZONE_FAILED__'] = true;
|
||||||
//$_SESSION['__TIME_ZONE_FAILED__'] = true;
|
$_SESSION['BROWSER_TIME_ZONE'] = $dateTime->getTimeZoneIdByTimeZoneOffset((int)$_POST['form']['BROWSER_TIME_ZONE_OFFSET'], false);
|
||||||
//$_SESSION['BROWSER_TIME_ZONE'] = $dateTime->getTimeZoneIdByTimeZoneOffset((int)$_POST['form']['BROWSER_TIME_ZONE_OFFSET'], false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,14 +133,6 @@ $version = explode('.', trim(file_get_contents(PATH_GULLIVER . 'VERSION')));
|
|||||||
$version = isset($version[0]) ? intval($version[0]) : 0;
|
$version = isset($version[0]) ? intval($version[0]) : 0;
|
||||||
switch (WS_IN_LOGIN) {
|
switch (WS_IN_LOGIN) {
|
||||||
case 'serverconf':
|
case 'serverconf':
|
||||||
//Get Server Configuration
|
|
||||||
$oServerConf = ServerConf::getSingleton();
|
|
||||||
if ($oServerConf->getProperty('LOGIN_NO_WS')) {
|
|
||||||
$fileLogin = $version >= 3 ? 'login/sysLoginNoWSpm3' : 'login/sysLoginNoWS';
|
|
||||||
} else {
|
|
||||||
$fileLogin = 'login/sysLogin';
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'no':
|
case 'no':
|
||||||
$fileLogin = $version >= 3 ? 'login/sysLoginNoWSpm3' : 'login/sysLoginNoWS';
|
$fileLogin = $version >= 3 ? 'login/sysLoginNoWSpm3' : 'login/sysLoginNoWS';
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -814,6 +814,7 @@ class SkinEngine
|
|||||||
define('NO_DISPLAY_USERNAME', 0);
|
define('NO_DISPLAY_USERNAME', 0);
|
||||||
}
|
}
|
||||||
if (NO_DISPLAY_USERNAME == 0) {
|
if (NO_DISPLAY_USERNAME == 0) {
|
||||||
|
if (!defined('SYS_COLLECTION')) define('SYS_COLLECTION', '');
|
||||||
$switch_interface = isset($_SESSION['user_experience']) && $_SESSION['user_experience'] == 'SWITCHABLE';
|
$switch_interface = isset($_SESSION['user_experience']) && $_SESSION['user_experience'] == 'SWITCHABLE';
|
||||||
|
|
||||||
$smarty->assign('user_logged', (isset($_SESSION['USER_LOGGED']) ? $_SESSION['USER_LOGGED'] : ''));
|
$smarty->assign('user_logged', (isset($_SESSION['USER_LOGGED']) ? $_SESSION['USER_LOGGED'] : ''));
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ class PluginRegistry
|
|||||||
$this->_aPluginDetails[$Namespace]->setVersion($plugin->iVersion);
|
$this->_aPluginDetails[$Namespace]->setVersion($plugin->iVersion);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$detail = new PluginDetail(
|
$detail = new PluginDetail(
|
||||||
$Namespace,
|
$Namespace,
|
||||||
$ClassName,
|
$ClassName,
|
||||||
|
|||||||
@@ -793,7 +793,7 @@ class BpmnWorkflow extends Project\Bpmn
|
|||||||
private function createTaskByElement($elementUid, $elementType, $key, $eventName = '')
|
private function createTaskByElement($elementUid, $elementType, $key, $eventName = '')
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$taskTitle = empty($eventName) ? $taskType : $eventName;
|
$taskTitle = empty($eventName) ? $elementType : $eventName;
|
||||||
|
|
||||||
if (isset($this->arrayElementTaskRelation[$elementUid])) {
|
if (isset($this->arrayElementTaskRelation[$elementUid])) {
|
||||||
$taskUid = $this->arrayElementTaskRelation[$elementUid];
|
$taskUid = $this->arrayElementTaskRelation[$elementUid];
|
||||||
@@ -831,7 +831,7 @@ class BpmnWorkflow extends Project\Bpmn
|
|||||||
$prefix = $this->arrayTaskAttribute[$key]["prefix"];
|
$prefix = $this->arrayTaskAttribute[$key]["prefix"];
|
||||||
$taskUid = $this->wp->addTask([
|
$taskUid = $this->wp->addTask([
|
||||||
"TAS_UID" => $prefix . substr(Common::generateUID(), (32 - strlen($prefix)) * -1),
|
"TAS_UID" => $prefix . substr(Common::generateUID(), (32 - strlen($prefix)) * -1),
|
||||||
"TAS_TYPE" => $taskType,
|
"TAS_TYPE" => 'NORMAL',
|
||||||
"TAS_TITLE" => $taskTitle,
|
"TAS_TITLE" => $taskTitle,
|
||||||
"TAS_POSX" => $taskPosX,
|
"TAS_POSX" => $taskPosX,
|
||||||
"TAS_POSY" => $taskPosY
|
"TAS_POSY" => $taskPosY
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ $filter = new InputFilter();
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<body onresize="autoResizeScreen()" onload="autoResizeScreen()">
|
<body onresize="autoResizeScreen()" onload="autoResizeScreen()">
|
||||||
<iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/main_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0">
|
<iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/viena_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0">
|
||||||
<p>Your browser does not support iframes.</p>
|
<p>Your browser does not support iframes.</p>
|
||||||
</iframe>
|
</iframe>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -12,10 +12,8 @@ require_once __DIR__ . '/../../gulliver/system/class.g.php';
|
|||||||
require_once __DIR__ . '/../../bootstrap/autoload.php';
|
require_once __DIR__ . '/../../bootstrap/autoload.php';
|
||||||
require_once __DIR__ . '/../../bootstrap/app.php';
|
require_once __DIR__ . '/../../bootstrap/app.php';
|
||||||
|
|
||||||
//Initialize application event
|
|
||||||
AppEvent::getAppEvent();
|
AppEvent::getAppEvent();
|
||||||
|
|
||||||
// Register shutdown function to close Propel if it exists
|
|
||||||
register_shutdown_function(
|
register_shutdown_function(
|
||||||
function () {
|
function () {
|
||||||
if (class_exists('Propel')) {
|
if (class_exists('Propel')) {
|
||||||
@@ -24,21 +22,19 @@ register_shutdown_function(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// Set session cookie settings
|
|
||||||
ini_set("session.cookie_httponly", 1);
|
ini_set("session.cookie_httponly", 1);
|
||||||
|
|
||||||
// Handle unencoded URL
|
|
||||||
if (isset($_SERVER['UNENCODED_URL'])) {
|
if (isset($_SERVER['UNENCODED_URL'])) {
|
||||||
$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];
|
$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$rootDir = realpath(__DIR__ . "/../../") . DIRECTORY_SEPARATOR;
|
$rootDir = realpath(__DIR__ . "/../../") . DIRECTORY_SEPARATOR;
|
||||||
|
|
||||||
$app = new WebApplication();
|
$app = new WebApplication();
|
||||||
|
|
||||||
$app->setRootDir($rootDir);
|
$app->setRootDir($rootDir);
|
||||||
$app->setRequestUri($_SERVER['REQUEST_URI']);
|
$app->setRequestUri($_SERVER['REQUEST_URI']);
|
||||||
|
|
||||||
// Route the application
|
|
||||||
$stat = $app->route();
|
$stat = $app->route();
|
||||||
|
|
||||||
switch ($stat) {
|
switch ($stat) {
|
||||||
@@ -67,43 +63,8 @@ try {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (RBACException $e) {
|
} catch (RBACException $e) {
|
||||||
handleRBACException($e);
|
|
||||||
} catch (Exception $e) {
|
|
||||||
//handleGeneralException($e, $rootDir);
|
|
||||||
$view = new PhtmlView($rootDir . "framework/src/templates/Exception.phtml");
|
|
||||||
$view->set("message", $e->getMessage());
|
|
||||||
$view->set("exception", $e);
|
|
||||||
|
|
||||||
$response = new Response($view->getOutput(), 503);
|
|
||||||
$response->send();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle the application state based on routing status.
|
|
||||||
*
|
|
||||||
* @param int $stat
|
|
||||||
* @param WebApplication $app
|
|
||||||
*/
|
|
||||||
function handleApplicationState(int $stat, WebApplication $app): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle RBAC exceptions by redirecting to the specified path.
|
|
||||||
*
|
|
||||||
* @param RBACException $e
|
|
||||||
*/
|
|
||||||
function handleRBACException(RBACException $e): void {
|
|
||||||
G::header('location: ' . $e->getPath());
|
G::header('location: ' . $e->getPath());
|
||||||
}
|
} catch (Exception $e) {
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle general exceptions by rendering an error view.
|
|
||||||
*
|
|
||||||
* @param Exception $e
|
|
||||||
* @param string $rootDir
|
|
||||||
*/
|
|
||||||
function handleGeneralException(Exception $e, string $rootDir): void {
|
|
||||||
$view = new PhtmlView($rootDir . "framework/src/templates/Exception.phtml");
|
$view = new PhtmlView($rootDir . "framework/src/templates/Exception.phtml");
|
||||||
$view->set("message", $e->getMessage());
|
$view->set("message", $e->getMessage());
|
||||||
$view->set("exception", $e);
|
$view->set("exception", $e);
|
||||||
@@ -111,3 +72,4 @@ function handleGeneralException(Exception $e, string $rootDir): void {
|
|||||||
$response = new Response($view->getOutput(), 503);
|
$response = new Response($view->getOutput(), 503);
|
||||||
$response->send();
|
$response->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user