Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if (!(empty($i6) || (!isset($i6->scheduled_sync_enabled) || !$i6->scheduled_..

Decoded Output download

<?   
            if (!(empty($i6) || (!isset($i6->scheduled_sync_enabled) || !$i6->scheduled_sync_enabled))) { 
                goto WL; 
            } 
            goto Rf; 
            WL: 
            $Vq = isset($i6->last_scheduled_sync_timestamp) ? $i6->last_scheduled_sync_timestamp : false; 
            $pM = date("Y-m-d H:i:s", current_time("timestamp", 1)); 
            if (empty($Vq)) { 
                goto SC; 
            } 
            $b4 = round((strtotime(substr($Vq, 0, -11)) - strtotime($pM)) / 3600, 1); 
            if ($i6->sync_interval === "twicedaily") { 
                goto jb; 
            } 
            if ($i6->sync_interval === "daily") { 
                goto h1; 
            } 
            goto Rf; 
            goto xp; 
            h1: 
            if (!($b4 < 23)) { 
                goto QR; 
            } 
            goto Rf; 
            QR: 
            xp: 
            goto tT; 
            jb: 
            if (!($b4 < 11)) { 
                goto Uc; 
            } 
            goto Rf; 
            Uc: 
            tT: 
            SC: 
            $wv = $i6->nomenclature; 
            $gB = $i6->salesforce_object; 
            $wu = $i6->wordpress_object; 
            $uO = $this->Object_Sync_Sf_WordPress->get_wordpress_table_structure($wu); 
            $NF = $this->db->mo_sf_sync_get_column_names($uO["content_table"]); 
            $CQ = maybe_unserialize($i6->fields); 
            $bx = implode(",", array_keys($CQ["field_mapping"])); 
            $mx = ''; 
            if (empty($Vq)) { 
                goto qa; 
            } 
            $mx = "WHERE SystemModstamp >= " . $Vq; 
            qa: 
            $BZ = "SELECT Id,{$bx} FROM {$gB} {$mx} ORDER BY SystemModstamp ASC"; 
            $m6 = (new Salesforce())->mo_sf_sync_execute_soql($BZ); 
            if (!(is_wp_error($m6) || empty($m6) || isset($m6[0]) && isset($m6[0]["errorCode"]))) { 
                goto GS; 
            } 
            goto Rf; 
            GS: 
            $lM = $this->mo_sf_sync_save_wp_records($m6["records"], $wu, $gB, $CQ, $uO, $NF, $wv); 
            if (!(empty($lM) || is_wp_error($lM))) { 
                goto KB; 
            } 
            goto Rf; 
            KB: 
            $aB = false; 
            if (!(isset($m6["done"]) && !empty($m6["done"]))) { 
                goto rX; 
            } 
            $aB = true; 
            rX: 
            xz: 
            if ($aB) { 
                goto e8; 
            } 
            $s7 = $m6["nextRecordsUrl"]; 
            $m6 = (new Salesforce())->mo_Sf_sync_get_next_records($s7); 
            if (!(isset($m6["done"]) && !empty($m6["done"]))) { 
                goto WY; 
            } 
            $aB = true; 
            WY: 
            if (!(is_wp_error($m6) || empty($m6) || isset($m6[0]) && isset($m6[0]["errorCode"]))) { 
                goto o_; 
            } 
            $BF = isset($m6[0]["errorCode"]) ? $m6[0]["errorCode"] : ''; 
            $aB = true; 
            goto xz; 
            o_: 
            $lM = $this->mo_sf_sync_save_wp_records($m6["records"], $wu, $gB, $CQ, $uO, $NF, $wv); 
            if (!(empty($lM) || is_wp_error($lM))) { 
                goto gB; 
            } 
            $aB = true; 
            goto xz; 
            gB: 
            goto xz; 
            e8: 
            if (!is_wp_error($m6)) { 
                goto iS; 
            } 
            goto Rf; 
            iS: 
            $Uh = str_replace("Z", ".000%2B0000", gmdate("Y-m-d\TH:i:s\Z", time())); 
            $pe->mo_sf_sync_update_scheduled_sync_details($i6->id, true, $i6->sync_interval, $Uh); 
            Rf: 
         ?>

Did this file decode correctly?

Original Code


            if (!(empty($i6) || (!isset($i6->scheduled_sync_enabled) || !$i6->scheduled_sync_enabled))) {
                goto WL;
            }
            goto Rf;
            WL:
            $Vq = isset($i6->last_scheduled_sync_timestamp) ? $i6->last_scheduled_sync_timestamp : false;
            $pM = date("\x59\55\x6d\x2d\x64\x20\x48\72\x69\x3a\163", current_time("\x74\151\155\x65\163\164\x61\155\x70", 1));
            if (empty($Vq)) {
                goto SC;
            }
            $b4 = round((strtotime(substr($Vq, 0, -11)) - strtotime($pM)) / 3600, 1);
            if ($i6->sync_interval === "\164\x77\151\143\x65\x64\141\x69\x6c\x79") {
                goto jb;
            }
            if ($i6->sync_interval === "\144\141\151\x6c\x79") {
                goto h1;
            }
            goto Rf;
            goto xp;
            h1:
            if (!($b4 < 23)) {
                goto QR;
            }
            goto Rf;
            QR:
            xp:
            goto tT;
            jb:
            if (!($b4 < 11)) {
                goto Uc;
            }
            goto Rf;
            Uc:
            tT:
            SC:
            $wv = $i6->nomenclature;
            $gB = $i6->salesforce_object;
            $wu = $i6->wordpress_object;
            $uO = $this->Object_Sync_Sf_WordPress->get_wordpress_table_structure($wu);
            $NF = $this->db->mo_sf_sync_get_column_names($uO["\143\157\156\164\x65\x6e\164\137\164\141\142\x6c\x65"]);
            $CQ = maybe_unserialize($i6->fields);
            $bx = implode("\x2c", array_keys($CQ["\146\151\x65\154\x64\x5f\x6d\x61\160\x70\x69\156\147"]));
            $mx = '';
            if (empty($Vq)) {
                goto qa;
            }
            $mx = "\127\110\x45\x52\105\x20\x53\171\163\164\x65\x6d\x4d\x6f\x64\x73\164\x61\155\x70\x20\x3e\x3d\x20" . $Vq;
            qa:
            $BZ = "\123\105\114\x45\103\x54\x20\111\x64\54{$bx}\40\106\x52\117\115\40{$gB}\x20{$mx}\40\117\x52\x44\x45\x52\40\x42\131\40\123\171\x73\164\145\x6d\x4d\157\144\163\164\141\155\x70\40\x41\x53\103";
            $m6 = (new Salesforce())->mo_sf_sync_execute_soql($BZ);
            if (!(is_wp_error($m6) || empty($m6) || isset($m6[0]) && isset($m6[0]["\145\162\x72\x6f\x72\103\157\144\x65"]))) {
                goto GS;
            }
            goto Rf;
            GS:
            $lM = $this->mo_sf_sync_save_wp_records($m6["\x72\x65\143\157\162\144\163"], $wu, $gB, $CQ, $uO, $NF, $wv);
            if (!(empty($lM) || is_wp_error($lM))) {
                goto KB;
            }
            goto Rf;
            KB:
            $aB = false;
            if (!(isset($m6["\144\157\x6e\x65"]) && !empty($m6["\x64\x6f\156\145"]))) {
                goto rX;
            }
            $aB = true;
            rX:
            xz:
            if ($aB) {
                goto e8;
            }
            $s7 = $m6["\156\x65\x78\164\122\145\143\157\162\x64\x73\125\x72\x6c"];
            $m6 = (new Salesforce())->mo_Sf_sync_get_next_records($s7);
            if (!(isset($m6["\144\157\x6e\x65"]) && !empty($m6["\144\157\156\145"]))) {
                goto WY;
            }
            $aB = true;
            WY:
            if (!(is_wp_error($m6) || empty($m6) || isset($m6[0]) && isset($m6[0]["\145\x72\162\157\162\x43\157\x64\145"]))) {
                goto o_;
            }
            $BF = isset($m6[0]["\145\162\162\x6f\162\103\x6f\144\145"]) ? $m6[0]["\145\162\162\157\162\103\157\x64\x65"] : '';
            $aB = true;
            goto xz;
            o_:
            $lM = $this->mo_sf_sync_save_wp_records($m6["\x72\145\143\157\x72\144\163"], $wu, $gB, $CQ, $uO, $NF, $wv);
            if (!(empty($lM) || is_wp_error($lM))) {
                goto gB;
            }
            $aB = true;
            goto xz;
            gB:
            goto xz;
            e8:
            if (!is_wp_error($m6)) {
                goto iS;
            }
            goto Rf;
            iS:
            $Uh = str_replace("\132", "\56\60\x30\x30\45\62\102\60\x30\60\x30", gmdate("\131\x2d\x6d\55\x64\134\x54\x48\72\x69\72\163\x5c\132", time()));
            $pe->mo_sf_sync_update_scheduled_sync_details($i6->id, true, $i6->sync_interval, $Uh);
            Rf:
        

Function Calls

None

Variables

None

Stats

MD5 a4e15753fa3e621ccb529f03b749c55d
Eval Count 0
Decode Time 42 ms