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 MoOauthClient; use MoOauthClient\App; use MoOauthClient\Backup\En..

Decoded Output download

<?php 
 
 
namespace MoOauthClient; 
 
use MoOauthClient\App; 
use MoOauthClient\Backup\EnvVarResolver; 
class MOUtils 
{ 
    const FREE = 0; 
    const STANDARD = 1; 
    const PREMIUM = 2; 
    const MULTISITE_PREMIUM = 3; 
    const ENTERPRISE = 4; 
    const ALL_INCLUSIVE_SINGLE_SITE = 5; 
    const MULTISITE_ENTERPRISE = 6; 
    const ALL_INCLUSIVE_MULTISITE = 7; 
    private $is_multisite = false; 
    public function __construct() 
    { 
        remove_action("admin_notices", array($this, "mo_oauth_success_message")); 
        remove_action("admin_notices", array($this, "mo_oauth_error_message")); 
        $this->is_multisite = boolval(get_site_option("mo_oauth_isMultiSitePluginRequested")) ? true : ($this->is_multisite_versi() ? true : false); 
    } 
    public function mo_oauth_success_message() 
    { 
        $Sn = "error"; 
        $mE = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION); 
        $uY = array("a" => array("href" => array(), "target" => array())); 
        echo "<div class='" . esc_attr($Sn) . "'> <p>" . wp_kses($mE, $uY) . "</p></div>"; 
    } 
    public function mo_oauth_error_message() 
    { 
        $Sn = "updated"; 
        $mE = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION); 
        $uY = array("a" => array("href" => array(), "target" => array())); 
        echo "<div class='" . esc_attr($Sn) . "'><p>" . wp_kses($mE, $uY) . "</p></div>"; 
    } 
    public function mo_oauth_show_success_message() 
    { 
        $en = is_multisite() && $this->is_multisite_versi() ? "network_" : ''; 
        remove_action("{$en}admin_notices", array($this, "mo_oauth_success_message")); 
        add_action("{$en}admin_notices", array($this, "mo_oauth_error_message")); 
    } 
    public function mo_oauth_show_error_message() 
    { 
        $en = is_multisite() && $this->is_multisite_versi() ? "network_" : ''; 
        remove_action("{$en}admin_notices", array($this, "mo_oauth_error_message")); 
        add_action("{$en}admin_notices", array($this, "mo_oauth_success_message")); 
    } 
    public function mo_oauth_client_filter_error($Wk) 
    { 
        $Wk = apply_filters("mo_oauth_modify_error", $Wk); 
        return $Wk; 
    } 
    public function mo_oauth_is_customer_registered() 
    { 
        $KS = $this->mo_oauth_client_get_option("mo_oauth_admin_email"); 
        $Hd = $this->mo_oauth_client_get_option("mo_oauth_admin_customer_key"); 
        if (!$KS || !$Hd || !is_numeric(trim($Hd))) { 
            goto Qb; 
        } 
        return 1; 
        goto Sc; 
        Qb: 
        return 0; 
        Sc: 
    } 
    public function mooauthencrypt($ve) 
    { 
        $sH = $this->mo_oauth_client_get_option("customer_token"); 
        if ($sH) { 
            goto Yk; 
        } 
        return "false"; 
        Yk: 
        $sH = str_split(str_pad('', strlen($ve), $sH, STR_PAD_RIGHT)); 
        $k1 = str_split($ve); 
        foreach ($k1 as $EL => $AC) { 
            $fY = ord($AC) + ord($sH[$EL]); 
            $k1[$EL] = chr($fY > 255 ? $fY - 256 : $fY); 
            Kr: 
        } 
        t1: 
        return base64_encode(join('', $k1)); 
    } 
    public function mooauthdecrypt($ve) 
    { 
        $ve = base64_decode($ve); 
        $sH = $this->mo_oauth_client_get_option("customer_token"); 
        if ($sH) { 
            goto wi; 
        } 
        return "false"; 
        wi: 
        $sH = str_split(str_pad('', strlen($ve), $sH, STR_PAD_RIGHT)); 
        $k1 = str_split($ve); 
        foreach ($k1 as $EL => $AC) { 
            $fY = ord($AC) - ord($sH[$EL]); 
            $k1[$EL] = chr($fY < 0 ? $fY + 256 : $fY); 
            M7: 
        } 
        Be: 
        return join('', $k1); 
    } 
    public function mo_oauth_check_empty_or_null($ih) 
    { 
        if (!(!isset($ih) || empty($ih))) { 
            goto uv; 
        } 
        return true; 
        uv: 
        return false; 
    } 
    public function is_multisite_plan() 
    { 
        return $this->is_multisite; 
    } 
    public function mo_oauth_is_curl_installed() 
    { 
        if (in_array("curl", get_loaded_extensions())) { 
            goto Cg; 
        } 
        return 0; 
        goto kC; 
        Cg: 
        return 1; 
        kC: 
    } 
    public function mo_oauth_show_curl_error() 
    { 
        if (!($this->mo_oauth_is_curl_installed() === 0)) { 
            goto wN; 
        } 
        $this->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "<a href="http://php.net/manual/en/curl.installation.php" target="_blank">PHP CURL extension</a> is not installed or disabled. Please enable it to continue."); 
        $this->mo_oauth_show_error_message(); 
        return; 
        wN: 
    } 
    public function mo_oauth_is_clv() 
    { 
        $vZ = $this->mo_oauth_client_get_option("mo_oauth_lv"); 
        $vZ = boolval($vZ) ? $this->mooauthdecrypt($vZ) : "false"; 
        $vZ = !empty($this->mo_oauth_client_get_option("mo_oauth_lk")) && "true" === $vZ ? 1 : 0; 
        if (!($vZ === 0)) { 
            goto iE; 
        } 
        return $this->verify_lk(); 
        iE: 
        return $vZ; 
    } 
    public function mo_oauth_is_cld() 
    { 
        if (!(empty($this->mo_oauth_client_get_option("mo_oauth_ld")) || empty($this->mo_oauth_client_get_option("customer_token")))) { 
            goto Nh; 
        } 
        return 1; 
        Nh: 
        $vZ = $this->mo_oauth_client_get_option("mo_oauth_ld"); 
        $vZ = "true" === $this->mooauthdecrypt($vZ) ? 1 : 0; 
        return $vZ; 
    } 
    public function mo_oauth_hbca_xyake() 
    { 
        if ($this->mo_oauth_is_customer_registered()) { 
            goto m0; 
        } 
        return false; 
        m0: 
        if ($this->mo_oauth_client_get_option("mo_oauth_admin_customer_key") > 138200) { 
            goto RJ; 
        } 
        return false; 
        goto sc; 
        RJ: 
        return true; 
        sc: 
    } 
    public function get_default_app($MR, $x0 = false) 
    { 
        if ($MR) { 
            goto JS; 
        } 
        return false; 
        JS: 
        $kK = false; 
        $HF = file_get_contents(MOC_DIR . "resources/app_components/defaultapps.json", true); 
        $At = json_decode($HF, $x0); 
        foreach ($At as $H2 => $P1) { 
            if (!($H2 === $MR)) { 
                goto cw; 
            } 
            if ($x0) { 
                goto ep; 
            } 
            $P1->appId = $H2; 
            goto wr; 
            ep: 
            $P1["appId"] = $H2; 
            wr: 
            return $P1; 
            cw: 
            XL: 
        } 
        iT: 
        return false; 
    } 
    public function get_plugin_config() 
    { 
        $Pu = $this->mo_oauth_client_get_option("mo_oauth_client_config"); 
        return !$Pu || empty($Pu) ? new Config(array()) : $Pu; 
    } 
    public function get_app_list() 
    { 
        return $this->mo_oauth_client_get_option("mo_oauth_apps_list") ? $this->mo_oauth_client_get_option("mo_oauth_apps_list") : false; 
    } 
    public function get_app_by_name($qR = '') 
    { 
        $Hr = $this->get_app_list(); 
        if ($Hr) { 
            goto GN; 
        } 
        return false; 
        GN: 
        if (!('' === $qR || false === $qR)) { 
            goto p6; 
        } 
        $rI = array_values($Hr); 
        return isset($rI[0]) ? $rI[0] : false; 
        p6: 
        foreach ($Hr as $vv => $Xi) { 
            if (!($qR === $vv)) { 
                goto TX; 
            } 
            return $Xi; 
            TX: 
            if (!((int) $qR === $vv)) { 
                goto Jp; 
            } 
            return $Xi; 
            Jp: 
            Bk: 
        } 
        Um: 
        return false; 
    } 
    public function get_default_app_by_code_name($qR = '') 
    { 
        $Hr = $this->mo_oauth_client_get_option("mo_oauth_apps_list") ? $this->mo_oauth_client_get_option("mo_oauth_apps_list") : false; 
        if ($Hr) { 
            goto Jy; 
        } 
        return false; 
        Jy: 
        if (!('' === $qR)) { 
            goto qD; 
        } 
        $rI = array_values($Hr); 
        return isset($rI[0]) ? $rI[0] : false; 
        qD: 
        foreach ($Hr as $vv => $Xi) { 
            $cF = $Xi->get_app_name(); 
            if (!($qR === $cF)) { 
                goto uf; 
            } 
            return $this->get_default_app($Xi->get_app_config("app_type"), true); 
            uf: 
            rc: 
        } 
        NV: 
        return false; 
    } 
    public function set_app_by_name($qR, $vX) 
    { 
        $Hr = $this->mo_oauth_client_get_option("mo_oauth_apps_list") ? $this->mo_oauth_client_get_option("mo_oauth_apps_list") : false; 
        if ($Hr) { 
            goto c_; 
        } 
        return false; 
        c_: 
        foreach ($Hr as $vv => $Xi) { 
            if (!(gettype($vv) === "integer")) { 
                goto cG; 
            } 
            $vv = strval($vv); 
            cG: 
            if (!($qR === $vv)) { 
                goto Vg; 
            } 
            $Hr[$vv] = new App($vX); 
            $Hr[$vv]->set_app_name($vv); 
            $this->mo_oauth_client_update_option("mo_oauth_apps_list", $Hr); 
            return true; 
            Vg: 
            Bo: 
        } 
        hu: 
        return false; 
    } 
    public function mo_oauth_jhuyn_jgsukaj($CG, $iR) 
    { 
        return $this->mo_oauth_jkhuiysuayhbw($CG, $iR); 
    } 
    public function mo_oauth_jkhuiysuayhbw($V7, $Eh) 
    { 
        $k0 = 0; 
        $VW = false; 
        $Wb = $this->mo_oauth_client_get_option("mo_oauth_authorizations"); 
        if (empty($Wb)) { 
            goto Dy; 
        } 
        $k0 = $this->mo_oauth_client_get_option("mo_oauth_authorizations"); 
        Dy: 
        $user = $this->mo_oauth_hjsguh_kiishuyauh878gs($V7, $Eh); 
        if (!$user) { 
            goto h0; 
        } 
        ++$k0; 
        h0: 
        $this->mo_oauth_client_update_option("mo_oauth_authorizations", $k0); 
        if (!($k0 >= 10)) { 
            goto JN; 
        } 
        $H4 = base64_decode("bW9fb2F1dGhfZmxhZw=="); 
        $this->mo_oauth_client_update_option($H4, true); 
        JN: 
        return $user; 
    } 
    public function mo_oauth_hjsguh_kiishuyauh878gs($KS, $cf) 
    { 
        $Rw = 10; 
        $rN = false; 
        $qs = false; 
        $Pu = apply_filters("mo_oauth_password_policy_manager", $Rw); 
        if (!is_array($Pu)) { 
            goto SC; 
        } 
        $Rw = intval($Pu["password_length"]); 
        $rN = $Pu["special_characters"]; 
        $qs = $Pu["extra_special_characters"]; 
        SC: 
        $HB = wp_generate_password($Rw, $rN, $qs); 
        $Zo = is_email($KS) ? wp_create_user($KS, $HB, $KS) : wp_create_user($KS, $HB); 
        $Uo = array("ID" => $Zo, "user_email" => $KS, "user_login" => $cf, "user_nicename" => $cf, "first_name" => $cf); 
        do_action("user_register", $Zo, $Uo); 
        $user = get_user_by("login", $KS); 
        wp_update_user(array("ID" => $Zo, "first_name" => $cf)); 
        return $user; 
    } 
    public function check_versi($n_) 
    { 
        return $this->get_versi() >= $n_; 
    } 
    public function is_multisite_versi() 
    { 
        return $this->get_versi() >= 6 || $this->get_versi() == 3; 
    } 
    public function get_versi() 
    { 
        return VERSION === "mo_multisite_all_inclusive_version" ? self::ALL_INCLUSIVE_MULTISITE : (VERSION === "mo_multisite_premium_version" ? self::MULTISITE_PREMIUM : (VERSION === "mo_multisite_enterprise_version" ? self::MULTISITE_ENTERPRISE : (VERSION === "mo_all_inclusive_version" ? self::ALL_INCLUSIVE_SINGLE_SITE : (VERSION === "mo_enterprise_version" ? self::ENTERPRISE : (VERSION === "mo_premium_version" ? self::PREMIUM : (VERSION === "mo_standard_version" ? self::STANDARD : self::FREE)))))); 
    } 
    public function get_plan_type_versi() 
    { 
        switch ($this->get_versi()) { 
            case self::ALL_INCLUSIVE_MULTISITE: 
                return "ALL_INCLUSIVE_MULTISITE"; 
            case self::MULTISITE_PREMIUM: 
                return "MULTISITE_PREMIUM"; 
            case self::MULTISITE_ENTERPRISE: 
                return "MULTISITE_ENTERPRISE"; 
            case self::ALL_INCLUSIVE_SINGLE_SITE: 
                return "ENTERPRISE"; 
            case self::ENTERPRISE: 
                return "ENTERPRISE"; 
            case self::PREMIUM: 
                return ''; 
            case self::STANDARD: 
                return "STANDARD"; 
            case self::FREE: 
            default: 
                return "FREE"; 
        } 
        Rl: 
        bX: 
    } 
    public function get_versi_str() 
    { 
        switch ($this->get_versi()) { 
            case self::ALL_INCLUSIVE_MULTISITE: 
                return "ALL_INCLUSIVE_MULTISITE"; 
            case self::MULTISITE_PREMIUM: 
                return "MULTISITE_PREMIUM"; 
            case self::MULTISITE_ENTERPRISE: 
                return "MULTISITE_ENTERPRISE"; 
            case self::ALL_INCLUSIVE_SINGLE_SITE: 
                return "ALL_INCLUSIVE_SINGLE_SITE"; 
            case self::ENTERPRISE: 
                return "ENTERPRISE"; 
            case self::PREMIUM: 
                return "PREMIUM"; 
            case self::STANDARD: 
                return "STANDARD"; 
            case self::FREE: 
            default: 
                return "FREE"; 
        } 
        ZD: 
        US: 
    } 
    public function mo_oauth_client_get_option($vv, $AH = false) 
    { 
        $ih = getenv(strtoupper($vv)); 
        if (!$ih) { 
            goto q9; 
        } 
        $ih = EnvVarResolver::resolve_var($vv, $ih); 
        goto ZX; 
        q9: 
        $ih = is_multisite() && $this->is_multisite && $this->is_multisite_versi() ? get_site_option($vv, $AH) : get_option($vv, $AH); 
        ZX: 
        if (!(!$ih || $AH == $ih)) { 
            goto UO; 
        } 
        return $AH; 
        UO: 
        return $ih; 
    } 
    public function mo_oauth_client_update_option($vv, $ih) 
    { 
        return is_multisite() && $this->is_multisite && $this->is_multisite_versi() ? update_site_option($vv, $ih) : update_option($vv, $ih); 
    } 
    public function mo_oauth_client_delete_option($vv) 
    { 
        return is_multisite() && $this->is_multisite ? delete_site_option($vv) : delete_option($vv); 
    } 
    public function mo_oauth_client_get_main_domain_name() 
    { 
        if (is_multisite() && $this->is_multisite_versi()) { 
            goto xT; 
        } 
        $f5 = site_url(); 
        goto j4; 
        xT: 
        if (defined("DOMAIN_CURRENT_SITE")) { 
            goto GZ; 
        } 
        $mj = get_sites(); 
        $H_ = get_blog_details("1"); 
        $f5 = $H_->domain; 
        goto Ae; 
        GZ: 
        $f5 = DOMAIN_CURRENT_SITE; 
        Ae: 
        j4: 
        return $f5; 
    } 
    public function array_overwrite($z6, $TD, $S5) 
    { 
        if ($S5) { 
            goto C3; 
        } 
        array_push($z6, $TD); 
        return array_unique($z6); 
        C3: 
        foreach ($TD as $vv => $ih) { 
            $z6[$vv] = $ih; 
            A9: 
        } 
        gK: 
        return $z6; 
    } 
    public function gen_rand_str($Rw = 10) 
    { 
        $TB = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 
        $Z9 = strlen($TB); 
        $GC = ''; 
        $iQ = 0; 
        F4: 
        if (!($iQ < $Rw)) { 
            goto FD; 
        } 
        $GC .= $TB[rand(0, $Z9 - 1)]; 
        x3: 
        $iQ++; 
        goto F4; 
        FD: 
        return $GC; 
    } 
    public function parse_url($JO) 
    { 
        $kK = array(); 
        $Yy = explode("?", $JO); 
        $kK["host"] = $Yy[0]; 
        $kK["query"] = isset($Yy[1]) && '' !== $Yy[1] ? $Yy[1] : ''; 
        if (!(empty($kK["query"]) || '' === $kK["query"])) { 
            goto j_; 
        } 
        return $kK; 
        j_: 
        $A0 = []; 
        foreach (explode("&", $kK["query"]) as $c8) { 
            $Yy = explode("=", $c8); 
            if (!(is_array($Yy) && count($Yy) === 2)) { 
                goto K7; 
            } 
            $A0[str_replace("amp;", '', $Yy[0])] = $Yy[1]; 
            K7: 
            if (!(is_array($Yy) && "state" === $Yy[0])) { 
                goto Cf; 
            } 
            $Yy = explode("state=", $c8); 
            $A0["state"] = $Yy[1]; 
            Cf: 
            lU: 
        } 
        dS: 
        $kK["query"] = is_array($A0) && !empty($A0) ? $A0 : []; 
        return $kK; 
    } 
    public function generate_url($dh) 
    { 
        if (!(!is_array($dh) || empty($dh))) { 
            goto Tp; 
        } 
        return ''; 
        Tp: 
        if (isset($dh["host"])) { 
            goto f0; 
        } 
        return ''; 
        f0: 
        $JO = $dh["host"]; 
        $nk = ''; 
        $iQ = 0; 
        foreach ($dh["query"] as $N1 => $ih) { 
            if (!($iQ !== 0)) { 
                goto kD; 
            } 
            $nk .= "&"; 
            kD: 
            $nk .= "{$N1}={$ih}"; 
            $iQ += 1; 
            qZ: 
        } 
        Az: 
        return $JO . "?" . $nk; 
    } 
    public function getnestedattribute($PA, $vv, $C2 = false) 
    { 
        if (!($vv == '')) { 
            goto OD; 
        } 
        return ''; 
        OD: 
        if (!filter_var($vv, FILTER_VALIDATE_URL)) { 
            goto L6; 
        } 
        if (isset($PA[$vv])) { 
            goto yl; 
        } 
        return ''; 
        goto wo; 
        yl: 
        return $PA[$vv]; 
        wo: 
        L6: 
        $Go = explode(".", $vv); 
        if (count($Go) > 1) { 
            goto Qq; 
        } 
        if (isset($PA[$vv]) && is_array($PA[$vv])) { 
            goto NW; 
        } 
        $hv = $Go[0]; 
        if (isset($PA[$hv])) { 
            goto lO; 
        } 
        return ''; 
        goto uk; 
        lO: 
        if (is_array($PA[$hv])) { 
            goto VR; 
        } 
        return $PA[$hv]; 
        goto Lu; 
        VR: 
        return $PA[$hv][0]; 
        Lu: 
        uk: 
        goto xi; 
        NW: 
        if (!(count($PA[$vv]) >= 1 && $C2 != false)) { 
            goto Ye; 
        } 
        return $PA[$vv]; 
        Ye: 
        if (!isset($PA[$vv][0])) { 
            goto r2; 
        } 
        return $PA[$vv][0]; 
        r2: 
        if (!is_array($PA[$vv])) { 
            goto oc; 
        } 
        return array_key_first($PA[$vv]); 
        oc: 
        xi: 
        goto k2; 
        Qq: 
        $hv = $Go[0]; 
        if (!isset($PA[$hv])) { 
            goto xd; 
        } 
        $mX = array_count_values($Go); 
        if (!($mX[$hv] > 1)) { 
            goto m1; 
        } 
        $vv = substr_replace($vv, '', 0, strlen($hv)); 
        $vv = trim($vv, "."); 
        return $this->getnestedattribute($PA[$hv], $vv); 
        m1: 
        return $this->getnestedattribute($PA[$hv], str_replace($hv . ".", '', $vv)); 
        xd: 
        k2: 
    } 
    public function get_client_ip() 
    { 
        $Jw = ''; 
        if (getenv("HTTP_CLIENT_IP")) { 
            goto d3; 
        } 
        if (getenv("HTTP_X_FORWARDED_FOR")) { 
            goto bN; 
        } 
        if (getenv("HTTP_X_FORWARDED")) { 
            goto xQ; 
        } 
        if (getenv("HTTP_FORWARDED_FOR")) { 
            goto on; 
        } 
        if (getenv("HTTP_FORWARDED")) { 
            goto fH; 
        } 
        if (getenv("REMOTE_ADDR")) { 
            goto dQ; 
        } 
        $Jw = "UNKNOWN"; 
        goto GC; 
        d3: 
        $Jw = getenv("HTTP_CLIENT_IP"); 
        goto GC; 
        bN: 
        $Jw = getenv("HTTP_X_FORWARDED_FOR"); 
        goto GC; 
        xQ: 
        $Jw = getenv("HTTP_X_FORWARDED"); 
        goto GC; 
        on: 
        $Jw = getenv("HTTP_FORWARDED_FOR"); 
        goto GC; 
        fH: 
        $Jw = getenv("HTTP_FORWARDED"); 
        goto GC; 
        dQ: 
        $Jw = getenv("REMOTE_ADDR"); 
        GC: 
        return $Jw; 
    } 
    public function get_current_url() 
    { 
        return (isset($_SERVER["HTTPS"]) ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}"; 
    } 
    public function get_all_headers() 
    { 
        $pu = []; 
        foreach ($_SERVER as $cf => $ih) { 
            if (!(substr($cf, 0, 5) == "HTTP_")) { 
                goto jA; 
            } 
            $pu[str_replace(" ", "-", ucwords(strtolower(str_replace("_", " ", substr($cf, 5)))))] = $ih; 
            jA: 
            FA: 
        } 
        yH: 
        $pu = array_change_key_case($pu, CASE_UPPER); 
        return $pu; 
    } 
    public function store_info($yZ = '', $ih = false) 
    { 
        if (!('' === $yZ || !$ih)) { 
            goto BH; 
        } 
        return; 
        BH: 
        setcookie($yZ, $ih); 
    } 
    public function redirect_user($JO = false, $Vi = false) 
    { 
        if (!(false === $JO)) { 
            goto lF; 
        } 
        return; 
        lF: 
        if (!$Vi) { 
            goto zJ; 
        } 
        echo "		\x9<script>\xd\xa		\x9\x9var myWindow = window.open(""; 
        echo esc_url($JO); 
        echo "", "Test Configuration", "width=600, height=600");
