Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
namespace MoSfSyncSalesforce\Handler; use CustomAPIHandler; use MoSfSyncSalesforce\C..
Decoded Output download
<?
namespace MoSfSyncSalesforce\Handler;
use CustomAPIHandler;
use MoSfSyncSalesforce\Customer;
use MoSfSyncSalesforce\Services\DBUtils;
use MoSfSyncSalesforce\Handler\ScheduledSyncHandler;
use MoSfSyncSalesforce\Handler\Object_Sync_Sf_WordPress;
class WorkflowIntegration_SF_to_WP
{
public function mo_sf_sync_xml_parser($mf)
{
if (!(!Customer::mo_sf_sync_is_customer_license_key_verified() || !isset($mf["action"]) || !isset($mf["accesskey"]))) {
goto vB;
}
$this->mo_sf_sync_xml_response();
return;
vB:
$H8 = $_REQUEST["accesskey"];
$fX = new DBUtils();
$Yi = $fX->mo_sf_sync_get_mapping_sf_to_wp(urldecode($_REQUEST["mappinglabel"]), $H8);
if (!empty($Yi)) {
goto DP;
}
$this->mo_sf_sync_xml_response();
return;
DP:
$Ki = $_REQUEST["action"];
$FH = trim(file_get_contents("php://input"));
$J8 = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $FH);
$Ji = xml_parser_create();
xml_parse_into_struct($Ji, $J8, $kE, $fg);
$od = 0;
gg:
if (!($od < count($kE))) {
goto Gy;
}
if (!($kE[$od]["tag"] == "SOBJECT")) {
goto cf;
}
if (!isset($kE[$od]["attributes"]["XSI:TYPE"])) {
goto rE;
}
$p8 = $kE[$od]["attributes"]["XSI:TYPE"];
rE:
cf:
$od++;
goto gg;
Gy:
if (empty($kE)) {
goto vW;
}
$J8 = simplexml_load_string($J8);
goto Zu;
vW:
return;
Zu:
if (empty($J8)) {
goto kA;
}
$bl = json_encode($J8);
$mf = json_decode($bl, true);
$mf["Salesforce Object"] = str_ireplace("sf:", '', $p8);
$Hi = array();
$Hi["Salesforce Object"] = $mf["Salesforce Object"];
if (isset($mf["soapenvBody"]["notifications"]["Notification"]["sObject"])) {
goto re;
}
$od = count($mf["soapenvBody"]["notifications"]["Notification"]);
$Lt = 0;
Wg:
if (!($Lt < $od - 1)) {
goto xM;
}
foreach ($mf["soapenvBody"]["notifications"]["Notification"][$Lt]["sObject"] as $Ac => $mT) {
$Ac = substr($Ac, 2);
$Hi["Object Information"][$Lt][$Ac] = $mT;
LM:
}
IE:
$Lt++;
goto Wg;
xM:
goto pd;
re:
foreach ($mf["soapenvBody"]["notifications"]["Notification"]["sObject"] as $Ac => $mT) {
$Ac = substr($Ac, 2);
$Hi["Object Information"][0][$Ac] = $mT;
Mf:
}
Bw:
pd:
$this->mo_sf_sync_route_soap_request_processing($Hi, $Yi, $Ki);
$this->mo_sf_sync_xml_response();
goto DQ;
kA:
return;
DQ:
}
public function mo_sf_sync_xml_response()
{
$FQ = "<?xml version='1.0' encoding='UTF-8'?>\xd
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:out='http://soap.sforce.com/2005/09/outbound'>
\xa <soapenv:Header>\xd
</soapenv:Header>
\xa <soapenv:Body>\xd\xa <out:notificationsResponse>\xd
<out:Ack>true</out:Ack>
</out:notificationsResponse>
\xa </soapenv:Body>
</soapenv:Envelope>";
header("HTTP/1.1 200 OK");
header("Content-Type: application/json;charset=utf-8");
echo $FQ;
exit;
}
public function mo_sf_sync_route_soap_request_processing($Hi, $Yi, $Ki)
{
switch ($Ki) {
case "store":
$this->mo_sf_sync_store_data_to_wp_objects($Hi, $Yi);
goto jg;
}
RE:
jg:
}
function mo_sf_sync_store_data_to_wp_objects($Hi, $Yi)
{
$fX = new DBUtils();
$uU = new Object_Sync_Sf_WordPress();
$CT = ScheduledSyncHandler::instance();
foreach ($Yi as $NF) {
$VF = $uU->get_wordpress_table_structure($NF->wordpress_object);
$g9 = $fX->mo_sf_sync_get_column_names($VF["content_table"]);
foreach ($Hi["Object Information"] as $Ac => $mT) {
$CT->mo_sf_sync_save_wp_records(array($mT), $NF->wordpress_object, $Hi["Salesforce Object"], unserialize($NF->fields), $VF, $g9, $NF->nomenclature, $NF->creation, $NF->updation);
O5:
}
XL:
WN:
}
P5:
}
} ?>
Did this file decode correctly?
Original Code
namespace MoSfSyncSalesforce\Handler;
use CustomAPIHandler;
use MoSfSyncSalesforce\Customer;
use MoSfSyncSalesforce\Services\DBUtils;
use MoSfSyncSalesforce\Handler\ScheduledSyncHandler;
use MoSfSyncSalesforce\Handler\Object_Sync_Sf_WordPress;
class WorkflowIntegration_SF_to_WP
{
public function mo_sf_sync_xml_parser($mf)
{
if (!(!Customer::mo_sf_sync_is_customer_license_key_verified() || !isset($mf["\141\143\164\x69\157\156"]) || !isset($mf["\141\143\143\145\x73\x73\153\145\171"]))) {
goto vB;
}
$this->mo_sf_sync_xml_response();
return;
vB:
$H8 = $_REQUEST["\141\143\143\x65\x73\163\x6b\x65\x79"];
$fX = new DBUtils();
$Yi = $fX->mo_sf_sync_get_mapping_sf_to_wp(urldecode($_REQUEST["\155\x61\x70\160\151\x6e\147\154\141\142\x65\154"]), $H8);
if (!empty($Yi)) {
goto DP;
}
$this->mo_sf_sync_xml_response();
return;
DP:
$Ki = $_REQUEST["\x61\143\164\151\x6f\x6e"];
$FH = trim(file_get_contents("\160\x68\160\x3a\57\x2f\x69\156\160\x75\x74"));
$J8 = preg_replace("\57\50\x3c\134\57\x3f\x29\50\134\x77\x2b\51\x3a\x28\133\x5e\x3e\135\x2a\76\x29\57", "\x24\x31\x24\62\x24\63", $FH);
$Ji = xml_parser_create();
xml_parse_into_struct($Ji, $J8, $kE, $fg);
$od = 0;
gg:
if (!($od < count($kE))) {
goto Gy;
}
if (!($kE[$od]["\x74\x61\x67"] == "\x53\x4f\x42\x4a\x45\103\124")) {
goto cf;
}
if (!isset($kE[$od]["\141\164\x74\162\151\142\x75\164\145\163"]["\x58\123\111\72\124\x59\x50\105"])) {
goto rE;
}
$p8 = $kE[$od]["\141\x74\164\162\x69\x62\x75\x74\x65\163"]["\x58\123\111\x3a\x54\131\x50\105"];
rE:
cf:
$od++;
goto gg;
Gy:
if (empty($kE)) {
goto vW;
}
$J8 = simplexml_load_string($J8);
goto Zu;
vW:
return;
Zu:
if (empty($J8)) {
goto kA;
}
$bl = json_encode($J8);
$mf = json_decode($bl, true);
$mf["\x53\141\154\145\x73\x66\x6f\x72\143\x65\x20\x4f\142\x6a\x65\143\x74"] = str_ireplace("\x73\146\72", '', $p8);
$Hi = array();
$Hi["\123\141\x6c\145\163\x66\x6f\x72\143\x65\x20\117\142\x6a\x65\143\x74"] = $mf["\123\x61\x6c\145\x73\146\x6f\x72\x63\145\x20\x4f\x62\x6a\x65\x63\x74"];
if (isset($mf["\x73\x6f\141\x70\x65\156\166\102\157\144\171"]["\x6e\157\x74\x69\146\151\143\x61\164\x69\157\x6e\x73"]["\x4e\x6f\x74\x69\146\151\143\x61\x74\x69\157\x6e"]["\163\x4f\142\152\x65\x63\x74"])) {
goto re;
}
$od = count($mf["\x73\x6f\141\x70\x65\156\166\102\x6f\x64\x79"]["\156\x6f\x74\x69\x66\151\143\141\x74\x69\x6f\156\x73"]["\116\x6f\164\x69\146\151\x63\141\x74\x69\x6f\156"]);
$Lt = 0;
Wg:
if (!($Lt < $od - 1)) {
goto xM;
}
foreach ($mf["\x73\x6f\x61\160\145\156\x76\x42\157\x64\x79"]["\156\157\x74\151\x66\x69\143\141\164\x69\x6f\156\163"]["\x4e\157\164\151\146\x69\x63\x61\164\x69\x6f\156"][$Lt]["\x73\x4f\x62\152\145\143\x74"] as $Ac => $mT) {
$Ac = substr($Ac, 2);
$Hi["\117\x62\x6a\145\143\x74\40\x49\x6e\x66\157\162\155\x61\164\151\x6f\x6e"][$Lt][$Ac] = $mT;
LM:
}
IE:
$Lt++;
goto Wg;
xM:
goto pd;
re:
foreach ($mf["\163\157\x61\x70\x65\156\x76\102\157\144\171"]["\x6e\x6f\x74\151\x66\151\x63\141\164\151\x6f\x6e\163"]["\x4e\157\164\x69\146\x69\143\141\x74\151\157\x6e"]["\163\x4f\x62\152\x65\x63\x74"] as $Ac => $mT) {
$Ac = substr($Ac, 2);
$Hi["\x4f\142\x6a\145\x63\x74\x20\111\156\x66\x6f\x72\x6d\141\164\x69\157\156"][0][$Ac] = $mT;
Mf:
}
Bw:
pd:
$this->mo_sf_sync_route_soap_request_processing($Hi, $Yi, $Ki);
$this->mo_sf_sync_xml_response();
goto DQ;
kA:
return;
DQ:
}
public function mo_sf_sync_xml_response()
{
$FQ = "\74\77\x78\155\x6c\x20\166\x65\162\x73\151\157\x6e\x3d\47\61\56\60\x27\x20\x65\x6e\x63\x6f\x64\x69\156\147\x3d\47\x55\x54\106\55\x38\x27\x3f\76\xd\12\x20\40\x20\x20\40\x20\x20\x20\74\x73\157\x61\160\145\156\166\72\x45\156\x76\145\154\157\x70\145\40\170\x6d\154\156\163\72\163\157\141\x70\x65\156\x76\75\x27\150\164\x74\160\72\57\x2f\163\x63\x68\x65\x6d\141\163\x2e\x78\x6d\154\x73\x6f\141\x70\56\157\x72\x67\57\x73\x6f\x61\x70\x2f\145\x6e\166\x65\x6c\157\160\145\x2f\47\x20\x78\x6d\154\x6e\x73\x3a\157\x75\164\75\47\150\164\x74\x70\72\57\57\x73\157\x61\160\x2e\x73\x66\x6f\x72\x63\145\56\143\157\x6d\x2f\62\x30\x30\65\57\x30\71\57\x6f\x75\x74\142\x6f\x75\156\144\x27\x3e\15\xa\40\x20\x20\x20\x20\40\40\40\x3c\x73\x6f\x61\x70\145\x6e\x76\72\x48\x65\141\144\145\162\76\xd\12\40\40\x20\x20\x20\x20\40\x20\74\x2f\163\157\141\160\x65\156\x76\x3a\110\x65\141\x64\145\162\x3e\15\xa\40\x20\x20\x20\x20\x20\x20\40\74\163\157\x61\x70\x65\x6e\166\72\102\157\144\x79\76\xd\xa\40\x20\x20\x20\40\40\40\40\x3c\x6f\165\x74\x3a\x6e\x6f\164\x69\x66\151\143\141\164\151\157\x6e\x73\122\145\x73\160\x6f\x6e\163\x65\76\xd\12\40\40\x20\40\40\40\40\40\74\x6f\165\164\x3a\101\x63\x6b\x3e\x74\162\x75\145\74\57\x6f\x75\164\x3a\101\143\x6b\x3e\15\12\40\40\40\40\40\x20\40\40\x3c\57\x6f\x75\x74\72\x6e\x6f\164\x69\x66\x69\x63\x61\x74\x69\157\x6e\163\x52\x65\x73\160\157\x6e\163\145\76\15\xa\40\x20\40\40\x20\x20\x20\x20\x3c\x2f\163\157\141\160\145\156\166\72\x42\157\144\x79\x3e\15\12\x20\40\x20\40\x20\x20\40\x20\74\x2f\163\x6f\x61\x70\145\x6e\x76\x3a\105\x6e\x76\x65\x6c\157\x70\145\x3e";
header("\110\x54\124\x50\57\x31\x2e\61\x20\62\60\60\40\117\113");
header("\x43\x6f\156\164\x65\x6e\x74\55\x54\171\160\145\x3a\40\141\160\x70\154\151\143\141\x74\151\x6f\156\57\152\163\x6f\156\73\143\x68\141\162\x73\x65\164\x3d\165\164\146\55\x38");
echo $FQ;
exit;
}
public function mo_sf_sync_route_soap_request_processing($Hi, $Yi, $Ki)
{
switch ($Ki) {
case "\163\164\157\x72\145":
$this->mo_sf_sync_store_data_to_wp_objects($Hi, $Yi);
goto jg;
}
RE:
jg:
}
function mo_sf_sync_store_data_to_wp_objects($Hi, $Yi)
{
$fX = new DBUtils();
$uU = new Object_Sync_Sf_WordPress();
$CT = ScheduledSyncHandler::instance();
foreach ($Yi as $NF) {
$VF = $uU->get_wordpress_table_structure($NF->wordpress_object);
$g9 = $fX->mo_sf_sync_get_column_names($VF["\143\157\x6e\x74\145\x6e\x74\x5f\164\141\142\x6c\x65"]);
foreach ($Hi["\x4f\142\x6a\x65\143\164\x20\x49\x6e\x66\x6f\162\155\x61\x74\x69\157\x6e"] as $Ac => $mT) {
$CT->mo_sf_sync_save_wp_records(array($mT), $NF->wordpress_object, $Hi["\x53\x61\154\x65\x73\146\157\x72\143\x65\40\117\142\152\145\x63\x74"], unserialize($NF->fields), $VF, $g9, $NF->nomenclature, $NF->creation, $NF->updation);
O5:
}
XL:
WN:
}
P5:
}
}
Function Calls
None |
Stats
MD5 | 36ffb9e23e6bfafdac6481ba09620f7d |
Eval Count | 0 |
Decode Time | 65 ms |