Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
${"\x47\x4c\x4fB\x41L\x53"}["v\x67\x70\x75\x70\x76\x63\x68u"]="\x64\x6f\x63\x75\x6d\x65\x6..
Decoded Output download
<? ${"GLOBALS"}["vgpupvchu"]="document";${"GLOBALS"}["mkzqgrchfbxh"]="phpUnitLeadId";${"GLOBALS"}["thpwbupjisv"]="result";${"GLOBALS"}["tljkol"]="suite";${"GLOBALS"}["bjqodjslsc"]="action";${"GLOBALS"}["hkmonbst"]="module";set_include_path(realpath(dirname(__FILE__)."/../../../").PATH_SEPARATOR.realpath(dirname(__FILE__)."/../").PATH_SEPARATOR.get_include_path());global$adb,$vtiger_current_version,$current_user;global$entityDel;global$display;global$category;global$currentModule;global$dbconfig,$dbconfigoption;global$logsqltm;global$log;global$module,$action;global$root_directory;${${"GLOBALS"}["hkmonbst"]}="Workflow2";${${"GLOBALS"}["bjqodjslsc"]}="Workflow2Ajax";global$phpUnitLeadId;ini_set("display_errors",0);error_reporting(E_ALL&~E_NOTICE&~E_DEPRECATED);require_once"config.inc.php";require_once"include/utils/utils.php";require_once"VTConditionCheckTest.php";require_once"VtUtils.php";require_once"VTEntity.php";class Workflow2Suite extends PHPUnit_Framework_TestSuite{public static function suite(){$yfqletaezwys="suite";${$yfqletaezwys}=new Workflow2Suite("PHPUnit");$suite->addTestSuite("VTConditionCheckTest");return${${"GLOBALS"}["tljkol"]};}protected function setUp(){${"GLOBALS"}["yfhbwsfomj"]="sql";${"GLOBALS"}["kjuzrgjm"]="sql";global$adb,$phpUnitLeadId;$pegxinihv="result";${${"GLOBALS"}["kjuzrgjm"]}="SELECT leadid FROM
vtiger_leaddetails
LEFT JOIN vtiger_crmentity ON(vtiger_crmentity.crmid = vtiger_leaddetails.leadid)
WHERE firstname = 'PHPUNIT' AND lastname = 'PHPUNIT' AND deleted = 0";${$pegxinihv}=$adb->query(${${"GLOBALS"}["yfhbwsfomj"]});if($adb->num_rows(${${"GLOBALS"}["thpwbupjisv"]})>0){${"GLOBALS"}["zyzsqolntck"]="result";${${"GLOBALS"}["mkzqgrchfbxh"]}=$adb->query_result(${${"GLOBALS"}["zyzsqolntck"]},0,"leadid");}else{${${"GLOBALS"}["vgpupvchu"]}=CRMEntity::getInstance("Leads");${"GLOBALS"}["lodzzbvyhx"]="sql";${"GLOBALS"}["zsctmrb"]="sql";$document->column_fields["firstname"]="PHPUNIT";$document->column_fields["lastname"]="PHPUNIT";$document->column_fields["annualrevenue"]="1000";$document->column_fields["cf_654"]=1;$document->column_fields["assigned_user_id"]=1;${"GLOBALS"}["lozhnvnlo"]="phpUnitLeadId";$document->save("Leads");${${"GLOBALS"}["lodzzbvyhx"]}="SELECT leadid FROM
vtiger_leaddetails
LEFT JOIN vtiger_crmentity ON(vtiger_crmentity.crmid = vtiger_leaddetails.leadid)
WHERE firstname = 'PHPUNIT' AND lastname = 'PHPUNIT' AND deleted = 0";$adb->query(${${"GLOBALS"}["zsctmrb"]});${${"GLOBALS"}["lozhnvnlo"]}=$adb->query_result(${${"GLOBALS"}["thpwbupjisv"]},0,"leadid");}VTEntity::setUser(VtUtils::getAdminUser());print"
MySuite::setUp()";}protected function tearDown(){print"
MySuite::tearDown()";}}
?>
Did this file decode correctly?
Original Code
${"\x47\x4c\x4fB\x41L\x53"}["v\x67\x70\x75\x70\x76\x63\x68u"]="\x64\x6f\x63\x75\x6d\x65\x6e\x74";${"\x47\x4c\x4f\x42ALS"}["\x6d\x6b\x7a\x71\x67\x72\x63h\x66\x62xh"]="\x70h\x70\x55\x6eit\x4ce\x61\x64\x49d";${"\x47\x4c\x4f\x42A\x4c\x53"}["t\x68\x70\x77b\x75p\x6a\x69\x73v"]="\x72es\x75l\x74";${"\x47\x4c\x4f\x42A\x4c\x53"}["t\x6cjk\x6f\x6c"]="\x73\x75i\x74e";${"\x47L\x4fB\x41LS"}["b\x6aq\x6fd\x6a\x73\x6c\x73c"]="\x61\x63t\x69o\x6e";${"\x47\x4c\x4fB\x41\x4c\x53"}["hk\x6d\x6f\x6e\x62\x73\x74"]="\x6d\x6fd\x75\x6c\x65";set_include_path(realpath(dirname(__FILE__)."/\x2e./../\x2e\x2e/").PATH_SEPARATOR.realpath(dirname(__FILE__)."/.\x2e/").PATH_SEPARATOR.get_include_path());global$adb,$vtiger_current_version,$current_user;global$entityDel;global$display;global$category;global$currentModule;global$dbconfig,$dbconfigoption;global$logsqltm;global$log;global$module,$action;global$root_directory;${${"\x47\x4c\x4f\x42A\x4cS"}["\x68\x6bm\x6fnb\x73\x74"]}="Workf\x6co\x772";${${"\x47L\x4fBA\x4c\x53"}["b\x6a\x71\x6fdjsls\x63"]}="\x57o\x72\x6b\x66\x6c\x6fw\x32\x41\x6aax";global$phpUnitLeadId;ini_set("\x64\x69\x73\x70\x6c\x61y\x5f\x65r\x72ors",0);error_reporting(E_ALL&~E_NOTICE&~E_DEPRECATED);require_once"\x63\x6fn\x66i\x67\x2e\x69nc\x2e\x70h\x70";require_once"i\x6ec\x6c\x75d\x65/\x75\x74il\x73/\x75t\x69ls\x2e\x70hp";require_once"V\x54\x43ondi\x74i\x6fnChe\x63kT\x65\x73t\x2ep\x68p";require_once"V\x74U\x74\x69\x6c\x73.\x70h\x70";require_once"\x56T\x45n\x74\x69\x74\x79.\x70hp";class Workflow2Suite extends PHPUnit_Framework_TestSuite{public static function suite(){$yfqletaezwys="s\x75\x69\x74e";${$yfqletaezwys}=new Workflow2Suite("\x50HP\x55\x6ei\x74");$suite->addTestSuite("\x56T\x43ondi\x74i\x6fn\x43h\x65\x63kT\x65\x73\x74");return${${"G\x4c\x4fBA\x4c\x53"}["\x74l\x6a\x6b\x6fl"]};}protected function setUp(){${"\x47\x4cOBALS"}["yf\x68\x62\x77\x73f\x6f\x6d\x6a"]="\x73\x71l";${"GLOB\x41\x4c\x53"}["\x6bj\x75\x7arg\x6a\x6d"]="\x73\x71l";global$adb,$phpUnitLeadId;$pegxinihv="res\x75l\x74";${${"\x47\x4c\x4fBA\x4cS"}["\x6b\x6auzr\x67\x6a\x6d"]}="\x53ELECT\x20\x6ceadi\x64 \x46\x52OM\n\x20 \x20 \x20 \x20\x20 \x20 \x20 vt\x69ge\x72\x5f\x6ce\x61d\x64e\x74\x61i\x6c\x73\n\x20\x20 \x20\x20\x20\x20\x20 \x20\x20\x20\x20\x20\x20 \x20 \x4c\x45FT\x20J\x4fIN\x20vtig\x65\x72\x5f\x63r\x6denti\x74y\x20ON(\x76t\x69ge\x72_c\x72\x6d\x65n\x74i\x74\x79.\x63\x72\x6di\x64\x20=\x20v\x74iger\x5f\x6ceadd\x65\x74ails\x2e\x6c\x65a\x64id)\n\x20 \x20\x20 \x20 \x20 \x20\x20\x20 \x57H\x45R\x45 \x66irs\x74n\x61me \x3d '\x50H\x50U\x4eIT\x27\x20\x41ND \x6c\x61\x73tna\x6d\x65 =\x20'\x50HP\x55\x4eIT'\x20A\x4eD \x64\x65let\x65d\x20=\x200";${$pegxinihv}=$adb->query(${${"\x47L\x4fBA\x4c\x53"}["\x79\x66\x68\x62\x77\x73f\x6fm\x6a"]});if($adb->num_rows(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x68\x70\x77b\x75\x70\x6ai\x73v"]})>0){${"\x47\x4c\x4f\x42\x41LS"}["\x7a\x79z\x73\x71ol\x6e\x74c\x6b"]="r\x65su\x6ct";${${"\x47L\x4f\x42\x41LS"}["\x6dkz\x71g\x72\x63\x68\x66\x62x\x68"]}=$adb->query_result(${${"\x47\x4cOB\x41\x4cS"}["z\x79\x7asq\x6f\x6cn\x74\x63k"]},0,"\x6c\x65\x61\x64\x69d");}else{${${"\x47\x4cO\x42\x41\x4c\x53"}["vg\x70\x75p\x76\x63h\x75"]}=CRMEntity::getInstance("\x4cead\x73");${"\x47L\x4fBA\x4cS"}["\x6c\x6fd\x7az\x62\x76\x79\x68\x78"]="\x73\x71l";${"GL\x4fB\x41\x4c\x53"}["z\x73c\x74\x6dr\x62"]="\x73\x71\x6c";$document->column_fields["\x66i\x72\x73\x74\x6eam\x65"]="\x50\x48PU\x4eIT";$document->column_fields["\x6c\x61s\x74\x6e\x61m\x65"]="\x50\x48PUNIT";$document->column_fields["a\x6en\x75\x61\x6c\x72\x65v\x65nu\x65"]="1000";$document->column_fields["\x63\x66\x5f654"]=1;$document->column_fields["\x61ssi\x67\x6ee\x64_\x75ser\x5fi\x64"]=1;${"G\x4cO\x42\x41\x4c\x53"}["lo\x7a\x68n\x76n\x6c\x6f"]="\x70\x68p\x55ni\x74\x4c\x65\x61\x64Id";$document->save("\x4c\x65ads");${${"\x47\x4c\x4f\x42A\x4c\x53"}["l\x6f\x64\x7a\x7a\x62\x76\x79\x68x"]}="SE\x4c\x45\x43T lea\x64id\x20\x46\x52\x4f\x4d\n \x20 \x20 \x20\x20 \x20 \x20\x20 \x20\x20 \x20 \x20\x20 \x20\x20 \x20\x76\x74ige\x72\x5f\x6ce\x61d\x64\x65\x74\x61il\x73\n \x20 \x20 \x20 \x20 \x20\x20 \x20 \x20 \x20\x20\x20\x20\x20 \x20 LE\x46T\x20\x4aOI\x4e\x20\x76\x74\x69g\x65r_c\x72m\x65n\x74\x69\x74y\x20O\x4e(\x76\x74i\x67\x65\x72\x5f\x63\x72\x6de\x6e\x74i\x74y.c\x72m\x69\x64\x20= v\x74i\x67e\x72_\x6c\x65\x61\x64\x64e\x74\x61\x69\x6c\x73.\x6c\x65\x61di\x64)\n\x20 \x20\x20\x20 \x20\x20\x20 \x20\x20 \x20\x20 \x20\x20\x20\x20\x57H\x45\x52\x45\x20\x66\x69r\x73\x74\x6e\x61\x6d\x65 = \x27PH\x50\x55\x4e\x49T' AN\x44 \x6castn\x61\x6d\x65\x20\x3d\x20'P\x48\x50\x55NI\x54'\x20A\x4eD d\x65l\x65t\x65d\x20\x3d 0";$adb->query(${${"\x47LO\x42\x41\x4cS"}["\x7a\x73c\x74\x6d\x72\x62"]});${${"\x47LO\x42\x41L\x53"}["l\x6f\x7a\x68\x6e\x76n\x6c\x6f"]}=$adb->query_result(${${"\x47\x4cO\x42\x41\x4cS"}["thpw\x62u\x70\x6ai\x73v"]},0,"l\x65\x61d\x69\x64");}VTEntity::setUser(VtUtils::getAdminUser());print"\n\x4dySu\x69\x74\x65::set\x55p()";}protected function tearDown(){print"\nMyS\x75it\x65::t\x65\x61\x72\x44\x6f\x77n()";}}
Function Calls
| dirname | 1 |
| realpath | 1 |
Stats
| MD5 | dc026d105382cd1d29b87b072d2b061a |
| Eval Count | 0 |
| Decode Time | 120 ms |