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\AppInterface; class App impl..

Decoded Output download

<?php 
 
 
namespace MoOauthClient; 
 
use MoOauthClient\App\AppInterface; 
class App implements AppInterface 
{ 
    private $app_config; 
    private $app_name; 
    public function __construct($Ss = array()) 
    { 
        if (!(!is_array($Ss) || empty($Ss))) { 
            goto pH; 
        } 
        $Ss = array(); 
        pH: 
        $this->app_config = array_merge(array("unique_appid" => '', "client_id" => '', "client_secret" => '', "scope" => '', "redirect_uri" => '', "app_type" => "oauth", "authorizeurl" => '', "accesstokenurl" => '', "resourceownerdetailsurl" => '', "groupdetailsurl" => '', "jwks_uri" => '', "displayappname" => '', "appId" => '', "send_state" => '', "mo_oauth_response_type" => ''), $Ss); 
    } 
    public function get_app_config($AP = '', $bD = true) 
    { 
        global $su; 
        if (!(isset($this->app_config["client_creds_encrpyted"]) && boolval($this->app_config["client_creds_encrpyted"]) && ($AP === "client_id" || $AP === "client_secret"))) { 
            goto u2; 
        } 
        $this->app_config["client_id"] = $su->mooauthdecrypt($this->app_config["client_id"]); 
        $this->app_config["client_secret"] = $su->mooauthdecrypt($this->app_config["client_secret"]); 
        u2: 
        if ('' !== $AP) { 
            goto zJ; 
        } 
        if (!($bD && isset($this->app_config["client_creds_encrpyted"]) && boolval($this->app_config["client_creds_encrpyted"]))) { 
            goto hV; 
        } 
        $this->app_config["client_id"] = $su->mooauthdecrypt($this->app_config["client_id"]); 
        $this->app_config["client_secret"] = $su->mooauthdecrypt($this->app_config["client_secret"]); 
        hV: 
        return $this->app_config; 
        goto cC; 
        zJ: 
        return isset($this->app_config[$AP]) ? $this->app_config[$AP] : false; 
        cC: 
    } 
    public function get_app_name() 
    { 
        return isset($this->app_name) && !empty($this->app_name) ? $this->app_name : ''; 
    } 
    public function update_app_config($J0, $zC) 
    { 
        $this->app_config[$J0] = $zC; 
    } 
    public function set_app_name($KL) 
    { 
        $this->app_name = $KL; 
    } 
    public function migrate_app($Ss, $ls) 
    { 
        if (!(empty($Ss) || empty($ls))) { 
            goto J0; 
        } 
        return; 
        J0: 
        global $su; 
        $this->set_app_name($ls); 
        MO_Oauth_Debug::mo_oauth_log(" Set this app  : " . $ls); 
        $cs = ["client_creds_encrpyted" => isset($Ss["client_creds_encrpyted"]) ? $Ss["client_creds_encrpyted"] : '', "unique_appid" => isset($Ss["unique_appid"]) ? $Ss["unique_appid"] : '', "client_id" => isset($Ss["client_id"]) ? $Ss["client_id"] : '', "client_secret" => isset($Ss["client_secret"]) ? $Ss["client_secret"] : '', "scope" => isset($Ss["scope"]) ? $Ss["scope"] : '', "redirect_uri" => \site_url(), "app_type" => isset($Ss["ssoprotocol"]) ? $Ss["ssoprotocol"] : false, "tenant" => isset($Ss["tenant"]) ? $Ss["tenant"] : '', "send_headers" => isset($Ss["send_headers"]) ? $Ss["send_headers"] : false, "send_body" => isset($Ss["send_body"]) ? $Ss["send_body"] : false, "send_state" => isset($Ss["send_state"]) ? $Ss["send_state"] : false, "send_nonce" => isset($Ss["send_nonce"]) ? $Ss["send_nonce"] : false, "show_on_login_page" => isset($Ss["show_on_login_page"]) ? $Ss["show_on_login_page"] : false, "existing_app_flow" => isset($Ss["existing_app_flow"]) ? $Ss["existing_app_flow"] : false, "discovery" => isset($Ss["discovery"]) ? $Ss["discovery"] : '', "domain" => isset($Ss["domain"]) ? $Ss["domain"] : '', "policy" => isset($Ss["policy"]) ? $Ss["policy"] : '', "realm" => isset($Ss["realm"]) ? $Ss["realm"] : '', "authorizeurl" => isset($Ss["authorizeurl"]) ? $Ss["authorizeurl"] : '', "accesstokenurl" => isset($Ss["accesstokenurl"]) ? $Ss["accesstokenurl"] : '', "resourceownerdetailsurl" => isset($Ss["resourceownerdetailsurl"]) ? $Ss["resourceownerdetailsurl"] : '', "groupdetailsurl" => isset($Ss["groupdetailsurl"]) ? $Ss["groupdetailsurl"] : '', "jwks_uri" => isset($Ss["jwks_uri"]) ? $Ss["jwks_uri"] : '', "jwksurl" => isset($Ss["jwks_uri"]) ? $Ss["jwks_uri"] : '', "displayappname" => isset($Ss["displayappname"]) ? $Ss["displayappname"] : '', "appId" => isset($Ss["appId"]) ? $Ss["appId"] : '', "custom_attrs_mapping" => isset($Ss["custom_attrs_mapping"]) ? $Ss["custom_attrs_mapping"] : $su->mo_oauth_client_get_option("mo_oauth_client_custom_attrs_mapping"), "grant_type" => isset($Ss["grant_type"]) ? $Ss["grant_type"] : $su->mo_oauth_client_get_option("mo_oauth_" . $ls . "_grant_type"), "mo_oauth_response_type" => isset($Ss["mo_oauth_response_type"]) ? $Ss["mo_oauth_response_type"] : '', "jwt_support" => isset($Ss["jwt_support"]) ? $Ss["jwt_support"] : intval($su->mo_oauth_client_get_option("mo_oauth_" . $ls . "_jwt_support")), "jwt_algo" => isset($Ss["jwt_algo"]) ? $Ss["jwt_algo"] : $su->mo_oauth_client_get_option("mo_oauth_" . $ls . "_jwt_algo"), "x509_cert" => isset($Ss["x509_cert"]) ? $Ss["x509_cert"] : $su->mo_oauth_client_get_option("mo_oauth_" . $ls . "_x509_cert"), "pkce_flow" => isset($Ss["pkce_flow"]) ? $Ss["pkce_flow"] : intval($su->mo_oauth_client_get_option("mo_oauth_" . $ls . "_pkce_flow")), "pkce_client_secret" => isset($Ss["pkce_client_secret"]) ? $Ss["pkce_client_secret"] : intval($su->mo_oauth_client_get_option("mo_oauth_" . $ls . "_pkce_client_secret")), "restrict_login_for_mapped_roles" => isset($Ss["restrict_login_for_mapped_roles"]) ? $Ss["restrict_login_for_mapped_roles"] : boolval($su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_restrict_login_for_mapped_roles")), "extract_email_domain_for_rolemapping" => isset($Ss["extract_email_domain_for_rolemapping"]) ? $Ss["extract_email_domain_for_rolemapping"] : boolval($su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_extract_email_domain_for_rolemapping")), "role_mapping_count" => isset($Ss["role_mapping_count"]) ? $Ss["role_mapping_count"] : intval($su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_role_mapping_count")), "enable_role_mapping" => isset($Ss["enable_role_mapping"]) ? $Ss["enable_role_mapping"] : true, "allow_duplicate_emails" => isset($Ss["allow_duplicate_emails"]) ? $Ss["allow_duplicate_emails"] : boolval($su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_allow_duplicate_emails")), "_mapping_value_default" => isset($Ss["_mapping_value_default"]) ? $Ss["_mapping_value_default"] : "subscriber", "groupname_attribute" => isset($Ss["groupname_attribute"]) ? $Ss["groupname_attribute"] : $su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_mapping_groupname_attribute"), "username_attr" => isset($Ss["username_attr"]) ? $Ss["username_attr"] : '', "email_attr" => isset($Ss["email_attr"]) ? $Ss["email_attr"] : '', "firstname_attr" => isset($Ss["firstname_attr"]) ? $Ss["firstname_attr"] : '', "lastname_attr" => isset($Ss["lastname_attr"]) ? $Ss["lastname_attr"] : '', "display_attr" => isset($Ss["display_attr"]) ? $Ss["display_attr"] : '', "keep_existing_user_roles" => boolval($su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_keep_existing_user_roles"))]; 
        if (!($cs["app_type"] === "oauth1")) { 
            goto Eu; 
        } 
        $cs["requesturl"] = isset($Ss["requesturl"]) ? $Ss["requesturl"] : ''; 
        $cs["app_type"] = "oauth1"; 
        Eu: 
        if (!(!isset($cs["app_type"]) || false === $cs["app_type"])) { 
            goto W7; 
        } 
        $cs["app_type"] = isset($Ss["apptype"]) ? $Ss["apptype"] : "oauth"; 
        W7: 
        $cs = $this->migrate_mapped_roles($cs, $Ss, $ls); 
        $this->app_config = $cs; 
    } 
    protected function migrate_mapped_roles($MX, $mJ, $ls) 
    { 
        if (isset($MX["role_mapping_count"])) { 
            goto gk; 
        } 
        return $MX; 
        gk: 
        global $su; 
        $GT = $MX["role_mapping_count"]; 
        $lz = $GT; 
        yW: 
        if (!($lz > 0)) { 
            goto Ug; 
        } 
        $MX["_mapping_key_" . $lz] = !isset($mJ["_mapping_key_" . $lz]) || empty($mJ["_mapping_key_" . $lz]) ? $su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_mapping_key_" . $lz) : $mJ["_mapping_key_" . $lz]; 
        $MX["_mapping_value_" . $lz] = !isset($mJ["_mapping_value_" . $lz]) || empty($mJ["_mapping_value_" . $lz]) ? $su->mo_oauth_client_get_option("mo_oauth_client_" . $ls . "_mapping_value_" . $lz) : $mJ["_mapping_value_" . $lz]; 
        xD: 
        $lz--; 
        goto yW; 
        Ug: 
        return $MX; 
    } 
    public function __toString() 
    { 
        return json_encode([$this->app_name => $this->app_config]); 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace MoOauthClient;

use MoOauthClient\App\AppInterface;
class App implements AppInterface
{
    private $app_config;
    private $app_name;
    public function __construct($Ss = array())
    {
        if (!(!is_array($Ss) || empty($Ss))) {
            goto pH;
        }
        $Ss = array();
        pH:
        $this->app_config = array_merge(array("\165\x6e\151\x71\165\145\x5f\x61\160\x70\x69\x64" => '', "\x63\x6c\151\145\156\x74\137\x69\144" => '', "\x63\x6c\x69\x65\156\164\137\x73\145\143\162\145\x74" => '', "\x73\143\157\160\x65" => '', "\x72\x65\x64\151\162\x65\x63\x74\137\165\162\151" => '', "\141\x70\160\x5f\164\171\x70\x65" => "\x6f\x61\x75\x74\150", "\x61\x75\x74\x68\157\x72\x69\x7a\145\x75\162\x6c" => '', "\141\143\x63\145\x73\163\164\x6f\153\x65\156\165\x72\x6c" => '', "\x72\x65\x73\x6f\165\x72\x63\145\x6f\167\x6e\145\x72\x64\145\164\141\151\x6c\163\165\162\154" => '', "\147\x72\157\165\x70\x64\x65\164\x61\151\154\x73\x75\162\154" => '', "\152\x77\153\x73\x5f\165\x72\x69" => '', "\144\151\x73\x70\154\x61\171\x61\160\x70\x6e\141\x6d\x65" => '', "\141\x70\x70\111\x64" => '', "\163\145\x6e\144\137\x73\x74\x61\164\145" => '', "\x6d\x6f\137\157\x61\165\x74\150\137\162\x65\x73\x70\157\156\x73\145\x5f\164\171\160\145" => ''), $Ss);
    }
    public function get_app_config($AP = '', $bD = true)
    {
        global $su;
        if (!(isset($this->app_config["\143\x6c\151\x65\156\x74\137\143\x72\x65\x64\x73\137\145\156\143\162\x70\x79\x74\x65\x64"]) && boolval($this->app_config["\143\x6c\151\145\x6e\164\137\143\162\145\144\163\x5f\x65\x6e\143\162\x70\171\x74\x65\144"]) && ($AP === "\x63\154\151\x65\x6e\x74\137\x69\x64" || $AP === "\143\154\151\145\156\x74\137\x73\x65\x63\162\x65\x74"))) {
            goto u2;
        }
        $this->app_config["\143\154\151\145\x6e\x74\x5f\151\144"] = $su->mooauthdecrypt($this->app_config["\143\x6c\151\x65\156\x74\137\x69\144"]);
        $this->app_config["\x63\154\151\145\156\x74\x5f\x73\x65\x63\x72\145\x74"] = $su->mooauthdecrypt($this->app_config["\x63\154\x69\x65\156\164\137\x73\145\143\x72\145\x74"]);
        u2:
        if ('' !== $AP) {
            goto zJ;
        }
        if (!($bD && isset($this->app_config["\143\154\151\x65\x6e\164\x5f\x63\x72\x65\x64\x73\x5f\145\x6e\x63\162\160\x79\164\x65\144"]) && boolval($this->app_config["\143\x6c\151\145\156\164\137\x63\x72\145\x64\x73\x5f\145\156\143\162\160\171\x74\145\x64"]))) {
            goto hV;
        }
        $this->app_config["\x63\154\x69\145\156\x74\x5f\x69\144"] = $su->mooauthdecrypt($this->app_config["\143\x6c\x69\145\x6e\164\x5f\151\x64"]);
        $this->app_config["\x63\154\151\145\156\x74\137\163\145\x63\x72\x65\x74"] = $su->mooauthdecrypt($this->app_config["\x63\154\151\145\x6e\164\137\x73\145\143\x72\145\164"]);
        hV:
        return $this->app_config;
        goto cC;
        zJ:
        return isset($this->app_config[$AP]) ? $this->app_config[$AP] : false;
        cC:
    }
    public function get_app_name()
    {
        return isset($this->app_name) && !empty($this->app_name) ? $this->app_name : '';
    }
    public function update_app_config($J0, $zC)
    {
        $this->app_config[$J0] = $zC;
    }
    public function set_app_name($KL)
    {
        $this->app_name = $KL;
    }
    public function migrate_app($Ss, $ls)
    {
        if (!(empty($Ss) || empty($ls))) {
            goto J0;
        }
        return;
        J0:
        global $su;
        $this->set_app_name($ls);
        MO_Oauth_Debug::mo_oauth_log("\x20\x53\145\164\x20\x74\150\x69\x73\40\141\160\160\40\40\x3a\40" . $ls);
        $cs = ["\x63\x6c\x69\145\x6e\x74\137\x63\x72\145\144\x73\x5f\x65\x6e\143\x72\160\171\x74\145\x64" => isset($Ss["\143\x6c\x69\x65\156\x74\137\143\x72\x65\x64\163\137\x65\x6e\x63\162\160\x79\x74\145\x64"]) ? $Ss["\143\x6c\151\145\x6e\x74\x5f\143\162\x65\144\x73\137\x65\156\143\162\160\x79\164\x65\144"] : '', "\x75\x6e\151\x71\165\x65\137\x61\160\160\151\144" => isset($Ss["\x75\x6e\151\161\165\x65\137\x61\x70\160\151\144"]) ? $Ss["\165\x6e\151\x71\x75\145\137\141\x70\x70\151\x64"] : '', "\x63\154\151\x65\x6e\164\137\151\x64" => isset($Ss["\x63\154\x69\x65\156\164\137\x69\144"]) ? $Ss["\x63\x6c\151\x65\156\164\137\151\x64"] : '', "\143\154\151\x65\x6e\164\x5f\x73\145\x63\162\x65\x74" => isset($Ss["\x63\x6c\x69\145\x6e\164\137\x73\145\x63\162\x65\x74"]) ? $Ss["\143\154\151\x65\156\x74\x5f\x73\x65\x63\162\x65\164"] : '', "\163\x63\157\160\x65" => isset($Ss["\x73\x63\157\160\145"]) ? $Ss["\x73\x63\157\160\x65"] : '', "\x72\145\144\151\162\145\x63\x74\x5f\165\162\x69" => \site_url(), "\x61\x70\160\137\x74\x79\x70\x65" => isset($Ss["\163\163\x6f\x70\162\x6f\164\x6f\143\x6f\154"]) ? $Ss["\163\x73\x6f\160\x72\x6f\164\x6f\143\x6f\154"] : false, "\x74\x65\156\141\x6e\x74" => isset($Ss["\164\x65\x6e\141\x6e\x74"]) ? $Ss["\x74\x65\156\x61\x6e\x74"] : '', "\x73\x65\156\x64\137\150\145\141\144\145\162\163" => isset($Ss["\x73\145\x6e\144\137\150\145\141\144\145\162\163"]) ? $Ss["\x73\x65\156\x64\137\150\145\x61\x64\x65\x72\x73"] : false, "\163\145\x6e\x64\137\142\157\x64\x79" => isset($Ss["\x73\x65\x6e\x64\x5f\142\x6f\x64\x79"]) ? $Ss["\x73\x65\156\144\137\142\x6f\x64\171"] : false, "\x73\145\x6e\x64\x5f\163\164\141\164\x65" => isset($Ss["\163\145\x6e\x64\137\163\x74\141\x74\x65"]) ? $Ss["\163\x65\x6e\144\x5f\163\164\141\164\x65"] : false, "\163\x65\156\x64\137\x6e\157\156\x63\x65" => isset($Ss["\163\x65\156\x64\x5f\156\157\156\143\145"]) ? $Ss["\x73\145\x6e\x64\x5f\156\157\x6e\x63\x65"] : false, "\x73\x68\157\x77\x5f\157\x6e\x5f\x6c\157\x67\151\156\137\x70\x61\x67\x65" => isset($Ss["\x73\x68\x6f\x77\137\157\x6e\x5f\154\x6f\147\151\156\137\160\141\147\x65"]) ? $Ss["\163\x68\x6f\x77\x5f\157\x6e\x5f\x6c\157\x67\151\x6e\137\160\141\147\145"] : false, "\145\170\151\x73\x74\151\x6e\x67\137\141\160\160\x5f\x66\154\157\167" => isset($Ss["\x65\x78\x69\x73\164\151\156\147\137\141\160\x70\137\x66\154\157\167"]) ? $Ss["\x65\x78\x69\x73\x74\151\x6e\147\x5f\x61\x70\160\x5f\x66\x6c\157\x77"] : false, "\x64\151\x73\143\157\166\x65\x72\x79" => isset($Ss["\x64\151\x73\143\157\166\145\x72\x79"]) ? $Ss["\x64\151\x73\x63\157\x76\x65\x72\x79"] : '', "\x64\x6f\155\141\x69\156" => isset($Ss["\144\157\x6d\x61\151\156"]) ? $Ss["\144\x6f\x6d\141\151\156"] : '', "\x70\157\x6c\x69\143\171" => isset($Ss["\x70\157\x6c\x69\x63\x79"]) ? $Ss["\160\157\154\x69\x63\171"] : '', "\x72\x65\x61\x6c\x6d" => isset($Ss["\162\145\x61\154\155"]) ? $Ss["\162\145\141\154\155"] : '', "\141\165\x74\150\x6f\162\x69\172\145\x75\162\x6c" => isset($Ss["\x61\165\164\150\157\x72\x69\172\145\165\x72\x6c"]) ? $Ss["\x61\x75\164\150\x6f\162\151\172\x65\165\x72\x6c"] : '', "\141\x63\x63\x65\x73\x73\x74\157\153\x65\x6e\165\162\154" => isset($Ss["\x61\x63\143\145\x73\x73\164\x6f\x6b\145\156\x75\162\x6c"]) ? $Ss["\141\x63\143\x65\x73\163\164\157\x6b\145\156\x75\162\154"] : '', "\162\x65\x73\157\165\x72\143\145\x6f\167\x6e\x65\x72\x64\x65\x74\141\x69\x6c\x73\x75\x72\154" => isset($Ss["\162\x65\x73\157\x75\162\x63\x65\157\167\x6e\145\162\x64\145\164\x61\x69\x6c\x73\165\x72\154"]) ? $Ss["\162\145\163\x6f\x75\162\x63\145\x6f\167\156\x65\x72\x64\145\164\x61\151\154\163\x75\162\154"] : '', "\x67\x72\x6f\165\160\144\145\x74\141\x69\x6c\163\165\x72\x6c" => isset($Ss["\x67\x72\x6f\165\x70\144\x65\x74\x61\x69\x6c\x73\x75\x72\x6c"]) ? $Ss["\x67\x72\x6f\165\160\144\145\164\141\151\154\x73\x75\162\154"] : '', "\152\x77\x6b\163\137\165\162\x69" => isset($Ss["\152\167\x6b\163\137\x75\162\x69"]) ? $Ss["\152\167\x6b\163\137\x75\162\x69"] : '', "\152\x77\153\x73\x75\162\x6c" => isset($Ss["\152\167\x6b\x73\x5f\165\x72\x69"]) ? $Ss["\x6a\167\153\163\137\165\x72\x69"] : '', "\x64\151\x73\x70\154\141\x79\141\160\x70\x6e\141\155\x65" => isset($Ss["\x64\151\x73\x70\154\141\x79\x61\x70\160\156\x61\x6d\x65"]) ? $Ss["\144\x69\163\x70\x6c\x61\171\141\x70\160\x6e\141\x6d\x65"] : '', "\x61\160\x70\x49\144" => isset($Ss["\141\160\x70\x49\144"]) ? $Ss["\141\160\x70\x49\x64"] : '', "\143\x75\x73\164\x6f\x6d\137\x61\164\x74\x72\x73\x5f\x6d\141\x70\160\x69\156\x67" => isset($Ss["\x63\x75\163\164\157\x6d\137\141\x74\x74\162\163\x5f\155\x61\160\160\151\x6e\x67"]) ? $Ss["\143\165\163\164\157\x6d\137\141\164\x74\x72\163\x5f\155\x61\160\160\151\x6e\147"] : $su->mo_oauth_client_get_option("\155\157\x5f\157\141\x75\164\150\x5f\x63\154\x69\145\156\x74\x5f\x63\165\163\x74\x6f\155\x5f\x61\x74\164\x72\163\137\x6d\141\x70\160\x69\x6e\x67"), "\147\x72\x61\x6e\x74\137\x74\171\160\x65" => isset($Ss["\147\x72\x61\x6e\164\137\x74\171\160\145"]) ? $Ss["\x67\162\141\156\164\x5f\x74\x79\160\145"] : $su->mo_oauth_client_get_option("\x6d\157\137\157\x61\165\164\x68\137" . $ls . "\137\x67\x72\x61\156\164\137\164\x79\160\x65"), "\155\x6f\137\x6f\141\165\x74\x68\x5f\162\145\x73\x70\x6f\x6e\x73\x65\137\x74\x79\160\145" => isset($Ss["\155\x6f\x5f\157\141\165\164\x68\x5f\x72\x65\163\x70\157\x6e\163\x65\x5f\164\x79\160\x65"]) ? $Ss["\x6d\x6f\x5f\157\141\x75\164\x68\137\x72\x65\x73\x70\157\156\x73\145\137\x74\x79\160\145"] : '', "\x6a\x77\164\x5f\163\165\x70\160\157\162\x74" => isset($Ss["\x6a\167\x74\x5f\x73\165\160\160\x6f\x72\164"]) ? $Ss["\x6a\x77\164\x5f\163\x75\x70\160\x6f\x72\164"] : intval($su->mo_oauth_client_get_option("\x6d\157\x5f\157\141\165\x74\150\137" . $ls . "\x5f\x6a\x77\x74\137\163\x75\x70\x70\x6f\162\164")), "\152\x77\x74\x5f\x61\154\147\x6f" => isset($Ss["\x6a\x77\x74\x5f\x61\154\x67\x6f"]) ? $Ss["\x6a\167\x74\x5f\x61\154\x67\157"] : $su->mo_oauth_client_get_option("\x6d\157\x5f\157\x61\x75\164\150\x5f" . $ls . "\x5f\x6a\x77\164\x5f\141\154\147\157"), "\x78\65\x30\71\137\x63\145\x72\x74" => isset($Ss["\x78\65\x30\71\137\143\145\x72\x74"]) ? $Ss["\170\65\x30\71\137\143\x65\x72\164"] : $su->mo_oauth_client_get_option("\155\157\x5f\x6f\141\165\164\150\x5f" . $ls . "\x5f\170\x35\x30\71\137\143\x65\162\164"), "\x70\153\x63\x65\137\146\x6c\x6f\x77" => isset($Ss["\x70\153\143\x65\137\x66\154\x6f\167"]) ? $Ss["\160\x6b\x63\x65\137\146\x6c\157\167"] : intval($su->mo_oauth_client_get_option("\x6d\x6f\137\x6f\141\x75\x74\x68\137" . $ls . "\137\x70\153\143\145\x5f\146\x6c\x6f\x77")), "\x70\153\x63\x65\x5f\143\x6c\x69\145\156\164\137\x73\145\x63\x72\145\164" => isset($Ss["\x70\153\x63\145\x5f\x63\x6c\151\x65\156\x74\x5f\163\x65\x63\x72\145\x74"]) ? $Ss["\x70\x6b\x63\145\x5f\143\154\x69\145\156\164\137\163\x65\143\162\x65\164"] : intval($su->mo_oauth_client_get_option("\155\x6f\x5f\157\141\165\x74\x68\x5f" . $ls . "\137\x70\153\143\x65\x5f\x63\x6c\x69\x65\156\164\137\x73\145\143\x72\145\164")), "\x72\x65\163\x74\x72\x69\x63\164\x5f\x6c\x6f\x67\151\x6e\137\146\157\162\137\155\x61\160\x70\x65\x64\137\162\157\154\145\x73" => isset($Ss["\162\x65\x73\164\162\151\143\x74\x5f\x6c\157\147\x69\156\137\x66\157\x72\137\x6d\141\160\x70\x65\x64\x5f\162\157\x6c\x65\x73"]) ? $Ss["\162\145\x73\x74\x72\x69\143\164\137\x6c\157\147\x69\156\137\x66\157\x72\137\155\x61\x70\x70\x65\144\137\162\157\x6c\145\x73"] : boolval($su->mo_oauth_client_get_option("\x6d\x6f\x5f\157\141\x75\x74\150\x5f\143\154\x69\145\156\164\x5f" . $ls . "\x5f\x72\x65\163\164\x72\151\x63\164\x5f\154\157\x67\151\156\x5f\x66\157\162\137\x6d\x61\160\x70\x65\144\x5f\162\x6f\154\x65\163")), "\x65\x78\x74\x72\141\143\x74\137\145\x6d\x61\x69\154\137\144\x6f\155\141\x69\x6e\x5f\x66\157\x72\x5f\162\x6f\x6c\145\x6d\x61\x70\160\151\x6e\147" => isset($Ss["\x65\x78\164\x72\141\x63\164\137\145\x6d\x61\151\154\137\x64\157\x6d\141\x69\156\137\146\157\x72\137\162\157\154\x65\x6d\141\160\x70\151\156\147"]) ? $Ss["\x65\x78\x74\162\x61\143\x74\137\145\x6d\x61\x69\154\137\144\157\x6d\141\151\156\x5f\x66\x6f\162\137\162\x6f\154\145\155\x61\160\160\x69\x6e\x67"] : boolval($su->mo_oauth_client_get_option("\155\x6f\x5f\157\141\165\164\x68\137\x63\x6c\x69\x65\x6e\164\137" . $ls . "\x5f\145\170\164\x72\141\x63\164\137\x65\x6d\x61\151\x6c\137\144\157\x6d\141\x69\156\x5f\146\x6f\162\x5f\162\x6f\x6c\145\x6d\x61\160\160\x69\156\x67")), "\x72\157\x6c\145\137\x6d\141\160\160\x69\x6e\147\x5f\143\x6f\x75\156\164" => isset($Ss["\162\157\154\x65\137\x6d\x61\160\x70\151\156\x67\137\x63\157\x75\x6e\164"]) ? $Ss["\x72\x6f\154\145\x5f\155\141\160\x70\x69\156\147\x5f\143\157\165\156\x74"] : intval($su->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\x75\x74\x68\137\x63\154\x69\145\x6e\164\x5f" . $ls . "\x5f\162\x6f\154\145\x5f\x6d\x61\x70\160\x69\156\x67\x5f\x63\157\165\156\x74")), "\145\x6e\x61\142\154\145\137\162\x6f\x6c\145\137\x6d\x61\160\x70\151\x6e\x67" => isset($Ss["\x65\156\141\x62\x6c\145\137\x72\x6f\x6c\145\137\155\x61\160\160\151\x6e\147"]) ? $Ss["\x65\x6e\x61\x62\x6c\x65\137\x72\157\x6c\145\137\155\141\x70\x70\151\156\147"] : true, "\141\154\154\x6f\x77\137\x64\165\160\154\151\x63\x61\164\x65\137\145\155\141\x69\154\x73" => isset($Ss["\x61\x6c\x6c\x6f\x77\x5f\144\x75\x70\154\x69\x63\x61\164\x65\x5f\x65\x6d\x61\151\x6c\x73"]) ? $Ss["\x61\x6c\154\x6f\x77\x5f\x64\165\x70\x6c\151\143\141\x74\145\x5f\x65\155\141\x69\154\x73"] : boolval($su->mo_oauth_client_get_option("\155\x6f\x5f\157\x61\x75\x74\x68\137\143\154\151\145\x6e\164\x5f" . $ls . "\x5f\x61\x6c\x6c\x6f\167\137\144\x75\x70\154\151\143\x61\164\x65\x5f\145\x6d\141\x69\154\x73")), "\x5f\x6d\141\x70\160\x69\x6e\147\137\x76\x61\154\x75\145\137\144\x65\146\x61\x75\x6c\164" => isset($Ss["\137\x6d\x61\x70\x70\x69\x6e\x67\x5f\166\141\154\x75\145\137\144\145\146\x61\165\154\x74"]) ? $Ss["\137\x6d\x61\160\x70\x69\x6e\x67\137\166\x61\154\165\145\x5f\144\x65\146\141\x75\154\164"] : "\163\x75\x62\163\x63\162\151\x62\145\162", "\147\x72\x6f\x75\160\156\141\155\145\x5f\141\164\x74\162\151\x62\165\164\145" => isset($Ss["\x67\x72\x6f\165\x70\156\141\155\145\137\141\x74\x74\162\x69\x62\x75\x74\x65"]) ? $Ss["\x67\162\x6f\165\160\x6e\x61\x6d\x65\x5f\141\x74\x74\162\x69\x62\x75\x74\145"] : $su->mo_oauth_client_get_option("\155\x6f\x5f\157\141\165\x74\150\137\143\x6c\x69\x65\156\x74\137" . $ls . "\x5f\155\x61\x70\x70\x69\x6e\147\137\x67\x72\x6f\x75\x70\x6e\x61\x6d\x65\137\x61\x74\x74\162\151\142\165\164\x65"), "\165\x73\145\x72\156\x61\155\145\x5f\141\164\164\162" => isset($Ss["\x75\x73\x65\x72\x6e\141\155\x65\137\141\164\164\162"]) ? $Ss["\165\163\145\162\x6e\x61\x6d\145\137\x61\x74\x74\x72"] : '', "\145\x6d\x61\x69\x6c\x5f\x61\164\x74\162" => isset($Ss["\x65\155\x61\x69\154\137\141\x74\x74\162"]) ? $Ss["\145\x6d\x61\151\x6c\x5f\x61\164\x74\x72"] : '', "\x66\x69\x72\x73\x74\156\141\x6d\x65\x5f\141\x74\164\162" => isset($Ss["\146\x69\x72\163\x74\156\x61\x6d\x65\x5f\x61\x74\164\162"]) ? $Ss["\x66\x69\162\x73\164\x6e\x61\155\145\x5f\x61\164\164\162"] : '', "\x6c\x61\163\164\156\141\x6d\145\137\141\164\164\162" => isset($Ss["\x6c\x61\163\x74\156\141\x6d\145\x5f\x61\164\x74\x72"]) ? $Ss["\x6c\141\163\x74\156\x61\155\x65\x5f\141\164\x74\162"] : '', "\144\x69\x73\x70\x6c\141\x79\137\x61\164\x74\x72" => isset($Ss["\144\x69\x73\x70\x6c\x61\x79\x5f\141\164\164\162"]) ? $Ss["\x64\x69\x73\160\154\141\x79\137\x61\x74\164\162"] : '', "\x6b\145\x65\x70\137\x65\170\151\163\164\x69\156\147\x5f\x75\x73\x65\x72\x5f\x72\157\x6c\145\x73" => boolval($su->mo_oauth_client_get_option("\x6d\157\137\157\141\x75\x74\150\x5f\143\154\151\x65\x6e\x74\x5f" . $ls . "\137\153\x65\145\x70\x5f\145\x78\x69\x73\164\151\x6e\147\137\165\163\145\x72\137\162\157\154\145\163"))];
        if (!($cs["\x61\160\x70\137\x74\x79\x70\x65"] === "\x6f\141\x75\x74\x68\61")) {
            goto Eu;
        }
        $cs["\x72\145\x71\x75\145\x73\164\x75\x72\x6c"] = isset($Ss["\x72\x65\161\x75\x65\x73\164\165\162\x6c"]) ? $Ss["\x72\x65\x71\x75\x65\163\164\x75\162\x6c"] : '';
        $cs["\141\160\x70\137\164\171\160\x65"] = "\157\141\x75\x74\x68\x31";
        Eu:
        if (!(!isset($cs["\x61\160\x70\137\x74\x79\x70\145"]) || false === $cs["\x61\x70\160\137\x74\x79\x70\x65"])) {
            goto W7;
        }
        $cs["\141\160\160\x5f\x74\x79\160\145"] = isset($Ss["\141\160\x70\164\171\x70\145"]) ? $Ss["\x61\x70\x70\164\x79\x70\145"] : "\157\x61\x75\164\x68";
        W7:
        $cs = $this->migrate_mapped_roles($cs, $Ss, $ls);
        $this->app_config = $cs;
    }
    protected function migrate_mapped_roles($MX, $mJ, $ls)
    {
        if (isset($MX["\162\157\x6c\x65\x5f\x6d\x61\x70\x70\151\156\x67\x5f\x63\x6f\x75\156\x74"])) {
            goto gk;
        }
        return $MX;
        gk:
        global $su;
        $GT = $MX["\162\157\x6c\145\137\x6d\x61\x70\160\x69\x6e\x67\137\143\157\x75\x6e\x74"];
        $lz = $GT;
        yW:
        if (!($lz > 0)) {
            goto Ug;
        }
        $MX["\137\x6d\141\160\160\151\x6e\147\x5f\153\x65\x79\137" . $lz] = !isset($mJ["\x5f\x6d\141\x70\160\151\156\147\137\x6b\x65\x79\x5f" . $lz]) || empty($mJ["\137\x6d\x61\160\x70\x69\156\x67\137\153\x65\x79\x5f" . $lz]) ? $su->mo_oauth_client_get_option("\x6d\157\x5f\157\141\x75\164\x68\x5f\x63\154\x69\145\156\164\x5f" . $ls . "\137\x6d\141\x70\160\151\x6e\x67\x5f\153\x65\171\x5f" . $lz) : $mJ["\x5f\x6d\141\160\160\151\x6e\147\x5f\153\x65\x79\x5f" . $lz];
        $MX["\137\155\141\160\x70\x69\156\147\137\x76\x61\x6c\x75\145\x5f" . $lz] = !isset($mJ["\137\x6d\141\x70\x70\151\x6e\x67\137\166\x61\154\x75\145\x5f" . $lz]) || empty($mJ["\x5f\x6d\141\160\x70\151\156\147\x5f\x76\141\154\165\x65\137" . $lz]) ? $su->mo_oauth_client_get_option("\155\157\137\157\141\165\x74\x68\x5f\143\154\x69\145\156\164\137" . $ls . "\137\x6d\141\x70\160\x69\x6e\x67\x5f\166\141\154\165\x65\x5f" . $lz) : $mJ["\137\155\x61\160\x70\151\x6e\147\x5f\166\x61\154\x75\145\x5f" . $lz];
        xD:
        $lz--;
        goto yW;
        Ug:
        return $MX;
    }
    public function __toString()
    {
        return json_encode([$this->app_name => $this->app_config]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 dbd498c165db781f62d20031dd099cd8
Eval Count 0
Decode Time 62 ms