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\Premium; use MoOauthClient\App; use MoOauthClient\S..
Decoded Output download
<?php
namespace MoOauthClient\Premium;
use MoOauthClient\App;
use MoOauthClient\Standard\AppSettings as StandardAppSettings;
class AppSettings extends StandardAppSettings
{
public function __construct()
{
parent::__construct();
add_action("mo_oauth_client_save_app_settings_internal", array($this, "save_role_mapping"));
}
public function change_app_settings($post, $Yp)
{
global $Vu;
$Yp = parent::change_app_settings($post, $Yp);
$Yp["groupdetailsurl"] = isset($post["mo_oauth_groupdetailsurl"]) ? trim(stripslashes($post["mo_oauth_groupdetailsurl"])) : '';
$Yp["grant_type"] = isset($post["grant_type"]) ? stripslashes($post["grant_type"]) : "Authorization Code Grant";
if (isset($post["enable_oauth_wp_login"]) && "on" === $post["enable_oauth_wp_login"]) {
goto pv;
}
$Vu->mo_oauth_client_delete_option("mo_oauth_enable_oauth_wp_login");
goto Yf;
pv:
$Vu->mo_oauth_client_update_option("mo_oauth_enable_oauth_wp_login", isset($_GET["app"]) ? sanitize_text_field(wp_unslash($_GET["app"])) : '');
Yf:
return $Yp;
}
public function save_advanced_grant_settings()
{
if (!(!isset($_POST["mo_oauth_grant_settings_nonce"]) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_grant_settings_nonce"])), "mo_oauth_grant_settings"))) {
goto oa;
}
return;
oa:
$post = $_POST;
if (!(!isset($post[\MoOAuthConstants::OPTION]) || "mo_oauth_grant_settings" !== $post[\MoOAuthConstants::OPTION])) {
goto Cm;
}
return;
Cm:
if (!(!isset($post[\MoOAuthConstants::POST_APP_NAME]) || empty($post[\MoOAuthConstants::POST_APP_NAME]))) {
goto aY;
}
return;
aY:
global $Vu;
$Pu = $Vu->get_plugin_config()->get_current_config();
$bF = "disabled";
$bF = $Vu->mo_oauth_aemoutcrahsaphtn();
if (!($bF == "disabled")) {
goto Ft;
}
if (!current_user_can("administrator")) {
goto mB;
}
$QA = $post[\MoOAuthConstants::POST_APP_NAME];
$Yp = $Vu->get_app_by_name($QA);
$Yp = $Yp->get_app_config('', false);
$Yp = $this->save_grant_settings($post, $Yp);
$Vu->set_app_by_name($QA, $Yp);
$Vu->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Your Settings have been saved successfully.");
$Vu->mo_oauth_show_success_message();
wp_safe_redirect("admin.php?page=mo_oauth_settings&action=update&app=" . rawurlencode($QA));
mB:
Ft:
}
public function save_grant_settings($post, $Yp)
{
global $Vu;
$Yp["mo_oauth_response_type"] = isset($post["mo_oauth_response_type"]) ? sanitize_text_field(wp_unslash($post["mo_oauth_response_type"])) : '';
$Yp["jwt_support"] = isset($post["jwt_support"]) ? 1 : 0;
$Yp["rsa_cert_type"] = isset($post["rsa_cert_type"]) ? stripslashes($post["rsa_cert_type"]) : "JWKS";
$Yp["jwt_algo"] = isset($post["jwt_algo"]) ? stripslashes($post["jwt_algo"]) : "HSA";
if ("RSA" === $Yp["jwt_algo"] && "JWKS" === $Yp["rsa_cert_type"]) {
goto f7;
}
if ("RSA" === $Yp["jwt_algo"] && "X509" === $Yp["rsa_cert_type"]) {
goto vn;
}
if (!(isset($Yp["x509_cert"]) || isset($Yp["jwksurl"]))) {
goto Gx;
}
unset($Yp["x509_cert"]);
unset($Yp["jwksurl"]);
Gx:
goto Db;
vn:
$Yp["x509_cert"] = isset($post["mo_oauth_x509_cert"]) ? stripslashes($post["mo_oauth_x509_cert"]) : '';
unset($Yp["jwksurl"]);
Db:
goto Oc;
f7:
$Yp["jwksurl"] = isset($post["mo_oauth_jwksurl"]) ? trim(stripslashes($post["mo_oauth_jwksurl"])) : '';
unset($Yp["x509_cert"]);
Oc:
return $Yp;
}
public function change_attribute_mapping($post, $Yp)
{
$Yp = parent::change_attribute_mapping($post, $Yp);
$F_ = array();
$iQ = 0;
foreach ($post as $vv => $ih) {
if (!(strpos($vv, "mo_oauth_client_custom_attribute_key") !== false && !empty($post[$vv]))) {
goto Zm;
}
$Aa = strrpos($vv, "_", -1);
$iQ = substr($vv, $Aa + 1);
$nC = "mo_oauth_client_custom_attribute_value_" . $iQ;
if (!($post[$nC] == '')) {
goto SX;
}
goto hI;
SX:
$F_[$ih] = sanitize_text_field(wp_unslash($post[$nC]));
Zm:
hI:
}
M5:
$Yp["custom_attrs_mapping"] = $F_;
return $Yp;
}
public function save_role_mapping()
{
global $Vu;
$Pu = $Vu->get_plugin_config()->get_current_config();
$bF = "disabled";
$bF = $Vu->mo_oauth_aemoutcrahsaphtn();
if (!($bF == "disabled")) {
goto Ph;
}
if (!(isset($_POST["mo_oauth_client_save_role_mapping_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_client_save_role_mapping_nonce"])), "mo_oauth_client_save_role_mapping") && isset($_POST[\MoOAuthConstants::OPTION]) && "mo_oauth_client_save_role_mapping" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
goto aD;
}
if (!current_user_can("administrator")) {
goto rI;
}
$qR = sanitize_text_field(wp_unslash(isset($_POST[\MoOAuthConstants::POST_APP_NAME]) ? $_POST[\MoOAuthConstants::POST_APP_NAME] : ''));
$Xi = $Vu->get_app_by_name($qR);
$vX = $Xi->get_app_config('', false);
$blog_id = !empty($_GET["blog_id"]) && isset($_GET["blog_id"]) ? $_GET["blog_id"] : 1;
if (!empty($vX["mo_subsite_role_mapping"])) {
goto VI;
}
$vX["mo_subsite_role_mapping"] = array();
VI:
$vX["role_mapping_type"] = isset($_POST["role_mapping_type"]) ? sanitize_text_field($_POST["role_mapping_type"]) : 1;
if ($vX["role_mapping_type"] == 1) {
goto SS;
}
$vX["mo_subsite_role_mapping"][$blog_id]["keep_existing_user_roles"] = isset($_POST["keep_existing_user_roles"]) ? sanitize_text_field(wp_unslash($_POST["keep_existing_user_roles"])) : 0;
$vX["mo_subsite_role_mapping"][$blog_id]["restrict_login_for_mapped_roles"] = isset($_POST["restrict_login_for_mapped_roles"]) ? sanitize_text_field(wp_unslash($_POST["restrict_login_for_mapped_roles"])) : 0;
$vX["mo_subsite_role_mapping"][$blog_id]["extract_email_domain_for_rolemapping"] = isset($_POST["extract_email_domain_for_rolemapping"]) ? sanitize_text_field(wp_unslash($_POST["extract_email_domain_for_rolemapping"])) : 0;
$vX["mo_subsite_role_mapping"][$blog_id]["_mapping_value_default"] = isset($_POST["mapping_value_default"]) ? $_POST["mapping_value_default"] : 0;
$vX["mo_subsite_role_mapping"][$blog_id]["groupname_attribute"] = isset($_POST["mapping_groupname_attribute"]) ? trim(stripslashes($_POST["mapping_groupname_attribute"])) : '';
$eO = 100;
$XI = 0;
$L9 = [];
if (!isset($_POST["mapping_key_"])) {
goto iG;
}
$L9 = array_map("sanitize_text_field", wp_unslash($_POST["mapping_key_"]));
iG:
$Ky = count($L9);
$EW = 1;
$b_ = 1;
oC:
if (!($b_ <= $Ky)) {
goto Q_;
}
if (isset($_POST["mapping_key_"][$EW])) {
goto Io;
}
rP:
if (!($EW < 100)) {
goto sP;
}
if (!isset($_POST["mapping_key_"][$EW])) {
goto o_;
}
if (!('' === $_POST["mapping_key_"][$EW]["value"])) {
goto PV;
}
$EW++;
goto rP;
PV:
$vX["mo_subsite_role_mapping"][$blog_id]["_mapping_key_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["value"] : ''));
$vX["mo_subsite_role_mapping"][$blog_id]["_mapping_value_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["role"] : ''));
$XI++;
$EW++;
goto sP;
o_:
$EW++;
goto rP;
sP:
goto fk;
Io:
if (!('' === $_POST["mapping_key_"][$EW]["value"])) {
goto tF;
}
$EW++;
goto nu;
tF:
$vX["mo_subsite_role_mapping"][$blog_id]["_mapping_key_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["value"] : ''));
$vX["mo_subsite_role_mapping"][$blog_id]["_mapping_value_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["role"] : ''));
$EW++;
$XI++;
fk:
nu:
$b_++;
goto oC;
Q_:
$vX["mo_subsite_role_mapping"][$blog_id]["role_mapping_count"] = $XI;
goto Dj;
SS:
$vX["keep_existing_user_roles"] = isset($_POST["keep_existing_user_roles"]) ? sanitize_text_field(wp_unslash($_POST["keep_existing_user_roles"])) : 0;
$vX["restrict_login_for_mapped_roles"] = isset($_POST["restrict_login_for_mapped_roles"]) ? sanitize_text_field(wp_unslash($_POST["restrict_login_for_mapped_roles"])) : 0;
$vX["extract_email_domain_for_rolemapping"] = isset($_POST["extract_email_domain_for_rolemapping"]) ? sanitize_text_field(wp_unslash($_POST["extract_email_domain_for_rolemapping"])) : 0;
$vX["groupname_attribute"] = isset($_POST["mapping_groupname_attribute"]) ? trim(stripslashes($_POST["mapping_groupname_attribute"])) : '';
$vX["_mapping_value_default"] = isset($_POST["mapping_value_default"]) ? $_POST["mapping_value_default"] : 0;
$eO = 100;
$XI = 0;
$L9 = [];
if (!isset($_POST["mapping_key_"])) {
goto Wi;
}
$L9 = array_map("sanitize_text_field", wp_unslash($_POST["mapping_key_"]));
Wi:
$Ky = count($L9);
$EW = 1;
$b_ = 1;
V7:
if (!($b_ <= $Ky)) {
goto kj;
}
if (isset($_POST["mapping_key_"][$EW])) {
goto Sr;
}
Kk:
if (!($EW < 100)) {
goto Qj;
}
if (!isset($_POST["mapping_key_"][$EW])) {
goto ns;
}
if (!('' === $_POST["mapping_key_"][$EW]["value"])) {
goto We;
}
$EW++;
goto Kk;
We:
$vX["_mapping_key_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["value"] : ''));
$vX["_mapping_value_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["role"] : ''));
$XI++;
$EW++;
goto Qj;
ns:
$EW++;
goto Kk;
Qj:
goto U8;
Sr:
if (!('' === $_POST["mapping_key_"][$EW]["value"])) {
goto Gl;
}
$EW++;
goto Rz;
Gl:
$vX["_mapping_key_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["value"] : ''));
$vX["_mapping_value_" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["mapping_key_"][$EW]) ? $_POST["mapping_key_"][$EW]["role"] : ''));
$EW++;
$XI++;
U8:
Rz:
$b_++;
goto V7;
kj:
$vX["role_mapping_count"] = $XI;
Dj:
$nJ = $Vu->set_app_by_name($qR, $vX);
if (!$nJ) {
goto bE;
}
$Vu->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Your settings are saved successfully.");
$Vu->mo_oauth_show_success_message();
goto f8;
bE:
$Vu->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "There was an error saving settings.");
$Vu->mo_oauth_show_error_message();
f8:
rI:
aD:
Ph:
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MoOauthClient\Premium;
use MoOauthClient\App;
use MoOauthClient\Standard\AppSettings as StandardAppSettings;
class AppSettings extends StandardAppSettings
{
public function __construct()
{
parent::__construct();
add_action("\155\x6f\137\x6f\141\x75\164\150\137\x63\x6c\x69\x65\x6e\x74\137\163\141\x76\145\137\141\x70\x70\137\x73\145\x74\x74\x69\156\x67\x73\x5f\151\x6e\164\145\x72\x6e\x61\154", array($this, "\163\141\166\x65\137\162\157\154\x65\137\155\141\160\160\151\156\147"));
}
public function change_app_settings($post, $Yp)
{
global $Vu;
$Yp = parent::change_app_settings($post, $Yp);
$Yp["\x67\x72\157\x75\160\144\145\x74\141\151\154\x73\165\x72\x6c"] = isset($post["\x6d\157\x5f\157\141\165\x74\x68\x5f\x67\x72\x6f\x75\160\x64\x65\x74\x61\x69\154\163\165\x72\154"]) ? trim(stripslashes($post["\155\157\137\x6f\141\165\164\150\x5f\x67\x72\x6f\x75\160\144\145\164\x61\151\154\163\165\162\154"])) : '';
$Yp["\147\162\141\156\164\x5f\x74\171\x70\145"] = isset($post["\x67\162\141\156\x74\137\x74\171\x70\145"]) ? stripslashes($post["\x67\x72\141\x6e\x74\x5f\164\171\160\x65"]) : "\101\x75\164\150\157\162\151\x7a\141\x74\x69\157\156\40\x43\157\x64\x65\x20\x47\x72\141\156\x74";
if (isset($post["\x65\x6e\141\x62\x6c\x65\137\157\141\165\164\150\137\x77\160\137\154\x6f\x67\x69\156"]) && "\157\156" === $post["\145\x6e\x61\x62\x6c\x65\x5f\x6f\141\x75\x74\150\x5f\167\160\137\154\157\x67\151\x6e"]) {
goto pv;
}
$Vu->mo_oauth_client_delete_option("\x6d\157\x5f\157\141\x75\x74\x68\137\145\156\141\142\154\x65\x5f\x6f\x61\165\164\x68\137\x77\160\137\154\157\147\x69\156");
goto Yf;
pv:
$Vu->mo_oauth_client_update_option("\155\157\x5f\x6f\141\x75\164\150\x5f\145\x6e\141\x62\x6c\x65\x5f\x6f\141\x75\164\x68\137\167\160\x5f\x6c\157\147\151\x6e", isset($_GET["\x61\160\160"]) ? sanitize_text_field(wp_unslash($_GET["\x61\160\160"])) : '');
Yf:
return $Yp;
}
public function save_advanced_grant_settings()
{
if (!(!isset($_POST["\155\x6f\x5f\157\141\165\164\x68\x5f\x67\162\x61\156\164\137\x73\145\164\x74\x69\x6e\x67\x73\x5f\x6e\157\156\x63\x65"]) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\x6f\137\x6f\x61\165\x74\x68\137\x67\162\x61\156\x74\137\163\145\164\164\151\156\x67\163\x5f\x6e\x6f\x6e\x63\x65"])), "\x6d\157\x5f\157\141\x75\164\x68\137\147\162\x61\156\x74\137\163\145\x74\164\151\156\147\163"))) {
goto oa;
}
return;
oa:
$post = $_POST;
if (!(!isset($post[\MoOAuthConstants::OPTION]) || "\x6d\157\x5f\x6f\x61\x75\164\x68\137\x67\162\x61\x6e\164\x5f\163\x65\164\x74\x69\x6e\x67\163" !== $post[\MoOAuthConstants::OPTION])) {
goto Cm;
}
return;
Cm:
if (!(!isset($post[\MoOAuthConstants::POST_APP_NAME]) || empty($post[\MoOAuthConstants::POST_APP_NAME]))) {
goto aY;
}
return;
aY:
global $Vu;
$Pu = $Vu->get_plugin_config()->get_current_config();
$bF = "\144\x69\163\141\x62\154\145\x64";
$bF = $Vu->mo_oauth_aemoutcrahsaphtn();
if (!($bF == "\144\x69\x73\x61\x62\x6c\145\x64")) {
goto Ft;
}
if (!current_user_can("\141\x64\155\151\156\x69\x73\164\x72\141\x74\157\162")) {
goto mB;
}
$QA = $post[\MoOAuthConstants::POST_APP_NAME];
$Yp = $Vu->get_app_by_name($QA);
$Yp = $Yp->get_app_config('', false);
$Yp = $this->save_grant_settings($post, $Yp);
$Vu->set_app_by_name($QA, $Yp);
$Vu->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\157\x75\162\x20\x53\145\164\164\x69\156\147\163\x20\150\141\x76\145\40\142\145\145\x6e\x20\x73\141\166\x65\x64\40\163\165\x63\x63\x65\x73\x73\146\165\x6c\x6c\171\x2e");
$Vu->mo_oauth_show_success_message();
wp_safe_redirect("\x61\144\x6d\151\156\56\160\x68\x70\77\160\x61\x67\145\x3d\155\x6f\x5f\x6f\x61\165\164\x68\x5f\x73\145\x74\x74\151\156\147\163\46\x61\x63\x74\x69\x6f\156\x3d\165\160\144\141\164\x65\46\141\x70\x70\75" . rawurlencode($QA));
mB:
Ft:
}
public function save_grant_settings($post, $Yp)
{
global $Vu;
$Yp["\155\x6f\137\x6f\x61\x75\x74\150\137\x72\145\x73\x70\157\x6e\163\145\137\164\171\x70\145"] = isset($post["\x6d\x6f\x5f\x6f\141\165\x74\x68\137\x72\145\163\x70\x6f\x6e\163\145\137\x74\x79\160\x65"]) ? sanitize_text_field(wp_unslash($post["\x6d\x6f\137\157\x61\165\x74\x68\137\x72\x65\163\160\157\156\x73\145\x5f\x74\x79\x70\x65"])) : '';
$Yp["\x6a\x77\x74\x5f\x73\x75\x70\160\157\x72\x74"] = isset($post["\x6a\x77\x74\x5f\x73\165\160\x70\x6f\x72\x74"]) ? 1 : 0;
$Yp["\x72\163\x61\137\x63\145\x72\x74\137\164\171\x70\x65"] = isset($post["\x72\x73\141\137\x63\x65\162\x74\137\164\171\x70\x65"]) ? stripslashes($post["\162\x73\x61\137\x63\x65\x72\x74\x5f\x74\x79\160\x65"]) : "\112\127\113\x53";
$Yp["\x6a\167\x74\137\x61\x6c\x67\x6f"] = isset($post["\152\x77\x74\x5f\x61\154\x67\157"]) ? stripslashes($post["\x6a\167\x74\137\x61\x6c\x67\x6f"]) : "\x48\x53\101";
if ("\122\x53\x41" === $Yp["\152\167\164\x5f\x61\x6c\x67\x6f"] && "\112\127\113\123" === $Yp["\162\163\141\x5f\143\145\x72\x74\x5f\x74\x79\x70\145"]) {
goto f7;
}
if ("\122\123\101" === $Yp["\152\167\164\x5f\141\x6c\147\x6f"] && "\130\65\60\x39" === $Yp["\162\163\x61\137\x63\145\x72\x74\x5f\164\x79\x70\145"]) {
goto vn;
}
if (!(isset($Yp["\170\65\x30\71\x5f\143\145\x72\164"]) || isset($Yp["\x6a\x77\x6b\163\165\x72\154"]))) {
goto Gx;
}
unset($Yp["\170\x35\60\x39\x5f\143\x65\x72\164"]);
unset($Yp["\152\167\153\x73\x75\x72\x6c"]);
Gx:
goto Db;
vn:
$Yp["\170\65\60\71\137\x63\145\162\164"] = isset($post["\155\157\x5f\x6f\141\x75\x74\150\x5f\x78\65\x30\71\137\x63\x65\x72\164"]) ? stripslashes($post["\155\157\x5f\157\x61\165\x74\x68\137\170\65\60\x39\x5f\x63\x65\x72\164"]) : '';
unset($Yp["\x6a\167\x6b\x73\x75\x72\x6c"]);
Db:
goto Oc;
f7:
$Yp["\152\167\153\163\x75\162\x6c"] = isset($post["\x6d\157\x5f\157\141\x75\x74\x68\137\152\x77\153\x73\x75\x72\154"]) ? trim(stripslashes($post["\x6d\x6f\137\157\x61\165\164\x68\137\x6a\x77\x6b\163\x75\x72\x6c"])) : '';
unset($Yp["\170\x35\x30\x39\x5f\143\x65\162\164"]);
Oc:
return $Yp;
}
public function change_attribute_mapping($post, $Yp)
{
$Yp = parent::change_attribute_mapping($post, $Yp);
$F_ = array();
$iQ = 0;
foreach ($post as $vv => $ih) {
if (!(strpos($vv, "\x6d\157\137\x6f\141\x75\x74\x68\137\x63\x6c\x69\x65\156\x74\137\143\x75\x73\164\x6f\155\137\141\164\x74\162\x69\x62\165\164\145\137\153\145\x79") !== false && !empty($post[$vv]))) {
goto Zm;
}
$Aa = strrpos($vv, "\x5f", -1);
$iQ = substr($vv, $Aa + 1);
$nC = "\x6d\157\x5f\x6f\141\x75\164\150\x5f\x63\154\x69\145\156\x74\x5f\x63\165\x73\x74\x6f\155\137\141\164\164\x72\x69\x62\x75\x74\145\137\x76\141\x6c\165\x65\137" . $iQ;
if (!($post[$nC] == '')) {
goto SX;
}
goto hI;
SX:
$F_[$ih] = sanitize_text_field(wp_unslash($post[$nC]));
Zm:
hI:
}
M5:
$Yp["\143\x75\163\x74\157\x6d\x5f\141\x74\164\162\163\x5f\155\x61\160\160\151\156\x67"] = $F_;
return $Yp;
}
public function save_role_mapping()
{
global $Vu;
$Pu = $Vu->get_plugin_config()->get_current_config();
$bF = "\144\x69\x73\x61\x62\154\145\144";
$bF = $Vu->mo_oauth_aemoutcrahsaphtn();
if (!($bF == "\x64\x69\x73\141\x62\154\x65\144")) {
goto Ph;
}
if (!(isset($_POST["\155\157\137\157\x61\x75\164\150\x5f\143\154\151\145\x6e\164\137\x73\141\x76\x65\x5f\162\x6f\x6c\145\137\155\141\160\160\x69\x6e\147\x5f\x6e\x6f\x6e\x63\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\157\x5f\x6f\x61\165\164\x68\x5f\x63\154\x69\x65\x6e\164\137\163\x61\166\145\x5f\162\x6f\x6c\145\x5f\155\x61\160\160\x69\156\x67\x5f\156\157\156\x63\145"])), "\155\157\x5f\x6f\141\x75\x74\150\137\x63\x6c\151\145\x6e\x74\x5f\163\x61\166\x65\x5f\162\157\x6c\145\x5f\x6d\141\x70\x70\x69\156\147") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x6d\157\137\x6f\141\165\x74\x68\137\x63\x6c\x69\145\156\164\x5f\163\x61\166\145\137\162\157\154\145\x5f\x6d\x61\160\x70\151\x6e\x67" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
goto aD;
}
if (!current_user_can("\141\x64\155\151\x6e\x69\x73\x74\x72\141\164\157\x72")) {
goto rI;
}
$qR = sanitize_text_field(wp_unslash(isset($_POST[\MoOAuthConstants::POST_APP_NAME]) ? $_POST[\MoOAuthConstants::POST_APP_NAME] : ''));
$Xi = $Vu->get_app_by_name($qR);
$vX = $Xi->get_app_config('', false);
$blog_id = !empty($_GET["\142\x6c\x6f\x67\137\x69\144"]) && isset($_GET["\142\154\157\x67\137\x69\144"]) ? $_GET["\x62\154\157\x67\x5f\x69\144"] : 1;
if (!empty($vX["\155\x6f\137\x73\165\142\163\151\x74\145\137\x72\157\x6c\145\137\x6d\x61\x70\x70\151\x6e\x67"])) {
goto VI;
}
$vX["\x6d\x6f\137\163\165\x62\x73\151\164\x65\137\x72\x6f\154\145\x5f\x6d\141\160\x70\151\156\147"] = array();
VI:
$vX["\x72\x6f\x6c\x65\137\x6d\x61\160\160\x69\x6e\147\137\x74\x79\x70\145"] = isset($_POST["\162\157\x6c\x65\137\x6d\x61\x70\x70\x69\156\147\137\x74\x79\x70\x65"]) ? sanitize_text_field($_POST["\x72\157\x6c\145\x5f\x6d\141\160\160\151\156\x67\x5f\164\x79\160\145"]) : 1;
if ($vX["\x72\x6f\x6c\145\x5f\155\x61\160\x70\x69\x6e\x67\x5f\164\x79\x70\x65"] == 1) {
goto SS;
}
$vX["\155\x6f\x5f\163\165\142\163\x69\164\145\137\x72\157\x6c\145\137\x6d\x61\x70\x70\x69\x6e\x67"][$blog_id]["\x6b\145\x65\160\x5f\145\170\x69\163\164\x69\x6e\x67\137\x75\163\x65\x72\137\x72\x6f\x6c\145\163"] = isset($_POST["\153\145\x65\x70\x5f\145\x78\151\x73\x74\151\x6e\x67\137\165\x73\145\x72\x5f\x72\157\x6c\145\163"]) ? sanitize_text_field(wp_unslash($_POST["\153\145\x65\x70\137\x65\170\x69\163\x74\x69\x6e\x67\137\x75\163\145\x72\137\x72\157\154\x65\x73"])) : 0;
$vX["\155\157\137\x73\x75\142\x73\151\164\x65\137\x72\157\154\x65\137\155\x61\160\160\x69\x6e\x67"][$blog_id]["\x72\145\163\164\162\151\143\164\x5f\154\157\x67\x69\156\x5f\x66\x6f\162\x5f\155\x61\160\x70\x65\x64\137\162\157\x6c\145\x73"] = isset($_POST["\x72\145\x73\x74\162\151\143\164\137\x6c\x6f\x67\x69\156\x5f\x66\157\162\x5f\x6d\141\160\x70\145\x64\137\162\157\x6c\x65\163"]) ? sanitize_text_field(wp_unslash($_POST["\x72\x65\x73\164\162\x69\143\164\x5f\154\157\147\x69\156\137\146\157\x72\x5f\x6d\x61\160\160\145\x64\137\162\157\154\145\163"])) : 0;
$vX["\155\x6f\137\163\165\x62\x73\x69\164\145\137\x72\x6f\x6c\145\x5f\155\x61\x70\160\151\156\147"][$blog_id]["\145\170\x74\x72\x61\143\x74\x5f\145\155\141\151\x6c\137\144\x6f\155\141\x69\x6e\137\146\157\x72\137\162\x6f\x6c\x65\155\x61\x70\x70\151\x6e\x67"] = isset($_POST["\145\x78\164\x72\141\143\164\137\145\x6d\x61\x69\x6c\x5f\144\x6f\x6d\x61\151\156\x5f\146\x6f\162\x5f\162\x6f\154\x65\x6d\141\x70\x70\x69\156\x67"]) ? sanitize_text_field(wp_unslash($_POST["\x65\170\164\162\141\143\x74\137\145\155\141\x69\x6c\x5f\144\157\155\141\x69\156\x5f\146\157\162\x5f\162\157\154\145\x6d\141\160\160\151\156\x67"])) : 0;
$vX["\155\x6f\137\163\x75\142\x73\x69\x74\145\137\x72\157\154\145\137\x6d\141\x70\160\151\x6e\147"][$blog_id]["\137\x6d\x61\160\x70\151\x6e\x67\x5f\x76\x61\x6c\x75\x65\x5f\x64\x65\x66\141\165\154\x74"] = isset($_POST["\x6d\x61\160\x70\x69\x6e\147\137\x76\141\154\x75\145\x5f\144\145\x66\x61\165\154\x74"]) ? $_POST["\155\x61\x70\160\151\x6e\147\x5f\166\x61\154\x75\145\137\x64\x65\146\x61\x75\x6c\164"] : 0;
$vX["\x6d\x6f\x5f\x73\165\x62\163\x69\x74\x65\137\x72\157\x6c\145\x5f\x6d\x61\x70\160\x69\x6e\x67"][$blog_id]["\x67\x72\x6f\165\160\156\x61\155\x65\x5f\x61\x74\x74\x72\x69\142\165\164\145"] = isset($_POST["\x6d\x61\x70\160\151\156\x67\x5f\147\162\157\x75\160\156\x61\x6d\x65\137\141\x74\164\162\151\x62\x75\164\x65"]) ? trim(stripslashes($_POST["\155\x61\x70\160\151\x6e\147\137\147\x72\157\x75\x70\156\x61\x6d\x65\x5f\x61\164\x74\x72\151\x62\165\x74\145"])) : '';
$eO = 100;
$XI = 0;
$L9 = [];
if (!isset($_POST["\155\141\x70\x70\x69\156\x67\x5f\x6b\145\171\137"])) {
goto iG;
}
$L9 = array_map("\x73\141\156\151\164\x69\x7a\x65\x5f\x74\145\170\164\x5f\146\x69\145\154\x64", wp_unslash($_POST["\155\141\x70\160\x69\x6e\x67\x5f\153\145\x79\137"]));
iG:
$Ky = count($L9);
$EW = 1;
$b_ = 1;
oC:
if (!($b_ <= $Ky)) {
goto Q_;
}
if (isset($_POST["\155\141\x70\160\x69\x6e\x67\137\x6b\145\171\137"][$EW])) {
goto Io;
}
rP:
if (!($EW < 100)) {
goto sP;
}
if (!isset($_POST["\155\x61\x70\160\x69\x6e\147\x5f\153\145\171\137"][$EW])) {
goto o_;
}
if (!('' === $_POST["\155\141\160\160\151\x6e\x67\x5f\153\145\x79\137"][$EW]["\166\x61\154\165\145"])) {
goto PV;
}
$EW++;
goto rP;
PV:
$vX["\x6d\x6f\x5f\x73\x75\x62\163\151\x74\145\137\x72\157\154\145\x5f\155\x61\160\x70\x69\156\x67"][$blog_id]["\x5f\155\141\160\x70\151\x6e\147\x5f\x6b\145\x79\x5f" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\155\x61\x70\160\151\x6e\x67\x5f\x6b\145\x79\x5f"][$EW]) ? $_POST["\x6d\141\x70\x70\x69\156\x67\x5f\153\x65\x79\x5f"][$EW]["\166\x61\x6c\165\x65"] : ''));
$vX["\x6d\157\x5f\x73\x75\x62\163\151\x74\x65\137\162\x6f\154\145\x5f\x6d\141\x70\160\x69\x6e\x67"][$blog_id]["\x5f\155\141\x70\x70\x69\156\x67\137\x76\x61\154\165\145\137" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\x6d\x61\x70\x70\151\156\x67\x5f\x6b\145\171\137"][$EW]) ? $_POST["\x6d\x61\160\160\151\156\x67\x5f\x6b\145\x79\137"][$EW]["\x72\x6f\154\145"] : ''));
$XI++;
$EW++;
goto sP;
o_:
$EW++;
goto rP;
sP:
goto fk;
Io:
if (!('' === $_POST["\155\x61\160\x70\x69\x6e\147\x5f\153\145\171\x5f"][$EW]["\x76\x61\x6c\165\x65"])) {
goto tF;
}
$EW++;
goto nu;
tF:
$vX["\155\x6f\x5f\163\x75\x62\163\x69\x74\145\137\162\x6f\154\145\137\155\141\x70\160\x69\x6e\147"][$blog_id]["\137\x6d\141\x70\x70\x69\x6e\x67\x5f\153\145\x79\x5f" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\155\x61\160\x70\151\156\x67\137\153\145\x79\137"][$EW]) ? $_POST["\x6d\141\160\160\151\156\147\x5f\x6b\x65\171\x5f"][$EW]["\166\141\x6c\165\145"] : ''));
$vX["\155\157\137\x73\165\x62\x73\151\164\x65\137\x72\x6f\154\x65\137\x6d\x61\160\160\x69\x6e\x67"][$blog_id]["\137\x6d\x61\x70\x70\151\x6e\147\x5f\166\x61\x6c\x75\145\x5f" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\x6d\141\x70\x70\151\156\147\x5f\x6b\145\x79\137"][$EW]) ? $_POST["\x6d\141\x70\160\151\x6e\147\137\153\x65\171\137"][$EW]["\162\157\x6c\x65"] : ''));
$EW++;
$XI++;
fk:
nu:
$b_++;
goto oC;
Q_:
$vX["\x6d\157\137\163\x75\142\x73\151\x74\x65\x5f\x72\157\x6c\145\x5f\155\x61\x70\x70\x69\x6e\x67"][$blog_id]["\x72\x6f\x6c\145\x5f\x6d\x61\160\160\151\156\x67\x5f\143\x6f\x75\x6e\164"] = $XI;
goto Dj;
SS:
$vX["\153\145\145\x70\x5f\145\x78\151\163\164\x69\156\x67\137\x75\163\145\x72\x5f\x72\157\x6c\x65\163"] = isset($_POST["\x6b\145\145\x70\137\x65\170\x69\x73\x74\x69\156\147\137\165\x73\145\162\x5f\162\x6f\154\x65\x73"]) ? sanitize_text_field(wp_unslash($_POST["\153\145\145\160\137\145\x78\x69\163\x74\151\x6e\147\x5f\165\x73\x65\x72\137\162\x6f\x6c\145\163"])) : 0;
$vX["\x72\x65\x73\164\x72\x69\143\x74\137\154\x6f\x67\x69\156\137\x66\x6f\x72\137\x6d\x61\160\160\x65\144\137\x72\157\x6c\145\x73"] = isset($_POST["\x72\x65\163\164\x72\151\143\164\x5f\154\x6f\x67\151\156\137\146\x6f\x72\x5f\155\x61\x70\160\145\x64\x5f\x72\157\154\x65\x73"]) ? sanitize_text_field(wp_unslash($_POST["\x72\145\x73\x74\162\x69\x63\164\x5f\154\157\147\151\156\x5f\x66\157\162\137\155\x61\160\x70\x65\x64\x5f\162\157\154\145\x73"])) : 0;
$vX["\x65\170\x74\162\141\x63\x74\137\x65\155\141\151\154\137\x64\x6f\x6d\x61\x69\x6e\x5f\x66\x6f\x72\137\x72\157\x6c\x65\155\141\x70\160\x69\x6e\x67"] = isset($_POST["\145\170\x74\162\x61\x63\164\137\145\x6d\141\x69\154\137\x64\x6f\x6d\x61\x69\156\137\x66\x6f\162\x5f\x72\157\x6c\145\155\141\160\160\151\156\x67"]) ? sanitize_text_field(wp_unslash($_POST["\x65\x78\x74\x72\x61\143\x74\137\x65\x6d\141\x69\x6c\x5f\144\x6f\155\x61\151\x6e\x5f\x66\x6f\162\x5f\162\157\154\145\155\141\160\x70\x69\x6e\147"])) : 0;
$vX["\x67\162\157\x75\160\156\x61\x6d\x65\137\141\x74\164\162\x69\x62\x75\x74\x65"] = isset($_POST["\x6d\x61\160\160\151\156\x67\x5f\x67\162\157\165\160\x6e\141\155\x65\x5f\x61\x74\164\162\151\x62\165\164\x65"]) ? trim(stripslashes($_POST["\x6d\x61\160\x70\151\156\147\137\x67\162\x6f\x75\160\156\x61\x6d\x65\x5f\x61\x74\164\162\151\x62\165\164\145"])) : '';
$vX["\137\x6d\141\x70\x70\x69\156\x67\137\x76\141\154\165\x65\137\x64\145\x66\141\x75\154\x74"] = isset($_POST["\x6d\x61\160\160\x69\x6e\x67\x5f\166\x61\x6c\165\x65\x5f\144\145\x66\x61\x75\154\x74"]) ? $_POST["\155\x61\160\x70\151\156\x67\137\166\141\x6c\x75\x65\x5f\x64\145\146\141\165\154\x74"] : 0;
$eO = 100;
$XI = 0;
$L9 = [];
if (!isset($_POST["\x6d\x61\160\160\x69\156\x67\137\153\x65\x79\137"])) {
goto Wi;
}
$L9 = array_map("\163\141\156\151\164\x69\x7a\145\137\x74\145\x78\164\x5f\146\151\145\154\x64", wp_unslash($_POST["\155\x61\x70\x70\x69\156\x67\x5f\x6b\145\171\137"]));
Wi:
$Ky = count($L9);
$EW = 1;
$b_ = 1;
V7:
if (!($b_ <= $Ky)) {
goto kj;
}
if (isset($_POST["\x6d\141\x70\x70\x69\156\x67\137\153\x65\x79\x5f"][$EW])) {
goto Sr;
}
Kk:
if (!($EW < 100)) {
goto Qj;
}
if (!isset($_POST["\x6d\x61\x70\160\x69\156\x67\x5f\153\x65\x79\x5f"][$EW])) {
goto ns;
}
if (!('' === $_POST["\x6d\x61\x70\x70\x69\156\147\x5f\x6b\145\171\137"][$EW]["\x76\x61\x6c\x75\145"])) {
goto We;
}
$EW++;
goto Kk;
We:
$vX["\x5f\x6d\x61\x70\x70\151\156\147\x5f\153\145\171\137" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\x6d\x61\x70\x70\x69\156\147\137\153\x65\x79\x5f"][$EW]) ? $_POST["\155\141\x70\x70\151\156\147\x5f\153\145\171\137"][$EW]["\x76\141\x6c\x75\145"] : ''));
$vX["\x5f\x6d\x61\160\x70\x69\x6e\x67\137\x76\x61\x6c\x75\145\137" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\x6d\141\x70\160\151\x6e\x67\x5f\x6b\145\x79\x5f"][$EW]) ? $_POST["\155\x61\x70\x70\151\x6e\147\x5f\x6b\x65\x79\x5f"][$EW]["\162\157\x6c\x65"] : ''));
$XI++;
$EW++;
goto Qj;
ns:
$EW++;
goto Kk;
Qj:
goto U8;
Sr:
if (!('' === $_POST["\x6d\x61\160\x70\x69\x6e\x67\x5f\x6b\x65\171\x5f"][$EW]["\166\141\x6c\x75\x65"])) {
goto Gl;
}
$EW++;
goto Rz;
Gl:
$vX["\137\x6d\141\x70\160\x69\156\147\137\153\145\x79\x5f" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\155\141\x70\x70\x69\156\147\x5f\x6b\x65\x79\137"][$EW]) ? $_POST["\155\141\x70\x70\151\156\x67\x5f\x6b\x65\171\137"][$EW]["\166\x61\x6c\165\145"] : ''));
$vX["\x5f\x6d\141\x70\160\151\156\x67\x5f\x76\x61\x6c\x75\145\x5f" . $b_] = sanitize_text_field(wp_unslash(isset($_POST["\155\x61\160\160\x69\x6e\x67\x5f\153\145\x79\137"][$EW]) ? $_POST["\x6d\x61\x70\160\151\156\x67\137\x6b\x65\x79\137"][$EW]["\162\157\154\145"] : ''));
$EW++;
$XI++;
U8:
Rz:
$b_++;
goto V7;
kj:
$vX["\x72\157\154\x65\137\x6d\141\x70\160\x69\156\147\x5f\143\157\x75\x6e\x74"] = $XI;
Dj:
$nJ = $Vu->set_app_by_name($qR, $vX);
if (!$nJ) {
goto bE;
}
$Vu->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\x6f\165\x72\x20\x73\145\164\x74\x69\x6e\x67\163\40\141\162\x65\40\x73\141\166\x65\144\40\x73\165\x63\x63\x65\x73\163\x66\x75\x6c\154\x79\x2e");
$Vu->mo_oauth_show_success_message();
goto f8;
bE:
$Vu->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x54\150\x65\162\145\40\167\141\x73\x20\141\156\x20\145\162\x72\157\x72\40\x73\141\166\x69\156\x67\x20\x73\x65\164\x74\151\x6e\147\x73\56");
$Vu->mo_oauth_show_error_message();
f8:
rI:
aD:
Ph:
}
}
Function Calls
None |
Stats
MD5 | 108f2209dfd138d4bffe0ffae276881b |
Eval Count | 0 |
Decode Time | 63 ms |