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

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace moApiIntegrator\Observer; use moApiIntegrator\Wrapper\pluginConsta..

Decoded Output download

<?php 
 
 
namespace moApiIntegrator\Observer; 
 
use moApiIntegrator\Wrapper\pluginConstants; 
use moApiIntegrator\Wrapper\wpWrapper; 
class pbiObserver 
{ 
    private static $observer; 
    public static function getObserver() 
    { 
        if (isset(self::$observer)) { 
            goto zZ; 
        } 
        self::$observer = new pbiObserver(); 
        zZ: 
        return self::$observer; 
    } 
    public function mo_api_pbi_observer() 
    { 
        if (check_ajax_referer("mo_api_pbi__nonce", "nonce", false)) { 
            goto fC; 
        } 
        wp_send_json_error(array("err" => "Permission denied.")); 
        exit; 
        fC: 
        $Ce = sanitize_text_field($_POST["task"]); 
        switch ($Ce) { 
            case "mo_api_fetch_reports": 
                $this->mo_api_fetch_reports(); 
                goto So; 
            case "mo_api_save_report": 
                $this->mo_api_save_report($_POST["payload"]); 
                goto So; 
            case "mo_api_delete_report": 
                $this->mo_api_delete_report($_POST["payload"]); 
                goto So; 
        } 
        qR: 
        So: 
    } 
    private function mo_api_fetch_reports() 
    { 
        $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data); 
        if (!empty($xS)) { 
            goto JM; 
        } 
        $xS = []; 
        JM: 
        wp_send_json_success(array_values($xS)); 
    } 
    private function mo_api_save_report($ot) 
    { 
        $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data); 
        if (!empty($xS)) { 
            goto S5; 
        } 
        $xS = []; 
        S5: 
        if (!isset($xS[$ot["ID"]])) { 
            goto k8; 
        } 
        unset($xS[$ot["ID"]]); 
        k8: 
        $xS[$ot["ID"]] = $ot; 
        wpWrapper::mo_api_set_option(pluginConstants::pbi_data, $xS); 
        wp_send_json_success($ot); 
    } 
    private function mo_api_delete_report($ot) 
    { 
        $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data); 
        if (!empty($xS)) { 
            goto F3; 
        } 
        $xS = []; 
        F3: 
        unset($xS[$ot["ID"]]); 
        wpWrapper::mo_api_set_option(pluginConstants::pbi_data, $xS); 
        wp_send_json_success($ot["ID"]); 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace moApiIntegrator\Observer;

use moApiIntegrator\Wrapper\pluginConstants;
use moApiIntegrator\Wrapper\wpWrapper;
class pbiObserver
{
    private static $observer;
    public static function getObserver()
    {
        if (isset(self::$observer)) {
            goto zZ;
        }
        self::$observer = new pbiObserver();
        zZ:
        return self::$observer;
    }
    public function mo_api_pbi_observer()
    {
        if (check_ajax_referer("\x6d\x6f\x5f\x61\160\151\137\160\142\x69\x5f\137\156\x6f\x6e\143\145", "\x6e\x6f\156\143\145", false)) {
            goto fC;
        }
        wp_send_json_error(array("\x65\162\x72" => "\120\x65\x72\x6d\x69\163\x73\x69\x6f\x6e\x20\144\x65\x6e\151\145\144\x2e"));
        exit;
        fC:
        $Ce = sanitize_text_field($_POST["\164\x61\163\x6b"]);
        switch ($Ce) {
            case "\x6d\x6f\x5f\x61\x70\x69\137\146\145\164\143\x68\137\x72\x65\x70\x6f\x72\164\163":
                $this->mo_api_fetch_reports();
                goto So;
            case "\x6d\157\137\x61\x70\x69\137\163\x61\x76\145\137\162\x65\160\157\162\164":
                $this->mo_api_save_report($_POST["\160\x61\171\154\x6f\x61\144"]);
                goto So;
            case "\x6d\x6f\x5f\x61\160\x69\x5f\x64\145\154\x65\x74\145\137\x72\x65\160\157\162\164":
                $this->mo_api_delete_report($_POST["\x70\x61\x79\154\157\141\144"]);
                goto So;
        }
        qR:
        So:
    }
    private function mo_api_fetch_reports()
    {
        $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data);
        if (!empty($xS)) {
            goto JM;
        }
        $xS = [];
        JM:
        wp_send_json_success(array_values($xS));
    }
    private function mo_api_save_report($ot)
    {
        $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data);
        if (!empty($xS)) {
            goto S5;
        }
        $xS = [];
        S5:
        if (!isset($xS[$ot["\x49\x44"]])) {
            goto k8;
        }
        unset($xS[$ot["\111\x44"]]);
        k8:
        $xS[$ot["\111\x44"]] = $ot;
        wpWrapper::mo_api_set_option(pluginConstants::pbi_data, $xS);
        wp_send_json_success($ot);
    }
    private function mo_api_delete_report($ot)
    {
        $xS = wpWrapper::mo_api_get_option(pluginConstants::pbi_data);
        if (!empty($xS)) {
            goto F3;
        }
        $xS = [];
        F3:
        unset($xS[$ot["\111\x44"]]);
        wpWrapper::mo_api_set_option(pluginConstants::pbi_data, $xS);
        wp_send_json_success($ot["\x49\x44"]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 edef85bb9d94da0a5c3505b3d506e464
Eval Count 0
Decode Time 40 ms