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 require_once dirname(__FILE__) . "\57\x69\156\x63\154\165\x64\x65\x73\x2f\154\x..
Decoded Output download
<?php
require_once dirname(__FILE__) . "/includes/lib/mo-options-enum.php";
add_action("admin_init", "mo_oauth_client_update");
use MoOauthClient\Standard\SignInSettingsSettings;
class mo_oauth_client_update_framework
{
private $current_version;
private $update_path;
private $plugin_slug;
private $slug;
private $plugin_file;
private $new_version_changelog;
public function __construct($je, $Pf = "/", $L1 = "/")
{
$this->current_version = $je;
$this->update_path = $Pf;
$this->plugin_slug = $L1;
list($g0, $YJ) = explode("/", $L1);
$this->slug = $g0;
$this->plugin_file = $YJ;
add_filter("pre_set_site_transient_update_plugins", array(&$this, "mo_oauth_check_update"));
add_filter("plugins_api", array(&$this, "mo_oauth_client_check_info"), 10, 3);
}
public function mo_oauth_check_update($pe)
{
global $Ft;
if (!empty($pe->checked)) {
goto Kw;
}
return $pe;
Kw:
$oo = $this->getRemote();
if (!isset($oo["status"])) {
goto wC;
}
if ($oo["status"] == "SUCCESS") {
goto Z2;
}
if (!($oo["status"] == "DENIED")) {
goto UP;
}
$qu = true;
$Ft->mo_oauth_client_update_option("mo_oauth_sle", $qu);
if (!version_compare($this->current_version, $oo["newVersion"], "<")) {
goto WX;
}
$QM = new stdClass();
$QM->slug = $this->slug;
$QM->new_version = $oo["newVersion"];
$QM->url = "https://miniorange.com";
$QM->plugin = $this->plugin_slug;
$QM->tested = $oo["cmsCompatibilityVersion"];
$QM->icons = array("1x" => $oo["icon"]);
$QM->status_code = $oo["status"];
$QM->license_information = $oo["licenseInformation"];
$Ft->mo_oauth_client_update_option("mo_oauth_license_expiry_date", $oo["liceneExpiryDate"]);
$pe->response[$this->plugin_slug] = $QM;
$qu = true;
$Ft->mo_oauth_client_update_option("mo_oauth_sle", $qu);
set_transient("update_plugins", $pe);
return $pe;
WX:
UP:
goto Av;
Z2:
$qu = false;
$Ft->mo_oauth_client_update_option("mo_oauth_sle", $qu);
if (!version_compare($this->current_version, $oo["newVersion"], "<")) {
goto YM;
}
ini_set("max_execution_time", 600);
ini_set("memory_limit", "1024M");
$Tp = plugin_dir_path(__FILE__);
$Tp = rtrim($Tp, "/");
$Tp = rtrim($Tp, "\");
$Xa = $Tp . "-backup-" . $this->current_version . ".zip";
$this->mo_oauth_client_create_backup_dir();
$cT = $this->getAuthToken();
$E6 = round(microtime(true) * 1000);
$E6 = number_format($E6, 0, '', '');
$QM = new stdClass();
$QM->slug = $this->slug;
$QM->new_version = $oo["newVersion"];
$QM->url = "https://miniorange.com";
$QM->plugin = $this->plugin_slug;
$QM->package = mo_oauth_client_options_plugin_constants::HOSTNAME . "/moas/plugin/download-update?pluginSlug=" . $this->plugin_slug . "&licensePlanName=" . mo_oauth_client_options_plugin_constants::LICENSE_PLAN_NAME . "&customerId=" . $Ft->mo_oauth_client_get_option("mo_oauth_admin_customer_key") . "&licenseType=" . mo_oauth_client_options_plugin_constants::LICENSE_TYPE . "&authToken=" . $cT . "&otpToken=" . $E6;
$QM->tested = $oo["cmsCompatibilityVersion"];
$QM->icons = array("1x" => $oo["icon"]);
$QM->new_version_changelog = $oo["changelog"];
$QM->status_code = $oo["status"];
$Ft->mo_oauth_client_update_option("mo_oauth_license_expiry_date", $oo["liceneExpiryDate"]);
$pe->response[$this->plugin_slug] = $QM;
set_transient("update_plugins", $pe);
return $pe;
YM:
Av:
wC:
return $pe;
}
public function mo_oauth_client_check_info($QM, $kX, $WF)
{
global $Ft;
if (!(($kX == "query_plugins" || $kX == "plugin_information") && isset($WF->slug) && ($WF->slug === $this->slug || $WF->slug === $this->plugin_file))) {
goto Me;
}
$Re = $this->getRemote();
remove_filter("plugins_api", array($this, "mo_oauth_client_check_info"));
$pI = plugins_api("plugin_information", array("slug" => "miniorange-login-with-eve-online-google-facebook", "fields" => array("active_installs" => true, "num_ratings" => true, "rating" => true, "ratings" => true, "reviews" => true)));
$sF = false;
$vA = false;
$wb = false;
$ep = false;
$ls = '';
$eb = '';
if (is_wp_error($pI)) {
goto R5;
}
$sF = $pI->active_installs;
$vA = $pI->rating;
$wb = $pI->ratings;
$ep = $pI->num_ratings;
$ls = $pI->sections["description"];
$eb = $pI->sections["reviews"];
R5:
add_filter("plugins_api", array($this, "mo_oauth_client_check_info"), 10, 3);
if ($Re["status"] == "SUCCESS") {
goto UM;
}
if (!($Re["status"] == "DENIED")) {
goto Wq;
}
if (!version_compare($this->current_version, $Re["newVersion"], "<")) {
goto qa;
}
$vP = new stdClass();
$vP->slug = $this->slug;
$vP->plugin = $this->plugin_slug;
$vP->name = $Re["pluginName"];
$vP->version = $Re["newVersion"];
$vP->new_version = $Re["newVersion"];
$vP->tested = $Re["cmsCompatibilityVersion"];
$vP->requires = $Re["cmsMinVersion"];
$vP->requires_php = $Re["phpMinVersion"];
$vP->compatibility = array($Re["cmsCompatibilityVersion"]);
$vP->url = $Re["cmsPluginUrl"];
$vP->author = $Re["pluginAuthor"];
$vP->author_profile = $Re["pluginAuthorProfile"];
$vP->last_updated = $Re["lastUpdated"];
$vP->banners = array("low" => $Re["banner"]);
$vP->icons = array("1x" => $Re["icon"]);
$vP->sections = array("changelog" => $Re["changelog"], "license_information" => _x($Re["licenseInformation"], "Plugin installer section title"), "description" => $ls, "Reviews" => $eb);
$vP->external = '';
$vP->homepage = $Re["homepage"];
$vP->reviews = true;
$vP->active_installs = $sF;
$vP->rating = $vA;
$vP->ratings = $wb;
$vP->num_ratings = $ep;
$Ft->mo_oauth_client_update_option("mo_oauth_license_expiry_date", $Re["liceneExpiryDate"]);
return $vP;
qa:
Wq:
goto lg;
UM:
$qu = false;
$Ft->mo_oauth_client_update_option("mo_oauth_sle", $qu);
if (!version_compare($this->current_version, $Re["newVersion"], "<=")) {
goto X1;
}
$vP = new stdClass();
$vP->slug = $this->slug;
$vP->name = $Re["pluginName"];
$vP->plugin = $this->plugin_slug;
$vP->version = $Re["newVersion"];
$vP->new_version = $Re["newVersion"];
$vP->tested = $Re["cmsCompatibilityVersion"];
$vP->requires = $Re["cmsMinVersion"];
$vP->requires_php = $Re["phpMinVersion"];
$vP->compatibility = array($Re["cmsCompatibilityVersion"]);
$vP->url = $Re["cmsPluginUrl"];
$vP->author = $Re["pluginAuthor"];
$vP->author_profile = $Re["pluginAuthorProfile"];
$vP->last_updated = $Re["lastUpdated"];
$vP->banners = array("low" => $Re["banner"]);
$vP->icons = array("1x" => $Re["icon"]);
$vP->sections = array("changelog" => $Re["changelog"], "license_information" => _x($Re["licenseInformation"], "Plugin installer section title"), "description" => $ls, "Reviews" => $eb);
$cT = $this->getAuthToken();
$E6 = round(microtime(true) * 1000);
$E6 = number_format($E6, 0, '', '');
$vP->download_link = mo_oauth_client_options_plugin_constants::HOSTNAME . "/moas/plugin/download-update?pluginSlug=" . $this->plugin_slug . "&licensePlanName=" . mo_oauth_client_options_plugin_constants::LICENSE_PLAN_NAME . "&customerId=" . $Ft->mo_oauth_client_get_option("mo_oauth_admin_customer_key") . "&licenseType=" . mo_oauth_client_options_plugin_constants::LICENSE_TYPE . "&authToken=" . $cT . "&otpToken=" . $E6;
$vP->package = $vP->download_link;
$vP->external = '';
$vP->homepage = $Re["homepage"];
$vP->reviews = true;
$vP->active_installs = $sF;
$vP->rating = $vA;
$vP->ratings = $wb;
$vP->num_ratings = $ep;
$Ft->mo_oauth_client_update_option("mo_oauth_license_expiry_date", $Re["liceneExpiryDate"]);
return $vP;
X1:
lg:
Me:
return $QM;
}
private function getRemote()
{
global $Ft;
$Pp = $Ft->mo_oauth_client_get_option("mo_oauth_admin_customer_key");
$m4 = $Ft->mo_oauth_client_get_option("mo_oauth_admin_api_key");
$E6 = round(microtime(true) * 1000);
$C3 = $Pp . number_format($E6, 0, '', '') . $m4;
$cT = hash("sha512", $C3);
$E6 = number_format($E6, 0, '', '');
$pp = array("pluginSlug" => $this->plugin_slug, "licensePlanName" => mo_oauth_client_options_plugin_constants::LICENSE_PLAN_NAME, "customerId" => $Pp, "licenseType" => mo_oauth_client_options_plugin_constants::LICENSE_TYPE);
$af = array("headers" => array("Content-Type" => "application/json; charset=utf-8", "Customer-Key" => $Pp, "Timestamp" => $E6, "Authorization" => $cT), "body" => json_encode($pp), "method" => "POST", "data_format" => "body", "sslverify" => false);
$zC = wp_remote_post($this->update_path, $af);
if (!(!is_wp_error($zC) || wp_remote_retrieve_response_code($zC) === 200)) {
goto u8;
}
$HD = json_decode($zC["body"], true);
return $HD;
u8:
return false;
}
private function getAuthToken()
{
global $Ft;
$Pp = $Ft->mo_oauth_client_get_option("mo_oauth_admin_customer_key");
$m4 = $Ft->mo_oauth_client_get_option("mo_oauth_admin_api_key");
$E6 = round(microtime(true) * 1000);
$C3 = $Pp . number_format($E6, 0, '', '') . $m4;
$cT = hash("sha512", $C3);
return $cT;
}
function zipData($Q3, $ly)
{
if (!(extension_loaded("zip") && file_exists($Q3) && count(glob($Q3 . DIRECTORY_SEPARATOR . "*")) !== 0)) {
goto o4;
}
$xy = new ZipArchive();
if (!$xy->open($ly, ZIPARCHIVE::CREATE)) {
goto Zq;
}
$Q3 = realpath($Q3);
if (is_dir($Q3) === true) {
goto pG;
}
if (!is_file($Q3)) {
goto h5;
}
$xy->addFromString(basename($Q3), file_get_contents($Q3));
h5:
goto cP;
pG:
$Er = new RecursiveDirectoryIterator($Q3);
$Er->setFlags(RecursiveDirectoryIterator::SKIP_DOTS);
$bq = new RecursiveIteratorIterator($Er, RecursiveIteratorIterator::SELF_FIRST);
foreach ($bq as $ul) {
$ul = realpath($ul);
if (is_dir($ul) === true) {
goto aO;
}
if (!(is_file($ul) === true)) {
goto So;
}
$xy->addFromString(str_replace($Q3 . DIRECTORY_SEPARATOR, '', $ul), file_get_contents($ul));
So:
goto RY;
aO:
$xy->addEmptyDir(str_replace($Q3 . DIRECTORY_SEPARATOR, '', $ul . DIRECTORY_SEPARATOR));
RY:
xl:
}
lm:
cP:
Zq:
return $xy->close();
o4:
return false;
}
function mo_oauth_client_plugin_update_message($Tb, $zC)
{
if (array_key_exists("status_code", $Tb)) {
goto pj;
}
return;
pj:
if ($Tb["status_code"] == "SUCCESS") {
goto EI;
}
if (!($Tb["status_code"] == "DENIED")) {
goto hZ;
}
echo sprintf(__($Tb["license_information"]));
hZ:
goto Et;
EI:
$yk = wp_upload_dir();
$of = $yk["basedir"];
$yk = rtrim($of, "/");
$Tp = str_replace("/", "\", $yk) . "\backup";
$Xa = "miniorange-oauth-oidc-single-sign-on-backup-" . $this->current_version;
$by = explode("</ul>", $Tb["new_version_changelog"]);
$fK = $by[0];
$Oe = $fK . "</ul>";
echo "<div><b>" . __("<br />An automatic backup of current version " . $this->current_version . " has been created at the location " . $Tp . " with the name <span style="color:#0073aa;">" . $Xa . "</span>. In case, something breaks during the update, you can revert to your current version by replacing the backup using FTP access.", "miniorange-oauth-oidc-single-sign-on") . "</b></div><div style="color: #f00;"><b>" . __("<br />Take a minute to check the changelog of latest version of the plugin. Here's why you need to update:", "miniorange-oauth-oidc-single-sign-on") . "</b></div>";
echo "<div style="font-weight: normal;">" . $Oe . "</div><b>Note:</b> Please click on <b>View Version details</b> link to get complete changelog and license information. Click on <b>Update Now</b> link to update the plugin to latest version.";
Et:
}
public function mo_oauth_license_domain_notice()
{
echo "<div id="message" style="background:#ffe8e8; border-radius:4px; font-size:13px; border: 1px solid red" class="notice notice notice-warning">\xd
\x9 \x9<img src="" . MOC_URL . "resources/images/warning.png" . "" class="alignleft" height="87" width="66" alt="miniOrange logo" style="margin:2px 0px 0px 0; height:50px; width: 50px;"></img>\xd
\x9\x9\x9\x9<h3 style="font-size:1.2rem; margin: 16.2px 0 16.2px">miniOrange OAuth / OpenID Single Sign-On license not found for this domain.</h3>\xd
\x9\x9 \x9<p style = "font-size:14px; font-weight: 500;">\xd
\x9\x9 \x9Your license key is invalid or expired. As per our licensing policy you can only use one license at one domain at a time. In case you want to use the plugin on multiple domains at a time you would need to go for mutltiple licenses. For more information please reach out to <a href="mailto:[email protected]">[email protected]</a>.<br><br>Please purchase a new license key or deactivate the existing one from another site.<br><br> If you continue to use the plugin it will result in following :-
\x9 \x9\x9</p>
\xa\x9\x9\x9 <li style="margin:0px -2px 2px 13px">\xd
\x9 \x9 \x9<b>Disabling of admin access to update plugin configuration.\xd
\x9 \x9\x9</li>
\x9 \x9 <li style="margin:0px 0px 2px 13px">\xd
\x9\x9 \x9\x9Disabling of SSO on this domain.</b>\xd
</li>
\x9\x9\x9 <br>\xd
\x9 </div>";
}
public function mo_oauth_client_dismiss_notice()
{
global $Ft;
if (!empty($_GET["mooauthclient-dismiss"])) {
goto wb;
}
return;
wb:
if (wp_verify_nonce($_GET["mooauthclient-dismiss"], "oauth-client-dismiss")) {
goto TW;
}
return;
TW:
if (!(isset($_GET["mooauthclient-dismiss"]) && wp_verify_nonce($_GET["mooauthclient-dismiss"], "oauth-client-dismiss"))) {
goto vJ;
}
$zs = new DateTime();
$zs->modify("+1 day");
$Ft->mo_oauth_client_update_option("mo-oauth-client-plugin-timer", $zs);
vJ:
}
function mo_oauth_client_create_backup_dir()
{
$Tp = plugin_dir_path(__FILE__);
$Tp = rtrim($Tp, "/");
$Tp = rtrim($Tp, "\");
$Tb = get_plugin_data(__FILE__);
$e0 = $Tb["TextDomain"];
$yk = wp_upload_dir();
$of = $yk["basedir"];
$yk = rtrim($of, "/");
if (is_writable($yk)) {
goto nC;
}
return;
nC:
$eU = $yk . DIRECTORY_SEPARATOR . "backup" . DIRECTORY_SEPARATOR . $e0 . "-backup-" . $this->current_version;
if (file_exists($eU)) {
goto ex;
}
mkdir($eU, 0777, true);
ex:
$Q3 = $Tp;
$ly = $eU;
$this->mo_oauth_client_copy_files_to_backup_dir($Q3, $ly);
}
function mo_oauth_client_copy_files_to_backup_dir($Tp, $eU)
{
if (!is_dir($Tp)) {
goto zP;
}
$Gb = scandir($Tp);
zP:
if (!empty($Gb)) {
goto sL;
}
return;
sL:
foreach ($Gb as $RC) {
if (!($RC == "." || $RC == "..")) {
goto hL;
}
goto X8;
hL:
$mS = $Tp . DIRECTORY_SEPARATOR . $RC;
$t3 = $eU . DIRECTORY_SEPARATOR . $RC;
if (is_dir($mS)) {
goto ab;
}
copy($mS, $t3);
goto Qh;
ab:
if (file_exists($t3)) {
goto jy;
}
mkdir($t3, 0777, true);
jy:
$this->mo_oauth_client_copy_files_to_backup_dir($mS, $t3);
Qh:
X8:
}
sv:
}
}
function mo_oauth_client_update()
{
global $Ft;
$ZY = $Ft->get_plugin_config()->get_current_config();
$od = time();
if (empty($ZY["mo_dte_data"])) {
goto K1;
}
$od = strtotime($Ft->mooauthdecrypt($ZY["mo_dte_data"]));
K1:
$RY = mo_oauth_client_options_plugin_constants::HOSTNAME;
$bx = mo_oauth_client_options_plugin_constants::Version;
$G2 = $RY . "/moas/api/plugin/metadata";
$L1 = plugin_basename(dirname(__FILE__) . "/mo_oauth_settings.php");
$A1 = new mo_oauth_client_update_framework($bx, $G2, $L1);
add_action("in_plugin_update_message-{$L1}", array($A1, "mo_oauth_client_plugin_update_message"), 10, 2);
$Uu = new SignInSettingsSettings();
$ZY = $Uu->get_config_option();
if ($Ft->mo_oauth_is_cld()) {
goto nK;
}
add_action("admin_head", array($A1, "mo_oauth_license_domain_notice"));
nK:
add_action("admin_notices", array($A1, "mo_oauth_client_dismiss_notice"), 50);
if (!$Ft->mo_oauth_client_get_option("mo_oauth_sle")) {
goto z2;
}
$Ft->mo_oauth_client_update_option("mo_oauth_sle_message", "Your OAuth / OpenID Connect plugin license has been expired. You are missing out on updates and support! Please <a href="" . mo_oauth_client_options_plugin_constants::HOSTNAME . "/moas/login?redirectUrl=" . mo_oauth_client_options_plugin_constants::HOSTNAME . "/moas/admin/customer/licenserenewals?renewalrequest=" . mo_oauth_client_options_plugin_constants::LICENSE_TYPE . " " target="_blank"><b>Click Here</b></a> to renew the Support and Maintenace plan.");
z2:
}
?>
Did this file decode correctly?
Original Code
<?php
require_once dirname(__FILE__) . "\57\x69\156\x63\154\165\x64\x65\x73\x2f\154\x69\142\x2f\155\157\55\x6f\160\x74\151\x6f\156\x73\55\x65\156\165\155\56\160\x68\160";
add_action("\141\144\x6d\151\x6e\137\x69\156\x69\164", "\155\x6f\137\x6f\141\165\164\x68\x5f\x63\154\x69\145\156\x74\137\x75\160\x64\141\x74\x65");
use MoOauthClient\Standard\SignInSettingsSettings;
class mo_oauth_client_update_framework
{
private $current_version;
private $update_path;
private $plugin_slug;
private $slug;
private $plugin_file;
private $new_version_changelog;
public function __construct($je, $Pf = "\57", $L1 = "\x2f")
{
$this->current_version = $je;
$this->update_path = $Pf;
$this->plugin_slug = $L1;
list($g0, $YJ) = explode("\x2f", $L1);
$this->slug = $g0;
$this->plugin_file = $YJ;
add_filter("\160\162\145\x5f\163\145\164\137\x73\x69\x74\145\x5f\x74\x72\141\x6e\163\151\145\156\164\x5f\165\x70\x64\141\164\145\137\160\x6c\165\147\x69\156\163", array(&$this, "\155\x6f\137\x6f\141\x75\164\150\137\143\x68\x65\143\153\x5f\x75\x70\144\x61\x74\x65"));
add_filter("\160\154\165\147\x69\156\163\137\x61\x70\151", array(&$this, "\x6d\157\137\157\x61\x75\x74\x68\137\x63\x6c\151\x65\156\164\137\143\150\x65\x63\x6b\x5f\x69\x6e\x66\157"), 10, 3);
}
public function mo_oauth_check_update($pe)
{
global $Ft;
if (!empty($pe->checked)) {
goto Kw;
}
return $pe;
Kw:
$oo = $this->getRemote();
if (!isset($oo["\163\164\x61\x74\x75\163"])) {
goto wC;
}
if ($oo["\163\164\141\164\165\x73"] == "\123\125\103\x43\x45\123\123") {
goto Z2;
}
if (!($oo["\163\x74\141\x74\x75\x73"] == "\x44\x45\116\x49\x45\104")) {
goto UP;
}
$qu = true;
$Ft->mo_oauth_client_update_option("\155\157\137\157\x61\165\x74\x68\x5f\x73\x6c\145", $qu);
if (!version_compare($this->current_version, $oo["\156\x65\167\126\145\x72\163\151\x6f\x6e"], "\74")) {
goto WX;
}
$QM = new stdClass();
$QM->slug = $this->slug;
$QM->new_version = $oo["\156\x65\167\126\x65\162\x73\x69\x6f\x6e"];
$QM->url = "\150\x74\164\x70\163\72\57\x2f\x6d\151\x6e\151\x6f\x72\141\156\147\x65\x2e\x63\157\155";
$QM->plugin = $this->plugin_slug;
$QM->tested = $oo["\x63\155\163\x43\157\x6d\x70\141\x74\151\x62\x69\x6c\151\x74\171\126\x65\162\163\x69\157\156"];
$QM->icons = array("\x31\170" => $oo["\x69\x63\157\156"]);
$QM->status_code = $oo["\x73\164\141\x74\165\x73"];
$QM->license_information = $oo["\x6c\151\x63\x65\x6e\x73\x65\x49\156\146\x6f\x72\x6d\x61\164\x69\x6f\156"];
$Ft->mo_oauth_client_update_option("\155\157\137\x6f\x61\165\164\x68\137\x6c\x69\143\x65\156\x73\x65\x5f\145\x78\x70\151\162\x79\x5f\x64\x61\164\x65", $oo["\x6c\x69\143\x65\156\x65\x45\170\160\x69\162\x79\x44\141\164\x65"]);
$pe->response[$this->plugin_slug] = $QM;
$qu = true;
$Ft->mo_oauth_client_update_option("\x6d\157\x5f\157\141\x75\164\x68\137\163\154\145", $qu);
set_transient("\165\x70\144\141\164\x65\x5f\160\154\165\x67\x69\x6e\163", $pe);
return $pe;
WX:
UP:
goto Av;
Z2:
$qu = false;
$Ft->mo_oauth_client_update_option("\155\157\137\157\141\165\x74\x68\x5f\x73\154\x65", $qu);
if (!version_compare($this->current_version, $oo["\x6e\x65\x77\x56\145\x72\x73\151\157\156"], "\x3c")) {
goto YM;
}
ini_set("\155\x61\170\x5f\x65\170\x65\x63\x75\164\151\157\156\x5f\x74\151\155\x65", 600);
ini_set("\155\x65\x6d\157\162\x79\x5f\x6c\x69\x6d\x69\164", "\61\x30\x32\x34\115");
$Tp = plugin_dir_path(__FILE__);
$Tp = rtrim($Tp, "\57");
$Tp = rtrim($Tp, "\134");
$Xa = $Tp . "\x2d\142\141\x63\x6b\x75\x70\55" . $this->current_version . "\56\172\151\160";
$this->mo_oauth_client_create_backup_dir();
$cT = $this->getAuthToken();
$E6 = round(microtime(true) * 1000);
$E6 = number_format($E6, 0, '', '');
$QM = new stdClass();
$QM->slug = $this->slug;
$QM->new_version = $oo["\x6e\x65\x77\126\x65\162\x73\x69\157\x6e"];
$QM->url = "\150\x74\x74\160\x73\x3a\x2f\x2f\155\x69\156\151\x6f\162\x61\156\x67\145\x2e\143\x6f\x6d";
$QM->plugin = $this->plugin_slug;
$QM->package = mo_oauth_client_options_plugin_constants::HOSTNAME . "\57\155\x6f\x61\x73\x2f\160\x6c\x75\147\x69\156\x2f\144\157\x77\156\154\157\141\x64\x2d\x75\x70\144\x61\164\145\x3f\160\154\165\147\x69\x6e\123\154\x75\x67\x3d" . $this->plugin_slug . "\x26\154\x69\143\x65\156\163\x65\x50\x6c\141\x6e\x4e\141\155\145\75" . mo_oauth_client_options_plugin_constants::LICENSE_PLAN_NAME . "\x26\143\x75\x73\x74\x6f\x6d\145\162\111\144\x3d" . $Ft->mo_oauth_client_get_option("\x6d\157\x5f\x6f\x61\x75\164\150\x5f\141\144\155\x69\x6e\137\143\165\x73\x74\157\155\x65\162\x5f\x6b\x65\171") . "\46\154\151\143\x65\x6e\x73\145\x54\x79\160\x65\75" . mo_oauth_client_options_plugin_constants::LICENSE_TYPE . "\46\141\x75\x74\x68\x54\157\153\x65\x6e\75" . $cT . "\46\157\x74\x70\124\x6f\x6b\x65\x6e\75" . $E6;
$QM->tested = $oo["\143\x6d\163\x43\x6f\x6d\x70\141\164\x69\x62\151\154\151\164\171\x56\145\162\x73\x69\157\x6e"];
$QM->icons = array("\61\x78" => $oo["\151\143\157\156"]);
$QM->new_version_changelog = $oo["\143\150\141\x6e\147\x65\154\x6f\147"];
$QM->status_code = $oo["\x73\x74\x61\164\165\163"];
$Ft->mo_oauth_client_update_option("\x6d\157\x5f\x6f\141\x75\x74\x68\137\154\x69\x63\145\156\x73\145\137\x65\170\x70\151\162\171\137\x64\x61\x74\145", $oo["\154\151\x63\145\x6e\145\x45\x78\160\x69\x72\171\104\141\164\x65"]);
$pe->response[$this->plugin_slug] = $QM;
set_transient("\165\x70\x64\141\164\x65\137\x70\154\x75\x67\x69\x6e\x73", $pe);
return $pe;
YM:
Av:
wC:
return $pe;
}
public function mo_oauth_client_check_info($QM, $kX, $WF)
{
global $Ft;
if (!(($kX == "\161\x75\145\162\171\137\160\154\x75\x67\151\x6e\163" || $kX == "\160\154\165\x67\x69\x6e\137\151\x6e\x66\157\x72\x6d\141\164\151\x6f\x6e") && isset($WF->slug) && ($WF->slug === $this->slug || $WF->slug === $this->plugin_file))) {
goto Me;
}
$Re = $this->getRemote();
remove_filter("\160\x6c\165\x67\151\x6e\x73\x5f\141\x70\151", array($this, "\155\x6f\137\157\141\165\x74\150\137\143\154\x69\x65\156\164\137\x63\x68\x65\x63\x6b\137\151\x6e\146\157"));
$pI = plugins_api("\x70\154\x75\147\151\x6e\137\151\x6e\146\x6f\x72\155\141\164\x69\157\156", array("\163\154\x75\x67" => "\155\151\156\x69\157\162\x61\x6e\x67\x65\x2d\x6c\x6f\x67\x69\156\55\x77\151\164\x68\55\x65\x76\145\55\157\x6e\154\151\156\145\x2d\147\157\x6f\x67\x6c\x65\55\x66\x61\143\x65\142\157\157\x6b", "\x66\x69\145\x6c\144\163" => array("\x61\x63\x74\x69\166\145\x5f\151\156\163\164\141\x6c\154\163" => true, "\x6e\165\155\x5f\162\141\x74\151\x6e\147\x73" => true, "\x72\141\x74\151\156\147" => true, "\x72\x61\164\x69\156\x67\163" => true, "\162\x65\166\x69\145\167\163" => true)));
$sF = false;
$vA = false;
$wb = false;
$ep = false;
$ls = '';
$eb = '';
if (is_wp_error($pI)) {
goto R5;
}
$sF = $pI->active_installs;
$vA = $pI->rating;
$wb = $pI->ratings;
$ep = $pI->num_ratings;
$ls = $pI->sections["\144\145\163\143\162\x69\x70\164\x69\x6f\x6e"];
$eb = $pI->sections["\162\145\166\x69\x65\167\x73"];
R5:
add_filter("\x70\154\x75\x67\151\x6e\163\x5f\x61\x70\x69", array($this, "\x6d\x6f\137\x6f\x61\x75\x74\x68\137\x63\154\151\145\x6e\x74\137\143\150\145\143\x6b\137\151\156\x66\157"), 10, 3);
if ($Re["\x73\x74\x61\164\x75\163"] == "\x53\125\103\x43\x45\123\123") {
goto UM;
}
if (!($Re["\163\x74\x61\x74\165\163"] == "\104\x45\116\111\105\104")) {
goto Wq;
}
if (!version_compare($this->current_version, $Re["\x6e\x65\167\126\x65\x72\x73\x69\157\156"], "\74")) {
goto qa;
}
$vP = new stdClass();
$vP->slug = $this->slug;
$vP->plugin = $this->plugin_slug;
$vP->name = $Re["\x70\x6c\165\147\151\156\x4e\x61\x6d\145"];
$vP->version = $Re["\156\145\x77\126\145\162\x73\151\x6f\156"];
$vP->new_version = $Re["\156\145\x77\126\145\x72\163\x69\x6f\156"];
$vP->tested = $Re["\x63\x6d\163\103\157\155\160\141\164\151\x62\x69\x6c\x69\x74\171\126\x65\x72\x73\x69\157\x6e"];
$vP->requires = $Re["\143\x6d\163\x4d\x69\156\x56\x65\162\x73\x69\x6f\x6e"];
$vP->requires_php = $Re["\160\150\160\115\151\x6e\126\145\162\163\x69\157\156"];
$vP->compatibility = array($Re["\143\155\x73\x43\157\155\160\x61\164\x69\x62\151\x6c\x69\x74\171\126\145\162\163\x69\x6f\156"]);
$vP->url = $Re["\143\155\x73\x50\154\x75\x67\151\x6e\x55\162\154"];
$vP->author = $Re["\160\x6c\x75\x67\151\x6e\x41\x75\164\150\157\162"];
$vP->author_profile = $Re["\160\154\165\147\151\x6e\x41\165\164\x68\x6f\162\120\x72\157\146\151\x6c\x65"];
$vP->last_updated = $Re["\x6c\141\x73\164\x55\160\x64\141\164\x65\144"];
$vP->banners = array("\x6c\157\167" => $Re["\x62\141\156\x6e\145\x72"]);
$vP->icons = array("\x31\x78" => $Re["\x69\143\x6f\x6e"]);
$vP->sections = array("\143\150\x61\156\147\x65\154\x6f\147" => $Re["\x63\x68\141\156\x67\145\154\x6f\x67"], "\154\x69\143\145\x6e\x73\x65\137\x69\x6e\146\157\x72\x6d\141\x74\151\157\156" => _x($Re["\154\151\x63\x65\156\x73\145\x49\156\x66\157\162\x6d\x61\x74\151\157\x6e"], "\x50\x6c\x75\147\x69\156\x20\151\156\x73\x74\141\154\x6c\x65\162\40\x73\145\143\164\x69\157\156\40\164\151\164\154\x65"), "\x64\x65\x73\x63\x72\x69\x70\164\x69\157\x6e" => $ls, "\122\x65\166\x69\145\167\x73" => $eb);
$vP->external = '';
$vP->homepage = $Re["\x68\x6f\155\x65\160\141\x67\145"];
$vP->reviews = true;
$vP->active_installs = $sF;
$vP->rating = $vA;
$vP->ratings = $wb;
$vP->num_ratings = $ep;
$Ft->mo_oauth_client_update_option("\155\x6f\137\157\x61\165\x74\150\x5f\154\151\x63\x65\x6e\x73\x65\137\x65\170\160\151\x72\171\x5f\144\x61\x74\145", $Re["\154\x69\143\x65\x6e\x65\x45\x78\160\x69\162\x79\104\141\164\145"]);
return $vP;
qa:
Wq:
goto lg;
UM:
$qu = false;
$Ft->mo_oauth_client_update_option("\155\157\137\x6f\141\x75\x74\150\137\x73\154\145", $qu);
if (!version_compare($this->current_version, $Re["\156\x65\x77\x56\145\162\163\x69\x6f\156"], "\x3c\75")) {
goto X1;
}
$vP = new stdClass();
$vP->slug = $this->slug;
$vP->name = $Re["\x70\154\x75\x67\x69\x6e\x4e\x61\x6d\x65"];
$vP->plugin = $this->plugin_slug;
$vP->version = $Re["\156\145\167\126\145\162\163\x69\x6f\x6e"];
$vP->new_version = $Re["\x6e\145\167\x56\x65\162\163\151\157\x6e"];
$vP->tested = $Re["\143\x6d\163\103\x6f\155\160\x61\164\x69\142\151\154\151\x74\171\126\x65\162\x73\151\x6f\156"];
$vP->requires = $Re["\143\x6d\163\x4d\x69\156\126\x65\x72\163\x69\157\x6e"];
$vP->requires_php = $Re["\160\x68\x70\115\151\x6e\x56\x65\162\163\151\157\x6e"];
$vP->compatibility = array($Re["\143\155\x73\x43\x6f\x6d\160\141\x74\151\x62\x69\154\x69\x74\x79\x56\145\x72\x73\151\x6f\156"]);
$vP->url = $Re["\143\155\x73\x50\154\x75\147\151\x6e\x55\x72\154"];
$vP->author = $Re["\x70\154\x75\147\x69\x6e\x41\165\x74\150\157\x72"];
$vP->author_profile = $Re["\x70\154\x75\x67\x69\156\101\x75\x74\x68\x6f\162\120\x72\157\x66\151\154\145"];
$vP->last_updated = $Re["\154\x61\x73\164\x55\160\144\x61\164\145\x64"];
$vP->banners = array("\x6c\157\167" => $Re["\142\141\x6e\x6e\x65\x72"]);
$vP->icons = array("\x31\x78" => $Re["\x69\143\157\156"]);
$vP->sections = array("\143\x68\x61\x6e\x67\145\x6c\x6f\147" => $Re["\143\x68\141\156\147\x65\154\157\147"], "\x6c\151\x63\145\156\x73\x65\137\x69\x6e\146\157\x72\x6d\141\164\151\157\156" => _x($Re["\154\x69\143\145\x6e\x73\x65\111\x6e\x66\157\x72\155\x61\164\151\x6f\x6e"], "\x50\x6c\x75\x67\x69\x6e\x20\x69\x6e\163\164\x61\154\x6c\145\162\x20\x73\145\x63\164\x69\157\156\x20\x74\151\x74\154\145"), "\x64\x65\163\x63\162\151\160\164\151\x6f\156" => $ls, "\122\145\x76\151\x65\x77\x73" => $eb);
$cT = $this->getAuthToken();
$E6 = round(microtime(true) * 1000);
$E6 = number_format($E6, 0, '', '');
$vP->download_link = mo_oauth_client_options_plugin_constants::HOSTNAME . "\57\x6d\x6f\x61\163\57\160\x6c\x75\147\151\156\x2f\144\157\x77\x6e\154\x6f\141\x64\x2d\165\x70\144\x61\164\145\x3f\160\x6c\165\147\151\x6e\x53\154\x75\x67\x3d" . $this->plugin_slug . "\x26\x6c\x69\143\145\156\163\x65\120\x6c\x61\156\116\x61\155\x65\x3d" . mo_oauth_client_options_plugin_constants::LICENSE_PLAN_NAME . "\x26\143\x75\163\x74\157\155\x65\x72\111\144\x3d" . $Ft->mo_oauth_client_get_option("\x6d\x6f\137\x6f\141\x75\164\x68\137\141\144\x6d\x69\x6e\x5f\x63\x75\163\x74\x6f\155\145\162\x5f\153\x65\x79") . "\46\154\151\143\145\156\163\145\x54\x79\160\145\x3d" . mo_oauth_client_options_plugin_constants::LICENSE_TYPE . "\x26\x61\165\x74\150\x54\x6f\153\x65\x6e\x3d" . $cT . "\x26\x6f\x74\x70\x54\157\x6b\145\x6e\75" . $E6;
$vP->package = $vP->download_link;
$vP->external = '';
$vP->homepage = $Re["\x68\x6f\155\145\160\x61\x67\x65"];
$vP->reviews = true;
$vP->active_installs = $sF;
$vP->rating = $vA;
$vP->ratings = $wb;
$vP->num_ratings = $ep;
$Ft->mo_oauth_client_update_option("\x6d\157\x5f\157\141\165\x74\150\137\154\x69\x63\145\156\163\145\137\x65\170\160\x69\x72\171\137\x64\x61\x74\145", $Re["\x6c\x69\143\x65\156\145\x45\170\x70\151\x72\171\104\141\164\145"]);
return $vP;
X1:
lg:
Me:
return $QM;
}
private function getRemote()
{
global $Ft;
$Pp = $Ft->mo_oauth_client_get_option("\x6d\157\x5f\x6f\x61\x75\164\150\x5f\141\144\155\x69\x6e\137\143\x75\163\x74\157\155\x65\x72\x5f\153\145\171");
$m4 = $Ft->mo_oauth_client_get_option("\x6d\x6f\137\x6f\x61\165\x74\150\137\x61\x64\x6d\151\156\x5f\x61\160\x69\137\x6b\145\171");
$E6 = round(microtime(true) * 1000);
$C3 = $Pp . number_format($E6, 0, '', '') . $m4;
$cT = hash("\163\x68\141\65\61\x32", $C3);
$E6 = number_format($E6, 0, '', '');
$pp = array("\160\154\x75\x67\151\x6e\123\x6c\165\x67" => $this->plugin_slug, "\154\x69\143\x65\x6e\163\145\x50\x6c\141\x6e\116\141\x6d\x65" => mo_oauth_client_options_plugin_constants::LICENSE_PLAN_NAME, "\143\165\x73\x74\x6f\155\145\162\111\x64" => $Pp, "\154\151\x63\x65\156\163\x65\x54\x79\160\145" => mo_oauth_client_options_plugin_constants::LICENSE_TYPE);
$af = array("\150\x65\141\144\145\x72\x73" => array("\x43\157\156\164\145\156\164\55\124\x79\160\145" => "\x61\160\160\154\x69\x63\141\x74\151\x6f\x6e\57\x6a\163\157\156\x3b\x20\x63\150\x61\x72\x73\145\x74\x3d\x75\x74\146\x2d\x38", "\103\165\x73\x74\157\155\145\162\55\113\x65\x79" => $Pp, "\124\151\x6d\x65\163\x74\x61\155\x70" => $E6, "\101\x75\x74\x68\x6f\162\x69\172\x61\x74\151\x6f\156" => $cT), "\x62\x6f\144\x79" => json_encode($pp), "\x6d\x65\x74\x68\x6f\144" => "\120\117\123\124", "\144\141\x74\141\137\x66\x6f\x72\155\x61\x74" => "\x62\x6f\144\x79", "\x73\163\x6c\x76\x65\162\x69\x66\x79" => false);
$zC = wp_remote_post($this->update_path, $af);
if (!(!is_wp_error($zC) || wp_remote_retrieve_response_code($zC) === 200)) {
goto u8;
}
$HD = json_decode($zC["\142\x6f\x64\x79"], true);
return $HD;
u8:
return false;
}
private function getAuthToken()
{
global $Ft;
$Pp = $Ft->mo_oauth_client_get_option("\x6d\x6f\x5f\x6f\x61\x75\164\150\x5f\141\144\155\x69\156\x5f\143\x75\163\x74\x6f\x6d\x65\162\137\x6b\x65\x79");
$m4 = $Ft->mo_oauth_client_get_option("\155\157\x5f\157\141\x75\x74\x68\137\x61\144\x6d\x69\x6e\x5f\x61\x70\x69\137\153\145\171");
$E6 = round(microtime(true) * 1000);
$C3 = $Pp . number_format($E6, 0, '', '') . $m4;
$cT = hash("\x73\x68\141\65\61\62", $C3);
return $cT;
}
function zipData($Q3, $ly)
{
if (!(extension_loaded("\x7a\151\x70") && file_exists($Q3) && count(glob($Q3 . DIRECTORY_SEPARATOR . "\x2a")) !== 0)) {
goto o4;
}
$xy = new ZipArchive();
if (!$xy->open($ly, ZIPARCHIVE::CREATE)) {
goto Zq;
}
$Q3 = realpath($Q3);
if (is_dir($Q3) === true) {
goto pG;
}
if (!is_file($Q3)) {
goto h5;
}
$xy->addFromString(basename($Q3), file_get_contents($Q3));
h5:
goto cP;
pG:
$Er = new RecursiveDirectoryIterator($Q3);
$Er->setFlags(RecursiveDirectoryIterator::SKIP_DOTS);
$bq = new RecursiveIteratorIterator($Er, RecursiveIteratorIterator::SELF_FIRST);
foreach ($bq as $ul) {
$ul = realpath($ul);
if (is_dir($ul) === true) {
goto aO;
}
if (!(is_file($ul) === true)) {
goto So;
}
$xy->addFromString(str_replace($Q3 . DIRECTORY_SEPARATOR, '', $ul), file_get_contents($ul));
So:
goto RY;
aO:
$xy->addEmptyDir(str_replace($Q3 . DIRECTORY_SEPARATOR, '', $ul . DIRECTORY_SEPARATOR));
RY:
xl:
}
lm:
cP:
Zq:
return $xy->close();
o4:
return false;
}
function mo_oauth_client_plugin_update_message($Tb, $zC)
{
if (array_key_exists("\x73\x74\141\164\x75\x73\137\143\x6f\144\x65", $Tb)) {
goto pj;
}
return;
pj:
if ($Tb["\163\164\x61\x74\165\163\137\143\157\x64\145"] == "\123\x55\103\x43\x45\123\123") {
goto EI;
}
if (!($Tb["\x73\x74\x61\x74\165\x73\x5f\143\x6f\144\x65"] == "\104\x45\x4e\x49\105\x44")) {
goto hZ;
}
echo sprintf(__($Tb["\154\151\143\145\156\163\x65\137\x69\x6e\x66\x6f\x72\155\141\x74\151\x6f\x6e"]));
hZ:
goto Et;
EI:
$yk = wp_upload_dir();
$of = $yk["\142\x61\x73\x65\x64\151\x72"];
$yk = rtrim($of, "\57");
$Tp = str_replace("\57", "\x5c", $yk) . "\x5c\142\141\x63\x6b\165\160";
$Xa = "\155\x69\156\x69\157\162\x61\x6e\147\145\x2d\157\141\165\164\x68\x2d\157\x69\x64\x63\x2d\163\x69\x6e\x67\154\145\x2d\163\151\x67\x6e\55\157\156\x2d\x62\141\143\153\165\x70\x2d" . $this->current_version;
$by = explode("\74\x2f\165\x6c\76", $Tb["\x6e\145\167\137\x76\145\162\163\151\157\156\137\x63\150\141\156\x67\x65\154\x6f\x67"]);
$fK = $by[0];
$Oe = $fK . "\74\57\x75\154\x3e";
echo "\x3c\144\151\166\76\x3c\142\76" . __("\x3c\142\x72\x20\x2f\x3e\101\x6e\x20\x61\x75\164\157\x6d\141\x74\x69\143\40\x62\x61\x63\153\x75\x70\x20\157\146\40\143\x75\x72\x72\x65\156\x74\40\x76\x65\x72\163\x69\157\156\x20" . $this->current_version . "\x20\150\141\163\40\142\x65\x65\x6e\40\143\162\145\141\x74\145\x64\40\141\164\x20\x74\150\145\40\x6c\157\x63\141\164\x69\x6f\x6e\x20" . $Tp . "\40\167\x69\164\150\40\164\150\145\x20\x6e\141\155\x65\x20\74\163\x70\x61\x6e\x20\163\164\171\x6c\145\75\42\x63\x6f\154\157\162\72\x23\x30\60\67\63\141\x61\73\42\x3e" . $Xa . "\x3c\57\x73\160\x61\156\76\x2e\40\111\x6e\40\x63\141\x73\145\x2c\40\x73\x6f\155\145\164\150\x69\x6e\x67\x20\142\x72\145\x61\x6b\x73\40\x64\165\162\x69\x6e\x67\x20\164\150\x65\40\x75\x70\x64\141\164\x65\x2c\x20\x79\x6f\x75\x20\143\x61\x6e\x20\x72\x65\x76\x65\x72\164\x20\164\157\40\x79\157\x75\162\40\x63\x75\x72\x72\145\x6e\164\40\166\145\162\163\x69\157\156\40\142\171\x20\x72\x65\x70\x6c\141\143\151\x6e\x67\40\x74\150\x65\x20\142\141\143\x6b\x75\160\x20\165\163\x69\156\147\40\x46\124\120\40\x61\x63\143\145\x73\x73\x2e", "\155\x69\x6e\x69\x6f\162\141\156\x67\145\x2d\157\141\x75\164\x68\x2d\157\x69\x64\x63\55\x73\151\156\147\154\x65\x2d\x73\151\x67\156\x2d\x6f\156") . "\x3c\x2f\x62\76\x3c\x2f\x64\x69\166\76\x3c\144\151\166\x20\163\x74\171\154\145\x3d\x22\143\157\x6c\157\x72\x3a\40\43\x66\60\x30\x3b\42\x3e\74\142\x3e" . __("\74\142\162\x20\57\76\x54\x61\153\x65\x20\x61\x20\155\x69\156\x75\x74\x65\x20\164\157\40\x63\150\x65\x63\153\x20\x74\x68\x65\x20\x63\150\x61\x6e\x67\x65\154\157\147\40\x6f\x66\x20\x6c\x61\164\145\163\x74\x20\166\145\x72\163\x69\x6f\156\x20\157\x66\40\164\150\145\40\x70\154\165\x67\151\156\x2e\x20\110\145\162\145\x27\163\x20\167\150\171\x20\x79\x6f\165\40\156\x65\145\x64\40\x74\157\x20\165\160\x64\141\164\x65\72", "\155\151\x6e\x69\157\162\141\156\147\x65\55\x6f\x61\165\164\x68\x2d\x6f\x69\x64\143\55\163\x69\x6e\x67\154\x65\x2d\163\x69\x67\156\55\x6f\x6e") . "\x3c\x2f\142\x3e\74\57\x64\x69\166\x3e";
echo "\74\144\151\166\40\163\164\x79\154\145\x3d\x22\x66\x6f\x6e\164\x2d\x77\145\x69\147\150\x74\72\40\156\x6f\x72\155\141\154\x3b\42\76" . $Oe . "\x3c\57\144\151\166\x3e\74\142\76\116\157\x74\x65\72\74\x2f\142\x3e\40\x50\x6c\145\x61\x73\145\x20\x63\154\x69\x63\x6b\x20\157\x6e\40\x3c\142\x3e\126\151\x65\167\40\x56\145\x72\x73\x69\157\156\40\x64\x65\164\141\x69\154\163\74\57\x62\x3e\x20\x6c\151\x6e\153\40\164\x6f\x20\x67\145\x74\x20\x63\x6f\x6d\160\154\145\164\x65\x20\x63\x68\141\156\x67\145\154\x6f\x67\40\x61\156\x64\40\x6c\x69\x63\145\156\163\145\40\x69\156\146\x6f\x72\x6d\141\164\x69\x6f\156\x2e\x20\103\154\x69\x63\x6b\x20\157\156\40\x3c\x62\76\125\x70\x64\x61\x74\145\40\x4e\157\x77\74\57\x62\76\x20\x6c\151\x6e\153\40\164\157\40\165\x70\x64\x61\x74\145\x20\164\x68\145\40\160\154\165\147\x69\156\x20\x74\x6f\40\x6c\x61\164\x65\163\x74\x20\x76\x65\x72\163\151\157\x6e\x2e";
Et:
}
public function mo_oauth_license_domain_notice()
{
echo "\74\144\x69\x76\40\151\144\75\42\x6d\x65\x73\163\x61\147\145\x22\40\163\164\x79\154\x65\75\42\142\141\x63\x6b\x67\162\157\165\156\x64\72\x23\146\146\145\x38\x65\70\73\x20\x62\157\x72\144\145\162\x2d\x72\x61\x64\151\x75\163\72\x34\x70\x78\x3b\x20\x66\157\x6e\164\x2d\163\151\x7a\x65\x3a\61\x33\x70\x78\x3b\40\142\x6f\x72\144\145\x72\72\x20\x31\160\170\40\163\157\154\151\144\40\x72\145\x64\42\x20\x63\x6c\141\163\x73\x3d\42\x6e\x6f\164\151\x63\x65\x20\x6e\157\164\x69\143\145\40\x6e\x6f\x74\151\143\145\x2d\x77\x61\x72\x6e\151\x6e\x67\x22\76\xd\12\x9\11\11\x9\74\151\x6d\147\x20\x73\162\143\x3d\42" . MOC_URL . "\x72\145\163\157\x75\162\143\x65\x73\x2f\x69\155\141\147\145\163\x2f\167\x61\x72\x6e\151\x6e\147\56\160\x6e\x67" . "\42\x20\143\x6c\x61\163\x73\x3d\42\x61\154\151\x67\156\154\145\146\x74\x22\x20\150\x65\x69\x67\150\164\x3d\42\x38\x37\x22\x20\167\x69\144\x74\x68\x3d\x22\66\66\x22\40\x61\x6c\164\75\42\x6d\x69\156\151\117\x72\141\x6e\147\x65\40\154\x6f\x67\x6f\x22\x20\163\164\171\x6c\145\75\x22\155\141\x72\x67\151\156\72\x32\x70\x78\x20\60\160\170\40\60\x70\170\40\60\73\x20\x68\x65\x69\x67\x68\164\72\x35\x30\x70\170\73\40\x77\151\144\x74\x68\x3a\40\x35\60\x70\x78\73\42\x3e\74\57\151\155\147\76\xd\12\x9\x9\x9\x9\74\x68\63\x20\163\164\171\154\x65\75\x22\x66\x6f\156\164\x2d\x73\151\172\x65\72\61\x2e\62\162\145\155\x3b\x20\155\141\162\147\151\156\x3a\x20\x31\x36\56\x32\x70\x78\40\x30\x20\61\x36\x2e\62\160\x78\x22\x3e\155\x69\x6e\x69\117\162\141\x6e\x67\x65\40\x4f\101\165\164\x68\x20\57\x20\x4f\x70\x65\x6e\x49\104\x20\x53\x69\156\x67\154\x65\40\x53\151\147\156\55\117\x6e\x20\154\x69\143\145\x6e\163\x65\x20\x6e\157\164\x20\146\157\x75\x6e\144\x20\x66\157\162\40\164\x68\x69\163\x20\144\157\x6d\141\151\156\x2e\74\57\150\x33\x3e\xd\12\x9\x9\11\x9\x3c\160\x20\163\x74\171\x6c\145\x20\x3d\x20\42\146\x6f\156\x74\x2d\x73\151\172\145\72\61\x34\160\170\x3b\x20\146\x6f\156\164\55\167\145\x69\x67\x68\x74\x3a\x20\x35\x30\x30\73\x22\76\xd\12\11\x9\x9\11\x9\131\157\165\x72\40\x6c\151\x63\145\156\x73\x65\40\153\145\171\x20\x69\x73\40\x69\x6e\x76\x61\154\x69\144\40\157\x72\x20\x65\x78\160\x69\x72\x65\x64\x2e\40\101\x73\x20\160\x65\x72\40\x6f\x75\x72\x20\x6c\x69\143\x65\x6e\x73\151\156\147\x20\160\x6f\x6c\x69\143\x79\40\x79\157\165\40\143\141\156\x20\157\156\x6c\x79\40\165\163\145\x20\157\x6e\x65\40\154\x69\x63\x65\x6e\x73\x65\x20\141\164\x20\157\x6e\x65\40\x64\x6f\x6d\141\x69\156\40\141\x74\40\x61\x20\164\x69\x6d\x65\56\x20\111\156\x20\x63\x61\x73\x65\40\171\x6f\x75\x20\x77\141\156\164\x20\x74\x6f\40\165\163\x65\x20\164\150\145\40\x70\154\165\147\151\x6e\40\x6f\156\40\x6d\165\x6c\x74\151\160\x6c\145\40\x64\157\155\x61\151\156\x73\40\x61\x74\40\x61\x20\x74\x69\155\x65\x20\x79\x6f\165\x20\167\157\165\x6c\144\40\x6e\x65\145\x64\x20\x74\157\x20\147\157\x20\146\157\x72\x20\155\165\164\x6c\164\x69\x70\154\145\40\x6c\x69\143\145\156\x73\x65\x73\56\x20\x46\x6f\162\40\x6d\x6f\x72\145\x20\x69\156\x66\x6f\x72\x6d\x61\x74\151\x6f\x6e\x20\160\154\x65\x61\x73\145\40\x72\145\141\143\150\40\157\x75\164\40\164\x6f\x20\74\x61\40\150\x72\145\x66\x3d\42\x6d\141\151\154\164\x6f\72\157\x61\x75\x74\150\163\x75\x70\160\x6f\x72\x74\100\x78\x65\143\x75\x72\151\146\171\56\x63\x6f\x6d\x22\76\x6f\x61\165\164\x68\163\x75\160\160\157\162\x74\x40\x78\x65\143\x75\162\151\x66\x79\x2e\143\157\155\x3c\57\141\x3e\56\x3c\142\162\x3e\74\x62\x72\76\x50\154\145\x61\163\145\x20\x70\165\x72\x63\150\141\x73\x65\40\x61\40\156\145\167\x20\x6c\x69\x63\x65\156\163\x65\40\153\x65\x79\x20\157\x72\x20\144\x65\x61\143\x74\x69\166\x61\x74\145\40\x74\x68\145\x20\x65\x78\x69\163\164\151\x6e\x67\40\157\x6e\145\x20\x66\162\157\x6d\x20\141\156\x6f\164\x68\145\162\x20\x73\151\x74\145\56\74\142\162\x3e\74\x62\162\x3e\40\111\x66\40\171\x6f\165\40\x63\x6f\156\x74\151\156\165\145\x20\164\157\x20\165\x73\145\x20\x74\x68\145\40\160\x6c\165\147\x69\156\x20\x69\x74\40\x77\x69\154\154\x20\x72\145\x73\165\x6c\x74\x20\x69\x6e\40\x66\x6f\154\x6c\157\x77\x69\156\147\x20\x3a\x2d\x20\15\12\x9\11\x9\x9\x3c\57\160\76\15\xa\x9\x9\x9\11\x3c\154\x69\40\x73\x74\x79\154\145\75\x22\155\141\x72\x67\151\x6e\72\x30\x70\170\x20\55\62\x70\x78\40\62\160\170\40\61\63\160\x78\x22\76\xd\12\x9\11\x9\11\x9\x3c\142\x3e\x44\151\163\141\142\154\151\x6e\147\40\x6f\146\x20\x61\144\x6d\x69\156\x20\141\x63\x63\145\x73\x73\x20\x74\157\x20\x75\160\144\141\x74\145\x20\160\x6c\165\x67\151\x6e\x20\x63\x6f\x6e\x66\x69\147\x75\x72\141\x74\151\157\156\56\xd\12\x9\11\x9\x9\x3c\x2f\x6c\x69\76\15\12\x9\11\x9\11\74\154\x69\40\x73\164\x79\154\x65\75\x22\155\141\x72\147\151\x6e\x3a\60\160\170\x20\x30\160\x78\x20\x32\x70\x78\x20\x31\63\160\170\x22\x3e\xd\12\x9\x9\11\x9\x9\x44\x69\163\141\x62\154\151\x6e\x67\40\157\x66\40\x53\x53\117\40\157\156\40\x74\150\151\163\40\x64\157\155\141\x69\x6e\56\x3c\57\x62\76\xd\12\11\11\11\11\74\x2f\154\x69\x3e\15\12\x9\x9\x9\11\74\142\162\76\xd\12\11\x9\11\x20\x20\74\57\x64\x69\x76\76";
}
public function mo_oauth_client_dismiss_notice()
{
global $Ft;
if (!empty($_GET["\155\157\x6f\x61\165\164\x68\143\154\151\x65\x6e\x74\55\x64\151\x73\x6d\151\x73\x73"])) {
goto wb;
}
return;
wb:
if (wp_verify_nonce($_GET["\x6d\157\157\x61\x75\164\x68\143\154\151\x65\x6e\164\x2d\144\151\x73\x6d\151\163\x73"], "\x6f\x61\165\x74\x68\55\143\x6c\x69\x65\156\164\55\144\151\x73\155\151\x73\163")) {
goto TW;
}
return;
TW:
if (!(isset($_GET["\155\157\157\x61\165\164\150\143\x6c\151\145\156\x74\x2d\x64\x69\x73\155\x69\163\163"]) && wp_verify_nonce($_GET["\x6d\157\x6f\x61\x75\164\x68\143\x6c\x69\x65\x6e\x74\x2d\x64\x69\x73\x6d\x69\x73\x73"], "\157\x61\x75\x74\x68\x2d\143\x6c\151\145\156\164\55\x64\151\x73\x6d\151\x73\x73"))) {
goto vJ;
}
$zs = new DateTime();
$zs->modify("\x2b\x31\40\x64\x61\171");
$Ft->mo_oauth_client_update_option("\155\x6f\55\x6f\x61\x75\x74\150\55\143\154\x69\x65\156\x74\55\x70\154\165\x67\151\156\x2d\x74\151\155\145\162", $zs);
vJ:
}
function mo_oauth_client_create_backup_dir()
{
$Tp = plugin_dir_path(__FILE__);
$Tp = rtrim($Tp, "\x2f");
$Tp = rtrim($Tp, "\134");
$Tb = get_plugin_data(__FILE__);
$e0 = $Tb["\x54\145\170\x74\104\157\x6d\x61\x69\156"];
$yk = wp_upload_dir();
$of = $yk["\142\141\163\145\x64\151\162"];
$yk = rtrim($of, "\x2f");
if (is_writable($yk)) {
goto nC;
}
return;
nC:
$eU = $yk . DIRECTORY_SEPARATOR . "\142\x61\143\x6b\165\160" . DIRECTORY_SEPARATOR . $e0 . "\x2d\x62\x61\x63\x6b\x75\160\55" . $this->current_version;
if (file_exists($eU)) {
goto ex;
}
mkdir($eU, 0777, true);
ex:
$Q3 = $Tp;
$ly = $eU;
$this->mo_oauth_client_copy_files_to_backup_dir($Q3, $ly);
}
function mo_oauth_client_copy_files_to_backup_dir($Tp, $eU)
{
if (!is_dir($Tp)) {
goto zP;
}
$Gb = scandir($Tp);
zP:
if (!empty($Gb)) {
goto sL;
}
return;
sL:
foreach ($Gb as $RC) {
if (!($RC == "\56" || $RC == "\56\x2e")) {
goto hL;
}
goto X8;
hL:
$mS = $Tp . DIRECTORY_SEPARATOR . $RC;
$t3 = $eU . DIRECTORY_SEPARATOR . $RC;
if (is_dir($mS)) {
goto ab;
}
copy($mS, $t3);
goto Qh;
ab:
if (file_exists($t3)) {
goto jy;
}
mkdir($t3, 0777, true);
jy:
$this->mo_oauth_client_copy_files_to_backup_dir($mS, $t3);
Qh:
X8:
}
sv:
}
}
function mo_oauth_client_update()
{
global $Ft;
$ZY = $Ft->get_plugin_config()->get_current_config();
$od = time();
if (empty($ZY["\155\x6f\x5f\x64\x74\145\x5f\x64\141\x74\141"])) {
goto K1;
}
$od = strtotime($Ft->mooauthdecrypt($ZY["\x6d\x6f\x5f\144\x74\145\137\144\x61\164\141"]));
K1:
$RY = mo_oauth_client_options_plugin_constants::HOSTNAME;
$bx = mo_oauth_client_options_plugin_constants::Version;
$G2 = $RY . "\57\155\x6f\x61\x73\57\x61\160\x69\x2f\160\154\165\147\x69\x6e\x2f\155\145\164\x61\144\x61\x74\x61";
$L1 = plugin_basename(dirname(__FILE__) . "\x2f\155\x6f\x5f\x6f\x61\165\164\150\137\163\x65\x74\164\x69\156\147\163\56\x70\150\160");
$A1 = new mo_oauth_client_update_framework($bx, $G2, $L1);
add_action("\x69\156\137\x70\x6c\165\x67\151\156\137\x75\160\x64\x61\164\x65\x5f\x6d\x65\x73\x73\141\x67\x65\55{$L1}", array($A1, "\x6d\157\137\x6f\141\165\x74\x68\x5f\x63\x6c\x69\145\x6e\164\x5f\x70\x6c\x75\147\x69\x6e\x5f\x75\x70\x64\x61\164\x65\x5f\x6d\x65\163\x73\141\x67\x65"), 10, 2);
$Uu = new SignInSettingsSettings();
$ZY = $Uu->get_config_option();
if ($Ft->mo_oauth_is_cld()) {
goto nK;
}
add_action("\141\x64\x6d\151\156\137\150\x65\x61\x64", array($A1, "\x6d\x6f\x5f\157\141\165\164\x68\x5f\x6c\151\x63\x65\156\163\x65\137\x64\x6f\155\x61\x69\x6e\137\x6e\x6f\164\x69\x63\145"));
nK:
add_action("\141\144\x6d\151\x6e\x5f\156\157\164\151\x63\x65\163", array($A1, "\x6d\x6f\137\157\x61\165\164\150\x5f\x63\154\x69\145\x6e\x74\x5f\x64\x69\163\x6d\151\163\163\x5f\156\157\164\151\143\x65"), 50);
if (!$Ft->mo_oauth_client_get_option("\x6d\157\x5f\157\141\x75\164\x68\x5f\x73\x6c\145")) {
goto z2;
}
$Ft->mo_oauth_client_update_option("\155\157\137\157\x61\x75\x74\x68\137\x73\x6c\x65\x5f\x6d\x65\163\163\141\x67\x65", "\131\x6f\x75\x72\x20\x4f\101\x75\x74\x68\40\57\40\x4f\160\x65\156\x49\104\40\103\157\156\156\x65\x63\164\40\160\154\165\x67\151\156\x20\154\151\143\145\x6e\163\145\40\150\141\x73\40\x62\x65\x65\156\x20\x65\x78\160\x69\162\145\144\x2e\x20\131\157\x75\40\x61\162\x65\x20\x6d\151\163\x73\x69\x6e\147\x20\157\165\x74\x20\157\x6e\40\165\x70\x64\141\164\x65\163\x20\141\156\x64\x20\x73\x75\x70\160\157\x72\164\x21\40\120\154\x65\x61\163\145\x20\x3c\141\40\x68\x72\145\146\75\x22" . mo_oauth_client_options_plugin_constants::HOSTNAME . "\x2f\155\x6f\141\163\x2f\x6c\x6f\x67\x69\156\77\x72\x65\x64\151\162\145\143\x74\125\162\x6c\x3d" . mo_oauth_client_options_plugin_constants::HOSTNAME . "\57\x6d\x6f\x61\163\57\x61\144\x6d\151\x6e\x2f\x63\x75\163\164\x6f\x6d\x65\x72\57\154\x69\143\145\x6e\x73\145\x72\145\156\145\167\x61\154\x73\x3f\x72\145\x6e\x65\167\x61\154\x72\x65\x71\165\145\x73\164\75" . mo_oauth_client_options_plugin_constants::LICENSE_TYPE . "\x20\x22\x20\x74\x61\x72\x67\x65\x74\75\x22\137\142\x6c\141\x6e\153\x22\x3e\74\x62\76\103\154\x69\143\153\40\x48\145\x72\x65\x3c\57\x62\x3e\74\x2f\141\x3e\40\x74\157\x20\162\145\156\x65\x77\x20\x74\x68\x65\40\x53\x75\x70\x70\157\x72\164\40\x61\x6e\x64\40\x4d\141\x69\x6e\164\145\156\x61\143\145\x20\160\154\141\x6e\x2e");
z2:
}
Function Calls
None |
Stats
MD5 | aaa9b91f9c2ccff4cc33393c085197b3 |
Eval Count | 0 |
Decode Time | 91 ms |