\x9\x9\x9	while(1) {
\x9	\x9		if(myWindow.closed()) {
\xa\x9\x9\x9\x9\x9	$(document).trigger("config_tested");\xd\xa\x9\x9	\x9\x9	break;
\xa			\x9\x9} else {continue;}
	\x9		}
\xa\x9	\x9</script>
\xa		\x9"; 
        zJ: 
        echo "	\x9<script>
\xa	\x9	window.location.replace(""; 
        echo esc_url($JO); 
        echo "");\xd
	\x9</script>\xd
	\x9"; 
        exit; 
    } 
    public function is_ajax_request() 
    { 
        return defined("DOING_AJAX") && DOING_AJAX; 
    } 
    public function deactivate_plugin() 
    { 
        $this->mo_oauth_client_delete_option("host_name"); 
        $this->mo_oauth_client_delete_option("new_registration"); 
        $this->mo_oauth_client_delete_option("mo_oauth_admin_phone"); 
        $this->mo_oauth_client_delete_option("verify_customer"); 
        $this->mo_oauth_client_delete_option("mo_oauth_admin_customer_key"); 
        $this->mo_oauth_client_delete_option("mo_oauth_admin_api_key"); 
        $this->mo_oauth_client_delete_option("mo_oauth_new_customer"); 
        $this->mo_oauth_client_delete_option("customer_token"); 
        $this->mo_oauth_client_delete_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION); 
        $this->mo_oauth_client_delete_option("mo_oauth_registration_status"); 
        $this->mo_oauth_client_delete_option("mo_oauth_new_customer"); 
        $this->mo_oauth_client_delete_option("new_registration"); 
        $this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_height"); 
        $this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_size"); 
        $this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_color"); 
        $this->mo_oauth_client_delete_option("mo_oauth_login_icon_custom_boundary"); 
    } 
    public function base64url_encode($Qb) 
    { 
        return rtrim(strtr(base64_encode($Qb), "+/", "-_"), "="); 
    } 
    public function base64url_decode($Qb) 
    { 
        return base64_decode(str_pad(strtr($Qb, "-_", "+/"), strlen($Qb) % 4, "=", STR_PAD_RIGHT)); 
    } 
    function export_plugin_config($Ot = false) 
    { 
        $KO = []; 
        $xH = []; 
        $iP = []; 
        $KO = $this->get_plugin_config(); 
        $xH = get_site_option("mo_oauth_apps_list"); 
        if (empty($KO)) { 
            goto yo; 
        } 
        $KO = $KO->get_current_config(); 
        yo: 
        if (!is_array($xH)) { 
            goto aH; 
        } 
        foreach ($xH as $QA => $vX) { 
            if (!is_array($vX)) { 
                goto AY; 
            } 
            $vX = new App($vX); 
            AY: 
            $vx = $vX->get_app_config('', false); 
            if (!$Ot) { 
                goto yY; 
            } 
            unset($vx["client_id"]); 
            unset($vx["client_secret"]); 
            yY: 
            $iP[$QA] = $vx; 
            qe: 
        } 
        jt: 
        aH: 
        $UO = ["plugin_config" => $KO, "app_configs" => $iP]; 
        $UO = apply_filters("mo_tr_get_license_config", $UO); 
        return $UO; 
    } 
    private function verify_lk() 
    { 
        $aO = new \MoOauthClient\Standard\Customer(); 
        $Pj = $this->mo_oauth_client_get_option("mo_oauth_license_key"); 
        if (!empty($Pj)) { 
            goto HN; 
        } 
        return 0; 
        HN: 
        $bw = $aO->XfskodsfhHJ($Pj); 
        $bw = json_decode($bw, true); 
        return isset($bw["status"]) && "SUCCESS" === $bw["status"]; 
    } 
    public function is_valid_jwt($yH = '') 
    { 
        $Yy = explode(".", $yH); 
        if (!(count($Yy) === 3)) { 
            goto kJ; 
        } 
        return true; 
        kJ: 
        return false; 
    } 
    public function validate_appslist($Hr) 
    { 
        if (is_array($Hr)) { 
            goto lP; 
        } 
        return false; 
        lP: 
        foreach ($Hr as $vv => $Xi) { 
            if (!$Xi instanceof \MoOauthClient\App) { 
                goto gJ; 
            } 
            goto E_; 
            gJ: 
            return false; 
            E_: 
        } 
        ZU: 
        return true; 
    } 
    public function handle_error($Wk) 
    { 
        do_action("mo_tr_login_errors", $Wk); 
    } 
    public function set_transient($vv, $ih, $D4) 
    { 
        return is_multisite() && $this->is_multisite ? set_site_transient($vv, $ih, $D4) : set_transient($vv, $ih, $D4); 
    } 
    public function get_transient($vv) 
    { 
        return is_multisite() && $this->is_multisite ? get_site_transient($vv) : get_transient($vv); 
    } 
    public function delete_transient($vv) 
    { 
        return is_multisite() && $this->is_multisite ? delete_site_transient($vv) : delete_transient($vv); 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MoOauthClient;

use MoOauthClient\App;
use MoOauthClient\Backup\EnvVarResolver;
class MOUtils
{
    const FREE = 0;
    const STANDARD = 1;
    const PREMIUM = 2;
    const MULTISITE_PREMIUM = 3;
    const ENTERPRISE = 4;
    const ALL_INCLUSIVE_SINGLE_SITE = 5;
    const MULTISITE_ENTERPRISE = 6;
    const ALL_INCLUSIVE_MULTISITE = 7;
    private $is_multisite = false;
    public function __construct()
    {
        remove_action("\141\x64\155\151\156\137\156\x6f\x74\151\143\145\163", array($this, "\x6d\x6f\137\157\141\165\164\x68\137\163\165\143\x63\x65\x73\163\x5f\155\x65\163\x73\141\x67\145"));
        remove_action("\141\144\155\151\x6e\x5f\x6e\x6f\164\x69\143\x65\x73", array($this, "\155\x6f\x5f\x6f\141\165\164\x68\137\145\x72\162\157\x72\137\155\145\x73\x73\141\147\x65"));
        $this->is_multisite = boolval(get_site_option("\155\x6f\x5f\157\141\165\x74\x68\137\151\163\x4d\165\154\x74\x69\x53\x69\x74\145\120\154\165\x67\151\x6e\x52\145\161\165\145\x73\164\x65\x64")) ? true : ($this->is_multisite_versi() ? true : false);
    }
    public function mo_oauth_success_message()
    {
        $Sn = "\x65\162\162\157\162";
        $mE = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
        $uY = array("\141" => array("\x68\162\x65\x66" => array(), "\164\141\x72\x67\x65\164" => array()));
        echo "\74\144\x69\x76\x20\143\154\141\x73\163\75\47" . esc_attr($Sn) . "\47\76\40\x3c\160\76" . wp_kses($mE, $uY) . "\x3c\x2f\x70\x3e\x3c\57\x64\x69\166\76";
    }
    public function mo_oauth_error_message()
    {
        $Sn = "\165\x70\144\141\x74\x65\x64";
        $mE = $this->mo_oauth_client_get_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
        $uY = array("\x61" => array("\x68\162\x65\146" => array(), "\x74\141\x72\x67\x65\x74" => array()));
        echo "\74\144\x69\166\40\143\154\141\163\163\x3d\x27" . esc_attr($Sn) . "\47\x3e\x3c\x70\x3e" . wp_kses($mE, $uY) . "\74\57\x70\x3e\74\x2f\x64\151\166\76";
    }
    public function mo_oauth_show_success_message()
    {
        $en = is_multisite() && $this->is_multisite_versi() ? "\x6e\x65\x74\167\x6f\162\153\137" : '';
        remove_action("{$en}\x61\144\x6d\151\x6e\x5f\x6e\157\x74\151\143\x65\163", array($this, "\x6d\x6f\137\x6f\141\165\164\150\x5f\163\x75\x63\x63\145\x73\x73\137\x6d\145\x73\x73\141\147\x65"));
        add_action("{$en}\x61\x64\155\151\156\x5f\x6e\x6f\x74\151\x63\145\163", array($this, "\x6d\157\x5f\157\x61\165\x74\x68\x5f\x65\x72\x72\x6f\162\137\155\x65\163\x73\141\x67\145"));
    }
    public function mo_oauth_show_error_message()
    {
        $en = is_multisite() && $this->is_multisite_versi() ? "\156\145\164\x77\157\x72\x6b\137" : '';
        remove_action("{$en}\141\144\155\151\156\x5f\156\x6f\164\x69\143\145\163", array($this, "\x6d\157\137\x6f\141\x75\x74\150\137\145\162\x72\x6f\162\137\155\145\x73\x73\141\147\x65"));
        add_action("{$en}\x61\x64\155\x69\156\137\156\x6f\164\151\x63\x65\163", array($this, "\155\157\x5f\x6f\141\165\164\x68\x5f\163\x75\143\143\x65\x73\163\x5f\x6d\145\163\x73\x61\x67\x65"));
    }
    public function mo_oauth_client_filter_error($Wk)
    {
        $Wk = apply_filters("\155\x6f\137\x6f\x61\x75\x74\x68\x5f\x6d\x6f\x64\151\x66\171\x5f\145\x72\x72\157\x72", $Wk);
        return $Wk;
    }
    public function mo_oauth_is_customer_registered()
    {
        $KS = $this->mo_oauth_client_get_option("\x6d\x6f\137\x6f\x61\x75\164\x68\x5f\141\x64\x6d\151\x6e\x5f\x65\x6d\x61\x69\x6c");
        $Hd = $this->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\x75\164\150\137\x61\144\x6d\151\156\137\143\165\x73\164\157\155\145\x72\x5f\153\145\171");
        if (!$KS || !$Hd || !is_numeric(trim($Hd))) {
            goto Qb;
        }
        return 1;
        goto Sc;
        Qb:
        return 0;
        Sc:
    }
    public function mooauthencrypt($ve)
    {
        $sH = $this->mo_oauth_client_get_option("\x63\165\x73\x74\x6f\155\x65\162\x5f\x74\x6f\153\x65\156");
        if ($sH) {
            goto Yk;
        }
        return "\x66\x61\x6c\x73\145";
        Yk:
        $sH = str_split(str_pad('', strlen($ve), $sH, STR_PAD_RIGHT));
        $k1 = str_split($ve);
        foreach ($k1 as $EL => $AC) {
            $fY = ord($AC) + ord($sH[$EL]);
            $k1[$EL] = chr($fY > 255 ? $fY - 256 : $fY);
            Kr:
        }
        t1:
        return base64_encode(join('', $k1));
    }
    public function mooauthdecrypt($ve)
    {
        $ve = base64_decode($ve);
        $sH = $this->mo_oauth_client_get_option("\x63\x75\163\164\157\155\x65\162\x5f\164\x6f\153\x65\x6e");
        if ($sH) {
            goto wi;
        }
        return "\146\x61\x6c\163\x65";
        wi:
        $sH = str_split(str_pad('', strlen($ve), $sH, STR_PAD_RIGHT));
        $k1 = str_split($ve);
        foreach ($k1 as $EL => $AC) {
            $fY = ord($AC) - ord($sH[$EL]);
            $k1[$EL] = chr($fY < 0 ? $fY + 256 : $fY);
            M7:
        }
        Be:
        return join('', $k1);
    }
    public function mo_oauth_check_empty_or_null($ih)
    {
        if (!(!isset($ih) || empty($ih))) {
            goto uv;
        }
        return true;
        uv:
        return false;
    }
    public function is_multisite_plan()
    {
        return $this->is_multisite;
    }
    public function mo_oauth_is_curl_installed()
    {
        if (in_array("\143\165\162\154", get_loaded_extensions())) {
            goto Cg;
        }
        return 0;
        goto kC;
        Cg:
        return 1;
        kC:
    }
    public function mo_oauth_show_curl_error()
    {
        if (!($this->mo_oauth_is_curl_installed() === 0)) {
            goto wN;
        }
        $this->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\74\141\x20\x68\162\x65\146\75\x22\x68\x74\164\160\72\57\57\160\x68\160\56\156\145\164\57\x6d\141\x6e\165\x61\x6c\x2f\145\156\x2f\143\165\x72\154\56\151\x6e\x73\x74\141\154\x6c\x61\164\x69\x6f\156\56\160\150\x70\42\x20\164\x61\162\147\x65\x74\x3d\42\x5f\142\x6c\141\156\x6b\42\x3e\x50\110\x50\x20\x43\x55\x52\114\40\145\x78\164\x65\156\163\x69\157\x6e\x3c\x2f\141\x3e\40\151\163\40\x6e\157\164\40\151\156\163\164\x61\154\154\145\x64\x20\x6f\x72\x20\144\x69\x73\141\x62\154\145\144\56\40\x50\x6c\145\x61\163\145\40\x65\x6e\141\x62\x6c\145\x20\151\x74\40\164\157\x20\x63\x6f\156\x74\151\156\x75\x65\x2e");
        $this->mo_oauth_show_error_message();
        return;
        wN:
    }
    public function mo_oauth_is_clv()
    {
        $vZ = $this->mo_oauth_client_get_option("\155\157\137\x6f\141\x75\164\150\137\154\166");
        $vZ = boolval($vZ) ? $this->mooauthdecrypt($vZ) : "\x66\x61\154\x73\x65";
        $vZ = !empty($this->mo_oauth_client_get_option("\155\157\137\x6f\141\x75\x74\x68\137\x6c\x6b")) && "\x74\162\x75\x65" === $vZ ? 1 : 0;
        if (!($vZ === 0)) {
            goto iE;
        }
        return $this->verify_lk();
        iE:
        return $vZ;
    }
    public function mo_oauth_is_cld()
    {
        if (!(empty($this->mo_oauth_client_get_option("\x6d\157\x5f\157\141\x75\x74\x68\137\154\x64")) || empty($this->mo_oauth_client_get_option("\143\x75\x73\x74\x6f\155\x65\x72\x5f\164\157\153\145\x6e")))) {
            goto Nh;
        }
        return 1;
        Nh:
        $vZ = $this->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\165\x74\x68\137\154\x64");
        $vZ = "\x74\162\165\145" === $this->mooauthdecrypt($vZ) ? 1 : 0;
        return $vZ;
    }
    public function mo_oauth_hbca_xyake()
    {
        if ($this->mo_oauth_is_customer_registered()) {
            goto m0;
        }
        return false;
        m0:
        if ($this->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\165\x74\150\x5f\141\144\x6d\x69\156\137\143\165\163\x74\x6f\x6d\x65\x72\x5f\153\x65\171") > 138200) {
            goto RJ;
        }
        return false;
        goto sc;
        RJ:
        return true;
        sc:
    }
    public function get_default_app($MR, $x0 = false)
    {
        if ($MR) {
            goto JS;
        }
        return false;
        JS:
        $kK = false;
        $HF = file_get_contents(MOC_DIR . "\162\x65\163\157\165\162\143\145\x73\57\x61\x70\x70\x5f\143\157\155\160\x6f\156\x65\156\164\163\57\144\x65\146\x61\165\154\164\141\x70\160\163\x2e\152\163\157\156", true);
        $At = json_decode($HF, $x0);
        foreach ($At as $H2 => $P1) {
            if (!($H2 === $MR)) {
                goto cw;
            }
            if ($x0) {
                goto ep;
            }
            $P1->appId = $H2;
            goto wr;
            ep:
            $P1["\x61\160\x70\111\x64"] = $H2;
            wr:
            return $P1;
            cw:
            XL:
        }
        iT:
        return false;
    }
    public function get_plugin_config()
    {
        $Pu = $this->mo_oauth_client_get_option("\x6d\157\x5f\157\141\x75\164\x68\137\143\x6c\x69\x65\x6e\164\137\x63\x6f\156\x66\x69\147");
        return !$Pu || empty($Pu) ? new Config(array()) : $Pu;
    }
    public function get_app_list()
    {
        return $this->mo_oauth_client_get_option("\155\157\x5f\157\x61\x75\x74\x68\137\141\160\160\163\x5f\154\x69\163\164") ? $this->mo_oauth_client_get_option("\x6d\x6f\137\x6f\x61\x75\164\150\137\141\160\160\163\137\x6c\x69\163\164") : false;
    }
    public function get_app_by_name($qR = '')
    {
        $Hr = $this->get_app_list();
        if ($Hr) {
            goto GN;
        }
        return false;
        GN:
        if (!('' === $qR || false === $qR)) {
            goto p6;
        }
        $rI = array_values($Hr);
        return isset($rI[0]) ? $rI[0] : false;
        p6:
        foreach ($Hr as $vv => $Xi) {
            if (!($qR === $vv)) {
                goto TX;
            }
            return $Xi;
            TX:
            if (!((int) $qR === $vv)) {
                goto Jp;
            }
            return $Xi;
            Jp:
            Bk:
        }
        Um:
        return false;
    }
    public function get_default_app_by_code_name($qR = '')
    {
        $Hr = $this->mo_oauth_client_get_option("\155\157\x5f\x6f\x61\x75\164\x68\x5f\x61\160\160\x73\137\154\151\163\164") ? $this->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\x75\164\x68\137\x61\x70\x70\x73\137\x6c\151\163\x74") : false;
        if ($Hr) {
            goto Jy;
        }
        return false;
        Jy:
        if (!('' === $qR)) {
            goto qD;
        }
        $rI = array_values($Hr);
        return isset($rI[0]) ? $rI[0] : false;
        qD:
        foreach ($Hr as $vv => $Xi) {
            $cF = $Xi->get_app_name();
            if (!($qR === $cF)) {
                goto uf;
            }
            return $this->get_default_app($Xi->get_app_config("\x61\x70\x70\x5f\164\x79\160\x65"), true);
            uf:
            rc:
        }
        NV:
        return false;
    }
    public function set_app_by_name($qR, $vX)
    {
        $Hr = $this->mo_oauth_client_get_option("\155\157\137\157\141\x75\164\150\x5f\x61\x70\160\163\137\x6c\151\x73\164") ? $this->mo_oauth_client_get_option("\155\x6f\x5f\157\141\x75\164\150\x5f\141\x70\160\163\x5f\154\151\163\x74") : false;
        if ($Hr) {
            goto c_;
        }
        return false;
        c_:
        foreach ($Hr as $vv => $Xi) {
            if (!(gettype($vv) === "\x69\156\164\x65\147\x65\x72")) {
                goto cG;
            }
            $vv = strval($vv);
            cG:
            if (!($qR === $vv)) {
                goto Vg;
            }
            $Hr[$vv] = new App($vX);
            $Hr[$vv]->set_app_name($vv);
            $this->mo_oauth_client_update_option("\x6d\x6f\137\157\x61\165\164\x68\x5f\141\160\160\x73\x5f\154\x69\163\x74", $Hr);
            return true;
            Vg:
            Bo:
        }
        hu:
        return false;
    }
    public function mo_oauth_jhuyn_jgsukaj($CG, $iR)
    {
        return $this->mo_oauth_jkhuiysuayhbw($CG, $iR);
    }
    public function mo_oauth_jkhuiysuayhbw($V7, $Eh)
    {
        $k0 = 0;
        $VW = false;
        $Wb = $this->mo_oauth_client_get_option("\x6d\x6f\x5f\157\x61\165\164\150\x5f\x61\x75\x74\150\157\x72\151\x7a\x61\164\x69\157\x6e\163");
        if (empty($Wb)) {
            goto Dy;
        }
        $k0 = $this->mo_oauth_client_get_option("\x6d\157\x5f\x6f\141\x75\164\x68\137\141\x75\164\150\x6f\162\151\172\x61\164\x69\x6f\x6e\x73");
        Dy:
        $user = $this->mo_oauth_hjsguh_kiishuyauh878gs($V7, $Eh);
        if (!$user) {
            goto h0;
        }
        ++$k0;
        h0:
        $this->mo_oauth_client_update_option("\x6d\x6f\137\157\141\165\164\150\x5f\141\165\164\x68\157\x72\151\172\141\164\x69\x6f\156\163", $k0);
        if (!($k0 >= 10)) {
            goto JN;
        }
        $H4 = base64_decode("\x62\127\x39\x66\142\x32\x46\61\x64\107\x68\146\x5a\x6d\170\150\x5a\167\x3d\75");
        $this->mo_oauth_client_update_option($H4, true);
        JN:
        return $user;
    }
    public function mo_oauth_hjsguh_kiishuyauh878gs($KS, $cf)
    {
        $Rw = 10;
        $rN = false;
        $qs = false;
        $Pu = apply_filters("\155\x6f\x5f\157\141\165\x74\x68\x5f\160\x61\163\x73\167\x6f\x72\144\137\160\157\154\151\143\x79\137\155\x61\156\141\147\145\x72", $Rw);
        if (!is_array($Pu)) {
            goto SC;
        }
        $Rw = intval($Pu["\x70\141\163\163\167\x6f\162\x64\x5f\154\145\x6e\147\x74\150"]);
        $rN = $Pu["\x73\160\145\x63\x69\x61\154\x5f\x63\150\141\x72\x61\143\x74\145\162\x73"];
        $qs = $Pu["\145\x78\x74\x72\141\x5f\x73\x70\145\x63\x69\x61\x6c\x5f\x63\x68\141\162\x61\x63\x74\x65\x72\x73"];
        SC:
        $HB = wp_generate_password($Rw, $rN, $qs);
        $Zo = is_email($KS) ? wp_create_user($KS, $HB, $KS) : wp_create_user($KS, $HB);
        $Uo = array("\111\x44" => $Zo, "\165\x73\x65\x72\137\145\155\141\x69\154" => $KS, "\165\163\145\162\137\154\x6f\x67\151\156" => $cf, "\165\x73\145\x72\137\156\x69\143\x65\156\x61\155\x65" => $cf, "\146\x69\162\163\164\137\x6e\x61\155\145" => $cf);
        do_action("\x75\x73\145\x72\x5f\162\145\x67\x69\163\x74\x65\162", $Zo, $Uo);
        $user = get_user_by("\x6c\157\x67\151\x6e", $KS);
        wp_update_user(array("\x49\x44" => $Zo, "\x66\151\x72\x73\x74\x5f\156\141\x6d\x65" => $cf));
        return $user;
    }
    public function check_versi($n_)
    {
        return $this->get_versi() >= $n_;
    }
    public function is_multisite_versi()
    {
        return $this->get_versi() >= 6 || $this->get_versi() == 3;
    }
    public function get_versi()
    {
        return VERSION === "\x6d\157\137\x6d\x75\x6c\x74\x69\163\151\x74\145\137\141\154\154\137\151\x6e\143\154\165\x73\151\x76\x65\137\166\x65\162\163\151\157\156" ? self::ALL_INCLUSIVE_MULTISITE : (VERSION === "\155\x6f\137\155\165\154\x74\151\163\x69\x74\x65\137\160\162\145\x6d\x69\165\x6d\x5f\166\145\162\163\151\157\156" ? self::MULTISITE_PREMIUM : (VERSION === "\x6d\157\x5f\x6d\165\154\x74\151\163\x69\164\x65\x5f\x65\x6e\164\145\x72\160\162\x69\163\145\x5f\166\x65\x72\x73\151\x6f\x6e" ? self::MULTISITE_ENTERPRISE : (VERSION === "\155\157\x5f\x61\154\154\x5f\151\x6e\143\154\165\x73\x69\166\x65\137\166\145\162\x73\151\157\156" ? self::ALL_INCLUSIVE_SINGLE_SITE : (VERSION === "\x6d\157\137\x65\156\x74\145\162\x70\x72\x69\163\x65\137\x76\145\162\163\x69\157\x6e" ? self::ENTERPRISE : (VERSION === "\155\x6f\x5f\160\162\x65\x6d\x69\x75\155\137\166\145\162\x73\x69\157\156" ? self::PREMIUM : (VERSION === "\x6d\157\137\163\x74\141\156\x64\x61\x72\x64\137\x76\x65\x72\163\151\x6f\x6e" ? self::STANDARD : self::FREE))))));
    }
    public function get_plan_type_versi()
    {
        switch ($this->get_versi()) {
            case self::ALL_INCLUSIVE_MULTISITE:
                return "\101\x4c\x4c\x5f\x49\116\x43\x4c\125\x53\111\x56\x45\137\x4d\x55\x4c\124\x49\123\111\x54\105";
            case self::MULTISITE_PREMIUM:
                return "\x4d\125\114\124\x49\123\x49\124\x45\x5f\x50\x52\105\115\x49\125\115";
            case self::MULTISITE_ENTERPRISE:
                return "\115\125\x4c\124\x49\x53\111\124\x45\137\x45\x4e\124\x45\122\x50\122\111\x53\105";
            case self::ALL_INCLUSIVE_SINGLE_SITE:
                return "\105\116\124\105\x52\x50\122\x49\123\105";
            case self::ENTERPRISE:
                return "\105\116\124\x45\122\120\122\x49\x53\105";
            case self::PREMIUM:
                return '';
            case self::STANDARD:
                return "\123\124\x41\x4e\x44\x41\122\104";
            case self::FREE:
            default:
                return "\106\122\x45\105";
        }
        Rl:
        bX:
    }
    public function get_versi_str()
    {
        switch ($this->get_versi()) {
            case self::ALL_INCLUSIVE_MULTISITE:
                return "\x41\114\114\x5f\111\x4e\103\x4c\125\123\x49\x56\105\x5f\115\125\x4c\124\x49\123\111\124\x45";
            case self::MULTISITE_PREMIUM:
                return "\x4d\125\x4c\x54\x49\123\111\x54\x45\137\x50\x52\x45\115\111\x55\x4d";
            case self::MULTISITE_ENTERPRISE:
                return "\x4d\x55\114\x54\111\123\111\124\105\137\105\x4e\x54\x45\x52\120\122\x49\123\105";
            case self::ALL_INCLUSIVE_SINGLE_SITE:
                return "\101\114\x4c\x5f\111\116\103\x4c\125\123\x49\x56\x45\x5f\x53\111\116\x47\x4c\x45\137\x53\x49\x54\x45";
            case self::ENTERPRISE:
                return "\105\116\x54\105\122\x50\x52\x49\123\x45";
            case self::PREMIUM:
                return "\x50\122\x45\x4d\x49\x55\115";
            case self::STANDARD:
                return "\123\x54\101\116\x44\x41\x52\104";
            case self::FREE:
            default:
                return "\x46\x52\x45\105";
        }
        ZD:
        US:
    }
    public function mo_oauth_client_get_option($vv, $AH = false)
    {
        $ih = getenv(strtoupper($vv));
        if (!$ih) {
            goto q9;
        }
        $ih = EnvVarResolver::resolve_var($vv, $ih);
        goto ZX;
        q9:
        $ih = is_multisite() && $this->is_multisite && $this->is_multisite_versi() ? get_site_option($vv, $AH) : get_option($vv, $AH);
        ZX:
        if (!(!$ih || $AH == $ih)) {
            goto UO;
        }
        return $AH;
        UO:
        return $ih;
    }
    public function mo_oauth_client_update_option($vv, $ih)
    {
        return is_multisite() && $this->is_multisite && $this->is_multisite_versi() ? update_site_option($vv, $ih) : update_option($vv, $ih);
    }
    public function mo_oauth_client_delete_option($vv)
    {
        return is_multisite() && $this->is_multisite ? delete_site_option($vv) : delete_option($vv);
    }
    public function mo_oauth_client_get_main_domain_name()
    {
        if (is_multisite() && $this->is_multisite_versi()) {
            goto xT;
        }
        $f5 = site_url();
        goto j4;
        xT:
        if (defined("\104\117\x4d\101\x49\116\137\x43\125\122\x52\105\116\124\137\x53\x49\124\105")) {
            goto GZ;
        }
        $mj = get_sites();
        $H_ = get_blog_details("\61");
        $f5 = $H_->domain;
        goto Ae;
        GZ:
        $f5 = DOMAIN_CURRENT_SITE;
        Ae:
        j4:
        return $f5;
    }
    public function array_overwrite($z6, $TD, $S5)
    {
        if ($S5) {
            goto C3;
        }
        array_push($z6, $TD);
        return array_unique($z6);
        C3:
        foreach ($TD as $vv => $ih) {
            $z6[$vv] = $ih;
            A9:
        }
        gK:
        return $z6;
    }
    public function gen_rand_str($Rw = 10)
    {
        $TB = "\x61\142\x63\x64\145\146\147\150\151\152\x6b\154\x6d\x6e\157\x70\161\162\163\x74\x75\x76\x77\x78\171\172\101\x42\x43\x44\105\106\107\110\111\x4a\113\114\x4d\x4e\x4f\x50\121\x52\123\124\125\x56\127\x58\x59\x5a";
        $Z9 = strlen($TB);
        $GC = '';
        $iQ = 0;
        F4:
        if (!($iQ < $Rw)) {
            goto FD;
        }
        $GC .= $TB[rand(0, $Z9 - 1)];
        x3:
        $iQ++;
        goto F4;
        FD:
        return $GC;
    }
    public function parse_url($JO)
    {
        $kK = array();
        $Yy = explode("\x3f", $JO);
        $kK["\150\157\163\x74"] = $Yy[0];
        $kK["\x71\165\145\162\171"] = isset($Yy[1]) && '' !== $Yy[1] ? $Yy[1] : '';
        if (!(empty($kK["\x71\165\x65\162\171"]) || '' === $kK["\161\165\145\162\x79"])) {
            goto j_;
        }
        return $kK;
        j_:
        $A0 = [];
        foreach (explode("\46", $kK["\161\x75\145\162\171"]) as $c8) {
            $Yy = explode("\75", $c8);
            if (!(is_array($Yy) && count($Yy) === 2)) {
                goto K7;
            }
            $A0[str_replace("\141\155\x70\73", '', $Yy[0])] = $Yy[1];
            K7:
            if (!(is_array($Yy) && "\x73\x74\x61\x74\145" === $Yy[0])) {
                goto Cf;
            }
            $Yy = explode("\163\x74\x61\x74\x65\75", $c8);
            $A0["\x73\x74\141\164\x65"] = $Yy[1];
            Cf:
            lU:
        }
        dS:
        $kK["\x71\x75\145\x72\171"] = is_array($A0) && !empty($A0) ? $A0 : [];
        return $kK;
    }
    public function generate_url($dh)
    {
        if (!(!is_array($dh) || empty($dh))) {
            goto Tp;
        }
        return '';
        Tp:
        if (isset($dh["\x68\x6f\x73\x74"])) {
            goto f0;
        }
        return '';
        f0:
        $JO = $dh["\x68\x6f\163\x74"];
        $nk = '';
        $iQ = 0;
        foreach ($dh["\x71\165\x65\x72\x79"] as $N1 => $ih) {
            if (!($iQ !== 0)) {
                goto kD;
            }
            $nk .= "\46";
            kD:
            $nk .= "{$N1}\x3d{$ih}";
            $iQ += 1;
            qZ:
        }
        Az:
        return $JO . "\77" . $nk;
    }
    public function getnestedattribute($PA, $vv, $C2 = false)
    {
        if (!($vv == '')) {
            goto OD;
        }
        return '';
        OD:
        if (!filter_var($vv, FILTER_VALIDATE_URL)) {
            goto L6;
        }
        if (isset($PA[$vv])) {
            goto yl;
        }
        return '';
        goto wo;
        yl:
        return $PA[$vv];
        wo:
        L6:
        $Go = explode("\x2e", $vv);
        if (count($Go) > 1) {
            goto Qq;
        }
        if (isset($PA[$vv]) && is_array($PA[$vv])) {
            goto NW;
        }
        $hv = $Go[0];
        if (isset($PA[$hv])) {
            goto lO;
        }
        return '';
        goto uk;
        lO:
        if (is_array($PA[$hv])) {
            goto VR;
        }
        return $PA[$hv];
        goto Lu;
        VR:
        return $PA[$hv][0];
        Lu:
        uk:
        goto xi;
        NW:
        if (!(count($PA[$vv]) >= 1 && $C2 != false)) {
            goto Ye;
        }
        return $PA[$vv];
        Ye:
        if (!isset($PA[$vv][0])) {
            goto r2;
        }
        return $PA[$vv][0];
        r2:
        if (!is_array($PA[$vv])) {
            goto oc;
        }
        return array_key_first($PA[$vv]);
        oc:
        xi:
        goto k2;
        Qq:
        $hv = $Go[0];
        if (!isset($PA[$hv])) {
            goto xd;
        }
        $mX = array_count_values($Go);
        if (!($mX[$hv] > 1)) {
            goto m1;
        }
        $vv = substr_replace($vv, '', 0, strlen($hv));
        $vv = trim($vv, "\x2e");
        return $this->getnestedattribute($PA[$hv], $vv);
        m1:
        return $this->getnestedattribute($PA[$hv], str_replace($hv . "\x2e", '', $vv));
        xd:
        k2:
    }
    public function get_client_ip()
    {
        $Jw = '';
        if (getenv("\x48\x54\x54\x50\x5f\103\114\111\x45\116\124\x5f\x49\120")) {
            goto d3;
        }
        if (getenv("\110\x54\124\120\x5f\130\x5f\106\117\x52\127\101\122\104\105\104\x5f\x46\117\x52")) {
            goto bN;
        }
        if (getenv("\x48\x54\x54\x50\137\x58\137\x46\117\122\x57\x41\x52\x44\x45\x44")) {
            goto xQ;
        }
        if (getenv("\110\124\124\x50\137\106\117\x52\127\101\x52\x44\x45\104\137\x46\x4f\122")) {
            goto on;
        }
        if (getenv("\110\x54\124\120\137\x46\x4f\x52\127\101\x52\x44\x45\x44")) {
            goto fH;
        }
        if (getenv("\x52\x45\115\117\x54\105\x5f\x41\104\x44\x52")) {
            goto dQ;
        }
        $Jw = "\125\116\113\x4e\x4f\127\116";
        goto GC;
        d3:
        $Jw = getenv("\x48\x54\124\x50\x5f\103\x4c\111\105\x4e\x54\x5f\x49\x50");
        goto GC;
        bN:
        $Jw = getenv("\110\x54\x54\120\x5f\x58\137\106\117\x52\127\x41\x52\x44\x45\x44\137\x46\x4f\x52");
        goto GC;
        xQ:
        $Jw = getenv("\110\124\x54\x50\137\130\x5f\106\x4f\122\x57\101\x52\x44\x45\104");
        goto GC;
        on:
        $Jw = getenv("\x48\124\124\x50\137\x46\x4f\x52\x57\101\122\104\105\104\x5f\106\117\x52");
        goto GC;
        fH:
        $Jw = getenv("\x48\x54\124\120\x5f\x46\117\x52\127\x41\x52\x44\105\x44");
        goto GC;
        dQ:
        $Jw = getenv("\122\105\115\117\124\x45\137\x41\104\104\x52");
        GC:
        return $Jw;
    }
    public function get_current_url()
    {
        return (isset($_SERVER["\110\x54\124\120\x53"]) ? "\x68\164\x74\160\x73" : "\x68\164\164\160") . "\72\x2f\57{$_SERVER["\110\124\124\x50\137\110\x4f\x53\x54"]}{$_SERVER["\x52\x45\x51\125\x45\123\x54\137\125\122\x49"]}";
    }
    public function get_all_headers()
    {
        $pu = [];
        foreach ($_SERVER as $cf => $ih) {
            if (!(substr($cf, 0, 5) == "\x48\x54\x54\x50\x5f")) {
                goto jA;
            }
            $pu[str_replace("\x20", "\x2d", ucwords(strtolower(str_replace("\137", "\40", substr($cf, 5)))))] = $ih;
            jA:
            FA:
        }
        yH:
        $pu = array_change_key_case($pu, CASE_UPPER);
        return $pu;
    }
    public function store_info($yZ = '', $ih = false)
    {
        if (!('' === $yZ || !$ih)) {
            goto BH;
        }
        return;
        BH:
        setcookie($yZ, $ih);
    }
    public function redirect_user($JO = false, $Vi = false)
    {
        if (!(false === $JO)) {
            goto lF;
        }
        return;
        lF:
        if (!$Vi) {
            goto zJ;
        }
        echo "\11\11\x9\x3c\x73\x63\x72\151\160\x74\76\xd\xa\11\11\x9\x9\166\141\162\40\155\x79\127\151\156\x64\157\167\40\x3d\40\x77\151\x6e\x64\x6f\167\56\157\160\145\156\50\x22";
        echo esc_url($JO);
        echo "\42\54\x20\x22\124\145\163\x74\40\103\157\x6e\x66\151\147\165\162\x61\164\151\x6f\156\x22\54\x20\x22\x77\x69\x64\x74\x68\75\x36\60\x30\54\x20\x68\x65\151\x67\150\x74\x3d\x36\x30\60\42\x29\x3b\15\12\x9\x9\x9\11\x77\150\x69\x6c\x65\x28\61\51\40\x7b\15\12\x9\11\x9\11\11\x69\x66\x28\155\171\x57\151\156\144\x6f\x77\56\143\154\x6f\163\x65\144\50\x29\51\x20\173\15\xa\x9\x9\x9\x9\x9\11\44\50\144\157\x63\165\x6d\x65\x6e\x74\x29\56\164\162\x69\147\147\x65\x72\50\x22\x63\x6f\156\146\x69\x67\137\x74\x65\163\164\145\144\42\x29\x3b\xd\xa\x9\x9\11\x9\x9\11\x62\x72\145\x61\153\73\15\xa\11\11\11\x9\x9\x7d\40\x65\154\x73\145\x20\x7b\143\x6f\156\164\x69\156\x75\145\x3b\x7d\15\12\11\x9\11\11\175\15\xa\x9\11\x9\74\x2f\163\x63\162\151\160\x74\x3e\15\xa\11\11\x9";
        zJ:
        echo "\11\x9\x3c\x73\x63\x72\151\160\x74\76\15\xa\11\x9\11\167\151\156\x64\157\167\x2e\154\x6f\143\141\x74\x69\x6f\156\56\162\x65\160\154\x61\143\145\50\42";
        echo esc_url($JO);
        echo "\42\x29\x3b\xd\12\11\x9\x3c\x2f\163\143\162\151\160\x74\x3e\xd\12\11\x9";
        exit;
    }
    public function is_ajax_request()
    {
        return defined("\104\117\x49\116\x47\137\x41\112\101\130") && DOING_AJAX;
    }
    public function deactivate_plugin()
    {
        $this->mo_oauth_client_delete_option("\x68\x6f\163\164\x5f\x6e\x61\x6d\145");
        $this->mo_oauth_client_delete_option("\156\x65\x77\x5f\x72\145\x67\x69\163\x74\162\x61\x74\x69\157\x6e");
        $this->mo_oauth_client_delete_option("\155\157\137\157\141\x75\x74\x68\137\141\x64\x6d\x69\156\137\x70\x68\157\x6e\145");
        $this->mo_oauth_client_delete_option("\166\145\x72\151\x66\171\137\x63\x75\163\x74\157\x6d\145\x72");
        $this->mo_oauth_client_delete_option("\155\157\x5f\157\141\x75\164\150\x5f\141\144\x6d\x69\x6e\137\x63\165\x73\x74\157\x6d\145\162\x5f\x6b\x65\171");
        $this->mo_oauth_client_delete_option("\x6d\157\137\157\141\x75\164\150\137\x61\144\155\x69\156\137\141\160\151\137\x6b\x65\x79");
        $this->mo_oauth_client_delete_option("\155\x6f\137\157\x61\x75\x74\x68\137\156\x65\x77\x5f\143\x75\163\x74\157\155\x65\162");
        $this->mo_oauth_client_delete_option("\143\x75\x73\x74\x6f\155\x65\x72\137\x74\x6f\x6b\145\156");
        $this->mo_oauth_client_delete_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION);
        $this->mo_oauth_client_delete_option("\x6d\157\137\157\x61\165\164\150\x5f\x72\145\x67\151\163\164\162\x61\x74\x69\x6f\x6e\x5f\163\x74\141\x74\165\163");
        $this->mo_oauth_client_delete_option("\x6d\157\x5f\x6f\141\165\164\150\137\156\x65\x77\137\143\165\x73\164\157\155\x65\162");
        $this->mo_oauth_client_delete_option("\x6e\145\x77\x5f\x72\145\147\x69\x73\x74\162\x61\x74\x69\x6f\156");
        $this->mo_oauth_client_delete_option("\x6d\x6f\x5f\x6f\141\x75\164\150\137\154\x6f\x67\x69\156\137\151\143\x6f\x6e\137\x63\165\x73\x74\157\155\137\150\145\x69\147\150\x74");
        $this->mo_oauth_client_delete_option("\155\157\x5f\x6f\x61\x75\164\x68\137\x6c\157\x67\x69\156\137\151\x63\157\x6e\137\143\165\x73\x74\x6f\155\x5f\x73\151\172\x65");
        $this->mo_oauth_client_delete_option("\155\157\x5f\x6f\141\x75\164\150\137\x6c\x6f\147\151\156\x5f\x69\x63\157\x6e\x5f\x63\x75\x73\x74\x6f\155\x5f\x63\157\x6c\157\162");
        $this->mo_oauth_client_delete_option("\155\x6f\x5f\157\141\x75\x74\150\x5f\x6c\x6f\x67\151\156\137\151\143\157\156\137\143\165\163\x74\157\x6d\x5f\x62\157\165\x6e\x64\141\x72\x79");
    }
    public function base64url_encode($Qb)
    {
        return rtrim(strtr(base64_encode($Qb), "\x2b\x2f", "\55\x5f"), "\x3d");
    }
    public function base64url_decode($Qb)
    {
        return base64_decode(str_pad(strtr($Qb, "\55\137", "\x2b\x2f"), strlen($Qb) % 4, "\75", STR_PAD_RIGHT));
    }
    function export_plugin_config($Ot = false)
    {
        $KO = [];
        $xH = [];
        $iP = [];
        $KO = $this->get_plugin_config();
        $xH = get_site_option("\x6d\x6f\137\x6f\141\165\164\150\x5f\141\160\160\163\137\154\x69\x73\164");
        if (empty($KO)) {
            goto yo;
        }
        $KO = $KO->get_current_config();
        yo:
        if (!is_array($xH)) {
            goto aH;
        }
        foreach ($xH as $QA => $vX) {
            if (!is_array($vX)) {
                goto AY;
            }
            $vX = new App($vX);
            AY:
            $vx = $vX->get_app_config('', false);
            if (!$Ot) {
                goto yY;
            }
            unset($vx["\x63\x6c\x69\x65\156\x74\x5f\151\144"]);
            unset($vx["\x63\154\151\145\156\164\137\163\145\143\x72\145\164"]);
            yY:
            $iP[$QA] = $vx;
            qe:
        }
        jt:
        aH:
        $UO = ["\x70\154\x75\x67\x69\x6e\137\x63\x6f\x6e\x66\x69\147" => $KO, "\141\x70\160\137\143\x6f\x6e\x66\x69\x67\163" => $iP];
        $UO = apply_filters("\x6d\157\x5f\x74\162\137\147\x65\x74\137\x6c\x69\143\145\x6e\163\145\137\143\x6f\x6e\x66\x69\x67", $UO);
        return $UO;
    }
    private function verify_lk()
    {
        $aO = new \MoOauthClient\Standard\Customer();
        $Pj = $this->mo_oauth_client_get_option("\x6d\x6f\137\157\141\x75\x74\x68\137\154\x69\x63\145\156\163\x65\137\x6b\x65\171");
        if (!empty($Pj)) {
            goto HN;
        }
        return 0;
        HN:
        $bw = $aO->XfskodsfhHJ($Pj);
        $bw = json_decode($bw, true);
        return isset($bw["\163\x74\141\x74\165\163"]) && "\x53\125\103\x43\x45\123\x53" === $bw["\163\164\x61\x74\x75\x73"];
    }
    public function is_valid_jwt($yH = '')
    {
        $Yy = explode("\x2e", $yH);
        if (!(count($Yy) === 3)) {
            goto kJ;
        }
        return true;
        kJ:
        return false;
    }
    public function validate_appslist($Hr)
    {
        if (is_array($Hr)) {
            goto lP;
        }
        return false;
        lP:
        foreach ($Hr as $vv => $Xi) {
            if (!$Xi instanceof \MoOauthClient\App) {
                goto gJ;
            }
            goto E_;
            gJ:
            return false;
            E_:
        }
        ZU:
        return true;
    }
    public function handle_error($Wk)
    {
        do_action("\x6d\x6f\x5f\164\x72\137\154\x6f\x67\151\156\137\145\x72\162\x6f\162\x73", $Wk);
    }
    public function set_transient($vv, $ih, $D4)
    {
        return is_multisite() && $this->is_multisite ? set_site_transient($vv, $ih, $D4) : set_transient($vv, $ih, $D4);
    }
    public function get_transient($vv)
    {
        return is_multisite() && $this->is_multisite ? get_site_transient($vv) : get_transient($vv);
    }
    public function delete_transient($vv)
    {
        return is_multisite() && $this->is_multisite ? delete_site_transient($vv) : delete_transient($vv);
    }
}

Function Calls

None

Variables

None

Stats

MD5 ca949a7431d9effef82b32185486f44c
Eval Count 0
Decode Time 68 ms