test_user(); $core_tools->load_lang(); $core_tools->load_js(); $function = new functions(); $sec = new security(); $cM = new content_management_tools(); $cMFeatures = array(); $cMFeatures = $cM->getCmParameters(); /* Values for objectType : * - resource * - attachment * - attachmentFromTemplate * - template * - templateStyle */ if (isset($_REQUEST['objectType'])) { $objectType = $_REQUEST['objectType']; } else { $objectType = ''; } if (isset($_REQUEST['objectTable'])) { $objectTable = $_REQUEST['objectTable']; } else { $objectTable = ''; } if (isset($_REQUEST['objectId'])) { $objectId = $_REQUEST['objectId']; } else { $objectId = ''; } $modeSign = $_REQUEST['modeSign']; if ($objectType == '' || $objectTable == '' || $objectId == '' || $modeSign == '') { $_SESSION['error'] = _PARAM_MISSING_FOR_MAARCHCM_APPLET . ' ' . $objectType . ' ' . $objectTable . ' ' . $objectId; //echo $_SESSION['error'];exit; header('location: ' . $_SESSION['config']['businessappurl'] . 'index.php' ); exit(); } if (!isset($_SESSION['user']['pathToSignature']) ||$_SESSION['user']['pathToSignature'] == '') { $_SESSION['error'] = _IMG_SIGN_MISSING; echo $_SESSION['error'];exit; } if ($modeSign == '0' && (!isset($_SESSION['user']['thumbprint']) ||$_SESSION['user']['thumbprint'] == '')) { $_SESSION['error'] = _THUMBPRINT_MISSING; echo $_SESSION['error'];exit; } if (!isset($_SESSION['sign']['encodedPinCode'])){ $pinCode = '0000'; $index = '-1'; } else { $pinCode = $_SESSION['sign']['encodedPinCode']; $index = $_SESSION['sign']['indexKey']; } /* echo 'objectType : ' . $objectType . '
'; echo 'objectTable : ' . $objectTable . '
'; echo 'objectId : ' . $objectId . '
'; */ //init error session $_SESSION['error'] = ''; ?>