HOR-2956
This commit is contained in:
@@ -5,6 +5,15 @@ if (PMLicensedFeatures
|
|||||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
try {
|
try {
|
||||||
|
//$backupSession = serialize($_SESSION);
|
||||||
|
//This script runs with $ _SESSION ['USER_LOGGED'] = '00000000000000000000000000000001',
|
||||||
|
//this action enables login as admin if you enter the url 'http://myserver.net/sysworkflow/en/neoclassic/processes/main',
|
||||||
|
//in the Browser that invoked this script.
|
||||||
|
//This action ensures that any changes to the session variables required by
|
||||||
|
//this script do not affect the main session if it exists, for example
|
||||||
|
//when multiple tabs are open.
|
||||||
|
$backupSession = serialize($_SESSION);
|
||||||
|
|
||||||
if ($_REQUEST['APP_UID'] == '') {
|
if ($_REQUEST['APP_UID'] == '') {
|
||||||
if($_GET['APP_UID'] == ''){
|
if($_GET['APP_UID'] == ''){
|
||||||
throw new Exception('The parameter APP_UID is empty.');
|
throw new Exception('The parameter APP_UID is empty.');
|
||||||
@@ -146,11 +155,12 @@ if (PMLicensedFeatures
|
|||||||
throw $error;
|
throw $error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_SESSION = unserialize($backupSession);
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showInfo', '', $aMessage);
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showInfo', '', $aMessage);
|
||||||
} catch (Exception $error) {
|
} catch (Exception $error) {
|
||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', array('MESSAGE' => $error->getMessage().' Please contact to your system administrator.'));
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', array('MESSAGE' => $error->getMessage().' Please contact to your system administrator.'));
|
||||||
}
|
}
|
||||||
|
$_SESSION = unserialize($backupSession);
|
||||||
G::RenderPage('publish', 'blank');
|
G::RenderPage('publish', 'blank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user