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\Backup\BackupHandler; use MoOaut..

Decoded Output download

<?php 
 
 
namespace MoOauthClient; 
 
use MoOauthClient\Backup\BackupHandler; 
use MoOauthClient\mc_utils; 
use MoOauthClient\Customer; 
use MoOauthClient\Config; 
class Settings 
{ 
    public $config; 
    public $util; 
    public function __construct() 
    { 
        global $H0; 
        $this->util = $H0; 
        add_action("admin_init", array($this, "miniorange_oauth_save_settings")); 
        add_shortcode("mo_oauth_login", array($this, "mo_oauth_shortcode_login")); 
        add_action("admin_init", array($this, "mo_oauth_debug_log_ajax_hook")); 
        $this->config = $this->util->get_plugin_config(); 
    } 
    function mo_oauth_debug_log_ajax_hook() 
    { 
        add_action("wp_ajax_mo_oauth_debug_ajax", array($this, "mo_oauth_debug_log_ajax")); 
    } 
    function mo_oauth_debug_log_ajax() 
    { 
        if (!isset($_POST["mo_oauth_nonce"]) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_nonce"])), "mo-oauth-Debug-logs-unique-string-nonce")) { 
            goto b6; 
        } 
        switch (sanitize_text_field(wp_unslash($_POST["mo_oauth_option"]))) { 
            case "mo_oauth_reset_debug": 
                $this->mo_oauth_reset_debug(); 
                goto RD; 
        } 
        VB: 
        RD: 
        goto LA; 
        b6: 
        wp_send_json("error"); 
        LA: 
    } 
    public function mo_oauth_reset_debug() 
    { 
        global $H0; 
        if (!current_user_can("administrator")) { 
            goto Yu; 
        } 
        if (isset($_POST["mo_oauth_option"]) and sanitize_text_field(wp_unslash($_POST["mo_oauth_option"])) == "mo_oauth_reset_debug" && isset($_REQUEST["mo_oauth_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST["mo_oauth_nonce"])), "mo-oauth-Debug-logs-unique-string-nonce")) { 
            goto eH; 
        } 
        echo "error"; 
        goto om; 
        eH: 
        $Kk = false; 
        if (!isset($_POST["mo_oauth_mo_oauth_debug_check"])) { 
            goto ql; 
        } 
        $Kk = sanitize_text_field(wp_unslash($_POST["mo_oauth_mo_oauth_debug_check"])); 
        ql: 
        $pk = current_time("timestamp"); 
        $H0->mo_oauth_client_update_option("mo_debug_enable", $Kk); 
        if (!$H0->mo_oauth_client_get_option("mo_debug_enable")) { 
            goto Gm; 
        } 
        $H0->mo_oauth_client_update_option("mo_debug_check", 1); 
        $H0->mo_oauth_client_update_option("mo_debug_time", $pk); 
        Gm: 
        if (!$H0->mo_oauth_client_get_option("mo_debug_enable")) { 
            goto G9; 
        } 
        $H0->mo_oauth_client_update_option("mo_oauth_debug", "mo_oauth_debug" . uniqid()); 
        $Cx = $H0->mo_oauth_client_get_option("mo_oauth_debug"); 
        $B1 = dirname(__DIR__) . DIRECTORY_SEPARATOR . "OAuthHandler" . DIRECTORY_SEPARATOR . $Cx . ".log"; 
        $Ew = fopen($B1, "w"); 
        chmod($B1, 0644); 
        $H0->mo_oauth_client_update_option("mo_debug_check", 1); 
        MO_Oauth_Debug::mo_oauth_log(''); 
        $H0->mo_oauth_client_update_option("mo_debug_check", 0); 
        G9: 
        $PP = $H0->mo_oauth_client_get_option("mo_debug_enable"); 
        $Su["switch_status"] = $PP; 
        wp_send_json($Su); 
        om: 
        Yu: 
    } 
    public function miniorange_oauth_save_settings() 
    { 
        global $H0; 
        $mA = $H0->get_plugin_config()->get_current_config(); 
        $tY = "disabled"; 
        if (empty($mA["mo_dte_state"])) { 
            goto z9; 
        } 
        $tY = $H0->mooauthdecrypt($mA["mo_dte_state"]); 
        z9: 
        if (!(isset($_POST["change_miniorange_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["change_miniorange_nonce"])), "change_miniorange") && isset($_POST[\MoOAuthConstants::OPTION]) && "change_miniorange" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto wr; 
        } 
        if (!current_user_can("administrator")) { 
            goto Bj; 
        } 
        mo_oauth_deactivate(); 
        return; 
        Bj: 
        wr: 
        if (!(isset($_POST["mo_oauth_enable_debug_download_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_enable_debug_download_nonce"])), "mo_oauth_enable_debug_download") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_enable_debug_download" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto kO; 
        } 
        if (!current_user_can("administrator")) { 
            goto tR; 
        } 
        $nV = plugin_dir_path(__FILE__) . "/../OAuthHandler/" . $H0->mo_oauth_client_get_option("mo_oauth_debug") . ".log"; 
        if (is_file($nV)) { 
            goto Cp; 
        } 
        echo "404 File not found!"; 
        exit; 
        Cp: 
        $td = filesize($nV); 
        $XE = basename($nV); 
        $sS = strtolower(pathinfo($XE, PATHINFO_EXTENSION)); 
        $I1 = "application/force-download"; 
        if (!ob_get_contents()) { 
            goto Mr; 
        } 
        ob_clean(); 
        Mr: 
        header("Pragma: public"); 
        header("Expires: 0"); 
        header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
        header("Cache-Control: public"); 
        header("Content-Description: File Transfer"); 
        header("Content-Type: {$I1}"); 
        $Mb = "Content-Disposition: attachment; filename=" . $XE . ";"; 
        header($Mb); 
        header("Content-Transfer-Encoding: binary"); 
        header("Content-Length: " . $td); 
        @readfile($nV); 
        exit; 
        tR: 
        kO: 
        if (!(isset($_POST["mo_oauth_clear_log_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_clear_log_nonce"])), "mo_oauth_clear_log") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_clear_log" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto c6; 
        } 
        if (!current_user_can("administrator")) { 
            goto hE; 
        } 
        $nV = plugin_dir_path(__FILE__) . "/../OAuthHandler/" . $H0->mo_oauth_client_get_option("mo_oauth_debug") . ".log"; 
        if (is_file($nV)) { 
            goto Eo; 
        } 
        echo "404 File not found!"; 
        exit; 
        Eo: 
        file_put_contents($nV, ''); 
        file_put_contents($nV, "This is the miniOrange OAuth plugin Debug Log file"); 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Debug Logs cleared successfully."); 
        $this->util->mo_oauth_show_success_message(); 
        hE: 
        c6: 
        if (!(isset($_POST["mo_oauth_register_customer_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_register_customer_nonce"])), "mo_oauth_register_customer") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_register_customer" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto mu; 
        } 
        if (!current_user_can("administrator")) { 
            goto GE; 
        } 
        $U2 = ''; 
        $Zd = ''; 
        $SF = ''; 
        $D8 = ''; 
        $bU = ''; 
        $p5 = ''; 
        $Ri = ''; 
        if (!($this->util->mo_oauth_check_empty_or_null($_POST["email"]) || $this->util->mo_oauth_check_empty_or_null($_POST["password"]) || $this->util->mo_oauth_check_empty_or_null($_POST["confirmPassword"]))) { 
            goto PD; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "All the fields are required. Please enter valid entries."); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        PD: 
        if (strlen($_POST["password"]) < 8 || strlen($_POST["confirmPassword"]) < 8) { 
            goto Nx; 
        } 
        $U2 = isset($_POST["email"]) ? sanitize_email(wp_unslash($_POST["email"])) : ''; 
        $Zd = isset($_POST["phone"]) ? sanitize_text_field(wp_unslash($_POST["phone"])) : ''; 
        $SF = isset($_POST["password"]) ? stripslashes($_POST["password"]) : ''; 
        $D8 = isset($_POST["fname"]) ? sanitize_text_field(wp_unslash($_POST["fname"])) : ''; 
        $bU = isset($_POST["lname"]) ? sanitize_text_field(wp_unslash($_POST["lname"])) : ''; 
        $p5 = isset($_POST["company"]) ? sanitize_text_field(wp_unslash($_POST["company"])) : ''; 
        $Ri = isset($_POST["confirmPassword"]) ? stripslashes($_POST["confirmPassword"]) : ''; 
        goto tS; 
        Nx: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Choose a password with minimum length 8."); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        tS: 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_email", $U2); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_phone", $Zd); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_fname", $D8); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_lname", $bU); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_company", $p5); 
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) { 
            goto zO; 
        } 
        return $this->util->mo_oauth_show_curl_error(); 
        zO: 
        if (strcmp($SF, $Ri) === 0) { 
            goto Cl; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Passwords do not match."); 
        $this->util->mo_oauth_client_delete_option("verify_customer"); 
        $this->util->mo_oauth_show_error_message(); 
        goto uN; 
        Cl: 
        $z5 = new Customer(); 
        $U2 = $this->util->mo_oauth_client_get_option("mo_oauth_admin_email"); 
        $i7 = json_decode($z5->check_customer($SF), true); 
        if (strcasecmp($i7["status"], "CUSTOMER_NOT_FOUND") === 0) { 
            goto Vy; 
        } 
        $this->mo_oauth_get_current_customer($SF); 
        goto xE; 
        Vy: 
        $this->create_customer($SF); 
        xE: 
        uN: 
        GE: 
        mu: 
        if (!(isset($_POST["mo_oauth_verify_customer_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_verify_customer_nonce"])), "mo_oauth_verify_customer") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_verify_customer" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto HY; 
        } 
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) { 
            goto nb; 
        } 
        return $this->util->mo_oauth_show_curl_error(); 
        nb: 
        if (!current_user_can("administrator")) { 
            goto gk; 
        } 
        $U2 = isset($_POST["email"]) ? sanitize_email(wp_unslash($_POST["email"])) : ''; 
        $SF = isset($_POST["password"]) ? stripslashes($_POST["password"]) : ''; 
        if (!($this->util->mo_oauth_check_empty_or_null($U2) || $this->util->mo_oauth_check_empty_or_null($SF))) { 
            goto pj; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "All the fields are required. Please enter valid entries."); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        pj: 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_email", $U2); 
        $z5 = new Customer(); 
        $i7 = $z5->get_customer_key($SF); 
        $Ip = json_decode($i7, true); 
        if (json_last_error() === JSON_ERROR_NONE) { 
            goto gT; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Invalid username or password. Please try again."); 
        $this->util->mo_oauth_show_error_message(); 
        goto np; 
        gT: 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_customer_key", $Ip["id"]); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_api_key", $Ip["apiKey"]); 
        $this->util->mo_oauth_client_update_option("customer_token", $Ip["token"]); 
        if (!isset($cN["phone"])) { 
            goto AT; 
        } 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_phone", $Ip["phone"]); 
        AT: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Customer retrieved successfully"); 
        $this->util->mo_oauth_client_delete_option("verify_customer"); 
        $this->util->mo_oauth_show_success_message(); 
        np: 
        gk: 
        HY: 
        if (!(isset($_POST["mo_oauth_change_email_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_change_email_nonce"])), "mo_oauth_change_email") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_change_email" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto Q4; 
        } 
        if (!current_user_can("administrator")) { 
            goto OV; 
        } 
        $this->util->mo_oauth_client_update_option("verify_customer", ''); 
        $this->util->mo_oauth_client_update_option("mo_oauth_registration_status", ''); 
        $this->util->mo_oauth_client_update_option("new_registration", "true"); 
        OV: 
        Q4: 
        if (!(isset($_POST["mo_oauth_contact_us_query_option_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_contact_us_query_option_nonce"])), "mo_oauth_contact_us_query_option") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_contact_us_query_option" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto bO; 
        } 
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) { 
            goto cx; 
        } 
        return $this->util->mo_oauth_show_curl_error(); 
        cx: 
        if (!current_user_can("administrator")) { 
            goto aw; 
        } 
        $U2 = isset($_POST["mo_oauth_contact_us_email"]) ? sanitize_email(wp_unslash($_POST["mo_oauth_contact_us_email"])) : ''; 
        $Zd = isset($_POST["mo_oauth_contact_us_phone"]) ? sanitize_text_field(wp_unslash($_POST["mo_oauth_contact_us_phone"])) : ''; 
        $El = isset($_POST["mo_oauth_contact_us_query"]) ? sanitize_text_field(wp_unslash($_POST["mo_oauth_contact_us_query"])) : ''; 
        $mp = isset($_POST["mo_oauth_send_plugin_config"]); 
        $z5 = new Customer(); 
        if ($this->util->mo_oauth_check_empty_or_null($U2) || $this->util->mo_oauth_check_empty_or_null($El)) { 
            goto Bs; 
        } 
        $Vp = $z5->submit_contact_us($U2, $Zd, $El, $mp); 
        if (false === $Vp) { 
            goto iX; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Thanks for getting in touch! We shall get back to you shortly."); 
        $this->util->mo_oauth_show_success_message(); 
        goto JM; 
        iX: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Your query could not be submitted. Please try again."); 
        $this->util->mo_oauth_show_error_message(); 
        JM: 
        goto kN; 
        Bs: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Please fill up Email and Query fields to submit your query."); 
        $this->util->mo_oauth_show_error_message(); 
        kN: 
        aw: 
        bO: 
        if (!(isset($_POST["mo_oauth_contact_us_query_option_upgrade_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_contact_us_query_option_upgrade_nonce"])), "mo_oauth_contact_us_query_option_upgrade") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_contact_us_query_option_upgrade" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto ui; 
        } 
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) { 
            goto vn; 
        } 
        return $this->util->mo_oauth_show_curl_error(); 
        vn: 
        if (!current_user_can("administrator")) { 
            goto xi; 
        } 
        $U2 = isset($_POST["mo_oauth_contact_us_email"]) ? sanitize_email(wp_unslash($_POST["mo_oauth_contact_us_email"])) : ''; 
        $m8 = isset($_POST["mo_oauth_current_version"]) ? sanitize_text_field(wp_unslash($_POST["mo_oauth_current_version"])) : ''; 
        $c2 = isset($_POST["mo_oauth_upgrading_to_version"]) ? sanitize_text_field(wp_unslash($_POST["mo_oauth_upgrading_to_version"])) : ''; 
        $U6 = isset($_POST["mo_features_required"]) ? sanitize_text_field(wp_unslash($_POST["mo_features_required"])) : ''; 
        $z5 = new Customer(); 
        if ($this->util->mo_oauth_check_empty_or_null($U2)) { 
            goto kG; 
        } 
        $Vp = $z5->submit_contact_us_upgrade($U2, $m8, $c2, $U6); 
        if (false === $Vp) { 
            goto gy; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Thanks for getting in touch! We shall get back to you shortly with quotation"); 
        $this->util->mo_oauth_show_success_message(); 
        goto vv; 
        gy: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Your query could not be submitted. Please try again."); 
        $this->util->mo_oauth_show_error_message(); 
        vv: 
        goto Yp; 
        kG: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Please fill up Email field to submit your query."); 
        $this->util->mo_oauth_show_error_message(); 
        Yp: 
        xi: 
        ui: 
        if (!($tY == "disabled")) { 
            goto Mz; 
        } 
        if (!(isset($_POST["mo_oauth_restore_backup_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_restore_backup_nonce"])), "mo_oauth_restore_backup") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_restore_backup" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto LJ; 
        } 
        if (!current_user_can("administrator")) { 
            goto Jl; 
        } 
        $t0 = "There was an error uploading the file"; 
        if (isset($_FILES["mo_oauth_client_backup"])) { 
            goto eD; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        eD: 
        if (!function_exists("wp_handle_upload")) { 
            require_once ABSPATH . "wp-admin/includes/file.php"; 
        } 
        $UW = $_FILES["mo_oauth_client_backup"]; 
        if (!(!isset($UW["error"]) || is_array($UW["error"]) || UPLOAD_ERR_OK !== $UW["error"])) { 
            goto OO; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0 . ": " . json_encode($UW["error"], JSON_UNESCAPED_SLASHES)); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        OO: 
        $wg = new info(FILEINFO_MIME_TYPE); 
        $dG = array_search($wg->file($UW["tmp_name"]), array("text" => "text/plain", "json" => "application/json"), true); 
        $cQ = explode(".", $UW["name"]); 
        $cQ = $cQ[count($cQ) - 1]; 
        if (!(false === $dG || $cQ !== "json")) { 
            goto PM; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0 . ": Invalid File Format."); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        PM: 
        $TY = file_get_contents($UW["tmp_name"]); 
        $mA = json_decode($TY, true); 
        if (!(json_last_error() !== JSON_ERROR_NONE)) { 
            goto JO; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0 . ": Invalid File Format."); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        JO: 
        $q0 = BackupHandler::restore_settings($mA); 
        if (!$q0) { 
            goto GB; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Settings restored successfully."); 
        $this->util->mo_oauth_show_success_message(); 
        return; 
        GB: 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "There was an issue while restoring the configuration."); 
        $this->util->mo_oauth_show_error_message(); 
        return; 
        Jl: 
        LJ: 
        if (!(isset($_POST["mo_oauth_download_backup_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_download_backup_nonce"])), "mo_oauth_download_backup") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_download_backup" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) { 
            goto eB; 
        } 
        if (!current_user_can("administrator")) { 
            goto Uf; 
        } 
        $Co = BackupHandler::get_backup_json(); 
        header("Content-Type: application/json"); 
        header("Content-Disposition: attachment; filename="plugin_backup.json""); 
        header("Content-Length: " . strlen($Co)); 
        header("Connection: close"); 
        echo $Co; 
        exit; 
        Uf: 
        eB: 
        Mz: 
        do_action("do_main_settings_internal", $_POST); 
    } 
    public function mo_oauth_get_current_customer($SF) 
    { 
        if (!current_user_can("administrator")) { 
            goto mp; 
        } 
        $z5 = new Customer(); 
        $i7 = $z5->get_customer_key($SF); 
        $Ip = json_decode($i7, true); 
        if (json_last_error() === JSON_ERROR_NONE) { 
            goto qL; 
        } 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "You already have an account with miniOrange. Please enter a valid password."); 
        $this->util->mo_oauth_client_update_option("verify_customer", "true"); 
        $this->util->mo_oauth_show_error_message(); 
        goto x5; 
        qL: 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_customer_key", $Ip["id"]); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_api_key", $Ip["apiKey"]); 
        $this->util->mo_oauth_client_update_option("customer_token", $Ip["token"]); 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Customer retrieved successfully"); 
        $this->util->mo_oauth_client_delete_option("verify_customer"); 
        $this->util->mo_oauth_client_delete_option("new_registration"); 
        $this->util->mo_oauth_show_success_message(); 
        x5: 
        mp: 
    } 
    public function create_customer($SF) 
    { 
        if (!current_user_can("administrator")) { 
            goto VW; 
        } 
        global $H0; 
        $z5 = new Customer(); 
        $Ip = json_decode($z5->create_customer($SF), true); 
        if (strcasecmp($Ip["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") === 0) { 
            goto g0; 
        } 
        if (strcasecmp($Ip["status"], "SUCCESS") === 0) { 
            goto Ym; 
        } 
        goto rd; 
        g0: 
        $this->mo_oauth_get_current_customer($SF); 
        $this->util->mo_oauth_client_delete_option("mo_oauth_new_customer"); 
        goto rd; 
        Ym: 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_customer_key", $Ip["id"]); 
        $this->util->mo_oauth_client_update_option("mo_oauth_admin_api_key", $Ip["apiKey"]); 
        $this->util->mo_oauth_client_update_option("customer_token", $Ip["token"]); 
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Registered successfully."); 
        $this->util->mo_oauth_client_update_option("mo_oauth_registration_status", "MO_OAUTH_REGISTRATION_COMPLETE"); 
        $this->util->mo_oauth_client_update_option("mo_oauth_new_customer", 1); 
        $this->util->mo_oauth_client_delete_option("verify_customer"); 
        $this->util->mo_oauth_client_delete_option("new_registration"); 
        $this->util->mo_oauth_show_success_message(); 
        rd: 
        VW: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MoOauthClient;

use MoOauthClient\Backup\BackupHandler;
use MoOauthClient\mc_utils;
use MoOauthClient\Customer;
use MoOauthClient\Config;
class Settings
{
    public $config;
    public $util;
    public function __construct()
    {
        global $H0;
        $this->util = $H0;
        add_action("\141\144\155\151\156\137\151\156\x69\x74", array($this, "\155\151\156\151\x6f\x72\141\x6e\x67\x65\x5f\x6f\x61\165\164\x68\x5f\x73\141\x76\145\137\x73\x65\x74\x74\151\156\147\x73"));
        add_shortcode("\x6d\x6f\137\x6f\x61\x75\164\x68\x5f\154\157\x67\x69\x6e", array($this, "\155\157\137\157\141\165\x74\150\137\x73\x68\157\x72\x74\x63\x6f\144\x65\x5f\x6c\157\147\151\156"));
        add_action("\x61\x64\x6d\151\156\137\x69\x6e\x69\x74", array($this, "\155\x6f\137\157\x61\x75\164\150\x5f\x64\145\142\x75\x67\137\154\157\x67\x5f\x61\152\x61\170\x5f\150\157\157\x6b"));
        $this->config = $this->util->get_plugin_config();
    }
    function mo_oauth_debug_log_ajax_hook()
    {
        add_action("\167\160\137\x61\152\141\x78\x5f\x6d\x6f\x5f\157\x61\165\164\x68\x5f\x64\145\142\165\147\x5f\x61\152\141\x78", array($this, "\x6d\x6f\x5f\157\141\x75\164\150\x5f\x64\145\x62\x75\x67\x5f\x6c\x6f\147\137\x61\152\x61\170"));
    }
    function mo_oauth_debug_log_ajax()
    {
        if (!isset($_POST["\155\x6f\137\x6f\141\165\164\x68\x5f\156\x6f\x6e\x63\145"]) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\x6f\x5f\x6f\141\165\164\x68\x5f\x6e\157\x6e\x63\x65"])), "\155\x6f\x2d\157\141\x75\164\150\x2d\x44\145\142\165\x67\x2d\x6c\x6f\x67\163\x2d\x75\156\151\161\x75\x65\55\163\x74\x72\151\x6e\147\55\x6e\x6f\156\143\145")) {
            goto b6;
        }
        switch (sanitize_text_field(wp_unslash($_POST["\155\157\137\x6f\141\165\x74\150\x5f\x6f\x70\x74\151\x6f\156"]))) {
            case "\155\157\137\157\x61\x75\x74\150\x5f\x72\x65\163\145\x74\137\x64\x65\142\165\147":
                $this->mo_oauth_reset_debug();
                goto RD;
        }
        VB:
        RD:
        goto LA;
        b6:
        wp_send_json("\x65\162\x72\157\162");
        LA:
    }
    public function mo_oauth_reset_debug()
    {
        global $H0;
        if (!current_user_can("\x61\144\x6d\151\156\x69\x73\164\x72\x61\x74\x6f\x72")) {
            goto Yu;
        }
        if (isset($_POST["\155\x6f\137\x6f\x61\x75\164\150\x5f\157\160\164\151\157\x6e"]) and sanitize_text_field(wp_unslash($_POST["\155\157\x5f\x6f\x61\x75\164\150\137\157\x70\164\151\x6f\156"])) == "\155\x6f\x5f\x6f\141\x75\164\x68\137\162\145\x73\145\x74\137\144\x65\142\x75\147" && isset($_REQUEST["\x6d\x6f\x5f\x6f\x61\x75\x74\150\x5f\156\157\x6e\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST["\155\x6f\137\x6f\141\x75\x74\x68\137\x6e\x6f\x6e\x63\145"])), "\x6d\157\x2d\x6f\x61\x75\164\x68\55\104\145\142\x75\147\55\154\157\x67\x73\x2d\x75\156\x69\161\x75\145\55\163\164\162\x69\156\147\55\x6e\x6f\x6e\x63\145")) {
            goto eH;
        }
        echo "\x65\x72\162\x6f\162";
        goto om;
        eH:
        $Kk = false;
        if (!isset($_POST["\155\157\137\157\141\x75\164\x68\137\155\157\137\x6f\x61\165\164\x68\137\144\x65\x62\165\147\x5f\143\x68\x65\143\x6b"])) {
            goto ql;
        }
        $Kk = sanitize_text_field(wp_unslash($_POST["\x6d\x6f\x5f\157\141\165\x74\150\137\155\157\x5f\157\141\x75\x74\x68\x5f\x64\145\x62\165\x67\137\143\150\145\x63\153"]));
        ql:
        $pk = current_time("\164\151\x6d\145\163\x74\141\155\x70");
        $H0->mo_oauth_client_update_option("\x6d\x6f\x5f\x64\145\x62\165\x67\x5f\x65\156\141\142\154\x65", $Kk);
        if (!$H0->mo_oauth_client_get_option("\x6d\x6f\137\144\145\142\165\x67\137\x65\x6e\141\142\154\145")) {
            goto Gm;
        }
        $H0->mo_oauth_client_update_option("\155\157\x5f\144\x65\x62\x75\147\x5f\143\x68\x65\143\x6b", 1);
        $H0->mo_oauth_client_update_option("\155\x6f\x5f\x64\x65\142\x75\x67\137\x74\x69\155\145", $pk);
        Gm:
        if (!$H0->mo_oauth_client_get_option("\x6d\157\137\x64\145\142\165\x67\137\x65\156\141\x62\x6c\145")) {
            goto G9;
        }
        $H0->mo_oauth_client_update_option("\x6d\x6f\x5f\157\x61\165\x74\150\x5f\144\145\x62\x75\x67", "\155\157\x5f\157\141\x75\x74\x68\137\144\145\142\x75\x67" . uniqid());
        $Cx = $H0->mo_oauth_client_get_option("\155\157\x5f\157\x61\165\x74\x68\x5f\144\x65\142\x75\147");
        $B1 = dirname(__DIR__) . DIRECTORY_SEPARATOR . "\117\101\x75\164\x68\110\141\x6e\x64\154\145\162" . DIRECTORY_SEPARATOR . $Cx . "\x2e\154\157\x67";
        $Ew = fopen($B1, "\167");
        chmod($B1, 0644);
        $H0->mo_oauth_client_update_option("\x6d\157\x5f\144\x65\142\165\x67\x5f\143\150\x65\x63\153", 1);
        MO_Oauth_Debug::mo_oauth_log('');
        $H0->mo_oauth_client_update_option("\x6d\x6f\137\144\x65\x62\165\x67\x5f\143\x68\145\143\x6b", 0);
        G9:
        $PP = $H0->mo_oauth_client_get_option("\x6d\x6f\x5f\x64\145\142\165\147\x5f\145\x6e\141\142\154\145");
        $Su["\163\167\x69\164\143\150\x5f\x73\164\x61\164\165\x73"] = $PP;
        wp_send_json($Su);
        om:
        Yu:
    }
    public function miniorange_oauth_save_settings()
    {
        global $H0;
        $mA = $H0->get_plugin_config()->get_current_config();
        $tY = "\144\x69\x73\141\142\x6c\x65\x64";
        if (empty($mA["\155\x6f\x5f\x64\x74\x65\x5f\x73\x74\141\x74\145"])) {
            goto z9;
        }
        $tY = $H0->mooauthdecrypt($mA["\x6d\x6f\x5f\144\164\145\137\163\x74\141\164\145"]);
        z9:
        if (!(isset($_POST["\143\150\141\x6e\x67\x65\x5f\x6d\x69\x6e\x69\x6f\162\141\156\147\x65\137\156\157\156\143\145"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x63\x68\141\x6e\147\145\x5f\x6d\x69\x6e\x69\x6f\162\x61\x6e\147\145\x5f\x6e\x6f\156\143\x65"])), "\143\150\141\x6e\x67\145\137\155\x69\156\151\x6f\162\141\156\147\x65") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x63\150\141\x6e\147\145\x5f\x6d\x69\156\x69\x6f\162\x61\x6e\x67\x65" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto wr;
        }
        if (!current_user_can("\141\x64\155\151\156\x69\x73\x74\x72\141\x74\x6f\x72")) {
            goto Bj;
        }
        mo_oauth_deactivate();
        return;
        Bj:
        wr:
        if (!(isset($_POST["\x6d\157\137\157\x61\x75\164\x68\137\x65\x6e\141\142\154\x65\x5f\x64\x65\x62\165\x67\137\x64\x6f\167\x6e\154\x6f\x61\x64\x5f\x6e\157\156\143\145"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\x6f\x5f\x6f\141\x75\x74\x68\137\x65\x6e\141\x62\154\x65\x5f\144\145\142\x75\x67\x5f\144\157\x77\156\154\x6f\x61\144\137\156\x6f\x6e\x63\x65"])), "\x6d\157\x5f\157\x61\165\164\150\x5f\x65\156\x61\x62\x6c\x65\x5f\x64\x65\x62\x75\x67\137\144\157\167\x6e\154\x6f\141\144") && isset($_POST[\MoOAuthConstants::OPTION]) && "\155\157\137\x6f\x61\165\x74\x68\137\145\x6e\141\x62\154\145\x5f\144\x65\x62\x75\x67\x5f\x64\x6f\x77\x6e\x6c\x6f\141\144" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto kO;
        }
        if (!current_user_can("\141\x64\155\151\x6e\x69\163\164\x72\141\x74\157\162")) {
            goto tR;
        }
        $nV = plugin_dir_path(__FILE__) . "\57\56\56\57\117\x41\x75\x74\x68\110\141\x6e\x64\154\145\162\x2f" . $H0->mo_oauth_client_get_option("\155\x6f\137\157\141\x75\x74\x68\x5f\144\145\142\165\x67") . "\x2e\154\x6f\147";
        if (is_file($nV)) {
            goto Cp;
        }
        echo "\x34\60\64\x20\106\x69\154\145\x20\156\157\164\x20\x66\157\165\156\144\41";
        exit;
        Cp:
        $td = filesize($nV);
        $XE = basename($nV);
        $sS = strtolower(pathinfo($XE, PATHINFO_EXTENSION));
        $I1 = "\141\x70\160\154\x69\143\141\164\x69\x6f\156\57\x66\157\162\143\145\55\x64\x6f\x77\x6e\154\157\141\x64";
        if (!ob_get_contents()) {
            goto Mr;
        }
        ob_clean();
        Mr:
        header("\120\162\x61\x67\x6d\x61\72\x20\x70\165\142\154\151\143");
        header("\105\x78\160\151\162\145\x73\x3a\40\x30");
        header("\103\x61\143\150\x65\55\x43\157\x6e\164\x72\157\154\72\40\x6d\165\163\164\55\x72\x65\166\x61\x6c\151\x64\x61\x74\145\54\40\x70\x6f\163\x74\x2d\x63\150\145\143\153\x3d\60\x2c\40\160\x72\145\55\x63\x68\145\x63\153\x3d\60");
        header("\103\x61\x63\x68\x65\55\103\157\156\x74\162\157\x6c\x3a\x20\x70\x75\142\x6c\x69\143");
        header("\x43\157\156\x74\x65\x6e\164\x2d\x44\x65\163\x63\162\x69\160\x74\x69\x6f\156\72\x20\106\x69\154\145\x20\x54\x72\141\x6e\163\x66\145\x72");
        header("\103\x6f\156\x74\145\x6e\x74\55\x54\x79\160\x65\x3a\x20{$I1}");
        $Mb = "\x43\157\x6e\x74\x65\156\164\55\x44\x69\x73\x70\x6f\163\151\x74\x69\157\156\x3a\x20\141\x74\x74\x61\143\150\155\x65\x6e\164\73\40\146\151\x6c\x65\x6e\x61\x6d\x65\75" . $XE . "\73";
        header($Mb);
        header("\x43\157\x6e\x74\145\x6e\x74\x2d\x54\162\141\156\163\146\145\162\x2d\x45\156\143\157\x64\151\x6e\147\72\40\x62\151\156\141\x72\x79");
        header("\103\x6f\156\x74\145\156\164\x2d\114\145\x6e\x67\164\x68\x3a\x20" . $td);
        @readfile($nV);
        exit;
        tR:
        kO:
        if (!(isset($_POST["\x6d\157\137\x6f\141\165\164\x68\x5f\x63\x6c\x65\141\x72\x5f\154\x6f\147\x5f\156\157\x6e\143\145"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\157\x5f\157\x61\165\x74\150\x5f\x63\154\x65\x61\162\137\154\x6f\147\137\x6e\x6f\156\x63\x65"])), "\155\x6f\x5f\x6f\x61\165\164\150\x5f\143\154\x65\141\x72\x5f\x6c\x6f\x67") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x6d\x6f\137\x6f\x61\165\x74\150\x5f\143\x6c\x65\x61\162\137\154\157\147" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto c6;
        }
        if (!current_user_can("\141\x64\x6d\x69\x6e\x69\x73\164\162\141\164\157\162")) {
            goto hE;
        }
        $nV = plugin_dir_path(__FILE__) . "\x2f\56\56\x2f\117\x41\x75\164\150\110\x61\156\x64\154\x65\x72\57" . $H0->mo_oauth_client_get_option("\155\157\137\157\141\165\164\150\137\x64\x65\142\x75\147") . "\56\x6c\x6f\147";
        if (is_file($nV)) {
            goto Eo;
        }
        echo "\x34\x30\64\x20\x46\151\154\x65\40\x6e\x6f\x74\x20\x66\157\x75\156\x64\41";
        exit;
        Eo:
        file_put_contents($nV, '');
        file_put_contents($nV, "\124\150\151\x73\40\151\x73\40\164\150\x65\40\155\151\156\x69\117\x72\141\x6e\x67\145\40\x4f\101\165\164\x68\x20\160\154\x75\x67\x69\x6e\x20\104\x65\142\x75\x67\40\114\157\x67\40\x66\151\154\x65");
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\104\x65\x62\x75\x67\x20\x4c\157\147\163\x20\143\x6c\x65\141\x72\x65\x64\x20\163\165\x63\x63\x65\x73\x73\146\x75\x6c\154\171\56");
        $this->util->mo_oauth_show_success_message();
        hE:
        c6:
        if (!(isset($_POST["\x6d\x6f\137\x6f\141\x75\x74\x68\137\162\x65\x67\x69\x73\x74\145\x72\x5f\143\x75\163\x74\157\x6d\145\162\137\156\157\156\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\x6f\x5f\157\141\165\x74\150\137\162\145\x67\x69\163\x74\145\162\137\143\165\x73\164\x6f\155\x65\162\x5f\x6e\x6f\x6e\x63\145"])), "\155\x6f\x5f\x6f\x61\165\164\150\x5f\x72\x65\x67\151\x73\x74\145\162\x5f\143\x75\x73\x74\157\155\145\x72") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x6d\157\x5f\x6f\x61\165\x74\x68\137\162\x65\x67\x69\163\x74\145\162\x5f\143\x75\x73\x74\x6f\155\145\x72" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto mu;
        }
        if (!current_user_can("\x61\144\155\151\156\151\163\x74\x72\x61\164\157\x72")) {
            goto GE;
        }
        $U2 = '';
        $Zd = '';
        $SF = '';
        $D8 = '';
        $bU = '';
        $p5 = '';
        $Ri = '';
        if (!($this->util->mo_oauth_check_empty_or_null($_POST["\x65\x6d\x61\x69\x6c"]) || $this->util->mo_oauth_check_empty_or_null($_POST["\160\x61\163\x73\167\157\x72\144"]) || $this->util->mo_oauth_check_empty_or_null($_POST["\x63\157\156\x66\151\x72\x6d\x50\x61\x73\163\x77\x6f\x72\144"]))) {
            goto PD;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\101\x6c\154\40\164\x68\x65\40\146\x69\145\154\x64\163\40\x61\x72\x65\40\162\x65\161\x75\x69\x72\145\x64\56\x20\x50\x6c\145\141\163\x65\40\145\x6e\x74\x65\162\x20\x76\x61\x6c\151\144\40\145\x6e\164\x72\151\x65\163\x2e");
        $this->util->mo_oauth_show_error_message();
        return;
        PD:
        if (strlen($_POST["\x70\141\163\163\167\157\162\144"]) < 8 || strlen($_POST["\x63\x6f\x6e\146\x69\x72\155\x50\x61\163\163\x77\157\x72\x64"]) < 8) {
            goto Nx;
        }
        $U2 = isset($_POST["\145\155\x61\x69\x6c"]) ? sanitize_email(wp_unslash($_POST["\x65\155\x61\151\154"])) : '';
        $Zd = isset($_POST["\x70\x68\x6f\156\x65"]) ? sanitize_text_field(wp_unslash($_POST["\x70\150\x6f\156\145"])) : '';
        $SF = isset($_POST["\x70\x61\x73\163\167\x6f\162\x64"]) ? stripslashes($_POST["\160\141\x73\163\x77\x6f\162\144"]) : '';
        $D8 = isset($_POST["\146\156\x61\x6d\x65"]) ? sanitize_text_field(wp_unslash($_POST["\x66\156\141\x6d\x65"])) : '';
        $bU = isset($_POST["\154\x6e\x61\x6d\x65"]) ? sanitize_text_field(wp_unslash($_POST["\154\156\x61\155\145"])) : '';
        $p5 = isset($_POST["\x63\x6f\x6d\160\x61\156\171"]) ? sanitize_text_field(wp_unslash($_POST["\143\157\155\x70\x61\156\171"])) : '';
        $Ri = isset($_POST["\x63\x6f\156\146\151\162\x6d\x50\x61\x73\x73\x77\157\162\x64"]) ? stripslashes($_POST["\143\x6f\x6e\x66\x69\162\155\120\141\163\x73\167\157\x72\x64"]) : '';
        goto tS;
        Nx:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x43\150\x6f\157\163\145\40\141\x20\x70\x61\163\163\167\157\162\x64\x20\167\151\164\150\x20\155\x69\156\x69\x6d\x75\x6d\x20\x6c\x65\x6e\147\164\x68\x20\x38\56");
        $this->util->mo_oauth_show_error_message();
        return;
        tS:
        $this->util->mo_oauth_client_update_option("\x6d\157\x5f\x6f\x61\x75\x74\x68\x5f\x61\x64\x6d\x69\x6e\137\x65\x6d\141\151\x6c", $U2);
        $this->util->mo_oauth_client_update_option("\x6d\x6f\x5f\157\141\x75\164\150\137\x61\x64\x6d\x69\x6e\x5f\160\150\157\x6e\145", $Zd);
        $this->util->mo_oauth_client_update_option("\x6d\157\x5f\157\141\x75\x74\150\137\x61\x64\155\151\x6e\x5f\146\156\141\x6d\x65", $D8);
        $this->util->mo_oauth_client_update_option("\x6d\157\137\x6f\141\165\x74\150\x5f\141\x64\155\x69\x6e\137\x6c\x6e\141\x6d\145", $bU);
        $this->util->mo_oauth_client_update_option("\x6d\x6f\x5f\157\x61\165\x74\x68\137\x61\144\155\151\x6e\137\x63\157\155\x70\x61\156\171", $p5);
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) {
            goto zO;
        }
        return $this->util->mo_oauth_show_curl_error();
        zO:
        if (strcmp($SF, $Ri) === 0) {
            goto Cl;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\120\x61\x73\x73\x77\157\x72\144\x73\x20\144\x6f\x20\x6e\x6f\164\40\155\141\x74\x63\150\56");
        $this->util->mo_oauth_client_delete_option("\166\x65\162\151\x66\171\x5f\143\165\x73\164\x6f\x6d\x65\x72");
        $this->util->mo_oauth_show_error_message();
        goto uN;
        Cl:
        $z5 = new Customer();
        $U2 = $this->util->mo_oauth_client_get_option("\155\x6f\137\x6f\141\x75\x74\x68\137\141\x64\x6d\151\x6e\137\145\x6d\141\151\x6c");
        $i7 = json_decode($z5->check_customer($SF), true);
        if (strcasecmp($i7["\163\164\x61\x74\x75\163"], "\x43\x55\123\124\x4f\x4d\x45\x52\137\x4e\x4f\124\x5f\x46\x4f\125\x4e\104") === 0) {
            goto Vy;
        }
        $this->mo_oauth_get_current_customer($SF);
        goto xE;
        Vy:
        $this->create_customer($SF);
        xE:
        uN:
        GE:
        mu:
        if (!(isset($_POST["\155\157\137\x6f\141\165\164\x68\x5f\x76\x65\162\151\x66\171\x5f\143\165\163\x74\157\x6d\145\162\137\156\157\156\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\x6f\137\157\x61\x75\x74\x68\x5f\166\x65\162\x69\146\171\137\x63\x75\163\164\157\x6d\145\x72\x5f\156\157\x6e\143\145"])), "\x6d\157\x5f\x6f\x61\x75\x74\x68\137\166\145\162\x69\x66\171\137\143\x75\x73\164\x6f\x6d\x65\162") && isset($_POST[\MoOAuthConstants::OPTION]) && "\155\x6f\137\157\x61\x75\164\x68\137\x76\145\x72\151\x66\171\x5f\x63\x75\163\164\157\155\145\162" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto HY;
        }
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) {
            goto nb;
        }
        return $this->util->mo_oauth_show_curl_error();
        nb:
        if (!current_user_can("\x61\x64\x6d\x69\x6e\151\163\x74\x72\x61\164\x6f\162")) {
            goto gk;
        }
        $U2 = isset($_POST["\x65\x6d\141\x69\x6c"]) ? sanitize_email(wp_unslash($_POST["\145\155\x61\x69\154"])) : '';
        $SF = isset($_POST["\160\141\163\163\167\157\162\144"]) ? stripslashes($_POST["\x70\x61\163\x73\x77\157\x72\x64"]) : '';
        if (!($this->util->mo_oauth_check_empty_or_null($U2) || $this->util->mo_oauth_check_empty_or_null($SF))) {
            goto pj;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\101\154\154\40\164\150\145\x20\146\x69\x65\x6c\144\x73\40\141\162\145\x20\162\145\161\165\151\162\x65\x64\56\x20\120\154\x65\x61\x73\x65\40\x65\156\164\145\162\x20\x76\x61\x6c\151\144\x20\145\x6e\164\162\151\x65\163\56");
        $this->util->mo_oauth_show_error_message();
        return;
        pj:
        $this->util->mo_oauth_client_update_option("\155\157\137\x6f\141\x75\x74\150\137\141\144\155\x69\156\x5f\x65\155\x61\151\x6c", $U2);
        $z5 = new Customer();
        $i7 = $z5->get_customer_key($SF);
        $Ip = json_decode($i7, true);
        if (json_last_error() === JSON_ERROR_NONE) {
            goto gT;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\111\x6e\x76\141\154\x69\x64\x20\x75\x73\145\162\156\141\155\145\40\x6f\162\40\x70\141\163\163\x77\157\162\144\56\40\x50\x6c\x65\x61\x73\x65\40\164\x72\171\x20\141\x67\x61\x69\x6e\56");
        $this->util->mo_oauth_show_error_message();
        goto np;
        gT:
        $this->util->mo_oauth_client_update_option("\155\x6f\x5f\x6f\141\165\x74\x68\x5f\141\144\x6d\151\x6e\x5f\143\165\163\164\x6f\155\145\162\137\153\x65\x79", $Ip["\x69\x64"]);
        $this->util->mo_oauth_client_update_option("\155\157\x5f\x6f\x61\x75\x74\150\x5f\x61\144\x6d\x69\x6e\x5f\141\x70\151\x5f\153\x65\171", $Ip["\141\160\151\113\x65\171"]);
        $this->util->mo_oauth_client_update_option("\143\165\x73\x74\157\x6d\145\x72\x5f\164\x6f\x6b\x65\156", $Ip["\x74\x6f\x6b\145\156"]);
        if (!isset($cN["\160\x68\157\x6e\145"])) {
            goto AT;
        }
        $this->util->mo_oauth_client_update_option("\x6d\157\x5f\x6f\x61\x75\164\x68\137\x61\144\x6d\151\156\137\160\150\157\156\145", $Ip["\x70\x68\x6f\x6e\145"]);
        AT:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\103\x75\163\x74\x6f\155\x65\162\40\162\x65\x74\x72\x69\x65\x76\145\144\x20\163\x75\143\x63\x65\163\163\x66\165\154\154\x79");
        $this->util->mo_oauth_client_delete_option("\166\x65\162\151\146\171\x5f\143\x75\163\164\x6f\x6d\x65\x72");
        $this->util->mo_oauth_show_success_message();
        np:
        gk:
        HY:
        if (!(isset($_POST["\155\x6f\x5f\x6f\141\165\164\150\137\143\150\141\156\x67\x65\x5f\x65\x6d\x61\x69\x6c\137\x6e\x6f\156\143\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\x6f\x5f\x6f\141\165\164\150\137\143\x68\141\x6e\x67\x65\137\145\155\x61\x69\154\137\x6e\157\x6e\143\x65"])), "\x6d\x6f\137\x6f\x61\165\164\150\137\143\150\x61\x6e\147\x65\137\145\155\x61\151\x6c") && isset($_POST[\MoOAuthConstants::OPTION]) && "\155\x6f\x5f\157\141\x75\x74\150\137\x63\x68\141\156\147\x65\137\x65\155\x61\x69\x6c" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto Q4;
        }
        if (!current_user_can("\141\144\x6d\151\156\151\x73\164\162\141\x74\x6f\162")) {
            goto OV;
        }
        $this->util->mo_oauth_client_update_option("\x76\145\162\151\x66\171\137\x63\x75\163\164\x6f\x6d\145\162", '');
        $this->util->mo_oauth_client_update_option("\x6d\x6f\137\x6f\141\165\x74\150\137\162\x65\147\151\163\x74\162\141\164\151\x6f\x6e\x5f\x73\164\141\x74\x75\x73", '');
        $this->util->mo_oauth_client_update_option("\x6e\145\x77\137\x72\x65\147\x69\x73\x74\x72\141\164\151\x6f\x6e", "\x74\162\x75\x65");
        OV:
        Q4:
        if (!(isset($_POST["\x6d\157\x5f\x6f\x61\165\x74\x68\x5f\x63\157\156\x74\141\x63\x74\137\165\x73\x5f\161\x75\x65\162\x79\137\x6f\160\x74\151\x6f\156\x5f\156\x6f\x6e\143\145"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\x6f\137\x6f\x61\x75\164\x68\137\x63\157\x6e\x74\x61\x63\164\x5f\x75\x73\x5f\161\x75\x65\x72\171\x5f\x6f\160\164\x69\x6f\156\x5f\x6e\157\156\143\x65"])), "\155\x6f\x5f\157\141\x75\x74\x68\137\x63\x6f\x6e\x74\x61\x63\164\x5f\x75\x73\137\x71\165\145\x72\x79\137\x6f\160\164\x69\157\x6e") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x6d\x6f\x5f\157\141\x75\x74\150\x5f\x63\x6f\x6e\x74\141\143\164\137\x75\163\x5f\161\165\145\x72\x79\x5f\157\x70\164\x69\157\x6e" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto bO;
        }
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) {
            goto cx;
        }
        return $this->util->mo_oauth_show_curl_error();
        cx:
        if (!current_user_can("\141\x64\155\x69\156\x69\163\x74\x72\x61\164\157\162")) {
            goto aw;
        }
        $U2 = isset($_POST["\155\157\x5f\157\x61\165\164\150\137\x63\x6f\156\x74\x61\x63\164\x5f\165\x73\x5f\145\x6d\x61\151\154"]) ? sanitize_email(wp_unslash($_POST["\155\157\x5f\157\141\165\164\x68\x5f\x63\x6f\156\x74\x61\x63\x74\137\165\163\137\x65\155\141\151\x6c"])) : '';
        $Zd = isset($_POST["\155\x6f\137\x6f\x61\165\164\150\137\143\x6f\x6e\x74\141\x63\164\137\x75\163\x5f\x70\150\x6f\156\145"]) ? sanitize_text_field(wp_unslash($_POST["\x6d\x6f\x5f\157\x61\165\x74\150\137\143\x6f\156\164\x61\x63\164\137\x75\163\137\x70\x68\157\x6e\x65"])) : '';
        $El = isset($_POST["\155\157\x5f\157\x61\165\x74\150\137\x63\x6f\156\x74\141\x63\164\x5f\x75\163\137\x71\165\x65\162\x79"]) ? sanitize_text_field(wp_unslash($_POST["\x6d\157\x5f\x6f\x61\x75\164\x68\x5f\x63\x6f\156\164\141\x63\x74\x5f\165\x73\x5f\161\165\145\162\171"])) : '';
        $mp = isset($_POST["\x6d\157\137\x6f\x61\x75\164\x68\x5f\x73\145\156\x64\137\160\x6c\165\x67\151\x6e\x5f\143\x6f\156\x66\x69\147"]);
        $z5 = new Customer();
        if ($this->util->mo_oauth_check_empty_or_null($U2) || $this->util->mo_oauth_check_empty_or_null($El)) {
            goto Bs;
        }
        $Vp = $z5->submit_contact_us($U2, $Zd, $El, $mp);
        if (false === $Vp) {
            goto iX;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\124\150\x61\156\153\x73\40\x66\157\162\x20\147\x65\x74\164\x69\x6e\x67\x20\151\156\x20\164\157\165\x63\x68\41\x20\x57\145\40\x73\150\x61\x6c\154\40\147\x65\x74\x20\142\141\143\x6b\x20\x74\157\40\x79\x6f\x75\x20\163\150\157\162\164\x6c\171\56");
        $this->util->mo_oauth_show_success_message();
        goto JM;
        iX:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\157\165\x72\40\161\165\145\x72\171\x20\x63\x6f\165\x6c\x64\x20\x6e\x6f\x74\40\x62\x65\x20\163\x75\142\155\151\164\x74\145\x64\56\x20\x50\x6c\145\141\163\x65\40\x74\162\x79\x20\x61\147\141\151\156\x2e");
        $this->util->mo_oauth_show_error_message();
        JM:
        goto kN;
        Bs:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x50\154\145\141\163\145\40\146\151\x6c\154\x20\165\x70\40\x45\155\x61\151\154\40\141\156\x64\x20\121\165\x65\162\x79\40\x66\x69\x65\x6c\x64\163\x20\x74\157\x20\x73\x75\x62\155\151\164\40\171\x6f\165\162\x20\161\165\145\x72\x79\x2e");
        $this->util->mo_oauth_show_error_message();
        kN:
        aw:
        bO:
        if (!(isset($_POST["\155\x6f\137\157\x61\x75\164\150\x5f\143\157\156\x74\x61\x63\164\137\165\x73\x5f\161\165\145\x72\171\x5f\157\x70\x74\x69\x6f\x6e\x5f\165\x70\x67\x72\141\x64\x65\x5f\x6e\x6f\156\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\157\x5f\157\141\x75\x74\150\x5f\143\157\156\x74\x61\x63\164\137\165\x73\137\161\x75\x65\162\171\x5f\157\x70\164\x69\157\156\x5f\x75\160\x67\x72\x61\x64\x65\137\156\x6f\156\x63\x65"])), "\x6d\157\137\157\141\x75\x74\x68\137\143\157\156\x74\141\x63\164\x5f\165\x73\x5f\x71\165\x65\x72\171\137\x6f\160\164\151\x6f\156\137\x75\x70\x67\162\x61\144\145") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x6d\x6f\x5f\x6f\x61\165\x74\x68\137\143\x6f\x6e\x74\141\143\x74\x5f\165\x73\x5f\161\x75\145\162\171\137\x6f\x70\164\x69\157\x6e\x5f\x75\x70\x67\x72\141\x64\x65" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto ui;
        }
        if (!($this->util->mo_oauth_is_curl_installed() === 0)) {
            goto vn;
        }
        return $this->util->mo_oauth_show_curl_error();
        vn:
        if (!current_user_can("\x61\144\x6d\151\x6e\151\163\x74\162\141\164\157\x72")) {
            goto xi;
        }
        $U2 = isset($_POST["\x6d\x6f\x5f\157\141\x75\164\x68\x5f\143\x6f\x6e\164\x61\x63\164\137\165\x73\x5f\x65\155\141\x69\154"]) ? sanitize_email(wp_unslash($_POST["\155\x6f\x5f\157\x61\165\164\150\137\143\157\156\164\141\143\164\137\165\x73\137\x65\155\141\151\154"])) : '';
        $m8 = isset($_POST["\x6d\157\137\x6f\141\x75\x74\x68\137\143\165\162\162\x65\x6e\164\x5f\x76\x65\x72\x73\x69\x6f\156"]) ? sanitize_text_field(wp_unslash($_POST["\x6d\157\137\x6f\141\165\164\x68\x5f\143\165\162\162\x65\156\x74\x5f\166\x65\x72\163\x69\x6f\x6e"])) : '';
        $c2 = isset($_POST["\x6d\x6f\x5f\157\x61\x75\164\x68\x5f\x75\160\x67\x72\x61\144\151\156\147\x5f\164\157\x5f\166\145\x72\x73\151\x6f\x6e"]) ? sanitize_text_field(wp_unslash($_POST["\155\157\x5f\157\141\165\x74\x68\x5f\x75\x70\x67\162\141\144\151\156\x67\x5f\x74\x6f\137\x76\145\162\163\x69\x6f\x6e"])) : '';
        $U6 = isset($_POST["\155\x6f\x5f\x66\x65\141\164\165\x72\x65\163\137\162\x65\161\x75\151\162\x65\144"]) ? sanitize_text_field(wp_unslash($_POST["\x6d\x6f\137\146\x65\x61\x74\x75\162\145\163\137\162\145\x71\165\151\x72\145\144"])) : '';
        $z5 = new Customer();
        if ($this->util->mo_oauth_check_empty_or_null($U2)) {
            goto kG;
        }
        $Vp = $z5->submit_contact_us_upgrade($U2, $m8, $c2, $U6);
        if (false === $Vp) {
            goto gy;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\124\x68\x61\156\153\163\40\x66\x6f\162\40\147\x65\x74\164\x69\x6e\x67\40\151\156\x20\x74\x6f\165\x63\150\41\x20\127\145\x20\x73\150\141\154\154\40\x67\145\x74\x20\142\x61\x63\x6b\x20\x74\157\x20\171\157\165\40\163\x68\157\x72\x74\x6c\171\40\x77\151\164\150\x20\161\165\x6f\164\x61\164\x69\x6f\x6e");
        $this->util->mo_oauth_show_success_message();
        goto vv;
        gy:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\x6f\165\162\x20\x71\x75\x65\x72\x79\40\143\x6f\x75\x6c\x64\40\156\x6f\164\40\x62\145\40\163\165\x62\155\151\164\x74\145\144\56\40\120\154\x65\141\163\145\x20\x74\x72\x79\x20\141\x67\141\x69\x6e\56");
        $this->util->mo_oauth_show_error_message();
        vv:
        goto Yp;
        kG:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\120\154\145\x61\x73\x65\x20\x66\151\154\154\40\x75\x70\x20\105\x6d\x61\151\154\x20\x66\x69\145\154\x64\x20\x74\157\40\x73\x75\142\x6d\151\x74\x20\x79\157\165\162\x20\161\x75\145\162\x79\x2e");
        $this->util->mo_oauth_show_error_message();
        Yp:
        xi:
        ui:
        if (!($tY == "\x64\151\163\141\x62\154\145\x64")) {
            goto Mz;
        }
        if (!(isset($_POST["\x6d\x6f\137\157\x61\x75\164\150\x5f\x72\x65\x73\x74\x6f\162\145\137\142\141\143\x6b\x75\160\137\156\x6f\156\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\157\137\x6f\141\x75\x74\x68\x5f\x72\x65\163\164\x6f\162\x65\x5f\142\141\143\153\x75\160\x5f\156\x6f\156\143\x65"])), "\x6d\x6f\137\157\141\x75\x74\150\137\162\145\x73\x74\x6f\162\x65\x5f\142\x61\x63\x6b\x75\160") && isset($_POST[\MoOAuthConstants::OPTION]) && "\155\157\x5f\157\141\165\x74\150\x5f\162\145\x73\164\157\162\x65\x5f\x62\x61\143\x6b\x75\x70" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto LJ;
        }
        if (!current_user_can("\141\x64\x6d\151\x6e\151\163\x74\162\141\x74\x6f\162")) {
            goto Jl;
        }
        $t0 = "\124\x68\x65\x72\145\40\x77\141\x73\40\x61\156\x20\x65\162\x72\x6f\x72\40\165\x70\x6c\157\x61\144\x69\156\147\x20\164\150\x65\40\146\x69\154\x65";
        if (isset($_FILES["\155\157\x5f\x6f\x61\165\x74\x68\137\143\x6c\x69\145\156\164\137\x62\x61\143\x6b\165\x70"])) {
            goto eD;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0);
        $this->util->mo_oauth_show_error_message();
        return;
        eD:
        if (!function_exists("\x77\x70\x5f\x68\x61\x6e\144\154\x65\137\165\x70\x6c\x6f\x61\144")) {
            require_once ABSPATH . "\x77\x70\x2d\141\x64\x6d\151\156\57\151\156\x63\154\165\x64\145\163\57\146\151\154\145\x2e\x70\x68\x70";
        }
        $UW = $_FILES["\155\157\137\x6f\141\165\x74\x68\x5f\143\x6c\151\x65\x6e\164\137\x62\x61\143\x6b\165\160"];
        if (!(!isset($UW["\145\x72\162\157\x72"]) || is_array($UW["\145\x72\162\157\x72"]) || UPLOAD_ERR_OK !== $UW["\x65\x72\162\x6f\162"])) {
            goto OO;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0 . "\x3a\x20" . json_encode($UW["\145\x72\x72\157\162"], JSON_UNESCAPED_SLASHES));
        $this->util->mo_oauth_show_error_message();
        return;
        OO:
        $wg = new \finfo(FILEINFO_MIME_TYPE);
        $dG = array_search($wg->file($UW["\x74\155\x70\x5f\x6e\x61\x6d\145"]), array("\x74\145\170\x74" => "\x74\145\x78\x74\57\x70\154\x61\x69\156", "\x6a\x73\x6f\156" => "\141\x70\x70\154\x69\x63\x61\164\151\x6f\156\57\152\163\x6f\x6e"), true);
        $cQ = explode("\x2e", $UW["\x6e\141\x6d\x65"]);
        $cQ = $cQ[count($cQ) - 1];
        if (!(false === $dG || $cQ !== "\x6a\x73\x6f\x6e")) {
            goto PM;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0 . "\72\40\x49\x6e\166\x61\x6c\x69\x64\x20\x46\151\x6c\x65\x20\x46\x6f\162\155\x61\164\x2e");
        $this->util->mo_oauth_show_error_message();
        return;
        PM:
        $TY = file_get_contents($UW["\164\x6d\x70\137\156\x61\x6d\x65"]);
        $mA = json_decode($TY, true);
        if (!(json_last_error() !== JSON_ERROR_NONE)) {
            goto JO;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, $t0 . "\72\x20\x49\156\166\141\154\151\x64\x20\x46\151\154\145\x20\106\157\162\155\141\164\56");
        $this->util->mo_oauth_show_error_message();
        return;
        JO:
        $q0 = BackupHandler::restore_settings($mA);
        if (!$q0) {
            goto GB;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x53\x65\x74\164\x69\156\147\x73\40\x72\145\x73\164\157\162\145\x64\40\x73\x75\x63\x63\x65\x73\163\x66\165\154\x6c\171\56");
        $this->util->mo_oauth_show_success_message();
        return;
        GB:
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x54\x68\x65\x72\145\x20\x77\141\163\x20\141\156\x20\151\x73\163\165\145\40\167\150\151\154\x65\40\162\145\163\164\x6f\162\x69\156\147\x20\x74\x68\x65\x20\x63\157\156\146\x69\147\165\162\141\x74\151\157\x6e\56");
        $this->util->mo_oauth_show_error_message();
        return;
        Jl:
        LJ:
        if (!(isset($_POST["\155\157\137\157\141\x75\x74\x68\137\x64\157\167\x6e\x6c\x6f\141\x64\x5f\142\141\143\153\x75\x70\137\x6e\x6f\156\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\157\137\157\x61\x75\164\150\x5f\x64\157\x77\156\x6c\157\x61\x64\137\x62\x61\x63\x6b\165\160\x5f\x6e\x6f\156\x63\x65"])), "\155\x6f\137\157\x61\x75\164\x68\x5f\144\157\167\156\x6c\157\141\x64\x5f\142\141\143\x6b\165\160") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x6d\x6f\137\157\141\165\164\150\x5f\x64\x6f\x77\156\154\157\x61\x64\137\x62\x61\x63\153\x75\160" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
            goto eB;
        }
        if (!current_user_can("\141\144\x6d\151\156\151\163\164\x72\x61\164\157\x72")) {
            goto Uf;
        }
        $Co = BackupHandler::get_backup_json();
        header("\x43\157\x6e\x74\145\x6e\164\55\124\x79\160\145\72\x20\x61\160\160\x6c\x69\143\141\x74\x69\x6f\156\x2f\152\x73\x6f\x6e");
        header("\x43\x6f\x6e\x74\145\x6e\164\x2d\x44\x69\x73\x70\157\163\151\164\x69\157\x6e\x3a\x20\141\164\x74\141\143\x68\155\x65\x6e\x74\x3b\x20\x66\151\x6c\145\x6e\141\155\x65\x3d\42\160\154\x75\147\x69\156\137\x62\141\143\x6b\165\x70\56\x6a\x73\x6f\156\42");
        header("\103\x6f\x6e\x74\x65\156\164\55\x4c\145\156\x67\164\150\72\x20" . strlen($Co));
        header("\x43\x6f\156\x6e\145\143\x74\x69\x6f\x6e\72\40\x63\154\157\163\x65");
        echo $Co;
        exit;
        Uf:
        eB:
        Mz:
        do_action("\144\157\x5f\x6d\x61\x69\x6e\137\163\145\x74\x74\x69\156\147\x73\x5f\151\x6e\x74\x65\x72\x6e\141\x6c", $_POST);
    }
    public function mo_oauth_get_current_customer($SF)
    {
        if (!current_user_can("\141\x64\x6d\151\156\151\163\x74\x72\x61\164\157\162")) {
            goto mp;
        }
        $z5 = new Customer();
        $i7 = $z5->get_customer_key($SF);
        $Ip = json_decode($i7, true);
        if (json_last_error() === JSON_ERROR_NONE) {
            goto qL;
        }
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x59\157\165\x20\x61\154\x72\x65\x61\x64\x79\x20\150\x61\x76\145\40\141\156\40\141\143\x63\157\x75\x6e\x74\40\x77\x69\x74\150\x20\155\151\156\x69\117\162\141\156\147\145\x2e\x20\120\x6c\145\x61\163\145\x20\x65\156\164\x65\x72\40\141\x20\x76\141\x6c\x69\x64\x20\160\x61\x73\163\x77\157\x72\144\x2e");
        $this->util->mo_oauth_client_update_option("\166\145\162\x69\146\x79\137\143\165\163\x74\157\155\145\162", "\164\x72\x75\145");
        $this->util->mo_oauth_show_error_message();
        goto x5;
        qL:
        $this->util->mo_oauth_client_update_option("\x6d\x6f\x5f\157\141\x75\164\150\137\x61\144\x6d\x69\x6e\137\143\165\x73\164\157\155\145\x72\137\153\145\x79", $Ip["\151\x64"]);
        $this->util->mo_oauth_client_update_option("\x6d\157\x5f\x6f\141\165\164\150\x5f\141\144\x6d\x69\x6e\137\x61\x70\151\137\x6b\145\x79", $Ip["\x61\160\151\113\x65\x79"]);
        $this->util->mo_oauth_client_update_option("\x63\x75\163\164\x6f\155\x65\162\137\x74\x6f\153\x65\x6e", $Ip["\164\157\153\145\x6e"]);
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\103\x75\163\x74\x6f\x6d\145\162\x20\162\145\x74\x72\x69\x65\166\x65\x64\x20\163\x75\143\143\145\x73\x73\146\165\154\154\x79");
        $this->util->mo_oauth_client_delete_option("\166\x65\162\151\x66\171\137\x63\165\x73\x74\x6f\x6d\x65\x72");
        $this->util->mo_oauth_client_delete_option("\x6e\x65\167\x5f\x72\x65\x67\151\163\x74\162\x61\x74\151\x6f\156");
        $this->util->mo_oauth_show_success_message();
        x5:
        mp:
    }
    public function create_customer($SF)
    {
        if (!current_user_can("\x61\x64\x6d\151\x6e\151\163\164\162\141\x74\157\x72")) {
            goto VW;
        }
        global $H0;
        $z5 = new Customer();
        $Ip = json_decode($z5->create_customer($SF), true);
        if (strcasecmp($Ip["\x73\x74\x61\x74\165\x73"], "\x43\x55\123\124\117\x4d\x45\x52\137\x55\123\x45\122\x4e\101\115\105\x5f\101\x4c\x52\105\101\104\131\x5f\x45\130\x49\123\124\x53") === 0) {
            goto g0;
        }
        if (strcasecmp($Ip["\x73\164\141\x74\165\x73"], "\x53\125\x43\103\105\123\x53") === 0) {
            goto Ym;
        }
        goto rd;
        g0:
        $this->mo_oauth_get_current_customer($SF);
        $this->util->mo_oauth_client_delete_option("\x6d\157\x5f\157\x61\165\164\150\137\156\145\167\x5f\x63\165\163\x74\x6f\x6d\x65\x72");
        goto rd;
        Ym:
        $this->util->mo_oauth_client_update_option("\155\157\137\157\x61\165\164\150\x5f\141\144\155\151\156\137\x63\x75\163\164\157\x6d\x65\162\137\153\x65\x79", $Ip["\151\144"]);
        $this->util->mo_oauth_client_update_option("\x6d\157\137\x6f\x61\165\164\150\x5f\141\x64\155\151\156\x5f\x61\160\x69\137\153\145\171", $Ip["\x61\x70\x69\x4b\x65\171"]);
        $this->util->mo_oauth_client_update_option("\x63\x75\x73\164\x6f\155\145\x72\137\x74\x6f\x6b\x65\x6e", $Ip["\164\x6f\x6b\145\156"]);
        $this->util->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x52\145\147\151\x73\164\x65\162\145\144\x20\x73\165\143\143\x65\x73\163\146\165\154\x6c\x79\56");
        $this->util->mo_oauth_client_update_option("\155\x6f\x5f\157\141\165\164\150\137\x72\145\147\x69\163\164\162\x61\164\x69\x6f\156\137\x73\164\x61\164\x75\x73", "\x4d\x4f\137\x4f\x41\x55\x54\110\137\x52\105\107\111\123\x54\x52\x41\x54\x49\117\x4e\x5f\x43\x4f\x4d\120\114\105\x54\x45");
        $this->util->mo_oauth_client_update_option("\x6d\157\x5f\x6f\141\x75\164\150\x5f\156\x65\167\137\x63\165\x73\x74\x6f\155\145\x72", 1);
        $this->util->mo_oauth_client_delete_option("\x76\x65\162\151\146\171\x5f\143\x75\x73\x74\x6f\155\145\x72");
        $this->util->mo_oauth_client_delete_option("\x6e\x65\x77\x5f\x72\x65\x67\151\163\x74\162\x61\164\151\x6f\156");
        $this->util->mo_oauth_show_success_message();
        rd:
        VW:
    }
}

Function Calls

None

Variables

None

Stats

MD5 6301869530c7d698ce027b556598eeaa
Eval Count 0
Decode Time 77 ms