PMCORE-2602
This commit is contained in:
@@ -60463,7 +60463,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
|
|||||||
( 'LABEL','ID_PLEASE_SELECT_PLUGIN','en','Please select the plugin','2014-01-15') ,
|
( 'LABEL','ID_PLEASE_SELECT_PLUGIN','en','Please select the plugin','2014-01-15') ,
|
||||||
( 'LABEL','ID_PLEASE_SELECT_PO_FILE','en','Please select a .po file','2014-01-15') ,
|
( 'LABEL','ID_PLEASE_SELECT_PO_FILE','en','Please select a .po file','2014-01-15') ,
|
||||||
( 'LABEL','ID_PLEASE_SELECT_THE_STATUS_FOR_THE_SEARCH','en','Please select the status for the search:','2020-12-16') ,
|
( 'LABEL','ID_PLEASE_SELECT_THE_STATUS_FOR_THE_SEARCH','en','Please select the status for the search:','2020-12-16') ,
|
||||||
( 'LABEL','ID_PLEASE_SELECT_UPGRADE_FILE','en','Please select the upgrade file','2014-01-15') ,º
|
( 'LABEL','ID_PLEASE_SELECT_UPGRADE_FILE','en','Please select the upgrade file','2014-01-15') ,
|
||||||
( 'LABEL','ID_PLEASE_SET_A_RANGE_OF_CASES_START_DATE_TO_SEARCH','en','Please set a range of cases Start Date to search:','2020-12-16') ,
|
( 'LABEL','ID_PLEASE_SET_A_RANGE_OF_CASES_START_DATE_TO_SEARCH','en','Please set a range of cases Start Date to search:','2020-12-16') ,
|
||||||
( 'LABEL','ID_PLEASE_SET_A_RANGE_OF_CASES_FINISH_DATE_TO_SEARCH','en','Please set a range of cases Finish Date to search:','2020-12-16') ,
|
( 'LABEL','ID_PLEASE_SET_A_RANGE_OF_CASES_FINISH_DATE_TO_SEARCH','en','Please set a range of cases Finish Date to search:','2020-12-16') ,
|
||||||
( 'LABEL','ID_PLEASE_SET_A_RANGE_TO_CASES_TO_SEARCH','en','Please set a range of cases to search:','2020-12-16') ,
|
( 'LABEL','ID_PLEASE_SET_A_RANGE_TO_CASES_TO_SEARCH','en','Please set a range of cases to search:','2020-12-16') ,
|
||||||
|
|||||||
@@ -118,10 +118,6 @@ if ($oServerConf->isRtl(SYS_LANG)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$urlProxy = 'casesMenuLoader?action=getAllCounters&r=';
|
$urlProxy = 'casesMenuLoader?action=getAllCounters&r=';
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
$urlProxy = 'casesMenuLoader?action=getAllCountersEnterprise&r=';
|
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
|
|
||||||
$oHeadPublisher->assign('regionTreePanel', $regionTreePanel);
|
$oHeadPublisher->assign('regionTreePanel', $regionTreePanel);
|
||||||
$oHeadPublisher->assign('regionDebug', $regionDebug);
|
$oHeadPublisher->assign('regionDebug', $regionDebug);
|
||||||
$oHeadPublisher->assign('openCaseIE', $openCaseIE);
|
$oHeadPublisher->assign('openCaseIE', $openCaseIE);
|
||||||
@@ -130,14 +126,6 @@ $oHeadPublisher->assign('urlProxy', $urlProxy); //sending the urlProxy to make
|
|||||||
$oHeadPublisher->assign("_nodeId", isset($confDefaultOption) ? $confDefaultOption : "PM_USERS"); //User menu permissions
|
$oHeadPublisher->assign("_nodeId", isset($confDefaultOption) ? $confDefaultOption : "PM_USERS"); //User menu permissions
|
||||||
$oHeadPublisher->assign("FORMATS", $conf->getFormats());
|
$oHeadPublisher->assign("FORMATS", $conf->getFormats());
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
// If the feature for highlight the home folders is enabled, set some javascript variables
|
|
||||||
if (HIGHLIGHT_HOME_FOLDER_ENABLE) {
|
|
||||||
$oHeadPublisher->assign("highlightUrlProxy", "casesMenuHighlight?r=");
|
|
||||||
$oHeadPublisher->assign("highlightRefreshTime", HIGHLIGHT_HOME_FOLDER_REFRESH_TIME);
|
|
||||||
}
|
|
||||||
/*----------------------------------********- --------------------------------*/
|
|
||||||
|
|
||||||
|
|
||||||
$userCanAccess = 1;
|
$userCanAccess = 1;
|
||||||
global $translation;
|
global $translation;
|
||||||
@@ -151,41 +139,3 @@ ScriptVariables::add('SYS_LANG', SYS_LANG);
|
|||||||
ScriptVariables::add('TRANSLATIONS', $translation);
|
ScriptVariables::add('TRANSLATIONS', $translation);
|
||||||
ScriptVariables::add('FORMATS', $conf->getFormats());
|
ScriptVariables::add('FORMATS', $conf->getFormats());
|
||||||
echo View::make('Views::home.home', compact("userCanAccess"))->render();
|
echo View::make('Views::home.home', compact("userCanAccess"))->render();
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
function getClientCredentials($clientId)
|
|
||||||
{
|
|
||||||
$oauthQuery = new ProcessMaker\Services\OAuth2\PmPdo(getDsn());
|
|
||||||
return $oauthQuery->getClientDetails($clientId);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getDsn()
|
|
||||||
{
|
|
||||||
list($host, $port) = strpos(DB_HOST, ':') !== false ? explode(':', DB_HOST) : array(DB_HOST, '');
|
|
||||||
$port = empty($port) ? '' : ";port=$port";
|
|
||||||
$dsn = DB_ADAPTER . ':host=' . $host . ';dbname=' . DB_NAME . $port;
|
|
||||||
|
|
||||||
return array('dsn' => $dsn, 'username' => DB_USER, 'password' => DB_PASS);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function getAuthorizationCode($client)
|
|
||||||
{
|
|
||||||
\ProcessMaker\Services\OAuth2\Server::setDatabaseSource(getDsn());
|
|
||||||
\ProcessMaker\Services\OAuth2\Server::setPmClientId($client['CLIENT_ID']);
|
|
||||||
|
|
||||||
$oauthServer = new \ProcessMaker\Services\OAuth2\Server();
|
|
||||||
$userId = $_SESSION['USER_LOGGED'];
|
|
||||||
$authorize = true;
|
|
||||||
$_GET = array_merge($_GET, array(
|
|
||||||
'response_type' => 'code',
|
|
||||||
'client_id' => $client['CLIENT_ID'],
|
|
||||||
'scope' => implode(' ', $oauthServer->getScope())
|
|
||||||
));
|
|
||||||
|
|
||||||
$response = $oauthServer->postAuthorize($authorize, $userId, true);
|
|
||||||
$code = substr($response->getHttpHeader('Location'), strpos($response->getHttpHeader('Location'), 'code=') + 5, 40);
|
|
||||||
|
|
||||||
return $code;
|
|
||||||
}
|
|
||||||
/*----------------------------------********---------------------------------*/
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
<?php
|
|
||||||
$cd = (isset($_SESSION['__CD__']))? $_SESSION['__CD__'] : '';
|
|
||||||
unset($_SESSION['__CD__']);
|
|
||||||
|
|
||||||
$filter = new InputFilter();
|
|
||||||
?>
|
|
||||||
<html>
|
|
||||||
<style type="text/css">
|
|
||||||
.Footer .content {
|
|
||||||
padding :0px !important;
|
|
||||||
}
|
|
||||||
*html body {
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<body onresize="autoResizeScreen()" onload="autoResizeScreen()">
|
|
||||||
<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>
|
|
||||||
</iframe>
|
|
||||||
</body>
|
|
||||||
<script>
|
|
||||||
if ( document.getElementById('pm_submenu') )
|
|
||||||
document.getElementById('pm_submenu').style.display = 'none';
|
|
||||||
document.documentElement.style.overflowY = 'hidden';
|
|
||||||
|
|
||||||
var oClientWinSize = getClientWindowSize();
|
|
||||||
|
|
||||||
|
|
||||||
function autoResizeScreen() {
|
|
||||||
var containerList1, containerList2;
|
|
||||||
oCasesFrame = document.getElementById('casesFrame');
|
|
||||||
oClientWinSize = getClientWindowSize();
|
|
||||||
|
|
||||||
containerList1 = document.getElementById("pm_header");
|
|
||||||
if (document.getElementById("mainMenuBG") &&
|
|
||||||
document.getElementById("mainMenuBG").parentNode &&
|
|
||||||
document.getElementById("mainMenuBG").parentNode.parentNode &&
|
|
||||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
|
|
||||||
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
|
|
||||||
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
|
|
||||||
}
|
|
||||||
if (containerList1 === containerList2) {
|
|
||||||
height = oClientWinSize.height - containerList1.clientHeight;
|
|
||||||
oCasesFrame.style.height = height;
|
|
||||||
if (oCasesFrame.height ) {
|
|
||||||
oCasesFrame.height = height;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
height = getClientWindowSize().height-90;
|
|
||||||
oCasesFrame.style.height = height + 'px';
|
|
||||||
oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
|
|
||||||
if(oCasesSubFrame){
|
|
||||||
oCasesSubFrame.style.height = (height-5) + 'px';;
|
|
||||||
} else {
|
|
||||||
setTimeout('autoResizeScreen()', 2000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<SCRIPT src="/jscore/src/PM.js" type=text/javascript></SCRIPT>
|
|
||||||
<SCRIPT src="/jscore/src/Sessions.js" type=text/javascript></SCRIPT>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user