HOR-2956
This commit is contained in:
@@ -5,13 +5,28 @@ 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',
|
* $backupSession = serialize($_SESSION);
|
||||||
//this action enables login as admin if you enter the url 'http://myserver.net/sysworkflow/en/neoclassic/processes/main',
|
* This script runs with $ _SESSION ['USER_LOGGED'] = '00000000000000000000000000000001',
|
||||||
//in the Browser that invoked this script.
|
* this action enables login as admin if you enter the url 'http://myserver.net/sysworkflow/en/neoclassic/processes/main',
|
||||||
//This action ensures that any changes to the session variables required by
|
* in the Browser that invoked this script.
|
||||||
//this script do not affect the main session if it exists, for example
|
* This action ensures that any changes to the session variables required by
|
||||||
//when multiple tabs are open.
|
* this script do not affect the main session if it exists, for example
|
||||||
|
* when multiple tabs are open.
|
||||||
|
* Serialization is used because for object types the simple assignment:
|
||||||
|
* $backupSession = $ _SESSION will not work because the assignment is by
|
||||||
|
* reference, eg:
|
||||||
|
* <?php
|
||||||
|
* $obj = new stdClass();
|
||||||
|
* $obj->valor1 = "value";
|
||||||
|
*
|
||||||
|
* $a = ["uno" => 1, "dos" => $obj, "tres" => 3];
|
||||||
|
* $b = $a;
|
||||||
|
|
||||||
|
* $a["dos"]->valor1 = "modify";
|
||||||
|
*
|
||||||
|
* In 'b' is reflected the output of 'a'.
|
||||||
|
*/
|
||||||
$backupSession = serialize($_SESSION);
|
$backupSession = serialize($_SESSION);
|
||||||
|
|
||||||
if ($_REQUEST['APP_UID'] == '') {
|
if ($_REQUEST['APP_UID'] == '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user