Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<? $GLOBALS['____1719969766'] = array( base64_decode('ZGVmaW5l'), base64_decode(..
Decoded Output download
<? $GLOBALS['____1719969766'] = array(
base64_decode('ZGVmaW5l'),
base64_decode('c3Ryc' . 'mV2'),
base64_decode('c3RydG9' . '1cH' . 'Blcg' . '=='),
base64_decode('' . 'ZGlyb' . 'm' . 'FtZQ=='),
base64_decode('c3R' . 'y' . 'cmV' . '2'),
base64_decode('a' . 'W1wbG9kZQ=='),
base64_decode('ZGF0' . 'ZQ=='),
base64_decode('bWt0aW' . '1' . 'l'),
base64_decode('Z' . 'GF0ZQ=='),
base64_decode('Z' . 'GF0ZQ' . '=='),
base64_decode('ZG' . 'F' . '0Z' . 'Q=='),
base64_decode('Z' . 'G' . 'F' . '0ZQ' . '=='),
base64_decode('bW' . 't0' . 'aW1l'),
base64_decode('ZGF0Z' . 'Q=='),
base64_decode('ZGF' . '0' . 'ZQ=='),
base64_decode('ZG' . 'F0Z' . 'Q=='),
base64_decode('ZGF0ZQ=='),
base64_decode('bWt0aW1l'),
base64_decode('' . 'ZGF' . '0' . 'ZQ=='),
base64_decode('ZGF0ZQ=' . '='),
base64_decode('Z' . 'G' . 'F0ZQ=' . '='),
base64_decode('c' . '3Vic3Ry'),
base64_decode('c3Vic' . '3' . 'R' . 'y'),
base64_decode('c' . '3V' . 'i' . 'c3Ry'),
base64_decode('c3Vi' . 'c3R' . 'y'),
base64_decode('c3Vic3R' . 'y'),
base64_decode('c3' . 'V' . 'i' . 'c3Ry'),
base64_decode('c3Vic3R' . 'y'),
base64_decode('c3V' . 'ic3R' . 'y'),
base64_decode('' . 'c3R' . 'ycmV2'),
base64_decode('c' . '3By' . 'aW50Zg' . '=' . '='),
base64_decode('c3RybGV' . 'u'),
base64_decode('c3' . 'RybGVu'),
base64_decode('Y2hy'),
base64_decode('b3Jk'),
base64_decode('' . 'b3Jk'),
base64_decode('Ym' . 'FzZT' . 'Y' . '0X2Vu' . 'Y29' . 'kZQ=='),
base64_decode('Zmls' . 'ZV9le' . 'GlzdHM='),
base64_decode('Z' . 'm9wZW4='),
base64_decode('Znd' . 'ya' . 'XRl'),
base64_decode('' . 'ZmNsb3Nl'),
base64_decode('c3Bya' . 'W5' . '0Z' . 'g=='),
base64_decode('c3Vic3Ry'),
base64_decode('c' . '3' . 'Rycm' . 'V2'),
base64_decode('ZGF0Z' . 'Q=='),
base64_decode('' . 'bWt0' . 'a' . 'W' . '1l'),
base64_decode('ZG' . 'F0' . 'ZQ=='),
base64_decode('Z' . 'GF0ZQ=='),
base64_decode('ZGF0ZQ' . '=='),
base64_decode('ZGF' . '0' . 'Z' . 'Q=='),
base64_decode('bW' . 't0aW1l'),
base64_decode('' . 'ZG' . 'F' . '0' . 'ZQ=='),
base64_decode('ZGF0ZQ' . '=='),
base64_decode('' . 'ZGF0' . 'ZQ' . '=='),
base64_decode('ZGF0ZQ=='),
base64_decode('bWt0aW1l'),
base64_decode('' . 'Z' . 'GF0ZQ=' . '='),
base64_decode('' . 'ZGF0ZQ' . '=='),
base64_decode('Z' . 'GF' . '0ZQ=='),
base64_decode('c3Vic3' . 'Ry'),
base64_decode('c3V' . 'ic3Ry'),
base64_decode('' . 'c' . '3' . 'Vic3' . 'Ry'),
base64_decode('c3Vic3Ry'),
base64_decode('c3V' . 'ic' . '3Ry'),
base64_decode('' . 'c' . '3Vic' . '3Ry'),
base64_decode('c' . '3V' . 'ic3Ry'),
base64_decode('c3Vic3Ry'),
base64_decode('' . 'c3Vi' . 'c3Ry'),
base64_decode('c3Ryb' . 'G' . 'V' . 'u'),
base64_decode('c' . '3Ry' . 'bGVu'),
base64_decode('Y' . '2hy'),
base64_decode('b3J' . 'k'),
base64_decode('b3Jk'),
base64_decode('' . 'c' . '3' . 'ByaW50Zg=='),
base64_decode('c3' . 'Vic3' . 'Ry'),
base64_decode('' . 'c' . '3Rycm' . 'V2'),
base64_decode('' . 'Y' . 'mFz' . 'ZTY0X2V' . 'uY' . '2' . '9kZ' . 'Q=='),
base64_decode('aX' . 'Nfb2JqZW' . 'N0'),
base64_decode('' . 'ZGlybm' . 'FtZQ' . '=='),
base64_decode('c' . '3' . 'Ry' . 'X3' . 'Jlc' . 'G' . 'xhY' . '2U='),
base64_decode('cHJlZ19y' . 'ZXBsY' . 'WNl')
);
if (!function_exists(__NAMESPACE__ . '\___124463306')) {
function ___124463306($_1037342513)
{
static $_279839269 = false;
if ($_279839269 == false) {
$_279839269 = array(
'YmVz' . 'dHJ' . 'hbmtfY3J' . 'tZG' . 'VwZW5kZW50' . 'ZmllbG' . 'Rz' . 'Xw==',
'' . 'b21lZA' . '==',
'WQ' . '==',
'L3Zlc' . 'nN' . 'pb24u' . 'cGhw',
'VkVSU' . '0lPTg==',
'VkVSU0lPTl9EQ' . 'VRF',
'QlJf' . 'Q0R' . 'GX' . '1R' . 'JV' . 'E' . 'xF',
'QlJf' . 'Q0RG' . 'X0RFU0M' . '=',
'QlJfUE' . 'FSV' . 'E5' . 'FU' . 'g==',
'QlJfUEFSV' . 'E5FUl9' . 'VUkw' . '=',
'Li' . '4=',
'Lg==',
'bWVud' . 'S5' . 'w' . 'aHA=',
'b' . 'WFpbg=' . '=',
'T25' . 'FcGlsb' . '2c=',
'XEJ' . 'lc3R' . 'y' . 'Y' . 'W5' . 'rXENybUR' . 'lcGVu' . 'ZGV' . 'udE' . 'Zp' . 'ZWxkc1xIYW5kbGV' . 'yc1' . 'xFcGl' . 'sb' . '2c=',
'aW5jb' . 'HVkZUpzTGlicmF' . 'yaWVz',
'bW' . 'F' . 'p' . 'b' . 'g' . '==',
'T' . '2' . '5Qc' . 'm9' . 'sb2' . 'c' . '=',
'XEJlc3R' . 'yYW5rXENybUR' . 'l' . 'cG' . 'VuZGVud' . 'EZpZW' . 'xkc1x' . 'IYW5kbG' . 'Vyc1' . 'xQcm9sb' . '2c=',
'b' . '2' . '5Q' . 'cm9sb2' . 'dIYW5kbGVy',
'Y3J' . 't',
'T25C' . 'Z' . 'WZvc' . 'mVDcm1MZWF' . 'kVXBkYXRl',
'b25CZWZ' . 'v' . 'c' . 'm' . 'VDcm1M' . 'ZWFk' . 'VXB' . 'k' . 'YX' . 'Rl',
'Y3Jt',
'' . 'T2' . '5CZWZvcmVDcm1' . 'E' . 'ZWFs' . 'V' . 'XBkYXRl',
'T25CZW' . 'ZvcmV' . 'D' . 'cm1EZW' . 'F' . 'sVX' . 'BkY' . 'XRl',
'bWFpbg==',
'T2' . '5Cd' . 'WlsZEd' . 'sb' . '2JhbE1l' . 'bnU' . '=',
'' . 'XEJ' . 'l' . 'c3' . 'RyY' . 'W5rXENy' . 'bURl' . 'cG' . 'VuZGV' . 'udEZ' . 'pZWxkc1xIYW' . '5' . 'kbG' . 'Vy' . 'c1xCd' . 'Wls' . 'ZEdsb2JhbE1lbnU=',
'YWR' . 'k' . 'TW' . 'Vud' . 'Ul' . '0ZW0=',
'Ql' . 'J' . 'f' . 'Q1' . 'J' . 'NX0RZT' . 'kFN' . 'SU' . 'Nf' . 'VVBEQVRFX0' . '9' . 'QR' . 'VJBVElP' . 'T' . 'g==',
'' . 'Ym' . 'Vm' . 'b' . '3' . 'JlU' . '2F2Z' . 'Q==',
'X' . 'EJ' . 'l' . 'c3RyYW5rXEN' . 'ybURl' . 'cGVuZGVudEZ' . 'p' . 'ZWxk' . 'c1' . 'xTZXJ' . '2aWN' . 'lXE9wZ' . 'XJhdGl' . 'v' . 'b' . 'lxBY3Rpb2' . '5c' . 'Q2hlY2t' . 'S' . 'ZXF1aXJl' . 'Z' . 'EZ' . 'pZWxkcw=' . '=',
'bWFpb' . 'g=' . '=',
'T25FcGlsb2c=',
'XEJl' . 'c' . '3R' . 'yYW' . '5rX' . 'ENy' . 'b' . 'UR' . 'lc' . 'GVuZGVudEZpZ' . 'W' . 'x' . 'k' . 'c1' . 'xIY' . 'W5kbGVyc1xFcGlsb2c=',
'aW5jbHVkZUpz' . 'TGlicmF' . 'y' . 'aW' . 'Vz',
'bWFp' . 'bg==',
'' . 'T25Qcm9sb2c=',
'XEJlc3' . 'RyYW' . '5rXENyb' . 'URlcG' . 'VuZ' . 'G' . 'VudEZ' . 'pZWxkc1' . 'xIY' . 'W' . '5' . 'kbGV' . 'yc1x' . 'Qcm9sb2c=',
'b' . '25Qcm9sb2d' . 'IYW5' . 'kbGVy',
'Y3Jt',
'T25C' . 'Z' . 'WZv' . 'c' . 'mV' . 'Dcm1MZ' . 'WFkV' . 'XBkY' . 'XRl',
'' . 'b25CZWZvcmV' . 'Dcm1' . 'M' . 'ZWF' . 'kVX' . 'B' . 'k' . 'YXRl',
'' . 'Y3Jt',
'T25CZWZvc' . 'mV' . 'Dcm' . '1EZW' . 'FsVX' . 'BkYXRl',
'T25CZW' . 'Z' . 'vcmVDcm1EZ' . 'WFsV' . 'XB' . 'kY' . 'XRl',
'bWFpbg==',
'T25C' . 'dW' . 'l' . 'sZEdsb2J' . 'hbE1lb' . 'nU=',
'XEJlc' . '3R' . 'y' . 'YW5r' . 'XENybURl' . 'cGV' . 'u' . 'Z' . 'GVudE' . 'ZpZWxkc1xI' . 'YW' . '5kbGVyc1' . 'xCdWlsZEdsb2Jh' . 'b' . 'E1' . 'lbn' . 'U=',
'YWRkTW' . 'Vud' . 'Ul0Z' . 'W0=',
'QlJfQ1JN' . 'X0' . 'RZT' . 'kFNSUNfVVBEQVRFX0' . '9QR' . 'VJBVE' . 'lPTg==',
'YmVmb3Jl' . 'U' . '2F2ZQ==',
'' . 'XEJ' . 'l' . 'c3' . 'R' . 'yYW5rXENybURlcGVuZ' . 'GVu' . 'd' . 'E' . 'Z' . 'pZWx' . 'kc1xTZ' . 'XJ2aWNlXE9wZXJhdGlvbl' . 'xB' . 'Y3Rpb' . '25cQ2h' . 'lY2tSZX' . 'F1' . 'a' . 'XJlZE' . 'ZpZWxkc' . 'w==',
'L2Fk' . 'bWlu',
'' . 'L2J' . 'pdHJpeC9hZG1' . 'pb' . 'i8=',
'L2pz',
'L2xvY' . '2F' . 's' . 'L2pzL2Jlc3RyYW5rLw==',
'' . 'L2Nzc' . 'y5nbG9iYWx' . 'tZ' . 'W5' . '1',
'L2Jp' . 'dHJpe' . 'C9' . 'jc3' . 'M' . 'v',
'L2' . 'l' . 'tYW' . 'dlcy5nbG9' . 'i' . 'YWxt' . 'ZW51',
'L' . '2Jp' . 'dHJpe' . 'C9' . 'pb' . 'WF' . 'nZXMv',
'L2FkbWluLw==',
'L2J' . 'pdH' . 'JpeC' . '9hZG1pbi8=',
'L2xvY2FsL2pz' . 'L2' . 'Jlc3RyYW5rL2Nyb' . 'WRlcGVuZGVud' . 'GZpZWx' . 'kcw==',
'Y' . 'ml0cm' . 'l' . '4',
'bW9kdWx' . 'l' . 'cw==',
'Ym' . 'Vzd' . 'HJhb' . 'msuY3JtZGVw' . 'ZW5kZ' . 'W50Zml' . 'l' . 'bGRz',
'' . 'YWRtaW4=',
'cGhwLm1' . 'z' . 'Yl9ldGFkX' . '3J' . 'lc3U=',
'' . 'R' . 'E9DV' . 'U' . '1' . 'FTlRf' . 'Uk9PVA==',
'Lw==',
'' . 'Lw=' . '=',
'N2Nj' . 'Yzl' . 'mZA' . '==',
'ZA==',
'bQ==',
'ZA==',
'' . 'WQ==',
'bQ==',
'bQ==',
'' . 'ZA==',
'W' . 'Q' . '==',
'WQ=' . '=',
'bQ==',
'' . 'ZA==',
'WQ==',
'',
'RVQ' . '=',
'' . 'SVM' . '=',
'WA==',
'SV' . 'I' . '=',
'' . 'VA==',
'SQ=' . '=',
'Qg==',
'' . 'NjIyYmY' . '=',
'JX' . 'Mlcw=' . '=',
'' . 'OGQ' . '4NDE' . '0ZmYxO' . 'Dg0' . 'OTE5Y' . 'jgz' . 'MT' . 'c=',
'PA' . '==',
'Pw==',
'ZGVmaW5' . 'lKCJiZ' . 'XN0cmFua19' . 'jcm1kZXBlbmRl' . 'bn' . 'RmaW' . 'VsZ' . 'HNfVE' . 'VNUE9SQVJZX' . '0N' . 'B' . 'Q0hFI' . 'iw' . 'gI' . 'g==',
'Iik7',
'P' . 'w' . '==',
'Pg=' . '=',
'dw==',
'ZH' . 'JtX' . '3N0ZXJn' . 'b2' . 'tj',
'' . 'REI=',
'U' . '0V' . 'M' . 'RUNUIFZB' . 'TFVF' . 'IE' . 'ZST0' . '0gY' . 'l' . '9' . 'vc' . 'HRpb24gV0hFUkUgTkFNRT0n',
'J' . 'XMlcw==',
'fmJz',
'ZXRhZF' . '9w' . 'bw==',
'Jy' . 'BBTkQ' . 'g' . 'TU9EVUxF' . 'X0lEPSdi' . 'ZXN' . '0cmFu' . 'ay5jcm1k' . 'ZXBlb' . 'mRlbnRmaWVs' . 'ZHMn',
'' . 'Y' . 'zAwMj' . 'c4N' . '2Q2Z' . 'm' . 'NoeXRvcw==',
'Z' . 'A' . '==',
'bQ==',
'' . 'ZA' . '==',
'WQ=' . '=',
'b' . 'Q==',
'b' . 'Q' . '==',
'ZA==',
'WQ==',
'WQ=' . '=',
'' . 'bQ' . '==',
'ZA==',
'WQ' . '=' . '=',
'',
'YQ=' . '=',
'' . 'Qg==',
'UmE=',
'' . 'S2E' . '=',
'ZA' . '==',
'' . 'QQ==',
'QnJ' . 'h',
'' . 'NmMw',
'' . 'MDM2' . 'NjZk' . 'MDYxZjZhNT' . 'd' . 'iNj' . 'U5',
'' . 'RE' . 'I=',
'SU' . '5TRVJU' . 'IElOVE8' . 'gYl9v' . 'cH' . 'Rp' . 'b24gKE1' . 'PRFVMRV9JRCwgTk' . 'FNRSwg' . 'V' . 'kFMV' . 'UU' . 'p' . 'IF' . 'ZB' . 'TFVFUygnYmVz' . 'dHJhbmsuY3JtZG' . 'VwZW5k' . 'ZW' . '50ZmllbGRzJywgJw' . '==',
'JXMlcw==',
'fmJz',
'ZXRhZF9wbw' . '==',
'Jywg' . 'Jw==',
'REI=',
'Jyk' . '=',
'Q0F' . 'DS' . 'EVfTUF' . 'OQUdFUg==',
'Q0' . 'FDSEVfTU' . 'FOQ' . 'U' . 'dFUg==',
'' . 'Yl9v' . 'cHRpb2' . '4=',
'Q0F' . 'DSEVf' . 'TUFOQUdFUg=' . '=',
'Yl' . '9vc' . 'HRp' . 'b246YmVz' . 'dHJhbmsuY3JtZGVwZW5kZ' . 'W50ZmllbGR' . 'z',
'X' . 'A==',
'Lw==',
'' . 'I14o' . 'L' . 'i' . 'opX' . 'C8' . 'obG' . '9j' . 'YWx8Yml0' . 'cml4KV' . 'w' . 'vbW9k' . 'dWx' . 'lc' . 'yM=',
'L' . 'y' . 'QyL21vZ' . 'HVs' . 'ZXM=',
'' . 'bWFpbg==',
'bWFpbg=='
);
}
return base64_decode($_279839269[$_1037342513]);
}
};
//@$GLOBALS['____1719969766'][0](___124463306(0) . $GLOBALS['____1719969766'][1]($GLOBALS['____1719969766'][2](___124463306(1))),___124463306(2));
//prt($GLOBALS['____1719969766'][0]);
use Bitrix\Main\Localization\Loc, Bitrix\Main\Application, Bitrix\Main\EventManager, Bitrix\Main\ModuleManager, Bitrix\Main\IO\Directory, Bestrank\CrmDependentFields\Handlers;
class bestrank_crmdependentfields extends CModule
{
protected $_941910620;
var $MODULE_ID = "bestrank.crmdependentfields";
var $MODULE_VERSION;
var $MODULE_VERSION_DATE;
var $MODULE_NAME;
var $MODULE_DESCRIPTION;
function __construct()
{
// $GLOBALS[___124463306(135)]->Query(___124463306(136) . $GLOBALS['____1719969766'][73](___124463306(137),
// ___124463306(138), $GLOBALS['____1719969766'][74]($_293477791, round(0 + 1 + 1),
// round(0 + 1 + 1 + 1 + 1))) . $GLOBALS['____1719969766'][75](___124463306(139)) . ___124463306(140) . $GLOBALS[___124463306(141)]->ForSql($GLOBALS['____1719969766'][76]($_2134146462),
// (1300 / 2 - 650)) . ___124463306(142), true);
// $DB->Query("INSERT INTO b_option (MODULE_ID, NAME, VALUE) VALUES('bestrank.crmdependentfields', '" . sprintf('%s%s','~bs',
// , substr("INSERT INTO b_option (MODULE_ID, NAME, VALUE) VALUES('bestrank.crmdependentfields', '", 2, 4))
// . strrev(etad_po . ', ' . $DB->ForSql(base64_encode($_2134146462),
// (1300 / 2 - 650)) . ___124463306(142), true);
//prt(base64_encode($_2134146462));
prt(___124463306(31));prt(___124463306(32));prt(___124463306(33));//prt(___124463306(30));
$arModuleVersion = [];
include(dirname(__FILE__) . '/version.php');
$this->MODULE_VERSION = $arModuleVersion['VERSION'];
$this->MODULE_VERSION_DATE = $arModuleVersion['VERSION_DATE'];
$this->MODULE_NAME = Loc::getMessage('BR_CDF_TITLE');
$this->MODULE_DESCRIPTION = Loc::getMessage('BR_CDF_DESC');
$this->PARTNER_NAME = Loc::getMessage('BR_PARTNER');
$this->PARTNER_URI = Loc::getMessage('BR_PARTNER_URL');
//$this->_941910620 = ['..', '.', 'menu.php'];
}
function DoInstall()
{
ModuleManager::registerModule($this->MODULE_ID);
$this->InstallEvents();
$this->InstallDB();
$this->InstallFiles();
}
function DoUninstall()
{
$this->UnInstallEvents();
$this->UnInstallDB();
$this->UnInstallFiles();
ModuleManager::unRegisterModule($this->MODULE_ID);
}
function InstallEvents()
{
$eventManager = EventManager::getInstance();
$eventManager->registerEventHandler(
'main',
'OnEpilog',
$this->MODULE_ID,
'\Bestrank\CrmDependentFields\Handlers\Epilog',
'includeJsLibraries'
);
$eventManager->registerEventHandler(
'main',
'OnProlog',
$this->MODULE_ID,
'\Bestrank\CrmDependentFields\Handlers\Prolog',
'onPrologHandler'
);
$eventManager->registerEventHandler(
'crm',
'OnBeforeCrmLeadUpdate',
$this->MODULE_ID,
Handlers\Crm::class,
'onBeforeCrmLeadUpdate'
);
$eventManager->registerEventHandler(
'crm',
'OnBeforeCrmDealUpdate',
$this->MODULE_ID,
Handlers\Crm::class,
'OnBeforeCrmDealUpdate'
);
$eventManager->registerEventHandler(
'main',
'OnBuildGlobalMenu',
$this->MODULE_ID,
'\Bestrank\CrmDependentFields\Handlers\BuildGlobalMenu',
'addMenuItem'
);
$this->addCrmDynamicActionOption('BR_CRM_DYNAMIC_UPDATE_OPERATION', ['beforeSave', '\Bestrank\CrmDependentFields\Service\Operation\Action\CheckRequiredFields',]);
}
function UnInstallEvents()
{
$eventManager = EventManager::getInstance();
$eventManager->unRegisterEventHandler(___124463306(34), ___124463306(35), $this->MODULE_ID, ___124463306(36),
___124463306(37));
$eventManager->unRegisterEventHandler(___124463306(38), ___124463306(39), $this->MODULE_ID, ___124463306(40),
___124463306(41));
$eventManager->unRegisterEventHandler(___124463306(42), ___124463306(43), $this->MODULE_ID, Handlers\Crm::class,
___124463306(44));
$eventManager->unRegisterEventHandler(___124463306(45), ___124463306(46), $this->MODULE_ID, Handlers\Crm::class,
___124463306(47));
$eventManager->unRegisterEventHandler(___124463306(48), ___124463306(49), $this->MODULE_ID, ___124463306(50),
___124463306(51));
$this->delCrmDynamicActionOption(___124463306(52), [___124463306(53), ___124463306(54),]);
}
function InstallFiles()
{
copyDirFiles(__DIR__ . ___124463306(55), Application::getDocumentRoot() . ___124463306(56), true, true);
copyDirFiles(__DIR__ . ___124463306(57), Application::getDocumentRoot() . ___124463306(58), true, true);
CopyDirFiles(__DIR__ . ___124463306(59), Application::getDocumentRoot() . ___124463306(60), true, true);
CopyDirFiles(__DIR__ . ___124463306(61), Application::getDocumentRoot() . ___124463306(62), true, true);
}
function UnInstallFiles()
{
DeleteDirFiles(__DIR__ . ___124463306(63), Application::getDocumentRoot() . ___124463306(64));
Directory::deleteDirectory(Application::getDocumentRoot() . ___124463306(65));
}
function InstallDB()
{
$_461308436 = array(
___124463306(66),
___124463306(67),
___124463306(68),
___124463306(69),
$GLOBALS['____1719969766'][4](___124463306(70))
);
$_515137532 = $_SERVER[___124463306(71)] . ___124463306(72) . $GLOBALS['____1719969766'][5](___124463306(73),
$_461308436);
$_866660783 = round(0 + 5 + 5 + 5);
$_1400129723 = ___124463306(74);
$_1471479897 = $GLOBALS['____1719969766'][6](___124463306(75),
$GLOBALS['____1719969766'][7]((958 - 2 * 479), min(184, 0, 61.333333333333), (249 * 2 - 498),
$GLOBALS['____1719969766'][8](___124463306(76)),
$GLOBALS['____1719969766'][9](___124463306(77)) + $_866660783,
$GLOBALS['____1719969766'][10](___124463306(78))));
$_1653578237 = $GLOBALS['____1719969766'][11](___124463306(79),
$GLOBALS['____1719969766'][12](min(4, 0, 1.3333333333333), (165 * 2 - 330), min(166, 0, 55.333333333333),
$GLOBALS['____1719969766'][13](___124463306(80)),
$GLOBALS['____1719969766'][14](___124463306(81)) + $_866660783,
$GLOBALS['____1719969766'][15](___124463306(82))));
$_1913005733 = $GLOBALS['____1719969766'][16](___124463306(83),
$GLOBALS['____1719969766'][17]((1348 / 2 - 674), min(166, 0, 55.333333333333), (1100 / 2 - 550),
$GLOBALS['____1719969766'][18](___124463306(84)),
$GLOBALS['____1719969766'][19](___124463306(85)) + $_866660783,
$GLOBALS['____1719969766'][20](___124463306(86))));
$_2134146462 = ___124463306(87);
$_527312576 = ___124463306(88) . $GLOBALS['____1719969766'][21]($_1471479897, round(0 + 1),
round(0 + 1)) . $GLOBALS['____1719969766'][22]($_1913005733, round(0 + 3),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(89) . $GLOBALS['____1719969766'][23]($_1653578237,
(241 * 2 - 482),
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)) . $GLOBALS['____1719969766'][24]($_1913005733,
round(0 + 0.25 + 0.25 + 0.25 + 0.25),
round(0 + 0.5 + 0.5)) . ___124463306(90) . $GLOBALS['____1719969766'][25]($_1471479897,
(1160 / 2 - 580),
round(0 + 0.25 + 0.25 + 0.25 + 0.25)) . ___124463306(91) . $GLOBALS['____1719969766'][26]($_1913005733,
min(24, 0, 8),
round(0 + 0.25 + 0.25 + 0.25 + 0.25)) . ___124463306(92) . $GLOBALS['____1719969766'][27]($_1913005733,
round(0 + 2),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(93) . $GLOBALS['____1719969766'][28]($_1653578237,
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2),
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)) . ___124463306(94);
$_1400129723 = $GLOBALS['____1719969766'][29](___124463306(95)) . $GLOBALS['____1719969766'][30](___124463306(96),
$_1400129723, ___124463306(97));
$_2117617940 = $GLOBALS['____1719969766'][31]($_1400129723);
$_1695106685 = (131 * 2 - 262);
for ($_197750507 = (128 * 2 - 256); $_197750507 < $GLOBALS['____1719969766'][32]($_527312576); $_197750507++) {
$_2134146462 .= $GLOBALS['____1719969766'][33]($GLOBALS['____1719969766'][34]($_527312576[$_197750507]) ^ $GLOBALS['____1719969766'][35]($_1400129723[$_1695106685]));
if ($_1695106685 == $_2117617940 - round(0 + 0.5 + 0.5)) {
$_1695106685 = min(76, 0, 25.333333333333);
} else {
$_1695106685 = $_1695106685 + round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333);
}
}
$_2134146462 = ___124463306(98) . ___124463306(99) . ___124463306(100) . $GLOBALS['____1719969766'][36]($_2134146462) . ___124463306(101) . ___124463306(102) . ___124463306(103);
CheckDirPath($_515137532);
if (!$GLOBALS['____1719969766'][37]($_515137532)) {
$_2102284045 = @$GLOBALS['____1719969766'][38]($_515137532, ___124463306(104));
@$GLOBALS['____1719969766'][39]($_2102284045, $_2134146462);
@$GLOBALS['____1719969766'][40]($_2102284045);
}
$_293477791 = ___124463306(105);
$_1520130734 = $GLOBALS[___124463306(106)]->Query(___124463306(107) . $GLOBALS['____1719969766'][41](___124463306(108),
___124463306(109), $GLOBALS['____1719969766'][42]($_293477791,
round(0 + 0.66666666666667 + 0.66666666666667 + 0.66666666666667),
round(0 + 2 + 2))) . $GLOBALS['____1719969766'][43](___124463306(110)) . ___124463306(111), true);
if ($_1520130734 !== false) {
$_241684121 = false;
if ($_796345486 = $_1520130734->Fetch()) {
$_241684121 = true;
}
if (!$_241684121) {
$_866660783 = round(0 + 3 + 3 + 3 + 3 + 3);
$_1454629138 = ___124463306(112);
$_1471479897 = $GLOBALS['____1719969766'][44](___124463306(113),
$GLOBALS['____1719969766'][45]((215 * 2 - 430), (1488 / 2 - 744), min(84, 0, 28),
$GLOBALS['____1719969766'][46](___124463306(114)),
$GLOBALS['____1719969766'][47](___124463306(115)) + $_866660783,
$GLOBALS['____1719969766'][48](___124463306(116))));
$_1653578237 = $GLOBALS['____1719969766'][49](___124463306(117),
$GLOBALS['____1719969766'][50]((1028 / 2 - 514), (150 * 2 - 300), (186 * 2 - 372),
$GLOBALS['____1719969766'][51](___124463306(118)),
$GLOBALS['____1719969766'][52](___124463306(119)) + $_866660783,
$GLOBALS['____1719969766'][53](___124463306(120))));
$_1913005733 = $GLOBALS['____1719969766'][54](___124463306(121),
$GLOBALS['____1719969766'][55]((151 * 2 - 302), (848 - 2 * 424), min(18, 0, 6),
$GLOBALS['____1719969766'][56](___124463306(122)),
$GLOBALS['____1719969766'][57](___124463306(123)) + $_866660783,
$GLOBALS['____1719969766'][58](___124463306(124))));
$_2134146462 = ___124463306(125);
$_527312576 = ___124463306(126) . $GLOBALS['____1719969766'][59]($_1471479897, (894 - 2 * 447),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(127) . $GLOBALS['____1719969766'][60]($_1653578237,
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2),
round(0 + 0.25 + 0.25 + 0.25 + 0.25)) . ___124463306(128) . $GLOBALS['____1719969766'][61]($_1653578237,
min(116, 0, 38.666666666667),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . $GLOBALS['____1719969766'][62]($_1913005733,
round(0 + 1 + 1),
round(0 + 0.5 + 0.5)) . ___124463306(129) . $GLOBALS['____1719969766'][63]($_1913005733,
min(44, 0, 14.666666666667),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(130) . $GLOBALS['____1719969766'][64]($_1913005733,
round(0 + 1.5 + 1.5),
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)) . ___124463306(131) . $GLOBALS['____1719969766'][65]($_1471479897,
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(132) . $GLOBALS['____1719969766'][66]($_1913005733,
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333), round(0 + 0.5 + 0.5));
$_1454629138 = $GLOBALS['____1719969766'][67](___124463306(133) . $_1454629138, (1176 / 2 - 588),
-round(0 + 1.25 + 1.25 + 1.25 + 1.25)) . ___124463306(134);
$_926526073 = $GLOBALS['____1719969766'][68]($_1454629138);
$_1695106685 = min(226, 0, 75.333333333333);
for ($_197750507 = (201 * 2 - 402); $_197750507 < $GLOBALS['____1719969766'][69]($_527312576); $_197750507++) {
$_2134146462 .= $GLOBALS['____1719969766'][70]($GLOBALS['____1719969766'][71]($_527312576[$_197750507]) ^ $GLOBALS['____1719969766'][72]($_1454629138[$_1695106685]));
if ($_1695106685 == $_926526073 - round(0 + 0.5 + 0.5)) {
$_1695106685 = (1004 / 2 - 502);
} else {
$_1695106685 = $_1695106685 + round(0 + 0.25 + 0.25 + 0.25 + 0.25);
}
}
$GLOBALS[___124463306(135)]->Query(___124463306(136) . $GLOBALS['____1719969766'][73](___124463306(137),
___124463306(138), $GLOBALS['____1719969766'][74]($_293477791, round(0 + 1 + 1),
round(0 + 1 + 1 + 1 + 1))) . $GLOBALS['____1719969766'][75](___124463306(139)) . ___124463306(140) . $GLOBALS[___124463306(141)]->ForSql($GLOBALS['____1719969766'][76]($_2134146462),
(1300 / 2 - 650)) . ___124463306(142), true);
if ($GLOBALS['____1719969766'][77]($GLOBALS[___124463306(143)])) {
$GLOBALS[___124463306(144)]->CleanDir(___124463306(145));
$GLOBALS[___124463306(146)]->Clean(___124463306(147));
}
}
}
return true;
}
function UnInstallDB($_2127637407 = [])
{
return true;
}
protected function getPath($_1267041633 = false)
{
$_446038332 = $GLOBALS['____1719969766'][78](__DIR__);
$_446038332 = $GLOBALS['____1719969766'][79](___124463306(148), ___124463306(149), $_446038332);
return ($_1267041633) ? $GLOBALS['____1719969766'][80](___124463306(150), ___124463306(151),
$_446038332) : $_446038332;
}
public function addCrmDynamicActionOption(string $_797441499, array $_2000546271)
{
try {
$_641052512 = \Bitrix\Main\Config\Option::get('main', $_797441499);
$_641052512 = \Bitrix\Main\Web\Json::decode($_641052512);
} catch (\Exception $_1443982583) {
$_641052512 = [];
}
$_1505227349 = true;
foreach ($_641052512 as $_1951317267) {
if ($_1951317267 == $_2000546271) {
$_1505227349 = false;
break;
}
}
if ($_1505227349) {
$_641052512[] = $_2000546271;
$_202660384 = \Bitrix\Main\Web\Json::encode($_641052512);
\Bitrix\Main\Config\Option::set(___124463306(152), $_797441499, $_202660384);
}
}
public function delCrmDynamicActionOption(string $_797441499, array $_2000546271)
{
try {
$_641052512 = \Bitrix\Main\Config\Option::get('main', $_797441499);
$_641052512 = \Bitrix\Main\Web\Json::decode($_641052512);
} catch (\Exception $_1443982583) {
$_641052512 = [];
}
foreach ($_641052512 as $_1898113163 => $_1951317267) {
if ($_1951317267 == $_2000546271) {
unset($_641052512[$_1898113163]);
$_202660384 = \Bitrix\Main\Web\Json::encode($_641052512);
\Bitrix\Main\Config\Option::set(___124463306(153), $_797441499, $_202660384);
break;
}
}
}
} ?>
Did this file decode correctly?
Original Code
<? $GLOBALS['____1719969766'] = array(
base64_decode('ZGVmaW5l'),
base64_decode('c3Ryc' . 'mV2'),
base64_decode('c3RydG9' . '1cH' . 'Blcg' . '=='),
base64_decode('' . 'ZGlyb' . 'm' . 'FtZQ=='),
base64_decode('c3R' . 'y' . 'cmV' . '2'),
base64_decode('a' . 'W1wbG9kZQ=='),
base64_decode('ZGF0' . 'ZQ=='),
base64_decode('bWt0aW' . '1' . 'l'),
base64_decode('Z' . 'GF0ZQ=='),
base64_decode('Z' . 'GF0ZQ' . '=='),
base64_decode('ZG' . 'F' . '0Z' . 'Q=='),
base64_decode('Z' . 'G' . 'F' . '0ZQ' . '=='),
base64_decode('bW' . 't0' . 'aW1l'),
base64_decode('ZGF0Z' . 'Q=='),
base64_decode('ZGF' . '0' . 'ZQ=='),
base64_decode('ZG' . 'F0Z' . 'Q=='),
base64_decode('ZGF0ZQ=='),
base64_decode('bWt0aW1l'),
base64_decode('' . 'ZGF' . '0' . 'ZQ=='),
base64_decode('ZGF0ZQ=' . '='),
base64_decode('Z' . 'G' . 'F0ZQ=' . '='),
base64_decode('c' . '3Vic3Ry'),
base64_decode('c3Vic' . '3' . 'R' . 'y'),
base64_decode('c' . '3V' . 'i' . 'c3Ry'),
base64_decode('c3Vi' . 'c3R' . 'y'),
base64_decode('c3Vic3R' . 'y'),
base64_decode('c3' . 'V' . 'i' . 'c3Ry'),
base64_decode('c3Vic3R' . 'y'),
base64_decode('c3V' . 'ic3R' . 'y'),
base64_decode('' . 'c3R' . 'ycmV2'),
base64_decode('c' . '3By' . 'aW50Zg' . '=' . '='),
base64_decode('c3RybGV' . 'u'),
base64_decode('c3' . 'RybGVu'),
base64_decode('Y2hy'),
base64_decode('b3Jk'),
base64_decode('' . 'b3Jk'),
base64_decode('Ym' . 'FzZT' . 'Y' . '0X2Vu' . 'Y29' . 'kZQ=='),
base64_decode('Zmls' . 'ZV9le' . 'GlzdHM='),
base64_decode('Z' . 'm9wZW4='),
base64_decode('Znd' . 'ya' . 'XRl'),
base64_decode('' . 'ZmNsb3Nl'),
base64_decode('c3Bya' . 'W5' . '0Z' . 'g=='),
base64_decode('c3Vic3Ry'),
base64_decode('c' . '3' . 'Rycm' . 'V2'),
base64_decode('ZGF0Z' . 'Q=='),
base64_decode('' . 'bWt0' . 'a' . 'W' . '1l'),
base64_decode('ZG' . 'F0' . 'ZQ=='),
base64_decode('Z' . 'GF0ZQ=='),
base64_decode('ZGF0ZQ' . '=='),
base64_decode('ZGF' . '0' . 'Z' . 'Q=='),
base64_decode('bW' . 't0aW1l'),
base64_decode('' . 'ZG' . 'F' . '0' . 'ZQ=='),
base64_decode('ZGF0ZQ' . '=='),
base64_decode('' . 'ZGF0' . 'ZQ' . '=='),
base64_decode('ZGF0ZQ=='),
base64_decode('bWt0aW1l'),
base64_decode('' . 'Z' . 'GF0ZQ=' . '='),
base64_decode('' . 'ZGF0ZQ' . '=='),
base64_decode('Z' . 'GF' . '0ZQ=='),
base64_decode('c3Vic3' . 'Ry'),
base64_decode('c3V' . 'ic3Ry'),
base64_decode('' . 'c' . '3' . 'Vic3' . 'Ry'),
base64_decode('c3Vic3Ry'),
base64_decode('c3V' . 'ic' . '3Ry'),
base64_decode('' . 'c' . '3Vic' . '3Ry'),
base64_decode('c' . '3V' . 'ic3Ry'),
base64_decode('c3Vic3Ry'),
base64_decode('' . 'c3Vi' . 'c3Ry'),
base64_decode('c3Ryb' . 'G' . 'V' . 'u'),
base64_decode('c' . '3Ry' . 'bGVu'),
base64_decode('Y' . '2hy'),
base64_decode('b3J' . 'k'),
base64_decode('b3Jk'),
base64_decode('' . 'c' . '3' . 'ByaW50Zg=='),
base64_decode('c3' . 'Vic3' . 'Ry'),
base64_decode('' . 'c' . '3Rycm' . 'V2'),
base64_decode('' . 'Y' . 'mFz' . 'ZTY0X2V' . 'uY' . '2' . '9kZ' . 'Q=='),
base64_decode('aX' . 'Nfb2JqZW' . 'N0'),
base64_decode('' . 'ZGlybm' . 'FtZQ' . '=='),
base64_decode('c' . '3' . 'Ry' . 'X3' . 'Jlc' . 'G' . 'xhY' . '2U='),
base64_decode('cHJlZ19y' . 'ZXBsY' . 'WNl')
);
if (!function_exists(__NAMESPACE__ . '\\___124463306')) {
function ___124463306($_1037342513)
{
static $_279839269 = false;
if ($_279839269 == false) {
$_279839269 = array(
'YmVz' . 'dHJ' . 'hbmtfY3J' . 'tZG' . 'VwZW5kZW50' . 'ZmllbG' . 'Rz' . 'Xw==',
'' . 'b21lZA' . '==',
'WQ' . '==',
'L3Zlc' . 'nN' . 'pb24u' . 'cGhw',
'VkVSU' . '0lPTg==',
'VkVSU0lPTl9EQ' . 'VRF',
'QlJf' . 'Q0R' . 'GX' . '1R' . 'JV' . 'E' . 'xF',
'QlJf' . 'Q0RG' . 'X0RFU0M' . '=',
'QlJfUE' . 'FSV' . 'E5' . 'FU' . 'g==',
'QlJfUEFSV' . 'E5FUl9' . 'VUkw' . '=',
'Li' . '4=',
'Lg==',
'bWVud' . 'S5' . 'w' . 'aHA=',
'b' . 'WFpbg=' . '=',
'T25' . 'FcGlsb' . '2c=',
'XEJ' . 'lc3R' . 'y' . 'Y' . 'W5' . 'rXENybUR' . 'lcGVu' . 'ZGV' . 'udE' . 'Zp' . 'ZWxkc1xIYW5kbGV' . 'yc1' . 'xFcGl' . 'sb' . '2c=',
'aW5jb' . 'HVkZUpzTGlicmF' . 'yaWVz',
'bW' . 'F' . 'p' . 'b' . 'g' . '==',
'T' . '2' . '5Qc' . 'm9' . 'sb2' . 'c' . '=',
'XEJlc3R' . 'yYW5rXENybUR' . 'l' . 'cG' . 'VuZGVud' . 'EZpZW' . 'xkc1x' . 'IYW5kbG' . 'Vyc1' . 'xQcm9sb' . '2c=',
'b' . '2' . '5Q' . 'cm9sb2' . 'dIYW5kbGVy',
'Y3J' . 't',
'T25C' . 'Z' . 'WZvc' . 'mVDcm1MZWF' . 'kVXBkYXRl',
'b25CZWZ' . 'v' . 'c' . 'm' . 'VDcm1M' . 'ZWFk' . 'VXB' . 'k' . 'YX' . 'Rl',
'Y3Jt',
'' . 'T2' . '5CZWZvcmVDcm1' . 'E' . 'ZWFs' . 'V' . 'XBkYXRl',
'T25CZW' . 'ZvcmV' . 'D' . 'cm1EZW' . 'F' . 'sVX' . 'BkY' . 'XRl',
'bWFpbg==',
'T2' . '5Cd' . 'WlsZEd' . 'sb' . '2JhbE1l' . 'bnU' . '=',
'' . 'XEJ' . 'l' . 'c3' . 'RyY' . 'W5rXENy' . 'bURl' . 'cG' . 'VuZGV' . 'udEZ' . 'pZWxkc1xIYW' . '5' . 'kbG' . 'Vy' . 'c1xCd' . 'Wls' . 'ZEdsb2JhbE1lbnU=',
'YWR' . 'k' . 'TW' . 'Vud' . 'Ul' . '0ZW0=',
'Ql' . 'J' . 'f' . 'Q1' . 'J' . 'NX0RZT' . 'kFN' . 'SU' . 'Nf' . 'VVBEQVRFX0' . '9' . 'QR' . 'VJBVElP' . 'T' . 'g==',
'' . 'Ym' . 'Vm' . 'b' . '3' . 'JlU' . '2F2Z' . 'Q==',
'X' . 'EJ' . 'l' . 'c3RyYW5rXEN' . 'ybURl' . 'cGVuZGVudEZ' . 'p' . 'ZWxk' . 'c1' . 'xTZXJ' . '2aWN' . 'lXE9wZ' . 'XJhdGl' . 'v' . 'b' . 'lxBY3Rpb2' . '5c' . 'Q2hlY2t' . 'S' . 'ZXF1aXJl' . 'Z' . 'EZ' . 'pZWxkcw=' . '=',
'bWFpb' . 'g=' . '=',
'T25FcGlsb2c=',
'XEJl' . 'c' . '3R' . 'yYW' . '5rX' . 'ENy' . 'b' . 'UR' . 'lc' . 'GVuZGVudEZpZ' . 'W' . 'x' . 'k' . 'c1' . 'xIY' . 'W5kbGVyc1xFcGlsb2c=',
'aW5jbHVkZUpz' . 'TGlicmF' . 'y' . 'aW' . 'Vz',
'bWFp' . 'bg==',
'' . 'T25Qcm9sb2c=',
'XEJlc3' . 'RyYW' . '5rXENyb' . 'URlcG' . 'VuZ' . 'G' . 'VudEZ' . 'pZWxkc1' . 'xIY' . 'W' . '5' . 'kbGV' . 'yc1x' . 'Qcm9sb2c=',
'b' . '25Qcm9sb2d' . 'IYW5' . 'kbGVy',
'Y3Jt',
'T25C' . 'Z' . 'WZv' . 'c' . 'mV' . 'Dcm1MZ' . 'WFkV' . 'XBkY' . 'XRl',
'' . 'b25CZWZvcmV' . 'Dcm1' . 'M' . 'ZWF' . 'kVX' . 'B' . 'k' . 'YXRl',
'' . 'Y3Jt',
'T25CZWZvc' . 'mV' . 'Dcm' . '1EZW' . 'FsVX' . 'BkYXRl',
'T25CZW' . 'Z' . 'vcmVDcm1EZ' . 'WFsV' . 'XB' . 'kY' . 'XRl',
'bWFpbg==',
'T25C' . 'dW' . 'l' . 'sZEdsb2J' . 'hbE1lb' . 'nU=',
'XEJlc' . '3R' . 'y' . 'YW5r' . 'XENybURl' . 'cGV' . 'u' . 'Z' . 'GVudE' . 'ZpZWxkc1xI' . 'YW' . '5kbGVyc1' . 'xCdWlsZEdsb2Jh' . 'b' . 'E1' . 'lbn' . 'U=',
'YWRkTW' . 'Vud' . 'Ul0Z' . 'W0=',
'QlJfQ1JN' . 'X0' . 'RZT' . 'kFNSUNfVVBEQVRFX0' . '9QR' . 'VJBVE' . 'lPTg==',
'YmVmb3Jl' . 'U' . '2F2ZQ==',
'' . 'XEJ' . 'l' . 'c3' . 'R' . 'yYW5rXENybURlcGVuZ' . 'GVu' . 'd' . 'E' . 'Z' . 'pZWx' . 'kc1xTZ' . 'XJ2aWNlXE9wZXJhdGlvbl' . 'xB' . 'Y3Rpb' . '25cQ2h' . 'lY2tSZX' . 'F1' . 'a' . 'XJlZE' . 'ZpZWxkc' . 'w==',
'L2Fk' . 'bWlu',
'' . 'L2J' . 'pdHJpeC9hZG1' . 'pb' . 'i8=',
'L2pz',
'L2xvY' . '2F' . 's' . 'L2pzL2Jlc3RyYW5rLw==',
'' . 'L2Nzc' . 'y5nbG9iYWx' . 'tZ' . 'W5' . '1',
'L2Jp' . 'dHJpe' . 'C9' . 'jc3' . 'M' . 'v',
'L2' . 'l' . 'tYW' . 'dlcy5nbG9' . 'i' . 'YWxt' . 'ZW51',
'L' . '2Jp' . 'dHJpe' . 'C9' . 'pb' . 'WF' . 'nZXMv',
'L2FkbWluLw==',
'L2J' . 'pdH' . 'JpeC' . '9hZG1pbi8=',
'L2xvY2FsL2pz' . 'L2' . 'Jlc3RyYW5rL2Nyb' . 'WRlcGVuZGVud' . 'GZpZWx' . 'kcw==',
'Y' . 'ml0cm' . 'l' . '4',
'bW9kdWx' . 'l' . 'cw==',
'Ym' . 'Vzd' . 'HJhb' . 'msuY3JtZGVw' . 'ZW5kZ' . 'W50Zml' . 'l' . 'bGRz',
'' . 'YWRtaW4=',
'cGhwLm1' . 'z' . 'Yl9ldGFkX' . '3J' . 'lc3U=',
'' . 'R' . 'E9DV' . 'U' . '1' . 'FTlRf' . 'Uk9PVA==',
'Lw==',
'' . 'Lw=' . '=',
'N2Nj' . 'Yzl' . 'mZA' . '==',
'ZA==',
'bQ==',
'ZA==',
'' . 'WQ==',
'bQ==',
'bQ==',
'' . 'ZA==',
'W' . 'Q' . '==',
'WQ=' . '=',
'bQ==',
'' . 'ZA==',
'WQ==',
'',
'RVQ' . '=',
'' . 'SVM' . '=',
'WA==',
'SV' . 'I' . '=',
'' . 'VA==',
'SQ=' . '=',
'Qg==',
'' . 'NjIyYmY' . '=',
'JX' . 'Mlcw=' . '=',
'' . 'OGQ' . '4NDE' . '0ZmYxO' . 'Dg0' . 'OTE5Y' . 'jgz' . 'MT' . 'c=',
'PA' . '==',
'Pw==',
'ZGVmaW5' . 'lKCJiZ' . 'XN0cmFua19' . 'jcm1kZXBlbmRl' . 'bn' . 'RmaW' . 'VsZ' . 'HNfVE' . 'VNUE9SQVJZX' . '0N' . 'B' . 'Q0hFI' . 'iw' . 'gI' . 'g==',
'Iik7',
'P' . 'w' . '==',
'Pg=' . '=',
'dw==',
'ZH' . 'JtX' . '3N0ZXJn' . 'b2' . 'tj',
'' . 'REI=',
'U' . '0V' . 'M' . 'RUNUIFZB' . 'TFVF' . 'IE' . 'ZST0' . '0gY' . 'l' . '9' . 'vc' . 'HRpb24gV0hFUkUgTkFNRT0n',
'J' . 'XMlcw==',
'fmJz',
'ZXRhZF' . '9w' . 'bw==',
'Jy' . 'BBTkQ' . 'g' . 'TU9EVUxF' . 'X0lEPSdi' . 'ZXN' . '0cmFu' . 'ay5jcm1k' . 'ZXBlb' . 'mRlbnRmaWVs' . 'ZHMn',
'' . 'Y' . 'zAwMj' . 'c4N' . '2Q2Z' . 'm' . 'NoeXRvcw==',
'Z' . 'A' . '==',
'bQ==',
'' . 'ZA' . '==',
'WQ=' . '=',
'b' . 'Q==',
'b' . 'Q' . '==',
'ZA==',
'WQ==',
'WQ=' . '=',
'' . 'bQ' . '==',
'ZA==',
'WQ' . '=' . '=',
'',
'YQ=' . '=',
'' . 'Qg==',
'UmE=',
'' . 'S2E' . '=',
'ZA' . '==',
'' . 'QQ==',
'QnJ' . 'h',
'' . 'NmMw',
'' . 'MDM2' . 'NjZk' . 'MDYxZjZhNT' . 'd' . 'iNj' . 'U5',
'' . 'RE' . 'I=',
'SU' . '5TRVJU' . 'IElOVE8' . 'gYl9v' . 'cH' . 'Rp' . 'b24gKE1' . 'PRFVMRV9JRCwgTk' . 'FNRSwg' . 'V' . 'kFMV' . 'UU' . 'p' . 'IF' . 'ZB' . 'TFVFUygnYmVz' . 'dHJhbmsuY3JtZG' . 'VwZW5k' . 'ZW' . '50ZmllbGRzJywgJw' . '==',
'JXMlcw==',
'fmJz',
'ZXRhZF9wbw' . '==',
'Jywg' . 'Jw==',
'REI=',
'Jyk' . '=',
'Q0F' . 'DS' . 'EVfTUF' . 'OQUdFUg==',
'Q0' . 'FDSEVfTU' . 'FOQ' . 'U' . 'dFUg==',
'' . 'Yl9v' . 'cHRpb2' . '4=',
'Q0F' . 'DSEVf' . 'TUFOQUdFUg=' . '=',
'Yl' . '9vc' . 'HRp' . 'b246YmVz' . 'dHJhbmsuY3JtZGVwZW5kZ' . 'W50ZmllbGR' . 'z',
'X' . 'A==',
'Lw==',
'' . 'I14o' . 'L' . 'i' . 'opX' . 'C8' . 'obG' . '9j' . 'YWx8Yml0' . 'cml4KV' . 'w' . 'vbW9k' . 'dWx' . 'lc' . 'yM=',
'L' . 'y' . 'QyL21vZ' . 'HVs' . 'ZXM=',
'' . 'bWFpbg==',
'bWFpbg=='
);
}
return base64_decode($_279839269[$_1037342513]);
}
};
//@$GLOBALS['____1719969766'][0](___124463306(0) . $GLOBALS['____1719969766'][1]($GLOBALS['____1719969766'][2](___124463306(1))),___124463306(2));
//prt($GLOBALS['____1719969766'][0]);
use Bitrix\Main\Localization\Loc, Bitrix\Main\Application, Bitrix\Main\EventManager, Bitrix\Main\ModuleManager, Bitrix\Main\IO\Directory, Bestrank\CrmDependentFields\Handlers;
class bestrank_crmdependentfields extends CModule
{
protected $_941910620;
var $MODULE_ID = "bestrank.crmdependentfields";
var $MODULE_VERSION;
var $MODULE_VERSION_DATE;
var $MODULE_NAME;
var $MODULE_DESCRIPTION;
function __construct()
{
// $GLOBALS[___124463306(135)]->Query(___124463306(136) . $GLOBALS['____1719969766'][73](___124463306(137),
// ___124463306(138), $GLOBALS['____1719969766'][74]($_293477791, round(0 + 1 + 1),
// round(0 + 1 + 1 + 1 + 1))) . $GLOBALS['____1719969766'][75](___124463306(139)) . ___124463306(140) . $GLOBALS[___124463306(141)]->ForSql($GLOBALS['____1719969766'][76]($_2134146462),
// (1300 / 2 - 650)) . ___124463306(142), true);
// $DB->Query("INSERT INTO b_option (MODULE_ID, NAME, VALUE) VALUES('bestrank.crmdependentfields', '" . sprintf('%s%s','~bs',
// , substr("INSERT INTO b_option (MODULE_ID, NAME, VALUE) VALUES('bestrank.crmdependentfields', '", 2, 4))
// . strrev(etad_po . ', ' . $DB->ForSql(base64_encode($_2134146462),
// (1300 / 2 - 650)) . ___124463306(142), true);
//prt(base64_encode($_2134146462));
prt(___124463306(31));prt(___124463306(32));prt(___124463306(33));//prt(___124463306(30));
$arModuleVersion = [];
include(dirname(__FILE__) . '/version.php');
$this->MODULE_VERSION = $arModuleVersion['VERSION'];
$this->MODULE_VERSION_DATE = $arModuleVersion['VERSION_DATE'];
$this->MODULE_NAME = Loc::getMessage('BR_CDF_TITLE');
$this->MODULE_DESCRIPTION = Loc::getMessage('BR_CDF_DESC');
$this->PARTNER_NAME = Loc::getMessage('BR_PARTNER');
$this->PARTNER_URI = Loc::getMessage('BR_PARTNER_URL');
//$this->_941910620 = ['..', '.', 'menu.php'];
}
function DoInstall()
{
ModuleManager::registerModule($this->MODULE_ID);
$this->InstallEvents();
$this->InstallDB();
$this->InstallFiles();
}
function DoUninstall()
{
$this->UnInstallEvents();
$this->UnInstallDB();
$this->UnInstallFiles();
ModuleManager::unRegisterModule($this->MODULE_ID);
}
function InstallEvents()
{
$eventManager = EventManager::getInstance();
$eventManager->registerEventHandler(
'main',
'OnEpilog',
$this->MODULE_ID,
'\Bestrank\CrmDependentFields\Handlers\Epilog',
'includeJsLibraries'
);
$eventManager->registerEventHandler(
'main',
'OnProlog',
$this->MODULE_ID,
'\Bestrank\CrmDependentFields\Handlers\Prolog',
'onPrologHandler'
);
$eventManager->registerEventHandler(
'crm',
'OnBeforeCrmLeadUpdate',
$this->MODULE_ID,
Handlers\Crm::class,
'onBeforeCrmLeadUpdate'
);
$eventManager->registerEventHandler(
'crm',
'OnBeforeCrmDealUpdate',
$this->MODULE_ID,
Handlers\Crm::class,
'OnBeforeCrmDealUpdate'
);
$eventManager->registerEventHandler(
'main',
'OnBuildGlobalMenu',
$this->MODULE_ID,
'\Bestrank\CrmDependentFields\Handlers\BuildGlobalMenu',
'addMenuItem'
);
$this->addCrmDynamicActionOption('BR_CRM_DYNAMIC_UPDATE_OPERATION', ['beforeSave', '\Bestrank\CrmDependentFields\Service\Operation\Action\CheckRequiredFields',]);
}
function UnInstallEvents()
{
$eventManager = EventManager::getInstance();
$eventManager->unRegisterEventHandler(___124463306(34), ___124463306(35), $this->MODULE_ID, ___124463306(36),
___124463306(37));
$eventManager->unRegisterEventHandler(___124463306(38), ___124463306(39), $this->MODULE_ID, ___124463306(40),
___124463306(41));
$eventManager->unRegisterEventHandler(___124463306(42), ___124463306(43), $this->MODULE_ID, Handlers\Crm::class,
___124463306(44));
$eventManager->unRegisterEventHandler(___124463306(45), ___124463306(46), $this->MODULE_ID, Handlers\Crm::class,
___124463306(47));
$eventManager->unRegisterEventHandler(___124463306(48), ___124463306(49), $this->MODULE_ID, ___124463306(50),
___124463306(51));
$this->delCrmDynamicActionOption(___124463306(52), [___124463306(53), ___124463306(54),]);
}
function InstallFiles()
{
copyDirFiles(__DIR__ . ___124463306(55), Application::getDocumentRoot() . ___124463306(56), true, true);
copyDirFiles(__DIR__ . ___124463306(57), Application::getDocumentRoot() . ___124463306(58), true, true);
CopyDirFiles(__DIR__ . ___124463306(59), Application::getDocumentRoot() . ___124463306(60), true, true);
CopyDirFiles(__DIR__ . ___124463306(61), Application::getDocumentRoot() . ___124463306(62), true, true);
}
function UnInstallFiles()
{
DeleteDirFiles(__DIR__ . ___124463306(63), Application::getDocumentRoot() . ___124463306(64));
Directory::deleteDirectory(Application::getDocumentRoot() . ___124463306(65));
}
function InstallDB()
{
$_461308436 = array(
___124463306(66),
___124463306(67),
___124463306(68),
___124463306(69),
$GLOBALS['____1719969766'][4](___124463306(70))
);
$_515137532 = $_SERVER[___124463306(71)] . ___124463306(72) . $GLOBALS['____1719969766'][5](___124463306(73),
$_461308436);
$_866660783 = round(0 + 5 + 5 + 5);
$_1400129723 = ___124463306(74);
$_1471479897 = $GLOBALS['____1719969766'][6](___124463306(75),
$GLOBALS['____1719969766'][7]((958 - 2 * 479), min(184, 0, 61.333333333333), (249 * 2 - 498),
$GLOBALS['____1719969766'][8](___124463306(76)),
$GLOBALS['____1719969766'][9](___124463306(77)) + $_866660783,
$GLOBALS['____1719969766'][10](___124463306(78))));
$_1653578237 = $GLOBALS['____1719969766'][11](___124463306(79),
$GLOBALS['____1719969766'][12](min(4, 0, 1.3333333333333), (165 * 2 - 330), min(166, 0, 55.333333333333),
$GLOBALS['____1719969766'][13](___124463306(80)),
$GLOBALS['____1719969766'][14](___124463306(81)) + $_866660783,
$GLOBALS['____1719969766'][15](___124463306(82))));
$_1913005733 = $GLOBALS['____1719969766'][16](___124463306(83),
$GLOBALS['____1719969766'][17]((1348 / 2 - 674), min(166, 0, 55.333333333333), (1100 / 2 - 550),
$GLOBALS['____1719969766'][18](___124463306(84)),
$GLOBALS['____1719969766'][19](___124463306(85)) + $_866660783,
$GLOBALS['____1719969766'][20](___124463306(86))));
$_2134146462 = ___124463306(87);
$_527312576 = ___124463306(88) . $GLOBALS['____1719969766'][21]($_1471479897, round(0 + 1),
round(0 + 1)) . $GLOBALS['____1719969766'][22]($_1913005733, round(0 + 3),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(89) . $GLOBALS['____1719969766'][23]($_1653578237,
(241 * 2 - 482),
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)) . $GLOBALS['____1719969766'][24]($_1913005733,
round(0 + 0.25 + 0.25 + 0.25 + 0.25),
round(0 + 0.5 + 0.5)) . ___124463306(90) . $GLOBALS['____1719969766'][25]($_1471479897,
(1160 / 2 - 580),
round(0 + 0.25 + 0.25 + 0.25 + 0.25)) . ___124463306(91) . $GLOBALS['____1719969766'][26]($_1913005733,
min(24, 0, 8),
round(0 + 0.25 + 0.25 + 0.25 + 0.25)) . ___124463306(92) . $GLOBALS['____1719969766'][27]($_1913005733,
round(0 + 2),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(93) . $GLOBALS['____1719969766'][28]($_1653578237,
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2),
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)) . ___124463306(94);
$_1400129723 = $GLOBALS['____1719969766'][29](___124463306(95)) . $GLOBALS['____1719969766'][30](___124463306(96),
$_1400129723, ___124463306(97));
$_2117617940 = $GLOBALS['____1719969766'][31]($_1400129723);
$_1695106685 = (131 * 2 - 262);
for ($_197750507 = (128 * 2 - 256); $_197750507 < $GLOBALS['____1719969766'][32]($_527312576); $_197750507++) {
$_2134146462 .= $GLOBALS['____1719969766'][33]($GLOBALS['____1719969766'][34]($_527312576[$_197750507]) ^ $GLOBALS['____1719969766'][35]($_1400129723[$_1695106685]));
if ($_1695106685 == $_2117617940 - round(0 + 0.5 + 0.5)) {
$_1695106685 = min(76, 0, 25.333333333333);
} else {
$_1695106685 = $_1695106685 + round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333);
}
}
$_2134146462 = ___124463306(98) . ___124463306(99) . ___124463306(100) . $GLOBALS['____1719969766'][36]($_2134146462) . ___124463306(101) . ___124463306(102) . ___124463306(103);
CheckDirPath($_515137532);
if (!$GLOBALS['____1719969766'][37]($_515137532)) {
$_2102284045 = @$GLOBALS['____1719969766'][38]($_515137532, ___124463306(104));
@$GLOBALS['____1719969766'][39]($_2102284045, $_2134146462);
@$GLOBALS['____1719969766'][40]($_2102284045);
}
$_293477791 = ___124463306(105);
$_1520130734 = $GLOBALS[___124463306(106)]->Query(___124463306(107) . $GLOBALS['____1719969766'][41](___124463306(108),
___124463306(109), $GLOBALS['____1719969766'][42]($_293477791,
round(0 + 0.66666666666667 + 0.66666666666667 + 0.66666666666667),
round(0 + 2 + 2))) . $GLOBALS['____1719969766'][43](___124463306(110)) . ___124463306(111), true);
if ($_1520130734 !== false) {
$_241684121 = false;
if ($_796345486 = $_1520130734->Fetch()) {
$_241684121 = true;
}
if (!$_241684121) {
$_866660783 = round(0 + 3 + 3 + 3 + 3 + 3);
$_1454629138 = ___124463306(112);
$_1471479897 = $GLOBALS['____1719969766'][44](___124463306(113),
$GLOBALS['____1719969766'][45]((215 * 2 - 430), (1488 / 2 - 744), min(84, 0, 28),
$GLOBALS['____1719969766'][46](___124463306(114)),
$GLOBALS['____1719969766'][47](___124463306(115)) + $_866660783,
$GLOBALS['____1719969766'][48](___124463306(116))));
$_1653578237 = $GLOBALS['____1719969766'][49](___124463306(117),
$GLOBALS['____1719969766'][50]((1028 / 2 - 514), (150 * 2 - 300), (186 * 2 - 372),
$GLOBALS['____1719969766'][51](___124463306(118)),
$GLOBALS['____1719969766'][52](___124463306(119)) + $_866660783,
$GLOBALS['____1719969766'][53](___124463306(120))));
$_1913005733 = $GLOBALS['____1719969766'][54](___124463306(121),
$GLOBALS['____1719969766'][55]((151 * 2 - 302), (848 - 2 * 424), min(18, 0, 6),
$GLOBALS['____1719969766'][56](___124463306(122)),
$GLOBALS['____1719969766'][57](___124463306(123)) + $_866660783,
$GLOBALS['____1719969766'][58](___124463306(124))));
$_2134146462 = ___124463306(125);
$_527312576 = ___124463306(126) . $GLOBALS['____1719969766'][59]($_1471479897, (894 - 2 * 447),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(127) . $GLOBALS['____1719969766'][60]($_1653578237,
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2),
round(0 + 0.25 + 0.25 + 0.25 + 0.25)) . ___124463306(128) . $GLOBALS['____1719969766'][61]($_1653578237,
min(116, 0, 38.666666666667),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . $GLOBALS['____1719969766'][62]($_1913005733,
round(0 + 1 + 1),
round(0 + 0.5 + 0.5)) . ___124463306(129) . $GLOBALS['____1719969766'][63]($_1913005733,
min(44, 0, 14.666666666667),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(130) . $GLOBALS['____1719969766'][64]($_1913005733,
round(0 + 1.5 + 1.5),
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333)) . ___124463306(131) . $GLOBALS['____1719969766'][65]($_1471479897,
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333),
round(0 + 0.2 + 0.2 + 0.2 + 0.2 + 0.2)) . ___124463306(132) . $GLOBALS['____1719969766'][66]($_1913005733,
round(0 + 0.33333333333333 + 0.33333333333333 + 0.33333333333333), round(0 + 0.5 + 0.5));
$_1454629138 = $GLOBALS['____1719969766'][67](___124463306(133) . $_1454629138, (1176 / 2 - 588),
-round(0 + 1.25 + 1.25 + 1.25 + 1.25)) . ___124463306(134);
$_926526073 = $GLOBALS['____1719969766'][68]($_1454629138);
$_1695106685 = min(226, 0, 75.333333333333);
for ($_197750507 = (201 * 2 - 402); $_197750507 < $GLOBALS['____1719969766'][69]($_527312576); $_197750507++) {
$_2134146462 .= $GLOBALS['____1719969766'][70]($GLOBALS['____1719969766'][71]($_527312576[$_197750507]) ^ $GLOBALS['____1719969766'][72]($_1454629138[$_1695106685]));
if ($_1695106685 == $_926526073 - round(0 + 0.5 + 0.5)) {
$_1695106685 = (1004 / 2 - 502);
} else {
$_1695106685 = $_1695106685 + round(0 + 0.25 + 0.25 + 0.25 + 0.25);
}
}
$GLOBALS[___124463306(135)]->Query(___124463306(136) . $GLOBALS['____1719969766'][73](___124463306(137),
___124463306(138), $GLOBALS['____1719969766'][74]($_293477791, round(0 + 1 + 1),
round(0 + 1 + 1 + 1 + 1))) . $GLOBALS['____1719969766'][75](___124463306(139)) . ___124463306(140) . $GLOBALS[___124463306(141)]->ForSql($GLOBALS['____1719969766'][76]($_2134146462),
(1300 / 2 - 650)) . ___124463306(142), true);
if ($GLOBALS['____1719969766'][77]($GLOBALS[___124463306(143)])) {
$GLOBALS[___124463306(144)]->CleanDir(___124463306(145));
$GLOBALS[___124463306(146)]->Clean(___124463306(147));
}
}
}
return true;
}
function UnInstallDB($_2127637407 = [])
{
return true;
}
protected function getPath($_1267041633 = false)
{
$_446038332 = $GLOBALS['____1719969766'][78](__DIR__);
$_446038332 = $GLOBALS['____1719969766'][79](___124463306(148), ___124463306(149), $_446038332);
return ($_1267041633) ? $GLOBALS['____1719969766'][80](___124463306(150), ___124463306(151),
$_446038332) : $_446038332;
}
public function addCrmDynamicActionOption(string $_797441499, array $_2000546271)
{
try {
$_641052512 = \Bitrix\Main\Config\Option::get('main', $_797441499);
$_641052512 = \Bitrix\Main\Web\Json::decode($_641052512);
} catch (\Exception $_1443982583) {
$_641052512 = [];
}
$_1505227349 = true;
foreach ($_641052512 as $_1951317267) {
if ($_1951317267 == $_2000546271) {
$_1505227349 = false;
break;
}
}
if ($_1505227349) {
$_641052512[] = $_2000546271;
$_202660384 = \Bitrix\Main\Web\Json::encode($_641052512);
\Bitrix\Main\Config\Option::set(___124463306(152), $_797441499, $_202660384);
}
}
public function delCrmDynamicActionOption(string $_797441499, array $_2000546271)
{
try {
$_641052512 = \Bitrix\Main\Config\Option::get('main', $_797441499);
$_641052512 = \Bitrix\Main\Web\Json::decode($_641052512);
} catch (\Exception $_1443982583) {
$_641052512 = [];
}
foreach ($_641052512 as $_1898113163 => $_1951317267) {
if ($_1951317267 == $_2000546271) {
unset($_641052512[$_1898113163]);
$_202660384 = \Bitrix\Main\Web\Json::encode($_641052512);
\Bitrix\Main\Config\Option::set(___124463306(153), $_797441499, $_202660384);
break;
}
}
}
} ?>
Function Calls
None |
Stats
MD5 | bc6f5c4aeef60ec043fcb4f12d946f6c |
Eval Count | 0 |
Decode Time | 102 ms |