getContext()->getRequest(); $APPLICATION->includeComponent( 'bitrix:documentgenerator.view', '', [ 'ID' => $request->get('id'), 'HASH' => $request->get('hash'), ] ); $hideSign = false; if(\Bitrix\Main\Loader::includeModule('documentgenerator')) { if(!\Bitrix\DocumentGenerator\Integration\Bitrix24Manager::isRestrictionsActive()) { $hideSign = (\Bitrix\Main\Config\Option::get('documentgenerator', 'document_enable_public_b24_sign', 'Y') != 'Y'); } } else { $hideSign = (\Bitrix\Main\Config\Option::get('documentgenerator', 'document_enable_public_b24_sign', 'Y') != 'Y'); } define('SKIP_TEMPLATE_B24_SIGN', $hideSign); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");