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\Standard; use MoOauthClient\Config; class SignInSet..

Decoded Output download

<?php 
 
 
namespace MoOauthClient\Standard; 
 
use MoOauthClient\Config; 
class SignInSettingsSettings 
{ 
    private $plugin_config; 
    public function __construct() 
    { 
        $rr = $this->get_config_option(); 
        if ($rr && isset($rr)) { 
            goto b0m; 
        } 
        $this->plugin_config = new Config(); 
        $this->save_config_option($this->plugin_config); 
        goto IiW; 
        b0m: 
        $this->save_config_option($rr); 
        $this->plugin_config = $rr; 
        IiW: 
    } 
    public function save_config_option($V2 = array()) 
    { 
        global $Vc; 
        if (!(isset($V2) && !empty($V2))) { 
            goto V9b; 
        } 
        return $Vc->mo_oauth_client_update_option("mo_oauth_client_config", $V2); 
        V9b: 
        return false; 
    } 
    public function get_config_option() 
    { 
        global $Vc; 
        return $Vc->mo_oauth_client_get_option("mo_oauth_client_config"); 
    } 
    public function get_sane_config() 
    { 
        $V2 = $this->plugin_config; 
        if ($V2 && isset($V2)) { 
            goto aL9; 
        } 
        $V2 = $this->get_config_option(); 
        aL9: 
        if (!(!$V2 || !isset($V2))) { 
            goto q9f; 
        } 
        $V2 = new Config(); 
        q9f: 
        return $V2; 
    } 
    public function mo_oauth_save_settings() 
    { 
        global $Vc; 
        $V2 = $Vc->get_plugin_config()->get_current_config(); 
        $qY = "disabled"; 
        if (empty($V2["mo_dte_state"])) { 
            goto uHx; 
        } 
        $qY = $Vc->mooauthdecrypt($V2["mo_dte_state"]); 
        uHx: 
        if (!($qY == "disabled")) { 
            goto NG8; 
        } 
        $V2 = $this->get_sane_config(); 
        if (!(isset($_POST["mo_signinsettings_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_signinsettings_nonce"])), "mo_oauth_client_sign_in_settings") && (isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_client_advanced_settings" === $_POST[\MoOAuthConstants::OPTION]))) { 
            goto C7_; 
        } 
        $V2 = $this->change_current_config($_POST, $V2); 
        $V2->save_settings($V2->get_current_config()); 
        $this->save_config_option($V2); 
        C7_: 
        NG8: 
    } 
    public function change_current_config($post, $V2) 
    { 
        $V2->add_config("after_login_url", isset($post["custom_after_login_url"]) ? stripslashes(wp_unslash($post["custom_after_login_url"])) : ''); 
        $V2->add_config("after_logout_url", isset($post["custom_after_logout_url"]) ? stripslashes(wp_unslash($post["custom_after_logout_url"])) : ''); 
        $V2->add_config("popup_login", isset($post["popup_login"]) ? stripslashes(wp_unslash($post["popup_login"])) : 0); 
        $V2->add_config("auto_register", isset($post["auto_register"]) ? stripslashes(wp_unslash($post["auto_register"])) : 0); 
        $V2->add_config("confirm_logout", isset($post["confirm_logout"]) ? stripslashes(wp_unslash($post["confirm_logout"])) : 0); 
        return $V2; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MoOauthClient\Standard;

use MoOauthClient\Config;
class SignInSettingsSettings
{
    private $plugin_config;
    public function __construct()
    {
        $rr = $this->get_config_option();
        if ($rr && isset($rr)) {
            goto b0m;
        }
        $this->plugin_config = new Config();
        $this->save_config_option($this->plugin_config);
        goto IiW;
        b0m:
        $this->save_config_option($rr);
        $this->plugin_config = $rr;
        IiW:
    }
    public function save_config_option($V2 = array())
    {
        global $Vc;
        if (!(isset($V2) && !empty($V2))) {
            goto V9b;
        }
        return $Vc->mo_oauth_client_update_option("\x6d\x6f\x5f\x6f\141\165\164\x68\x5f\x63\154\151\x65\x6e\x74\137\x63\157\156\146\x69\x67", $V2);
        V9b:
        return false;
    }
    public function get_config_option()
    {
        global $Vc;
        return $Vc->mo_oauth_client_get_option("\155\157\x5f\x6f\x61\x75\164\x68\137\143\x6c\x69\145\x6e\x74\x5f\143\157\156\146\x69\x67");
    }
    public function get_sane_config()
    {
        $V2 = $this->plugin_config;
        if ($V2 && isset($V2)) {
            goto aL9;
        }
        $V2 = $this->get_config_option();
        aL9:
        if (!(!$V2 || !isset($V2))) {
            goto q9f;
        }
        $V2 = new Config();
        q9f:
        return $V2;
    }
    public function mo_oauth_save_settings()
    {
        global $Vc;
        $V2 = $Vc->get_plugin_config()->get_current_config();
        $qY = "\144\151\163\141\x62\154\145\144";
        if (empty($V2["\155\157\137\x64\x74\145\137\163\164\141\164\x65"])) {
            goto uHx;
        }
        $qY = $Vc->mooauthdecrypt($V2["\155\x6f\x5f\x64\x74\x65\137\x73\164\x61\x74\145"]);
        uHx:
        if (!($qY == "\144\151\163\141\142\154\x65\x64")) {
            goto NG8;
        }
        $V2 = $this->get_sane_config();
        if (!(isset($_POST["\155\x6f\x5f\163\x69\x67\156\x69\x6e\x73\x65\x74\x74\151\156\x67\163\x5f\x6e\x6f\x6e\143\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\157\x5f\163\x69\147\156\151\156\x73\145\x74\x74\151\156\x67\x73\137\x6e\x6f\156\x63\145"])), "\155\x6f\x5f\x6f\x61\x75\164\x68\137\x63\x6c\151\x65\156\x74\137\x73\151\147\156\x5f\151\x6e\137\x73\x65\x74\x74\x69\156\147\163") && (isset($_POST[\MoOAuthConstants::OPTION]) && "\155\157\137\x6f\x61\x75\x74\150\137\143\154\x69\x65\x6e\x74\x5f\141\x64\166\141\156\x63\x65\144\137\x73\x65\164\164\151\x6e\x67\x73" === $_POST[\MoOAuthConstants::OPTION]))) {
            goto C7_;
        }
        $V2 = $this->change_current_config($_POST, $V2);
        $V2->save_settings($V2->get_current_config());
        $this->save_config_option($V2);
        C7_:
        NG8:
    }
    public function change_current_config($post, $V2)
    {
        $V2->add_config("\141\146\164\x65\162\137\154\157\147\x69\156\137\x75\x72\x6c", isset($post["\x63\165\163\164\x6f\155\137\x61\x66\x74\x65\x72\x5f\154\157\147\151\156\x5f\165\162\x6c"]) ? stripslashes(wp_unslash($post["\143\x75\163\164\157\x6d\137\141\x66\x74\x65\162\137\x6c\157\x67\x69\x6e\137\165\x72\x6c"])) : '');
        $V2->add_config("\141\146\164\145\x72\x5f\x6c\157\x67\x6f\165\x74\x5f\165\x72\154", isset($post["\x63\x75\163\164\157\x6d\137\141\x66\164\x65\162\137\154\157\147\x6f\165\x74\x5f\x75\x72\154"]) ? stripslashes(wp_unslash($post["\143\x75\163\164\x6f\x6d\x5f\141\146\164\x65\x72\137\154\157\x67\157\165\x74\137\x75\x72\x6c"])) : '');
        $V2->add_config("\160\x6f\160\x75\160\x5f\154\157\147\x69\156", isset($post["\160\157\x70\165\160\137\154\x6f\147\x69\x6e"]) ? stripslashes(wp_unslash($post["\x70\x6f\160\x75\x70\137\x6c\x6f\x67\x69\156"])) : 0);
        $V2->add_config("\141\165\164\x6f\137\162\145\147\x69\163\x74\145\x72", isset($post["\x61\x75\x74\157\x5f\x72\x65\x67\151\163\x74\x65\x72"]) ? stripslashes(wp_unslash($post["\x61\165\x74\x6f\137\162\145\147\x69\x73\x74\x65\162"])) : 0);
        $V2->add_config("\x63\x6f\x6e\x66\151\162\x6d\137\x6c\x6f\147\x6f\x75\164", isset($post["\x63\x6f\156\x66\151\162\x6d\137\154\x6f\147\157\165\164"]) ? stripslashes(wp_unslash($post["\143\157\x6e\x66\151\162\155\137\154\157\147\157\x75\x74"])) : 0);
        return $V2;
    }
}

Function Calls

None

Variables

None

Stats

MD5 0e20cf01ed0a9e4acbe10111266fe338
Eval Count 0
Decode Time 53 ms