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\Free\FreeSettings; use ..
Decoded Output download
<?php
namespace MoOauthClient\Standard;
use MoOauthClient\Free\FreeSettings;
use MoOauthClient\Free\CustomizationSettings;
use MoOauthClient\Standard\AppSettings;
use MoOauthClient\Standard\SignInSettingsSettings;
use MoOauthClient\Standard\Customer;
use MoOauthClient\App;
use MoOauthClient\Config;
use MoOauthClient\Widget\MOUtils;
use MoOauthClient\LicenseLibrary\Mo_License_Service;
use MoOauthClient\MO_Oauth_Debug;
use MoOauthClient\LicenseLibrary\Utils\Mo_License_Actions_Utility;
use MoOauthClient\LicenseLibrary\Classes\Mo_License_Constants;
class StandardSettings
{
private $free_settings;
public function __construct()
{
add_filter("cron_schedules", array($this, "mo_oauth_schedule"));
if (wp_next_scheduled("mo_oauth_schedule")) {
goto adL;
}
wp_schedule_event(time(), "every_n_minutes", "mo_oauth_schedule");
adL:
add_action("mo_oauth_schedule", array($this, "every_seven_days_event_func"));
$this->free_settings = new FreeSettings();
add_action("admin_init", array($this, "mo_oauth_client_standard_settings"));
add_action("do_main_settings_internal", array($this, "do_internal_settings"), 1, 10);
}
public function mo_oauth_schedule($MA)
{
$MA["every_n_minutes"] = array("interval" => 60 * 60 * 24 * 7, "display" => __("Every n Minutes", "textdomain"));
return $MA;
}
public function mo_oauth_update_license_expiry()
{
$this->every_seven_days_event_func();
}
public function every_seven_days_event_func()
{
global $su;
$bT = new Customer();
$sA = $bT->check_customer_ln();
$sA = json_decode($sA, true);
if (!is_multisite()) {
goto B5x;
}
$su->mo_oauth_client_update_option("noOfSubSites", intval($sA["noOfSubSites"]));
B5x:
$this->mo_oauth_initiate_expiration();
$this->mo_oauth_initiate_license_domain_check($bT);
}
public function mo_oauth_initiate_expiration()
{
global $su;
$jd = "disabled";
$tT = new SignInSettingsSettings();
$MX = $tT->get_config_option();
if (class_exists("MoOauthClient\LicenseLibrary\Mo_License_Service")) {
goto QEa;
}
MO_Oauth_Debug::mo_oauth_log("Subscription Library class Mo_License_Service not found");
goto IDZ;
QEa:
Mo_License_Service::refresh_license_expiry();
if (!class_exists("MoOauthClient\LicenseLibrary\Utils\Mo_License_Actions_Utility")) {
goto zg8;
}
$MX->add_config("mo_dte_data", $su->mooauthencrypt(Mo_License_Actions_Utility::fetch_license_expiry_date()));
$tT->save_config_option($MX);
zg8:
IDZ:
}
public function mo_oauth_initiate_license_domain_check($bT)
{
global $su;
$Jf = $su->mo_oauth_client_get_option("mo_oauth_lk");
$Cn = $su->mooauthdecrypt($Jf);
$sA = json_decode($bT->XfskodsfhHJ($Cn), true);
if (isset($sA) && strcasecmp($sA["status"], "FAILED") === 0) {
goto UR3;
}
if (isset($sA) && strcasecmp($sA["status"], "SUCCESS") === 0) {
goto h1P;
}
goto OnQ;
UR3:
if (!(strcasecmp($sA["message"], "Code has Expired") === 0)) {
goto vSS;
}
$su->mo_oauth_client_update_option("mo_oauth_ld", $su->mooauthencrypt("false"));
vSS:
goto OnQ;
h1P:
$su->mo_oauth_client_update_option("mo_oauth_ld", $su->mooauthencrypt("true"));
OnQ:
}
public function mo_oauth_client_standard_settings()
{
$s1 = new CustomizationSettings();
$tT = new SignInSettingsSettings();
$Ml = new AppSettings();
$s1->save_customization_settings();
$Ml->save_app_settings();
$tT->mo_oauth_save_settings();
}
public function do_internal_settings($post)
{
global $su;
if (!(isset($_POST["mo_oauth_client_verify_license_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_client_verify_license_nonce"])), "mo_oauth_client_verify_license") && isset($post[\MoOAuthConstants::OPTION]) && "mo_oauth_client_verify_license" === sanitize_text_field(wp_unslash($post[\MoOAuthConstants::OPTION])))) {
goto fmh;
}
if (!current_user_can("administrator")) {
goto dXM;
}
if (!(!isset($post["mo_oauth_client_license_key"]) || empty($post["mo_oauth_client_license_key"]))) {
goto eMF;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Please enter valid license key.");
$this->mo_oauth_show_error_message();
return;
eMF:
$Cn = trim($post["mo_oauth_client_license_key"]);
$bT = new Customer();
$sA = json_decode($bT->check_customer_ln(), true);
$Zx = false;
if (!(isset($sA["isMultiSitePluginRequested"]) && boolval($sA["isMultiSitePluginRequested"]) && is_multisite())) {
goto jLx;
}
$Zx = boolval($sA["isMultiSitePluginRequested"]);
$su->mo_oauth_client_update_option("mo_oauth_isMultiSitePluginRequested", $Zx);
$su->mo_oauth_client_update_option("noOfSubSites", intval($sA["noOfSubSites"]));
jLx:
$oG = 0;
if (!is_multisite()) {
goto aGf;
}
if (!function_exists("get_sites")) {
goto P2p;
}
$oG = count(get_sites(["number" => 1000])) - 1;
P2p:
aGf:
if (!(is_multisite() && $Zx && ($Zx && (!array_key_exists("noOfSubSites", $sA) && $su->is_multisite_versi())))) {
goto glZ;
}
$k1 = $su->mo_oauth_client_get_option("host_name");
$k1 .= "/moas/login?redirectUrl=";
$k1 .= $su->mo_oauth_client_get_option("host_name");
$k1 .= "/moas/initializepayment?requestOrigin=";
$k1 .= "wp_oauth_client_" . strtolower($su->get_versi_str()) . "_plan";
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "You have not upgraded to the correct license plan. Either you have purchased for incorrect no. of sites or you have not selected multisite option while purchasing. <a target="_blank" href="" . $k1 . "" >Click here</a> to upgrade to premium version.");
$su->mo_oauth_show_error_message();
return;
glZ:
if (strcasecmp($sA["status"], "SUCCESS") === 0) {
goto Vtp;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "You haven't upgraded to this plan yet.");
$su->mo_oauth_show_error_message();
goto QGL;
Vtp:
$sA = json_decode($bT->XfskodsfhHJ($Cn), true);
if (isset($sA)) {
goto HTk;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Please check if you have entered a valid license key");
$su->mo_oauth_show_error_message();
goto P7n;
HTk:
if (strcasecmp($sA["status"], "SUCCESS") === 0) {
goto Lhe;
}
if (strcasecmp($sA["status"], "FAILED") === 0) {
goto GYB;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "An error occured while processing your request. Please Try again.");
$su->mo_oauth_show_error_message();
goto csB;
Lhe:
$su->mo_oauth_client_update_option("mo_oauth_lk", $su->mooauthencrypt($Cn));
$su->mo_oauth_client_update_option("mo_oauth_lv", $su->mooauthencrypt("true"));
$this->mo_oauth_initiate_expiration();
$QM = $su->get_app_list();
if (!(!empty($QM) && is_array($QM))) {
goto sv2;
}
foreach ($QM as $Wo => $hD) {
if (is_array($hD) && !empty($hD)) {
goto P7e;
}
if (boolval($hD->get_app_config("client_creds_encrpyted"))) {
goto pWR;
}
$Hx = $hD->get_app_config("client_id");
!empty($Hx) ? $hD->update_app_config("client_id", $su->mooauthencrypt($Hx)) : '';
$dZ = $hD->get_app_config("client_secret");
!empty($dZ) ? $hD->update_app_config("client_secret", $su->mooauthencrypt($dZ)) : '';
$hD->update_app_config("client_creds_encrpyted", true);
pWR:
$av[$Wo] = $hD;
goto FHf;
P7e:
if (!(!isset($hD["client_id"]) || empty($hD["client_id"]))) {
goto bjI;
}
$hD["client_id"] = isset($hD["clientid"]) ? $hD["clientid"] : '';
bjI:
if (!(!isset($hD["client_secret"]) || empty($hD["client_secret"]))) {
goto AVf;
}
$hD["client_secret"] = isset($hD["clientsecret"]) ? $hD["clientsecret"] : '';
AVf:
unset($hD["clientid"]);
unset($hD["clientsecret"]);
if (!(!isset($hD["client_creds_encrpyted"]) || !boolval($hD["client_creds_encrpyted"]))) {
goto eJY;
}
isset($hD["client_id"]) ? $hD["client_id"] = $su->mooauthencrypt($hD["client_id"]) : '';
isset($hD["client_secret"]) ? $hD["client_secret"] = $su->mooauthencrypt($hD["client_secret"]) : '';
$hD["client_creds_encrpyted"] = true;
eJY:
$C9 = new App();
$C9->migrate_app($hD, $Wo);
$av[$Wo] = $C9;
FHf:
aVK:
}
zJG:
sv2:
!empty($QM) ? $su->mo_oauth_client_update_option("mo_oauth_apps_list", $av) : '';
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "Your license is verified. You can now setup the plugin.");
$su->mo_oauth_show_success_message();
goto csB;
GYB:
if (strcasecmp($sA["message"], "Code has Expired") === 0) {
goto ILG;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "You have entered an invalid license key. Please enter a valid license key.");
$su->mo_oauth_show_error_message();
goto ske;
ILG:
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "License key you have entered has already been used. Please enter a key which has not been used before on any other instance or if you have exausted all your keys then buy more.");
$su->mo_oauth_show_error_message();
ske:
csB:
P7n:
QGL:
dXM:
fmh:
if (!(isset($_POST["mo_oauth_change_license_nonce"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_oauth_change_license_nonce"])), "mo_oauth_change_license") && isset($_POST[\MoOAuthConstants::OPTION]) && "change_license" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])) || isset($_POST["mo_update_licence_status_button"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["mo_update_licence_status_button"])), "mo_oauth_update_licnese_status") && isset($_POST[\MoOAuthConstants::OPTION]) && "update_license_status" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
goto yD_;
}
if (!current_user_can("administrator")) {
goto lrP;
}
$this->mo_oauth_update_license_expiry();
return;
lrP:
yD_:
if (!(current_user_can("manage_options") && !empty($_POST["option"]) && Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID === $_POST["option"] && check_admin_referer(Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID))) {
goto ArL;
}
$this->mo_oauth_initiate_expiration();
ArL:
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MoOauthClient\Standard;
use MoOauthClient\Free\FreeSettings;
use MoOauthClient\Free\CustomizationSettings;
use MoOauthClient\Standard\AppSettings;
use MoOauthClient\Standard\SignInSettingsSettings;
use MoOauthClient\Standard\Customer;
use MoOauthClient\App;
use MoOauthClient\Config;
use MoOauthClient\Widget\MOUtils;
use MoOauthClient\LicenseLibrary\Mo_License_Service;
use MoOauthClient\MO_Oauth_Debug;
use MoOauthClient\LicenseLibrary\Utils\Mo_License_Actions_Utility;
use MoOauthClient\LicenseLibrary\Classes\Mo_License_Constants;
class StandardSettings
{
private $free_settings;
public function __construct()
{
add_filter("\143\x72\157\x6e\x5f\x73\x63\x68\x65\x64\165\154\145\x73", array($this, "\x6d\x6f\x5f\157\141\x75\x74\150\x5f\163\x63\x68\145\144\x75\x6c\145"));
if (wp_next_scheduled("\155\157\x5f\157\141\165\x74\x68\x5f\x73\143\150\145\144\165\154\x65")) {
goto adL;
}
wp_schedule_event(time(), "\x65\166\145\162\x79\x5f\x6e\137\155\151\x6e\165\x74\145\x73", "\x6d\x6f\x5f\x6f\141\165\164\x68\137\x73\x63\150\x65\144\165\154\145");
adL:
add_action("\x6d\x6f\x5f\157\x61\165\x74\x68\137\163\x63\150\x65\144\x75\x6c\145", array($this, "\x65\x76\145\x72\171\x5f\163\145\166\x65\156\x5f\144\141\x79\x73\137\145\166\145\x6e\164\137\x66\165\x6e\x63"));
$this->free_settings = new FreeSettings();
add_action("\141\144\155\151\x6e\137\151\x6e\151\x74", array($this, "\x6d\157\137\157\x61\x75\164\x68\137\143\x6c\151\145\x6e\164\137\x73\x74\x61\x6e\144\x61\162\144\137\x73\145\x74\x74\151\156\x67\163"));
add_action("\144\x6f\x5f\x6d\x61\151\156\137\163\145\164\164\151\x6e\147\163\x5f\151\156\x74\x65\162\156\x61\154", array($this, "\144\x6f\x5f\x69\x6e\164\145\x72\x6e\x61\154\x5f\x73\145\164\x74\151\156\x67\163"), 1, 10);
}
public function mo_oauth_schedule($MA)
{
$MA["\145\166\145\x72\x79\x5f\156\x5f\x6d\151\156\165\x74\x65\163"] = array("\151\156\164\x65\162\166\141\x6c" => 60 * 60 * 24 * 7, "\144\x69\x73\160\x6c\141\171" => __("\x45\x76\x65\162\x79\x20\x6e\x20\115\151\156\165\x74\145\x73", "\164\x65\x78\x74\x64\157\x6d\x61\151\156"));
return $MA;
}
public function mo_oauth_update_license_expiry()
{
$this->every_seven_days_event_func();
}
public function every_seven_days_event_func()
{
global $su;
$bT = new Customer();
$sA = $bT->check_customer_ln();
$sA = json_decode($sA, true);
if (!is_multisite()) {
goto B5x;
}
$su->mo_oauth_client_update_option("\156\157\x4f\146\x53\x75\x62\x53\x69\164\145\163", intval($sA["\156\157\117\146\x53\x75\x62\x53\151\x74\145\163"]));
B5x:
$this->mo_oauth_initiate_expiration();
$this->mo_oauth_initiate_license_domain_check($bT);
}
public function mo_oauth_initiate_expiration()
{
global $su;
$jd = "\144\x69\x73\x61\142\154\x65\x64";
$tT = new SignInSettingsSettings();
$MX = $tT->get_config_option();
if (class_exists("\x4d\157\117\141\x75\x74\x68\x43\x6c\x69\x65\x6e\164\x5c\114\x69\143\x65\156\163\x65\x4c\x69\142\162\141\x72\171\x5c\x4d\157\x5f\x4c\x69\143\145\156\163\145\x5f\x53\x65\x72\x76\x69\143\x65")) {
goto QEa;
}
MO_Oauth_Debug::mo_oauth_log("\x53\165\142\163\x63\x72\x69\x70\164\151\157\156\40\114\x69\142\x72\141\x72\171\40\143\x6c\x61\163\163\x20\x4d\157\137\x4c\151\x63\x65\156\163\145\137\123\x65\162\x76\x69\x63\145\x20\x6e\157\164\40\146\x6f\x75\156\144");
goto IDZ;
QEa:
Mo_License_Service::refresh_license_expiry();
if (!class_exists("\115\x6f\117\141\165\x74\x68\x43\x6c\x69\x65\x6e\164\x5c\114\x69\x63\145\156\x73\x65\114\x69\x62\162\141\x72\171\134\x55\164\x69\154\163\x5c\x4d\157\x5f\114\151\143\x65\156\x73\145\x5f\101\143\x74\x69\x6f\x6e\163\x5f\x55\164\151\x6c\151\164\x79")) {
goto zg8;
}
$MX->add_config("\155\157\x5f\x64\x74\145\x5f\144\141\x74\141", $su->mooauthencrypt(Mo_License_Actions_Utility::fetch_license_expiry_date()));
$tT->save_config_option($MX);
zg8:
IDZ:
}
public function mo_oauth_initiate_license_domain_check($bT)
{
global $su;
$Jf = $su->mo_oauth_client_get_option("\x6d\x6f\137\157\x61\x75\x74\150\137\154\x6b");
$Cn = $su->mooauthdecrypt($Jf);
$sA = json_decode($bT->XfskodsfhHJ($Cn), true);
if (isset($sA) && strcasecmp($sA["\163\x74\x61\164\x75\163"], "\106\101\111\114\x45\x44") === 0) {
goto UR3;
}
if (isset($sA) && strcasecmp($sA["\x73\x74\141\x74\165\x73"], "\x53\x55\x43\103\x45\123\123") === 0) {
goto h1P;
}
goto OnQ;
UR3:
if (!(strcasecmp($sA["\155\145\x73\163\x61\x67\x65"], "\103\157\x64\145\40\150\x61\x73\40\105\x78\x70\x69\162\x65\x64") === 0)) {
goto vSS;
}
$su->mo_oauth_client_update_option("\155\157\x5f\157\141\x75\164\150\137\154\144", $su->mooauthencrypt("\146\141\154\163\145"));
vSS:
goto OnQ;
h1P:
$su->mo_oauth_client_update_option("\155\157\137\157\141\165\164\150\x5f\x6c\144", $su->mooauthencrypt("\x74\162\x75\x65"));
OnQ:
}
public function mo_oauth_client_standard_settings()
{
$s1 = new CustomizationSettings();
$tT = new SignInSettingsSettings();
$Ml = new AppSettings();
$s1->save_customization_settings();
$Ml->save_app_settings();
$tT->mo_oauth_save_settings();
}
public function do_internal_settings($post)
{
global $su;
if (!(isset($_POST["\155\157\137\x6f\x61\165\164\150\137\143\x6c\x69\x65\x6e\164\x5f\166\x65\x72\151\x66\x79\137\x6c\x69\143\x65\x6e\163\x65\x5f\x6e\x6f\x6e\143\x65"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\x6f\x5f\x6f\x61\165\x74\x68\137\143\154\x69\145\156\x74\137\166\145\162\151\146\171\x5f\154\x69\x63\x65\156\163\x65\137\x6e\157\156\x63\145"])), "\x6d\x6f\137\157\x61\x75\x74\x68\137\x63\154\x69\145\x6e\x74\137\x76\145\x72\151\x66\171\137\x6c\151\x63\x65\156\163\145") && isset($post[\MoOAuthConstants::OPTION]) && "\155\157\137\157\x61\x75\164\x68\x5f\143\x6c\x69\x65\156\x74\x5f\166\145\162\151\x66\x79\137\x6c\151\143\x65\156\163\145" === sanitize_text_field(wp_unslash($post[\MoOAuthConstants::OPTION])))) {
goto fmh;
}
if (!current_user_can("\141\144\x6d\x69\156\151\x73\164\x72\141\x74\157\x72")) {
goto dXM;
}
if (!(!isset($post["\155\x6f\x5f\157\x61\x75\164\150\x5f\x63\154\151\x65\156\164\x5f\x6c\x69\x63\x65\156\x73\145\137\x6b\x65\171"]) || empty($post["\155\157\137\x6f\x61\x75\164\x68\137\143\x6c\x69\145\156\x74\x5f\x6c\x69\x63\145\x6e\x73\x65\x5f\x6b\145\171"]))) {
goto eMF;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\120\154\x65\x61\x73\x65\x20\145\x6e\x74\145\162\40\166\x61\x6c\x69\x64\40\x6c\151\143\145\x6e\163\x65\40\x6b\x65\171\56");
$this->mo_oauth_show_error_message();
return;
eMF:
$Cn = trim($post["\x6d\x6f\137\157\x61\x75\x74\x68\x5f\143\x6c\151\x65\x6e\164\x5f\154\151\x63\x65\156\x73\145\137\153\145\171"]);
$bT = new Customer();
$sA = json_decode($bT->check_customer_ln(), true);
$Zx = false;
if (!(isset($sA["\x69\163\x4d\165\154\164\151\123\x69\x74\145\120\154\x75\147\151\x6e\x52\x65\x71\165\145\163\x74\145\x64"]) && boolval($sA["\x69\x73\115\165\154\x74\151\123\x69\x74\145\x50\154\x75\147\x69\x6e\x52\x65\x71\x75\x65\163\164\145\x64"]) && is_multisite())) {
goto jLx;
}
$Zx = boolval($sA["\x69\x73\x4d\165\154\164\x69\123\151\x74\x65\120\x6c\165\147\151\156\x52\x65\x71\165\145\x73\x74\x65\x64"]);
$su->mo_oauth_client_update_option("\x6d\157\x5f\157\x61\x75\x74\x68\x5f\x69\163\x4d\165\x6c\x74\x69\x53\x69\x74\x65\120\154\x75\x67\151\x6e\122\x65\161\x75\x65\163\164\x65\x64", $Zx);
$su->mo_oauth_client_update_option("\156\157\117\146\x53\x75\142\123\x69\x74\x65\163", intval($sA["\x6e\x6f\x4f\x66\x53\165\x62\123\x69\x74\x65\163"]));
jLx:
$oG = 0;
if (!is_multisite()) {
goto aGf;
}
if (!function_exists("\147\x65\164\137\163\x69\164\145\x73")) {
goto P2p;
}
$oG = count(get_sites(["\x6e\165\155\142\x65\162" => 1000])) - 1;
P2p:
aGf:
if (!(is_multisite() && $Zx && ($Zx && (!array_key_exists("\x6e\157\117\x66\x53\165\142\123\x69\164\x65\163", $sA) && $su->is_multisite_versi())))) {
goto glZ;
}
$k1 = $su->mo_oauth_client_get_option("\150\x6f\x73\x74\x5f\156\141\x6d\145");
$k1 .= "\x2f\155\157\x61\x73\57\x6c\157\x67\x69\x6e\x3f\162\x65\x64\151\x72\145\143\x74\125\x72\154\x3d";
$k1 .= $su->mo_oauth_client_get_option("\x68\157\163\x74\137\x6e\x61\x6d\145");
$k1 .= "\57\155\x6f\x61\x73\x2f\151\x6e\151\x74\151\x61\x6c\x69\x7a\145\x70\141\171\x6d\145\156\164\x3f\x72\145\161\165\145\163\x74\x4f\x72\151\147\151\156\75";
$k1 .= "\x77\160\x5f\x6f\141\165\164\x68\137\143\154\151\145\156\164\137" . strtolower($su->get_versi_str()) . "\x5f\160\x6c\x61\x6e";
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\157\x75\40\150\141\x76\145\x20\x6e\x6f\164\40\x75\x70\147\x72\x61\144\x65\x64\x20\164\157\x20\x74\x68\x65\40\143\157\x72\162\x65\143\164\40\x6c\x69\x63\x65\156\x73\x65\40\x70\154\x61\156\x2e\x20\x45\151\x74\150\145\x72\40\x79\x6f\165\40\150\x61\166\x65\40\160\x75\x72\x63\150\x61\x73\145\144\40\x66\x6f\x72\40\151\156\143\x6f\x72\162\x65\x63\164\40\156\157\x2e\40\157\146\x20\163\x69\164\145\x73\40\x6f\x72\x20\x79\157\x75\40\x68\x61\166\x65\x20\156\x6f\x74\x20\x73\145\x6c\145\143\164\145\144\x20\155\x75\154\x74\x69\163\x69\164\x65\40\x6f\160\164\x69\157\x6e\40\167\150\151\x6c\x65\x20\x70\165\162\143\150\141\163\151\x6e\x67\x2e\x20\74\x61\40\164\x61\162\x67\x65\x74\x3d\42\x5f\142\154\141\x6e\153\42\40\x68\x72\x65\146\75\42" . $k1 . "\42\40\x3e\x43\154\151\x63\x6b\x20\150\x65\x72\x65\74\57\141\76\x20\x74\x6f\x20\x75\x70\147\162\141\x64\x65\x20\164\157\40\x70\162\x65\155\151\x75\x6d\x20\166\x65\162\163\151\x6f\156\x2e");
$su->mo_oauth_show_error_message();
return;
glZ:
if (strcasecmp($sA["\x73\x74\x61\164\165\163"], "\123\x55\x43\103\x45\x53\x53") === 0) {
goto Vtp;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\x6f\165\x20\x68\x61\166\x65\x6e\47\x74\x20\165\x70\147\x72\141\144\x65\144\x20\164\x6f\x20\x74\150\151\163\40\x70\154\x61\156\40\171\x65\164\56");
$su->mo_oauth_show_error_message();
goto QGL;
Vtp:
$sA = json_decode($bT->XfskodsfhHJ($Cn), true);
if (isset($sA)) {
goto HTk;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\120\x6c\x65\x61\x73\x65\40\x63\x68\145\x63\x6b\x20\151\x66\x20\171\x6f\x75\40\x68\x61\x76\145\40\x65\x6e\164\145\x72\x65\x64\40\141\x20\x76\141\154\x69\144\x20\x6c\x69\x63\145\156\x73\x65\40\153\x65\x79");
$su->mo_oauth_show_error_message();
goto P7n;
HTk:
if (strcasecmp($sA["\163\x74\141\x74\165\x73"], "\x53\125\103\x43\x45\123\x53") === 0) {
goto Lhe;
}
if (strcasecmp($sA["\163\x74\141\164\165\163"], "\106\x41\x49\x4c\x45\104") === 0) {
goto GYB;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\101\x6e\x20\x65\162\162\x6f\x72\40\157\143\x63\165\162\145\144\x20\x77\x68\x69\x6c\x65\40\160\x72\157\x63\x65\163\x73\151\156\147\x20\171\157\x75\162\x20\162\x65\x71\165\145\x73\164\x2e\x20\x50\x6c\145\141\163\145\40\x54\162\171\x20\141\x67\x61\151\156\56");
$su->mo_oauth_show_error_message();
goto csB;
Lhe:
$su->mo_oauth_client_update_option("\x6d\157\x5f\157\141\165\164\150\x5f\154\153", $su->mooauthencrypt($Cn));
$su->mo_oauth_client_update_option("\155\157\x5f\157\x61\x75\164\150\137\154\x76", $su->mooauthencrypt("\x74\x72\x75\145"));
$this->mo_oauth_initiate_expiration();
$QM = $su->get_app_list();
if (!(!empty($QM) && is_array($QM))) {
goto sv2;
}
foreach ($QM as $Wo => $hD) {
if (is_array($hD) && !empty($hD)) {
goto P7e;
}
if (boolval($hD->get_app_config("\143\x6c\x69\x65\x6e\164\137\143\x72\x65\144\163\137\145\x6e\143\x72\160\x79\x74\145\144"))) {
goto pWR;
}
$Hx = $hD->get_app_config("\x63\154\x69\145\156\164\137\151\144");
!empty($Hx) ? $hD->update_app_config("\143\x6c\151\x65\156\x74\x5f\151\144", $su->mooauthencrypt($Hx)) : '';
$dZ = $hD->get_app_config("\143\154\151\x65\x6e\164\137\x73\145\x63\x72\x65\x74");
!empty($dZ) ? $hD->update_app_config("\x63\x6c\x69\145\156\164\137\x73\x65\x63\162\x65\164", $su->mooauthencrypt($dZ)) : '';
$hD->update_app_config("\143\x6c\151\145\x6e\x74\137\143\x72\x65\x64\163\137\x65\x6e\143\162\x70\171\164\x65\x64", true);
pWR:
$av[$Wo] = $hD;
goto FHf;
P7e:
if (!(!isset($hD["\143\154\151\x65\156\164\x5f\x69\x64"]) || empty($hD["\x63\154\151\x65\x6e\164\x5f\x69\144"]))) {
goto bjI;
}
$hD["\143\154\x69\x65\x6e\164\137\151\144"] = isset($hD["\x63\x6c\x69\145\156\x74\151\x64"]) ? $hD["\143\154\151\145\156\164\x69\144"] : '';
bjI:
if (!(!isset($hD["\143\x6c\x69\x65\x6e\164\137\x73\145\143\x72\x65\x74"]) || empty($hD["\x63\x6c\151\x65\x6e\164\137\x73\x65\x63\162\x65\x74"]))) {
goto AVf;
}
$hD["\x63\154\x69\145\156\164\137\x73\145\143\162\x65\x74"] = isset($hD["\x63\154\x69\x65\156\x74\163\x65\143\162\x65\x74"]) ? $hD["\x63\x6c\x69\x65\x6e\164\163\x65\x63\x72\145\x74"] : '';
AVf:
unset($hD["\143\154\151\x65\x6e\x74\x69\x64"]);
unset($hD["\143\x6c\151\145\156\164\x73\x65\x63\162\145\x74"]);
if (!(!isset($hD["\143\154\151\x65\156\164\x5f\143\x72\x65\144\163\x5f\x65\x6e\143\x72\160\171\164\x65\x64"]) || !boolval($hD["\143\x6c\151\x65\x6e\x74\x5f\143\x72\x65\144\163\x5f\x65\156\x63\162\160\171\164\145\x64"]))) {
goto eJY;
}
isset($hD["\x63\154\151\145\156\164\x5f\x69\x64"]) ? $hD["\143\x6c\151\145\x6e\164\x5f\151\144"] = $su->mooauthencrypt($hD["\143\154\x69\x65\156\x74\137\151\144"]) : '';
isset($hD["\143\x6c\151\145\x6e\x74\137\163\145\x63\162\x65\x74"]) ? $hD["\x63\x6c\151\145\156\164\x5f\x73\145\143\x72\145\164"] = $su->mooauthencrypt($hD["\143\x6c\151\145\156\164\x5f\163\145\143\x72\145\164"]) : '';
$hD["\x63\154\151\145\156\x74\x5f\x63\x72\x65\x64\x73\137\145\156\x63\162\160\x79\164\x65\144"] = true;
eJY:
$C9 = new App();
$C9->migrate_app($hD, $Wo);
$av[$Wo] = $C9;
FHf:
aVK:
}
zJG:
sv2:
!empty($QM) ? $su->mo_oauth_client_update_option("\155\x6f\x5f\157\x61\165\x74\150\137\141\x70\160\x73\137\x6c\x69\163\164", $av) : '';
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\131\x6f\165\x72\40\154\x69\143\145\156\x73\x65\x20\x69\x73\x20\x76\145\162\151\x66\151\145\144\56\x20\x59\157\x75\x20\x63\141\156\40\x6e\157\x77\x20\163\x65\164\x75\160\40\164\x68\x65\40\x70\x6c\x75\147\x69\x6e\x2e");
$su->mo_oauth_show_success_message();
goto csB;
GYB:
if (strcasecmp($sA["\155\145\163\163\x61\x67\145"], "\x43\x6f\x64\x65\x20\150\141\163\x20\x45\170\160\x69\x72\x65\144") === 0) {
goto ILG;
}
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x59\157\x75\x20\150\x61\x76\145\x20\145\x6e\x74\145\162\x65\x64\x20\141\x6e\x20\151\156\x76\x61\154\x69\144\x20\154\x69\x63\x65\156\163\x65\40\153\145\x79\x2e\x20\x50\x6c\x65\x61\x73\145\x20\x65\x6e\x74\x65\x72\40\x61\40\x76\x61\154\151\144\40\x6c\151\x63\145\156\163\x65\x20\x6b\145\x79\56");
$su->mo_oauth_show_error_message();
goto ske;
ILG:
$su->mo_oauth_client_update_option(\MoOAuthConstants::PANEL_MESSAGE_OPTION, "\x4c\151\x63\x65\x6e\x73\145\x20\153\145\171\40\171\x6f\x75\40\150\141\x76\145\40\x65\156\x74\x65\162\x65\x64\40\x68\141\163\40\x61\154\x72\145\141\x64\171\x20\142\x65\145\x6e\40\x75\163\145\x64\x2e\40\120\154\145\x61\163\x65\x20\x65\x6e\x74\145\x72\x20\141\x20\x6b\x65\171\x20\x77\x68\151\x63\x68\x20\x68\x61\163\x20\x6e\157\x74\x20\x62\x65\x65\156\40\x75\163\x65\x64\x20\142\x65\146\x6f\162\x65\40\157\156\40\141\156\x79\40\x6f\x74\150\x65\x72\40\x69\x6e\x73\x74\x61\x6e\143\x65\x20\157\x72\40\x69\146\x20\x79\x6f\x75\x20\150\x61\166\145\x20\x65\x78\x61\x75\x73\x74\x65\x64\x20\141\x6c\154\40\x79\157\x75\x72\40\x6b\x65\171\x73\x20\164\x68\x65\156\x20\x62\x75\x79\40\x6d\x6f\x72\x65\x2e");
$su->mo_oauth_show_error_message();
ske:
csB:
P7n:
QGL:
dXM:
fmh:
if (!(isset($_POST["\x6d\x6f\137\157\x61\x75\x74\150\x5f\x63\150\141\x6e\x67\145\137\154\x69\143\145\156\x73\x65\x5f\x6e\157\156\x63\145"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\x6d\x6f\x5f\157\141\165\164\x68\x5f\143\x68\x61\x6e\x67\x65\137\154\x69\143\145\156\163\x65\137\x6e\x6f\x6e\x63\145"])), "\155\x6f\137\x6f\x61\x75\164\x68\137\143\150\x61\156\x67\x65\137\154\x69\143\x65\x6e\x73\145") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x63\x68\x61\156\x67\x65\x5f\154\151\x63\145\x6e\x73\145" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])) || isset($_POST["\155\157\x5f\165\x70\144\x61\x74\145\137\154\151\143\145\156\143\x65\x5f\x73\164\141\164\x75\163\x5f\x62\165\164\164\157\x6e"]) && wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\155\157\137\165\160\144\x61\164\145\137\154\151\143\x65\156\x63\145\x5f\x73\x74\141\x74\165\x73\137\x62\165\x74\x74\x6f\156"])), "\155\157\137\157\141\165\164\x68\137\x75\x70\x64\141\x74\x65\137\154\151\143\x6e\x65\x73\x65\137\163\x74\x61\x74\x75\163") && isset($_POST[\MoOAuthConstants::OPTION]) && "\x75\x70\x64\x61\x74\145\137\154\151\x63\x65\x6e\x73\145\137\163\x74\x61\x74\x75\x73" === sanitize_text_field(wp_unslash($_POST[\MoOAuthConstants::OPTION])))) {
goto yD_;
}
if (!current_user_can("\x61\144\155\x69\x6e\x69\x73\164\162\141\x74\157\162")) {
goto lrP;
}
$this->mo_oauth_update_license_expiry();
return;
lrP:
yD_:
if (!(current_user_can("\155\x61\156\141\147\x65\x5f\157\160\x74\151\157\156\x73") && !empty($_POST["\157\160\164\151\x6f\156"]) && Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID === $_POST["\157\160\164\x69\157\156"] && check_admin_referer(Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID))) {
goto ArL;
}
$this->mo_oauth_initiate_expiration();
ArL:
}
}
Function Calls
None |
Stats
MD5 | 90a4098bd7598b024be919722cca9fbc |
Eval Count | 0 |
Decode Time | 48 ms |