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 /** * Plugin Name: miniOrange 2 Factor Authentication * Plugin URI: https://min..
Decoded Output download
<?php
/**
* Plugin Name: miniOrange 2 Factor Authentication
* Plugin URI: https://miniorange.com
* Description: This plugin provides various two-factor authentication methods as an additional layer of security after the default WordPress login. We Support Google/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for the users in the free version of the plugin.
* Version: 16.0 - All-Inclusive
* Author: miniOrange
* Author URI: https://miniorange.com
* Text Domain: miniorange-2-factor-authentication
* Domain Path: /lang
* License: GPL2
Network: true
*/
define("MO2F_IS_ONPREM", 1);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "database" . DIRECTORY_SEPARATOR . "mo2f_db_options.php";
require_once "helper" . DIRECTORY_SEPARATOR . "utility.php";
require_once dirname(__FILE__) . "/handler/twofa/class-miniorange-2-factor-user-registration.php";
define("MO_HOST_NAME", "https://login.xecurify.com");
define("MO2F_VERSION", "16.0");
define("MO2F_TEST_MODE", false);
define("MO2F_PLUGIN_URL", plugin_dir_url(__FILE__));
define("MO2F_MAIL", "[email protected]");
class Miniorange_twoFactor
{
function __construct()
{
register_deactivation_hook(__FILE__, array($this, "mo_wpns_deactivate"));
register_activation_hook(__FILE__, array($this, "mo_wpns_activate"));
add_action("admin_menu", array($this, "mo_wpns_widget_menu"));
add_action("admin_enqueue_scripts", array($this, "mo_wpns_settings_style"));
add_action("admin_enqueue_scripts", array($this, "mo_wpns_settings_script"));
add_action("wpns_show_message", array($this, "mo_show_message"), 1, 2);
add_action("init", array($this, "mo2f_check_grace_period"));
add_action("wp_footer", array($this, "mo_wpns_ajax_login_script"));
add_action("admin_init", array($this, "miniorange_reset_save_settings"));
add_action("admin_init", array($this, "mo2f_admin_init_license_check"));
add_filter("manage_users_columns", array($this, "mo2f_mapped_email_column"));
add_action("manage_users_custom_column", array($this, "mo2f_mapped_email_column_content"), 10, 3);
add_action("admin_menu", array($this, "mo2fa_add_thickbox"));
$IeQ = add_filter("user_row_actions", array($this, "miniorange_reset_users"), 10, 2);
add_action("admin_footer", array($this, "feedback_request"));
add_action("admin_notices", array($this, "mo_wpns_malware_notices"));
add_action("plugins_loaded", array($this, "mo2fa_load_textdomain"));
if (!(!defined("DISALLOW_FILE_EDIT") && MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_disable_file_editing"))) {
goto pdy;
}
define("DISALLOW_FILE_EDIT", true);
pdy:
$this->includes();
$R1B = new miniorange_security_notification();
add_action("wp_dashboard_setup", array($R1B, "my_custom_dashboard_widgets"));
$up3 = new CustomRegFormShortcode();
add_action("init", array($this, "mo2f_login_form_url"));
add_action("admin_init", array($this, "mo2f_enable_register_shortcode"));
add_action("admin_init", array($up3, "mo_enqueue_shortcode"));
add_shortcode("mo2f_enable_register", array($this, "mo2f_enable_register_shortcode"));
}
function mo2f_admin_init_license_check()
{
if (get_site_option("mo2f_admin_init_license_check")) {
goto NTT;
}
update_site_option("mo2f_admin_init_license_check", time() + 345600);
NTT:
$c4 = time();
$eIw = get_site_option("mo2f_admin_init_license_check");
if (!($c4 > $eIw)) {
goto QWW;
}
$eO = new Customer_Cloud_Setup();
$CG = $eO->check_customer_ln();
$CG = json_decode($CG, true);
$DE = 0;
if (!isset($CG["licenseExpiry"])) {
goto WZg;
}
$nh = $CG["licenseExpiry"];
$Z1 = strtotime($nh);
$n9 = time();
if (!($Z1 < $n9)) {
goto Sjp;
}
$DE = 1;
Sjp:
WZg:
$sSX = new MO2F_LK();
$sSX->mo2f_lk_ver();
if (!$DE) {
goto xop;
}
echo MoWpnsMessages::mo2fa_wpns_showMessage("LICENSE_EXPIRED");
update_site_option("mo2f_license_expired", 1);
return;
goto uzB;
xop:
update_site_option("mo2f_license_expired", 0);
uzB:
update_site_option("mo2f_admin_init_license_check", $c4 + 345600);
QWW:
}
function mo2fa_add_thickbox()
{
add_thickbox();
}
public function mo2f_check_grace_period()
{
global $aq;
$OZ = wp_get_current_user();
$DtN = $aq->get_user_detail("mo2f_configured_2FA_method", $OZ->ID);
if (!(!in_array("administrator", $OZ->roles, true) && get_option("mo2f_grace_period") === "on" && empty($DtN) && get_user_meta($OZ->ID, "mo2f_user_login_status", true) === "1")) {
goto Ry3;
}
if (get_user_meta($OZ->ID, "mo2f_check_grace_periods", true)) {
goto A3z;
}
update_user_meta($OZ->ID, "mo2f_check_grace_periods", strtotime(current_datetime()->format("h:ia M d Y")));
goto qWQ;
A3z:
$M0v = get_user_meta($OZ->ID, "mo2f_check_grace_periods", true);
$c4 = strtotime(current_datetime()->format("h:ia M d Y"));
if (!($c4 - $M0v >= 3 * 60 * 60)) {
goto QPM;
}
$Pa1 = ($c4 - $M0v) % (3 * 60 * 60);
update_user_meta($OZ->ID, "mo2f_check_grace_periods", $c4 - $Pa1);
$this->mo2f_check_grace_period_expiry();
QPM:
qWQ:
Ry3:
}
public function mo2f_check_grace_period_expiry()
{
$gT = new Miniorange_Password_2Factor_Login();
$OZ = wp_get_current_user();
if (!($gT->mo2f_is_grace_period_expired($OZ) === "1")) {
goto Fop;
}
$SX3 = WP_Session_Tokens::get_instance($OZ->ID);
delete_user_meta($OZ->ID, "mo2f_check_grace_periods");
$SX3->destroy_all();
Fop:
}
public function mo2f_enable_register_shortcode()
{
MO2f_Utility::mo2f_debug_file("in mo2f_enable_register_shortcode");
$YaU = get_site_option("mo2f_custom_submit_selector");
$h9h = get_site_option("mo2f_custom_form_name");
$bfb = get_site_option("mo2f_custom_email_selector");
$lK = get_site_option("mo2f_custom_auth_type");
$py_ = get_site_option("mo2f_custom_phone_selector");
$PT = get_site_option("mo2f_form_submit_after_validation");
if (get_site_option("mo2f_customerkey") > 0) {
goto kUE;
}
$T6J = "false";
goto wJ3;
kUE:
$T6J = get_site_option("mo2f_customerkey");
wJ3:
$nm9 = array(".um-form", ".wpcf7-form", "#um-submit-btn");
$Eod = array("#rcp_registration_form", ".rcp_form", "#rc_registration_form", ".rc_form");
$puZ = array(".mepr-signup-form");
if (in_array($h9h, $nm9)) {
goto UJE;
}
if (in_array($h9h, $Eod)) {
goto NzO;
}
if (in_array($h9h, $puZ)) {
goto S4N;
}
$cNF = "includes/js/custom-form.js";
goto Q0D;
UJE:
$cNF = "includes/js/custom-form-ajax.js";
goto Q0D;
NzO:
$cNF = "includes/js/custom-ajax-rcp.js";
goto Q0D;
S4N:
$cNF = "includes/js/custom-ajax-mepr.js";
Q0D:
update_site_option("mo2f_country_code", array("US", "+1"));
wp_enqueue_style("mo2f_intl_tel_style", plugin_dir_url(__FILE__) . "includes/css/phone.css", array(), MO2F_VERSION);
wp_enqueue_script("mo2f_intl_tel_script", plugin_dir_url(__FILE__) . "includes/js/phone.js", array(), MO2F_VERSION);
$BO = is_array(get_site_option("mo2f_country_code")) ? get_site_option("mo2f_country_code") : array();
wp_localize_script("mo2f_intl_tel_script", "countryDetails", $BO);
wp_register_script("mo2f_otpVerification", plugin_dir_url(__FILE__) . $cNF, array(), MO2F_VERSION);
wp_localize_script("mo2f_otpVerification", "otpverificationObj", array("siteURL" => admin_url("admin-ajax.php"), "nonce" => wp_create_nonce("ajax-nonce"), "authType" => $lK, "submitSelector" => $YaU, "formSubmit" => $PT, "formname" => $h9h, "emailselector" => $bfb, "isRegistered" => $T6J, "phoneSelector" => $py_, "loaderUrl" => plugin_dir_url(__FILE__) . "includes/images/loader.gif", "isEnabledShortcode" => get_site_option("enable_form_shortcode")));
wp_localize_script("mo2f_otpVerification", "otpverificationStringsObj", array("contact_admin" => __("Contact Site Administrator", "miniorange-2-factor-authentication"), "sending_otp" => __("Sending OTP ", "miniorange-2-factor-authentication"), "invalid_phone" => __("Invalid Phone Number", "miniorange-2-factor-authentication"), "phone_num" => __("Phone Number", "miniorange-2-factor-authentication"), "invalid_email" => __("Invalid Email Address", "miniorange-2-factor-authentication"), "send_otp" => __("Send OTP ", "miniorange-2-factor-authentication"), "enter_otp" => __("Enter OTP ", "miniorange-2-factor-authentication"), "resend_otp" => __("Resend OTP ", "miniorange-2-factor-authentication"), "validate_otp" => __("Validate OTP ", "miniorange-2-factor-authentication"), "otp_sent_phone" => __("An OTP will be sent to your Mobile Number", "miniorange-2-factor-authentication"), "otp_sent_both" => __("An OTP will be sent to your Mobile Number and Email", "miniorange-2-factor-authentication"), "otp_sent_email" => __("An OTP will be sent to your Email ID", "miniorange-2-factor-authentication"), "already_validated" => __("Already Validated", "miniorange-2-factor-authentication"), "validate_phone" => __("Please Validate Phone first", "miniorange-2-factor-authentication"), "validate_email" => __("Please Validate Email first", "miniorange-2-factor-authentication"), "phone_field_not_found" => __("miniOrange : Phone Field not Found.", "miniorange-2-factor-authentication"), "email_field" => __("miniOrange : Email Field", "miniorange-2-factor-authentication"), "not_found" => __(" not Found. Please check Selector", "miniorange-2-factor-authentication"), "validate_both" => __("Please Validate Email and Phone first", "miniorange-2-factor-authentication"), "account_register" => __("miniOrange : Register/Login with miniOrange to Enable 2FA for this Form", "miniorange-2-factor-authentication"), "register" => __("Register", "miniorange-2-factor-authentication"), "validation_error" => __("Error Validating OTP", "miniorange-2-factor-authentication"), "phone_validated" => __("Phone Number Validated", "miniorange-2-factor-authentication")));
wp_enqueue_script("mo2f_otpVerification");
}
public function mo2f_login_form_url()
{
if (!(!is_user_logged_in() && esc_url(get_site_option("mo2f_login_form_url")) && wp_http_validate_url(get_site_option("mo2f_login_form_url")))) {
goto pLi;
}
$yI = $_SERVER["HTTP_HOST"];
$yI .= $_SERVER["REQUEST_URI"];
if (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "off" || $_SERVER["SERVER_PORT"] == 443) {
goto j0X;
}
$yI = "http://" . $yI;
goto fDF;
j0X:
$yI = "https://" . $yI;
fDF:
$jB = esc_url(get_site_option("mo2f_login_form_url"));
if (str_contains($jB, ",")) {
goto oS3;
}
if (strpos($yI, $jB) !== false) {
goto Tv0;
}
goto cJ3;
oS3:
$vQ = explode(",", $jB);
foreach ($vQ as $ZS) {
if (!(strpos($yI, $ZS) !== false)) {
goto L29;
}
$this->mo2f_enqueue_url_script();
L29:
XAX:
}
xj9:
goto cJ3;
Tv0:
$this->mo2f_enqueue_url_script();
cJ3:
pLi:
}
function feedback_request()
{
if (!("plugins.php" != basename($_SERVER["PHP_SELF"]))) {
goto tm1;
}
return;
tm1:
global $WC;
$vj = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_email");
if (!empty($vj)) {
goto f_s;
}
$user = wp_get_current_user();
$vj = $user->user_email;
f_s:
$Cm4 = plugins_url("/includes/images/", __FILE__);
wp_enqueue_style("wp-pointer");
wp_enqueue_script("wp-pointer");
wp_enqueue_script("utils");
wp_enqueue_style("mo_wpns_admin_plugins_page_style", plugins_url("/includes/css/style_settings.css", __FILE__), array(), MO2F_VERSION);
include $WC . "views" . DIRECTORY_SEPARATOR . "feedback_form.php";
}
function mo2fa_load_textdomain()
{
global $aq;
load_plugin_textdomain("miniorange-2-factor-authentication", false, dirname(plugin_basename(__FILE__)) . "/lang/");
$aq->mo2f_plugin_migration();
}
function mo_wpns_malware_notices()
{
global $aq;
$L1v = wp_get_current_user();
$np = $aq->get_user_detail("mo2f_configured_2FA_method", $L1v->ID);
$RFG = 60 * 60 * 24;
$dOo = (time() - get_site_option("sms_dismiss")) / $RFG;
$dOo = floor($dOo);
$bdA = (time() - get_site_option("email_dismiss")) / $RFG;
$bdA = floor($bdA);
$zK = array();
$eT = wp_get_themes($zK);
$y6V = get_site_option("mo_wpns_last_themes");
$aT = 0;
if (is_array($y6V)) {
goto F0l;
}
$aT = 1;
goto OvQ;
F0l:
if (sizeof($eT) == sizeof($y6V)) {
goto BpK;
}
$aT = 1;
goto bL0;
BpK:
foreach ($eT as $Yt => $kB) {
if (isset($y6V[$Yt])) {
goto hmw;
}
$aT = 1;
goto noM;
goto Dwi;
hmw:
if (!($eT[$Yt] != $y6V[$Yt])) {
goto Do5;
}
$aT = 1;
goto noM;
Do5:
Dwi:
wG8:
}
noM:
bL0:
OvQ:
$s1G = get_plugins();
$eW2 = get_site_option("mo_wpns_last_plugins");
$IWu = 0;
if (is_array($eW2)) {
goto MJR;
}
$IWu = 1;
goto mqY;
MJR:
if (sizeof($s1G) == sizeof($eW2)) {
goto B1w;
}
$IWu = 1;
goto C8h;
B1w:
foreach ($s1G as $Yt => $kB) {
if (isset($eW2[$Yt])) {
goto wQP;
}
$IWu = 1;
goto Wh_;
goto wb2;
wQP:
if (!($s1G[$Yt] != $eW2[$Yt])) {
goto aB0;
}
$IWu = 1;
goto Wh_;
aB0:
wb2:
RG7:
}
Wh_:
C8h:
mqY:
$RFG = 60 * 60 * 24;
$s7 = (time() - get_site_option("mo_wpns_last_scan_time")) / $RFG;
$s7 = (int) $s7;
$Aok = (time() - get_site_option("infected_dismiss")) / $RFG;
$Aok = floor($Aok);
$Ub2 = (time() - get_site_option("weekly_dismiss")) / $RFG;
$Ub2 = floor($Ub2);
if (!MoWpnsUtility::get_mo2f_db_option("mo_wpns_2fa_with_network_security", "site_option")) {
goto rGU;
}
if (!get_site_option("donot_show_infected_file_notice") && get_site_option("mo_wpns_infected_files") != 0 && $Aok >= 1) {
goto Ql4;
}
if (!get_site_option("donot_show_new_plugin_theme_notice") && ($IWu || $aT)) {
goto lnY;
}
goto qiN;
Ql4:
echo MoWpnsMessages::mo2fa_wpns_showMessage("INFECTED_FILE");
goto qiN;
lnY:
echo MoWpnsMessages::mo2fa_wpns_showMessage("NEW_PLUGIN_THEME_CHECK");
qiN:
rGU:
if (!current_user_can("administrator")) {
goto UTO;
}
if (!(!get_site_option("donot_show_low_sms_notice") && base64_decode(get_site_option(md5("smsRemaining"))) <= 10 && $dOo >= 1 && $np == "OTP Over SMS")) {
goto FOZ;
}
echo MoWpnsMessages::mo2fa_wpns_showMessage("LOW_SMS_TRANSACTIONS");
FOZ:
UTO:
}
function mo_wpns_widget_menu()
{
$user = wp_get_current_user();
$dm = $user->ID;
$Zzc = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_onprem_admin");
$TA = (array) $user->roles;
$Ct = 0;
foreach ($TA as $S5) {
if (!(MoWpnsUtility::get_mo2f_multisite_compatible("mo2fa_" . $S5) == "1")) {
goto COL;
}
$Ct = 1;
COL:
o4p:
}
MXU:
$eNH = ($Ct or $dm == $Zzc);
$gi = "mo_2fa_two_fa";
if (MoWpnsUtility::get_mo2f_db_option("mo2f_by_roles", "site_option")) {
goto EUv;
}
$DI = MoWpnsUtility::get_mo2f_db_option("mo2f_select_user_for_2fa", "site_option");
$h_ = in_array($user->ID, $DI);
goto c98;
EUv:
$h_ = miniorange_check_if_2fa_enabled_for_roles($user->roles);
c98:
if (!current_user_can("manage_options") && $h_ && get_site_option("mo_2factor_admin_registration_status") == "MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS" && get_site_option("mo2f_miniorange_admin") != $user->ID && MoWpnsUtility::get_mo2f_db_option("mo2f_activate_plugin", "site_option") == 1) {
goto dpP;
}
if (current_user_can("manage_options")) {
goto YkB;
}
goto f6L;
dpP:
$Cy = add_menu_page("miniOrange 2 Factor ", "miniOrange 2-Factor", "read", $gi, array($this, "mo_wpns"), plugin_dir_url(__FILE__) . "includes/images/miniorange_icon.png");
goto f6L;
YkB:
$Cy = add_menu_page("miniOrange 2 Factor ", "miniOrange 2-Factor", "manage_options", $gi, array($this, "mo_wpns"), plugin_dir_url(__FILE__) . "includes/images/miniorange_icon.png");
if (!(isset($_GET["action"]) && "reset_edit" === sanitize_text_field(wp_unslash($_GET["action"])))) {
goto lby;
}
$Cy = add_users_page("Reset 2nd Factor", null, "manage_options", "reset", array($this, "mo_reset_2fa_for_users_by_admin"), 66);
lby:
f6L:
if (!MoWpnsUtility::get_mo2f_db_and_migrate("mo_wpns_2fa_with_network_security", "get_option")) {
goto G0N;
}
add_submenu_page($gi, "miniOrange 2-Factor", "Dashboard", "administrator", "mo_2fa_dashboard", array($this, "mo_wpns"), 1);
G0N:
if (MO2F_IS_ONPREM) {
goto gbm;
}
add_submenu_page($gi, "miniOrange 2-Factor", "Two Factor", "read", "mo_2fa_two_fa", array($this, "mo_wpns"), 2);
goto pwa;
gbm:
if (!$eNH) {
goto V8h;
}
add_submenu_page($gi, "miniOrange 2-Factor", "Two Factor", "read", "mo_2fa_two_fa", array($this, "mo_wpns"), 1);
V8h:
pwa:
if (!MoWpnsUtility::get_mo2f_db_and_migrate("mo_wpns_2fa_with_network_security", "get_option")) {
goto LoG;
}
add_submenu_page($gi, "miniOrange 2-Factor", "Firewall", "administrator", "mo_2fa_waf", array($this, "mo_wpns"), 3);
add_submenu_page($gi, "miniOrange 2-Factor", "Login and Spam", "administrator", "mo_2fa_login_and_spam", array($this, "mo_wpns"), 4);
add_submenu_page($gi, "miniOrange 2-Factor", "Backup", "administrator", "mo_2fa_backup", array($this, "mo_wpns"), 5);
add_submenu_page($gi, "miniOrange 2-Factor", "Malware Scan", "administrator", "mo_2fa_malwarescan", array($this, "mo_wpns"), 6);
add_submenu_page($gi, "miniOrange 2-Factor", "IP Blocking", "administrator", "mo_2fa_advancedblocking", array($this, "mo_wpns"), 7);
add_submenu_page($gi, "miniOrange 2-Factor", "Notifications", "administrator", "mo_2fa_notifications", array($this, "mo_wpns"), 8);
LoG:
add_submenu_page($gi, "miniOrange 2-Factor", "Troubleshooting", "administrator", "mo_2fa_troubleshooting", array($this, "mo_wpns"), 10);
add_submenu_page($gi, "miniOrange 2-Factor", "Reports", "administrator", "mo_2fa_reports", array($this, "mo_wpns"), 9);
add_submenu_page($gi, "miniOrange 2-Factor", "Upgrade", "administrator", "mo_2fa_upgrade", array($this, "mo_wpns"), 12);
}
function mo2f_enqueue_url_script()
{
$YaU = esc_js(get_site_option("mo2f_login_submit_selector"));
$lcZ = esc_js(get_site_option("mo2f_login_email_selector"));
$E2y = esc_js(get_site_option("mo2f_login_pass_selector"));
$Dw2 = esc_js(get_site_option("mo2f_login_form_selector"));
$aK0 = esc_js(get_site_option("mo2f_login_passlabel_selector"));
$oPY = esc_js(get_option("mo2f_show_loginwith_phone"));
$gov = false;
$YCs = array("email_label" => __("Username or Email", "miniorange-2-factor-authentication"), "passwordless_login_btn" => __("Login with 2nd factor", "miniorange-2-factor-authentication"), "invalid_credentials" => __("Invalid Credentials!", "miniorange-2-factor-authentication"), "two_factor_not_configured" => __("Two Factor is not configured for you. Please login with password to setup 2FA.", "miniorange-2-factor-authentication"), "invalid_request" => __("Invalid Request, Please try again", "miniorange-2-factor-authentication"), "session_restriction" => __("Concurrent Session limit reached, Logout from other session first", "miniorange-2-factor-authentication"));
if (!class_exists("STM_LMS_USER")) {
goto FE3;
}
$gov = true;
FE3:
wp_enqueue_script("jquery");
wp_enqueue_script("mo2fa_loginscript", plugin_dir_url(__FILE__) . "includes/js/login-shortcode.js", array(), MO2F_VERSION);
wp_localize_script("mo2fa_loginscript", "my_ajax_object", array("ajax_url" => admin_url("admin-ajax.php"), "nonce" => wp_create_nonce("miniorange-2-factor-login-nonce"), "ajax_nonce" => wp_create_nonce("miniorange-2-factor-ajax-login-nonce"), "ajax_passwordless_nonce" => wp_create_nonce("miniorange-2-factor-passwordless-ajax-login-nonce"), "mo2f_login_option" => esc_js(MoWpnsUtility::get_mo2f_db_option("mo2f_login_option", "get_option")), "mo2f_show_loginwith_phone" => $oPY, "submitSelector" => $YaU, "emailSelector" => $lcZ, "passSelector" => $E2y, "passLabelSelector" => $aK0, "formSelector" => $Dw2, "mo2f_remember_device" => esc_js(get_option("mo2f_remember_device ")), "is_masterstudy" => $gov, "formStrings" => $YCs));
}
function checkSecurity()
{
$uJ9 = new Customer_Setup();
$uJ9->guest_audit();
}
function mo_wpns()
{
global $FD, $aq;
$FD->mo_plugin_activate();
$aq->mo_plugin_activate();
add_site_option("SQLInjection", 1);
add_site_option("WAFEnabled", 0);
add_site_option("XSSAttack", 1);
add_site_option("RFIAttack", 0);
add_site_option("LFIAttack", 0);
add_site_option("RCEAttack", 0);
add_site_option("actionRateL", 0);
add_site_option("Rate_limiting", 0);
add_site_option("Rate_request", 240);
add_site_option("limitAttack", 10);
add_site_option(base64_encode("totalUsersCloud"), 0);
include "controllers/main_controller.php";
}
function mo_wpns_activate()
{
$this->checkSecurity();
global $FD, $aq;
$gg = wp_get_current_user()->ID;
$FD->mo_plugin_activate();
$aq->mo_plugin_activate();
add_site_option("mo2f_is_NC", 1);
add_site_option("mo2f_is_NNC", 1);
add_site_option("mo2fa_administrator", 1);
$gT = new Miniorange_Authentication();
$gT->mo2f_update_db_check();
$aq->mo2f_plugin_migration();
if (!is_multisite()) {
goto reO;
}
add_site_option("mo2fa_superadmin", 1);
add_option("mo2fa_superadmin_login_url", admin_url());
reO:
global $wp_roles;
if (isset($wp_roles)) {
goto UA9;
}
$wp_roles = new WP_Roles();
UA9:
MO2f_Utility::mo2f_debug_file("Plugin activated");
foreach ($wp_roles->role_names as $IZ => $Wg) {
add_site_option("mo2fa_" . $IZ, 1);
if ($IZ == "administrator") {
goto aEj;
}
add_option("mo2fa_" . $IZ . "_login_url", home_url());
goto sqE;
aEj:
add_option("mo2fa_" . $IZ . "_login_url", admin_url());
sqE:
n4Y:
}
YYP:
add_action("mo_auth_show_success_message", array($this, "mo_auth_show_success_message"), 10, 1);
add_action("mo_auth_show_error_message", array($this, "mo_auth_show_error_message"), 10, 1);
add_site_option("mo2f_onprem_admin", $gg);
add_site_option("mo_wpns_last_scan_time", time());
if (!(get_site_option("mo2f_activated_time") == null)) {
goto HlO;
}
add_site_option("mo2f_activated_time", time());
HlO:
if (!(get_site_option(md5("smsRemaining")) == null)) {
goto IAQ;
}
add_site_option(md5("smsRemaining"), 0);
IAQ:
update_site_option("mo2f_plugin_redirect", true);
update_site_option("mo2f_last_activation_date", date("Y/m/d H:i:s"));
}
function mo_wpns_deactivate()
{
update_site_option("mo2f_activate_plugin", 1);
$U3 = new Miniorange_Authentication();
$U3->mo_auth_deactivate();
}
function mo_wpns_settings_style($V6)
{
if (!strpos($V6, "page_mo_2fa")) {
goto fs2;
}
wp_enqueue_style("mo_2fa_admin_settings_jquery_style", plugins_url("includes/css/jquery.ui.css", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("mo_2fa_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("mo_wpns_admin_settings_style", plugins_url("includes/css/style_settings.css", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("mo_wpns_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("mo_wpns_admin_settings_datatable_style", plugins_url("includes/css/jquery.dataTables.min.css", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("mo_wpns_button_settings_style", plugins_url("includes/css/button_styles.css", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("mo_wpns_popup_settings_style", plugins_url("includes/css/popup.css", __FILE__), array(), MO2F_VERSION);
fs2:
wp_register_style("mo_wpns_shortcode_style", plugins_url("includes/css/style_settings.css", __FILE__), array(), MO2F_VERSION);
}
function mo_wpns_settings_script($V6)
{
wp_enqueue_script("mo_wpns_admin_settings_script", plugins_url("includes/js/settings_page.js", __FILE__), array("jquery"), MO2F_VERSION);
if (!strpos($V6, "page_mo_2fa")) {
goto PMu;
}
wp_enqueue_script("mo_wpns_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2f-script-handle", plugins_url("includes/js/mo2f_script.js", __FILE__), array("wp-color-picker"), false, true);
wp_enqueue_script("mo_wpns_admin_datatable_script", plugins_url("includes/js/jquery.dataTables.min.js", __FILE__), array("jquery"), MO2F_VERSION);
wp_enqueue_script("mo_wpns_qrcode_script", plugins_url("/includes/jquery-qrcode/jquery-qrcode.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo_wpns_min_qrcode_script", plugins_url("/includes/jquery-qrcode/jquery-qrcode.min.js", __FILE__), array(), MO2F_VERSION);
PMu:
}
function mo_wpns_ajax_login_script($V6)
{
$qn = MoWpnsUtility::get_mo2f_multisite_compatible("mo_2factor_admin_registration_status");
if (!(MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_activate_plugin", "get_option") and !is_user_logged_in() and ($qn == "MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS" or MO2F_IS_ONPREM))) {
goto DbN;
}
if (!defined("DIGIMEMBER_DIR")) {
goto isn;
}
wp_enqueue_script("dmajax_script", plugins_url("includes/js/dmajax.js", __FILE__), array(), MO2F_VERSION);
wp_localize_script("dmajax_script", "my_ajax_object", array("ajax_url" => admin_url("admin-ajax.php")));
isn:
echo " \x9\x9<input type="hidden" name="miniorange_login_nonce" value="";
echo wp_create_nonce("miniorange-2-factor-login-nonce");
echo "" />\xa \x9 ";
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("mo2f_remember_device");
if ($e8 && !is_user_logged_in()) {
goto Sy0;
}
if (MoWpnsUtility::get_mo2f_db_and_migrate("mo2f_enable_2fa_prompt_on_login_page", "get_option")) {
goto ttj;
}
goto dmr;
Sy0:
if (!defined("DIGIMEMBER_DIR")) {
goto NAN;
}
echo " \x9\x9 \x9<script type="text/javascript">\xa\x9\x9\x9 jQuery(".ncore_input_password ").append("<input type='hidden' id='miniorange_rba_attribures' name='miniorange_rba_attribures' value=''/>");
\x9\x9\x9</script>\xa\x9 ";
NAN:
if (!(defined("MEPR_PLUGIN_SLUG") || defined("CUARLF_PLUGIN_DIR"))) {
goto bP6;
}
echo "\x9\x9\x9\x9\x9<script type="text/javascript">
\x9 \x9\x9\x9\x9jQuery("#user_pass").append("<input type='hidden' id='miniorange_rba_attribures' name='miniorange_rba_attribures' value=''/>");\xa\x9 \x9 setTimeout(
\x9\x9 \x9\x9 \x9() => {
\x9\x9\x9\x9 \x9 jQuery(document).ready(function() {
\x9 \x9 \x9\x9 \x9\x9jQuery('input[name="miniorange_rba_attribures"]').val(JSON.stringify(rbaAttributes.attributes));\xa\xa \x9\x9if (document.getElementById('loginform') != null) {
\x9 \x9\x9\x9 \x9\x9\x9\x9jQuery('#loginform').on('submit', function(e) {
\x9 \x9 \x9\x9 jQuery('input[name="miniorange_rba_attribures"]').val(JSON.stringify(rbaAttributes.attributes));
\x9 \x9\x9 });\xa \x9 \x9\x9\x9\x9\x9 } else {
\x9\x9 \x9\x9 if (document.getElementsByClassName('login') != null) {
\x9 \x9 \x9 \x9 jQuery('.login').on('submit', function(e) {
\x9\x9 \x9 jQuery('input[name="miniorange_rba_attribures"]').val(JSON.stringify(rbaAttributes.attributes));\xa \x9 \x9\x9 \x9 \x9\x9 });
\x9 \x9\x9 \x9\x9\x9 \x9}\xa\x9\x9\x9 \x9\x9 \x9}
\x9\x9 \x9 \x9 })
\x9 \x9 }, 1000);\xa\x9 </script>\xa \x9\x9\x9";
bP6:
if (MO2F_IS_ONPREM) {
goto i0r;
}
wp_enqueue_script("mo2fa_jquery_script", plugins_url("includes/js/rba/js/jquery-1.9.1.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_flash_script", plugins_url("includes/js/rba/js/jquery.flash.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_uaparser_script", plugins_url("includes/js/rba/js/ua-parser.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_client_script", plugins_url("includes/js/rba/js/client.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_device_script", plugins_url("includes/js/rba/js/device_attributes.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_swf_script", plugins_url("includes/js/rba/js/swfobject.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_font_script", plugins_url("includes/js/rba/js/fontdetect.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_murmur_script", plugins_url("includes/js/rba/js/murmurhash3.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_miniorange_script", plugins_url("includes/js/rba/js/miniorange-fp.js", __FILE__), array(), MO2F_VERSION);
goto Q2a;
i0r:
wp_enqueue_script("mo2fa_mode_script", plugins_url("includes/js/BrowsingModeDetector.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_client_min_script", plugins_url("includes/js/client.min.js", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("mo2fa_device_script", plugins_url("includes/js/device_details.js", __FILE__), array(), MO2F_VERSION);
Q2a:
goto dmr;
ttj:
echo " \x9 \x9\x9<script type="text/javascript">
\x9\x9\x9\x9 jQuery(".ncore_input_password ").append('<input type="text" placeholder="No soft Token ? Skip" name="mo_softtoken" id="mo2f_2fa_code" class="mo2f_2fa_code" value="" size="20" style="ime-mode: inactive;">');\xa\x9 \x9 </script>
\x9\x9 ";
dmr:
DbN:
}
function mo_show_message($CG, $Gm)
{
if (!($Gm == "CUSTOM_MESSAGE")) {
goto kEd;
}
echo "<div class='overlay_not_JQ_success' id='pop_up_success'><p class='popup_text_not_JQ'>" . $CG . "</p> </div>";
echo " \x9 <script type="text/javascript">
\x9\x9\x9setTimeout(function() {\xa \x9 var element = document.getElementById("pop_up_success");\xa\x9 \x9 \x9element.classList.toggle("overlay_not_JQ_success");\xa\x9 element.innerHTML = "";
\x9 }, 7000);
\x9 </script>\xa\x9\x9\x9";
kEd:
if (!($Gm == "NOTICE")) {
goto xnP;
}
echo "<div class='overlay_not_JQ_error' id='pop_up_error'><p class='popup_text_not_JQ'>" . $CG . "</p> </div>";
echo " \x9 <script type="text/javascript">
\x9 setTimeout(function() {
\x9 \x9 var element = document.getElementById("pop_up_error");\xa\x9 \x9 element.classList.toggle("overlay_not_JQ_error");\xa\x9 \x9 element.innerHTML = "";
\x9\x9\x9 }, 7000);\xa\x9 </script>
\x9";
xnP:
if (!($Gm == "ERROR")) {
goto oww;
}
echo "<div class='overlay_not_JQ_error' id='pop_up_error'><p class='popup_text_not_JQ'>" . $CG . "</p> </div>";
echo " \x9 <script type="text/javascript">
\x9 \x9\x9setTimeout(function() {
\x9\x9var element = document.getElementById("pop_up_error");
\x9\x9\x9 element.classList.toggle("overlay_not_JQ_error");\xa \x9\x9 \x9element.innerHTML = "";
\x9 }, 7000);\xa\x9\x9\x9</script>\xa ";
oww:
if (!($Gm == "SUCCESS")) {
goto n7a;
}
echo "<div class='overlay_not_JQ_success' id='pop_up_success'><p class='popup_text_not_JQ'>" . $CG . "</p> </div>";
echo "\x9\x9 <script type="text/javascript">
\x9\x9\x9\x9setTimeout(function() {
\x9\x9 \x9 var element = document.getElementById("pop_up_success");\xa\x9\x9\x9\x9\x9element.classList.toggle("overlay_not_JQ_success");\xa\x9 \x9\x9\x9element.innerHTML = "";\xa }, 7000);
\x9\x9\x9</script>
\x9";
n7a:
}
function includes()
{
require "helper/pluginUtility.php";
require "database/database_functions.php";
require "database/database_functions_2fa.php";
require "handler/ajax.php";
require "api/class-customer-common-setup.php";
if (!MO2F_IS_ONPREM) {
goto GYV;
}
require "api/class-customer-onprem-setup.php";
goto h09;
GYV:
require "api/class-customer-setup.php";
h09:
require "api/class-rba-attributes.php";
require "api/class-two-factor-setup.php";
require "handler/backup.php";
require "handler/security_features.php";
require "handler/twofa/mo2f-plugin-version-update.php";
require "handler/recaptcha.php";
require "handler/login.php";
require "handler/rba_device_ajax.php";
require "handler/feedback_form.php";
require "handler/twofa/setup_twofa.php";
require "handler/twofa/two_fa_settings.php";
require "handler/twofa/two_fa_utility.php";
require "handler/twofa/two_fa_constants.php";
require "handler/class-molms-session.php";
require "handler/registration.php";
require "handler/logger.php";
require "handler/spam.php";
require "helper/dashboard_security_notification.php";
require "helper/curl.php";
require "helper/plugins.php";
require "helper/constants.php";
require "helper/messages.php";
require "views/common-elements.php";
require "handler/twofa/two_fa_short_custom.php";
require "controllers/wpns-loginsecurity-ajax.php";
require "controllers/malware_scanner/malware_scan_ajax.php";
require "controllers/backup/backup_ajax.php";
require "controllers/tour/tour_ajax.php";
require "controllers/twofa/two_factor_ajax.php";
require "controllers/dashboard_ajax.php";
require "handler/malware_scanner/malware_scanner_cron.php";
require "handler/malware_scanner/scanner_set_cron.php";
require_once "controllers/PointersManager.php";
}
function miniorange_reset_users($IeQ, $L1v)
{
global $aq;
$np = $aq->get_user_detail("mo2f_configured_2FA_method", $L1v->ID);
if (!(current_user_can("administrator", $L1v->ID) && $np)) {
goto NMm;
}
if (!(get_current_user_id() != $L1v->ID || 1)) {
goto rJf;
}
$IeQ["miniorange_reset_users"] = "<a class='miniorange_reset_users' href='" . admin_url("users.php?page=reset&action=reset_edit&user={$L1v->ID}") . "'>" . __("Reset 2 Factor", "cgc_ub") . "</a>";
rJf:
NMm:
return $IeQ;
}
function mo2f_mapped_email_column($oSy)
{
$oSy["mapped_email"] = "Registered 2FA Email";
$oSy["selected_user"] = "Two Factor Enabled";
$oSy["current_method"] = "2FA Method";
return $oSy;
}
function mo_reset_2fa_for_users_by_admin()
{
$T7 = wp_create_nonce("ResetTwoFnonce");
if (!(isset($_GET["action"]) && $_GET["action"] == "reset_edit")) {
goto K0w;
}
$bR = sanitize_text_field($_GET["user"]);
if (!is_numeric($bR)) {
goto CYk;
}
$JSU = get_userdata($bR);
echo "\x9\x9 <form method="post" name="reset2fa" id="reset2fa" action="";
echo esc_url("users.php");
echo "">\xa\xa \x9\x9\x9<div class="wrap">\xa\x9 \x9\x9 <h1>Reset 2nd Factor</h1>
\xa \x9 \x9 \x9<p>You have specified this user for reset:</p>\xa\xa \x9\x9\x9\x9\x9<ul>
\x9 \x9 \x9<li>ID #";
echo esc_attr($JSU->ID);
echo ": ";
echo esc_attr($JSU->user_login);
echo "</li>
\x9\x9\x9 </ul>\xa \x9 \x9\x9\x9<input type="hidden" name="userid" value="";
echo esc_attr($bR);
echo "">\xa \x9<input type="hidden" name="miniorange_reset_2fa_option" value="mo_reset_2fa">
\x9 \x9\x9<input type="hidden" name="nonce" value="";
echo esc_attr($T7);
echo "">
\x9\x9 \x9 <p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="Confirm Reset"></p>\xa\x9 </div>\xa \x9\x9 </form>\xa\x9 \x9\x9";
CYk:
K0w:
}
function miniorange_reset_save_settings()
{
if (!(isset($_POST["miniorange_reset_2fa_option"]) && sanitize_text_field($_POST["miniorange_reset_2fa_option"]) == "mo_reset_2fa")) {
goto y4B;
}
$T7 = sanitize_text_field($_POST["nonce"]);
if (wp_verify_nonce($T7, "ResetTwoFnonce")) {
goto jJW;
}
return;
jJW:
$bR = isset($_POST["userid"]) && !empty($_POST["userid"]) ? sanitize_text_field($_POST["userid"]) : '';
if (empty($bR)) {
goto lyo;
}
if (!current_user_can("edit_user")) {
goto mOD;
}
global $aq;
if (get_current_user_id() == $bR) {
goto Etv;
}
delete_user_meta($bR, "mo2f_kba_challenge");
delete_user_meta($bR, "mo2f_2FA_method_to_configure");
delete_user_meta($bR, "Security Questions");
$aq->delete_user_details($bR);
delete_user_meta($bR, "mo2f_2FA_method_to_test");
update_user_meta($bR, "mo2f_user_login_status", 0);
delete_user_meta($bR, "mo2f_grace_period_status");
goto YIE;
Etv:
delete_user_meta($bR, "mo2f_kba_challenge");
delete_user_meta($bR, "mo2f_2FA_method_to_configure");
delete_user_meta($bR, "Security Questions");
delete_user_meta($bR, "mo2f_2FA_method_to_test");
$aq->update_user_details($bR, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", "mo2f_configured_2FA_method" => ''));
YIE:
mOD:
lyo:
y4B:
}
function mo2f_mapped_email_column_content($kB, $p7, $bR)
{
global $aq;
$user = get_userdata($bR);
$Re = $aq->get_user_detail("mo2f_configured_2FA_method", $bR);
$vj = $aq->get_user_detail("mo2f_user_email", $bR);
if ($Re) {
goto Ymw;
}
$Re = "Not Registered for 2FA";
Ymw:
if ("current_method" == $p7) {
goto QCi;
}
if ("mapped_email" == $p7) {
goto G85;
}
if ("selected_user" == $p7) {
goto IDR;
}
goto NtW;
QCi:
return $Re;
goto NtW;
G85:
if ($vj) {
goto B7i;
}
$vj = "Not Registered for 2FA";
B7i:
return $vj;
goto NtW;
IDR:
$IZ = (int) $user->ID;
$TA = $user->roles;
if (MoWpnsUtility::get_mo2f_db_option("mo2f_by_roles", "site_option")) {
goto xhg;
}
$DI = MoWpnsUtility::get_mo2f_db_option("mo2f_select_user_for_2fa", "site_option");
$GD = MoWpnsUtility::get_mo2f_db_option("mo2f_remove_user_for_2fa", "site_option");
if (in_array($bR, $DI)) {
goto Pj4;
}
if (in_array($bR, $GD)) {
goto aXi;
}
array_push($DI, $bR);
update_site_option("mo2f_select_user_for_2fa", $DI);
$Oj7 = "Yes";
goto wO4;
Pj4:
$Oj7 = "Yes";
goto wO4;
aXi:
$Oj7 = "No";
wO4:
goto inh;
xhg:
$h_ = miniorange_check_if_2fa_enabled_for_roles($TA);
if ($h_) {
goto bp0;
}
$Oj7 = "No";
goto eHn;
bp0:
$Oj7 = "Yes";
eHn:
inh:
return $Oj7;
NtW:
return $kB;
}
}
new Miniorange_twoFactor();
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: miniOrange 2 Factor Authentication
* Plugin URI: https://miniorange.com
* Description: This plugin provides various two-factor authentication methods as an additional layer of security after the default WordPress login. We Support Google/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for the users in the free version of the plugin.
* Version: 16.0 - All-Inclusive
* Author: miniOrange
* Author URI: https://miniorange.com
* Text Domain: miniorange-2-factor-authentication
* Domain Path: /lang
* License: GPL2
Network: true
*/
define("\x4d\x4f\x32\x46\137\x49\123\137\117\116\x50\122\105\115", 1);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "\144\x61\164\x61\142\x61\x73\145" . DIRECTORY_SEPARATOR . "\155\157\x32\x66\137\x64\142\x5f\x6f\160\x74\x69\157\156\163\x2e\x70\150\x70";
require_once "\x68\x65\154\x70\145\162" . DIRECTORY_SEPARATOR . "\165\164\x69\x6c\151\164\x79\56\x70\x68\160";
require_once dirname(__FILE__) . "\57\150\141\x6e\x64\154\x65\x72\57\x74\167\157\x66\141\57\143\x6c\141\x73\x73\55\x6d\151\156\x69\157\162\x61\x6e\x67\145\55\x32\x2d\x66\141\143\164\157\x72\x2d\x75\163\145\x72\55\x72\145\x67\151\x73\164\162\x61\164\151\x6f\156\56\x70\x68\x70";
define("\x4d\117\x5f\110\x4f\x53\124\137\116\x41\115\x45", "\150\x74\x74\160\163\72\x2f\57\154\x6f\147\151\x6e\56\170\145\x63\165\162\151\x66\171\x2e\143\157\x6d");
define("\115\117\x32\106\137\126\105\x52\x53\111\x4f\116", "\x31\x36\x2e\x30");
define("\115\x4f\62\106\x5f\x54\x45\x53\124\x5f\x4d\117\x44\x45", false);
define("\115\117\62\x46\x5f\x50\x4c\x55\x47\x49\116\137\x55\x52\114", plugin_dir_url(__FILE__));
define("\115\x4f\x32\106\137\x4d\x41\111\x4c", "\x6d\x66\141\163\x75\160\x70\x6f\x72\164\x40\x78\145\143\x75\x72\x69\x66\x79\x2e\143\x6f\155");
class Miniorange_twoFactor
{
function __construct()
{
register_deactivation_hook(__FILE__, array($this, "\155\x6f\x5f\x77\x70\156\x73\137\x64\x65\141\143\164\x69\x76\x61\x74\145"));
register_activation_hook(__FILE__, array($this, "\x6d\157\x5f\x77\x70\x6e\x73\x5f\141\143\164\151\x76\x61\x74\x65"));
add_action("\x61\144\155\x69\x6e\137\155\145\x6e\x75", array($this, "\x6d\x6f\137\x77\x70\156\163\x5f\x77\x69\x64\x67\145\164\x5f\x6d\x65\x6e\165"));
add_action("\x61\144\155\151\x6e\x5f\x65\x6e\161\x75\145\165\x65\137\163\143\162\151\160\164\163", array($this, "\x6d\157\x5f\167\x70\x6e\163\x5f\163\145\164\164\151\156\x67\163\137\163\164\x79\154\x65"));
add_action("\x61\x64\x6d\151\x6e\x5f\145\x6e\161\x75\x65\x75\145\137\x73\x63\162\x69\160\164\163", array($this, "\x6d\157\x5f\167\160\156\163\137\163\x65\164\x74\x69\x6e\x67\163\137\x73\x63\x72\151\x70\164"));
add_action("\x77\x70\x6e\163\x5f\163\150\157\x77\x5f\x6d\145\163\x73\141\x67\145", array($this, "\x6d\157\x5f\163\x68\x6f\x77\137\x6d\x65\x73\x73\141\x67\145"), 1, 2);
add_action("\x69\156\151\x74", array($this, "\x6d\x6f\x32\146\x5f\143\x68\145\143\153\x5f\x67\x72\x61\x63\x65\137\160\145\x72\x69\157\144"));
add_action("\x77\160\x5f\x66\157\157\164\x65\162", array($this, "\155\157\x5f\x77\x70\x6e\163\137\x61\x6a\x61\170\x5f\154\157\147\151\x6e\137\163\143\162\x69\160\x74"));
add_action("\141\x64\x6d\151\x6e\137\x69\156\x69\x74", array($this, "\x6d\x69\156\151\157\162\x61\x6e\x67\145\x5f\x72\145\163\x65\164\x5f\x73\x61\166\x65\x5f\163\145\x74\x74\151\x6e\x67\163"));
add_action("\x61\144\155\151\x6e\137\151\x6e\151\x74", array($this, "\x6d\x6f\62\146\x5f\141\x64\x6d\x69\x6e\137\x69\x6e\151\164\x5f\x6c\151\x63\x65\x6e\163\145\x5f\143\x68\145\x63\x6b"));
add_filter("\155\141\156\141\147\145\x5f\165\x73\x65\x72\163\137\x63\x6f\154\x75\155\156\x73", array($this, "\155\157\x32\146\x5f\x6d\141\x70\160\145\144\137\145\x6d\x61\x69\154\x5f\143\157\154\165\x6d\156"));
add_action("\155\x61\156\x61\x67\x65\x5f\x75\x73\145\162\163\137\143\x75\163\x74\157\x6d\137\x63\157\x6c\165\x6d\156", array($this, "\x6d\x6f\62\x66\137\x6d\x61\160\160\x65\x64\x5f\x65\x6d\x61\x69\154\x5f\x63\157\154\165\x6d\156\137\x63\157\x6e\x74\x65\156\x74"), 10, 3);
add_action("\x61\x64\155\x69\156\137\155\x65\156\x75", array($this, "\155\157\x32\146\x61\x5f\x61\x64\x64\x5f\164\150\x69\x63\153\142\x6f\170"));
$IeQ = add_filter("\165\163\x65\x72\x5f\x72\x6f\167\137\141\143\x74\x69\x6f\x6e\163", array($this, "\x6d\x69\156\x69\157\x72\141\x6e\147\145\137\162\145\x73\x65\x74\x5f\165\163\x65\x72\163"), 10, 2);
add_action("\141\x64\155\x69\x6e\x5f\x66\x6f\157\x74\x65\x72", array($this, "\x66\x65\145\x64\142\x61\143\x6b\137\x72\145\x71\x75\x65\163\x74"));
add_action("\141\x64\x6d\x69\156\137\156\157\164\151\143\145\163", array($this, "\x6d\157\137\x77\x70\156\x73\x5f\x6d\x61\154\167\x61\162\x65\x5f\x6e\157\164\x69\143\145\163"));
add_action("\x70\x6c\165\x67\x69\156\x73\137\x6c\x6f\x61\144\145\x64", array($this, "\x6d\x6f\x32\x66\x61\x5f\154\x6f\x61\144\x5f\164\145\x78\x74\144\157\x6d\x61\x69\156"));
if (!(!defined("\x44\x49\x53\x41\x4c\114\x4f\127\137\106\111\114\x45\137\x45\104\111\x54") && MoWpnsUtility::get_mo2f_multisite_compatible("\155\157\x32\146\x5f\x64\x69\163\141\x62\x6c\x65\x5f\146\151\154\x65\x5f\x65\144\x69\164\151\156\x67"))) {
goto pdy;
}
define("\104\x49\123\101\114\x4c\x4f\x57\137\x46\111\114\x45\x5f\x45\104\x49\x54", true);
pdy:
$this->includes();
$R1B = new miniorange_security_notification();
add_action("\167\160\x5f\144\141\163\x68\x62\157\141\162\x64\137\x73\x65\x74\x75\160", array($R1B, "\155\x79\x5f\143\165\x73\x74\x6f\155\x5f\144\x61\163\150\x62\157\x61\x72\x64\137\167\151\x64\147\145\164\x73"));
$up3 = new CustomRegFormShortcode();
add_action("\151\x6e\151\x74", array($this, "\155\x6f\x32\146\x5f\x6c\157\147\151\x6e\x5f\146\x6f\162\x6d\137\165\162\x6c"));
add_action("\x61\x64\x6d\x69\x6e\x5f\x69\x6e\x69\164", array($this, "\155\157\x32\146\x5f\145\156\x61\142\154\x65\137\x72\x65\x67\x69\x73\164\x65\162\137\x73\x68\x6f\x72\x74\x63\x6f\x64\145"));
add_action("\141\x64\x6d\151\x6e\x5f\151\x6e\x69\x74", array($up3, "\155\157\x5f\145\x6e\161\165\145\x75\x65\x5f\x73\150\157\x72\x74\143\157\x64\145"));
add_shortcode("\155\157\62\146\137\x65\x6e\x61\x62\154\145\137\x72\145\x67\x69\x73\164\145\x72", array($this, "\x6d\157\x32\146\x5f\145\156\x61\142\x6c\145\137\162\145\147\151\163\164\145\x72\x5f\163\150\157\162\164\x63\x6f\144\145"));
}
function mo2f_admin_init_license_check()
{
if (get_site_option("\155\157\62\x66\x5f\141\x64\x6d\x69\156\137\x69\x6e\x69\164\x5f\154\151\143\145\156\163\145\x5f\143\x68\x65\x63\x6b")) {
goto NTT;
}
update_site_option("\x6d\x6f\x32\146\x5f\x61\x64\155\151\156\137\151\x6e\151\164\x5f\154\151\x63\x65\156\x73\145\x5f\143\x68\x65\x63\153", time() + 345600);
NTT:
$c4 = time();
$eIw = get_site_option("\x6d\x6f\62\x66\x5f\141\144\x6d\x69\156\x5f\x69\156\151\164\x5f\154\151\143\145\x6e\x73\x65\137\x63\150\x65\x63\153");
if (!($c4 > $eIw)) {
goto QWW;
}
$eO = new Customer_Cloud_Setup();
$CG = $eO->check_customer_ln();
$CG = json_decode($CG, true);
$DE = 0;
if (!isset($CG["\154\151\x63\x65\156\163\145\x45\170\160\x69\x72\x79"])) {
goto WZg;
}
$nh = $CG["\154\151\143\x65\x6e\163\x65\105\170\x70\151\x72\171"];
$Z1 = strtotime($nh);
$n9 = time();
if (!($Z1 < $n9)) {
goto Sjp;
}
$DE = 1;
Sjp:
WZg:
$sSX = new MO2F_LK();
$sSX->mo2f_lk_ver();
if (!$DE) {
goto xop;
}
echo MoWpnsMessages::mo2fa_wpns_showMessage("\x4c\x49\103\x45\x4e\x53\x45\137\105\x58\x50\x49\x52\x45\104");
update_site_option("\155\157\62\x66\x5f\154\151\x63\145\x6e\163\145\137\145\170\x70\151\162\145\144", 1);
return;
goto uzB;
xop:
update_site_option("\x6d\x6f\62\146\137\x6c\x69\x63\145\x6e\163\x65\x5f\145\x78\160\x69\162\145\144", 0);
uzB:
update_site_option("\155\x6f\x32\x66\x5f\141\144\155\151\x6e\x5f\151\x6e\x69\164\137\154\151\x63\145\x6e\163\145\x5f\143\x68\x65\x63\x6b", $c4 + 345600);
QWW:
}
function mo2fa_add_thickbox()
{
add_thickbox();
}
public function mo2f_check_grace_period()
{
global $aq;
$OZ = wp_get_current_user();
$DtN = $aq->get_user_detail("\155\157\62\146\137\143\157\156\146\151\x67\165\162\x65\x64\x5f\62\106\x41\x5f\x6d\x65\164\150\x6f\144", $OZ->ID);
if (!(!in_array("\x61\x64\155\151\x6e\151\163\x74\x72\x61\164\x6f\x72", $OZ->roles, true) && get_option("\155\157\x32\x66\x5f\x67\x72\141\x63\145\137\x70\145\x72\151\157\144") === "\x6f\156" && empty($DtN) && get_user_meta($OZ->ID, "\x6d\x6f\62\146\137\165\163\x65\162\x5f\154\157\147\x69\156\x5f\163\x74\x61\x74\165\163", true) === "\61")) {
goto Ry3;
}
if (get_user_meta($OZ->ID, "\155\x6f\62\x66\137\x63\150\x65\143\153\137\147\x72\x61\x63\145\137\160\x65\x72\151\157\x64\x73", true)) {
goto A3z;
}
update_user_meta($OZ->ID, "\155\157\62\146\x5f\143\150\x65\x63\x6b\x5f\x67\162\x61\x63\x65\x5f\160\x65\x72\151\x6f\144\x73", strtotime(current_datetime()->format("\x68\x3a\151\141\40\115\x20\x64\x20\131")));
goto qWQ;
A3z:
$M0v = get_user_meta($OZ->ID, "\x6d\157\x32\146\x5f\143\150\145\143\x6b\137\147\x72\x61\143\x65\x5f\x70\145\162\151\157\x64\x73", true);
$c4 = strtotime(current_datetime()->format("\150\72\151\141\x20\x4d\x20\x64\x20\131"));
if (!($c4 - $M0v >= 3 * 60 * 60)) {
goto QPM;
}
$Pa1 = ($c4 - $M0v) % (3 * 60 * 60);
update_user_meta($OZ->ID, "\x6d\157\62\x66\x5f\x63\x68\145\x63\x6b\x5f\147\162\141\x63\x65\137\x70\145\162\151\157\144\163", $c4 - $Pa1);
$this->mo2f_check_grace_period_expiry();
QPM:
qWQ:
Ry3:
}
public function mo2f_check_grace_period_expiry()
{
$gT = new Miniorange_Password_2Factor_Login();
$OZ = wp_get_current_user();
if (!($gT->mo2f_is_grace_period_expired($OZ) === "\x31")) {
goto Fop;
}
$SX3 = WP_Session_Tokens::get_instance($OZ->ID);
delete_user_meta($OZ->ID, "\x6d\157\62\146\x5f\143\x68\x65\x63\x6b\137\x67\162\141\143\145\137\x70\x65\162\x69\x6f\x64\x73");
$SX3->destroy_all();
Fop:
}
public function mo2f_enable_register_shortcode()
{
MO2f_Utility::mo2f_debug_file("\151\156\40\x6d\x6f\62\x66\x5f\x65\156\141\142\154\145\137\162\145\x67\x69\x73\x74\x65\x72\137\x73\150\157\x72\164\143\x6f\x64\x65");
$YaU = get_site_option("\155\x6f\x32\x66\137\143\165\163\x74\157\155\137\163\165\x62\x6d\151\164\x5f\x73\x65\154\145\143\164\157\x72");
$h9h = get_site_option("\x6d\x6f\62\146\137\x63\165\163\x74\157\x6d\137\x66\x6f\162\155\x5f\x6e\x61\155\x65");
$bfb = get_site_option("\x6d\157\x32\146\137\x63\x75\x73\164\x6f\x6d\137\x65\x6d\x61\151\154\137\x73\x65\154\145\x63\x74\157\x72");
$lK = get_site_option("\x6d\x6f\x32\146\x5f\143\x75\x73\164\x6f\155\137\141\x75\164\150\137\x74\171\160\145");
$py_ = get_site_option("\155\x6f\62\x66\137\143\165\x73\164\157\155\x5f\160\x68\x6f\156\145\x5f\163\145\154\x65\x63\164\x6f\x72");
$PT = get_site_option("\155\x6f\62\146\x5f\146\x6f\162\x6d\137\163\x75\142\155\151\x74\137\141\146\164\145\x72\137\166\141\154\x69\144\141\164\x69\x6f\156");
if (get_site_option("\155\157\x32\x66\137\143\165\x73\164\157\155\x65\162\x6b\x65\171") > 0) {
goto kUE;
}
$T6J = "\x66\141\154\163\145";
goto wJ3;
kUE:
$T6J = get_site_option("\155\x6f\x32\x66\137\x63\165\163\x74\x6f\x6d\x65\x72\153\x65\x79");
wJ3:
$nm9 = array("\x2e\165\x6d\55\146\157\x72\155", "\x2e\x77\x70\143\146\x37\x2d\146\157\x72\155", "\43\165\155\55\x73\x75\x62\155\x69\x74\x2d\142\x74\156");
$Eod = array("\x23\162\x63\x70\x5f\162\x65\x67\151\x73\x74\162\141\164\x69\157\156\x5f\146\x6f\162\x6d", "\56\x72\143\160\137\x66\x6f\162\x6d", "\x23\x72\x63\137\162\145\147\151\x73\164\162\x61\x74\x69\x6f\x6e\x5f\x66\x6f\x72\x6d", "\56\x72\x63\x5f\x66\x6f\162\155");
$puZ = array("\x2e\155\x65\x70\x72\55\x73\x69\x67\x6e\x75\x70\x2d\146\x6f\162\155");
if (in_array($h9h, $nm9)) {
goto UJE;
}
if (in_array($h9h, $Eod)) {
goto NzO;
}
if (in_array($h9h, $puZ)) {
goto S4N;
}
$cNF = "\151\x6e\143\154\165\144\x65\163\57\x6a\x73\57\x63\x75\x73\x74\157\155\x2d\146\x6f\162\x6d\x2e\152\x73";
goto Q0D;
UJE:
$cNF = "\x69\x6e\143\x6c\165\144\145\x73\57\x6a\163\x2f\x63\165\x73\164\157\x6d\x2d\146\157\x72\155\x2d\x61\x6a\141\170\x2e\x6a\163";
goto Q0D;
NzO:
$cNF = "\151\x6e\x63\x6c\165\144\145\163\x2f\152\x73\x2f\x63\x75\163\164\x6f\155\55\x61\152\141\170\55\x72\143\x70\x2e\x6a\x73";
goto Q0D;
S4N:
$cNF = "\x69\156\x63\154\x75\144\x65\163\x2f\x6a\x73\x2f\143\x75\163\164\157\155\x2d\141\x6a\141\170\55\x6d\x65\160\162\56\152\163";
Q0D:
update_site_option("\x6d\x6f\62\x66\137\143\157\165\x6e\164\162\171\x5f\143\157\x64\145", array("\x55\123", "\x2b\x31"));
wp_enqueue_style("\155\x6f\62\x66\137\151\x6e\164\154\x5f\164\x65\154\137\x73\164\x79\154\x65", plugin_dir_url(__FILE__) . "\x69\156\x63\x6c\x75\144\x65\x73\x2f\143\x73\x73\57\160\x68\x6f\156\x65\56\x63\x73\x73", array(), MO2F_VERSION);
wp_enqueue_script("\x6d\157\x32\146\x5f\x69\156\164\x6c\x5f\164\x65\x6c\x5f\x73\143\x72\151\160\x74", plugin_dir_url(__FILE__) . "\x69\x6e\143\154\165\x64\145\163\x2f\x6a\x73\57\160\150\157\x6e\145\x2e\152\x73", array(), MO2F_VERSION);
$BO = is_array(get_site_option("\155\x6f\x32\x66\137\143\x6f\165\156\x74\162\171\137\143\157\x64\145")) ? get_site_option("\155\x6f\x32\146\x5f\143\x6f\x75\x6e\164\x72\x79\x5f\x63\157\144\145") : array();
wp_localize_script("\155\x6f\x32\146\x5f\x69\156\164\x6c\x5f\x74\145\154\x5f\x73\x63\x72\x69\x70\x74", "\143\x6f\165\x6e\x74\162\171\x44\x65\x74\141\151\154\x73", $BO);
wp_register_script("\155\157\62\146\137\157\x74\160\126\x65\162\x69\x66\x69\143\141\x74\x69\x6f\156", plugin_dir_url(__FILE__) . $cNF, array(), MO2F_VERSION);
wp_localize_script("\x6d\157\x32\x66\x5f\x6f\164\x70\x56\145\162\x69\146\x69\x63\x61\164\x69\157\156", "\157\164\160\x76\x65\x72\151\146\x69\143\x61\x74\151\157\x6e\117\x62\x6a", array("\163\x69\164\x65\125\122\114" => admin_url("\x61\x64\x6d\151\x6e\55\141\x6a\141\170\56\160\150\x70"), "\x6e\x6f\156\x63\145" => wp_create_nonce("\141\152\141\170\55\x6e\157\x6e\143\x65"), "\141\165\x74\150\x54\x79\160\145" => $lK, "\163\165\x62\155\x69\164\123\145\x6c\x65\x63\x74\157\x72" => $YaU, "\x66\x6f\162\x6d\x53\x75\x62\155\x69\x74" => $PT, "\146\x6f\162\155\156\x61\155\x65" => $h9h, "\x65\x6d\x61\x69\x6c\x73\x65\x6c\145\143\x74\157\162" => $bfb, "\x69\x73\x52\145\x67\151\x73\x74\x65\x72\145\144" => $T6J, "\160\x68\x6f\156\x65\x53\145\x6c\145\x63\164\157\162" => $py_, "\154\157\x61\144\145\x72\125\162\x6c" => plugin_dir_url(__FILE__) . "\151\156\x63\x6c\x75\144\145\163\57\151\155\141\147\x65\x73\57\x6c\x6f\141\144\x65\x72\x2e\x67\151\146", "\x69\x73\105\156\x61\x62\154\145\x64\123\x68\157\162\x74\x63\x6f\x64\145" => get_site_option("\145\x6e\141\x62\154\x65\137\146\x6f\x72\155\x5f\x73\150\x6f\162\164\x63\157\x64\145")));
wp_localize_script("\x6d\157\x32\x66\137\157\x74\160\x56\x65\x72\x69\146\151\x63\x61\x74\151\x6f\156", "\x6f\164\160\x76\x65\x72\151\146\x69\x63\x61\x74\x69\x6f\x6e\123\164\162\x69\x6e\x67\163\117\x62\x6a", array("\x63\157\156\x74\141\x63\164\137\x61\x64\155\x69\156" => __("\103\x6f\x6e\164\x61\143\164\40\123\x69\x74\145\x20\x41\x64\155\x69\156\151\163\164\162\x61\x74\157\162", "\x6d\151\156\x69\x6f\162\141\x6e\147\145\55\x32\55\x66\141\143\164\x6f\162\x2d\141\165\x74\x68\145\x6e\164\x69\x63\x61\x74\151\157\x6e"), "\x73\x65\156\x64\151\x6e\147\x5f\x6f\x74\160" => __("\x53\x65\156\144\151\156\x67\x20\x4f\124\x50\x20", "\x6d\151\x6e\151\x6f\x72\x61\x6e\x67\x65\x2d\62\55\146\141\x63\164\157\162\55\x61\165\164\150\x65\156\164\x69\x63\141\x74\x69\x6f\156"), "\x69\x6e\166\x61\154\x69\144\x5f\x70\150\x6f\x6e\145" => __("\x49\156\166\141\154\151\144\40\x50\150\157\156\x65\x20\116\165\155\x62\145\162", "\155\x69\156\151\x6f\x72\141\156\147\145\x2d\x32\x2d\146\x61\x63\164\x6f\x72\x2d\x61\165\x74\150\x65\x6e\164\x69\x63\x61\x74\151\157\x6e"), "\x70\150\157\156\145\137\156\165\155" => __("\120\x68\157\x6e\x65\x20\x4e\x75\x6d\x62\145\162", "\x6d\x69\156\151\x6f\162\x61\156\x67\x65\x2d\62\x2d\x66\x61\143\x74\x6f\162\55\141\165\164\150\145\156\x74\x69\143\x61\x74\151\x6f\x6e"), "\151\x6e\166\141\x6c\x69\x64\x5f\x65\155\x61\x69\154" => __("\111\x6e\166\x61\154\151\x64\40\x45\155\141\x69\x6c\40\101\x64\144\162\145\x73\x73", "\155\151\x6e\x69\x6f\162\x61\x6e\x67\x65\x2d\62\x2d\x66\141\143\x74\x6f\x72\x2d\x61\x75\164\x68\145\156\164\151\x63\x61\x74\151\157\156"), "\x73\145\156\x64\137\157\164\160" => __("\123\145\x6e\144\40\x4f\x54\120\x20", "\x6d\151\x6e\x69\x6f\162\x61\x6e\x67\145\55\62\55\146\141\x63\x74\157\162\x2d\x61\x75\x74\x68\x65\156\164\x69\143\141\x74\x69\x6f\x6e"), "\x65\x6e\164\x65\x72\137\157\164\x70" => __("\105\x6e\164\145\162\40\117\x54\x50\40", "\x6d\151\x6e\x69\x6f\x72\x61\x6e\147\145\55\x32\55\x66\x61\143\164\x6f\x72\55\141\x75\x74\x68\145\x6e\x74\x69\143\141\x74\x69\157\156"), "\162\145\163\x65\x6e\x64\137\157\164\x70" => __("\122\x65\x73\x65\156\x64\40\x4f\124\120\x20", "\x6d\151\x6e\151\157\x72\x61\156\x67\x65\x2d\x32\x2d\x66\x61\143\164\157\x72\55\x61\x75\x74\150\145\156\164\151\143\141\164\151\157\x6e"), "\x76\141\x6c\151\144\141\164\x65\x5f\x6f\164\160" => __("\x56\x61\154\x69\144\141\164\x65\x20\117\124\x50\40", "\155\151\x6e\x69\x6f\x72\141\156\x67\145\55\x32\x2d\146\141\x63\x74\157\x72\55\141\x75\x74\x68\x65\x6e\x74\x69\x63\x61\164\151\x6f\x6e"), "\x6f\164\x70\137\163\145\x6e\x74\x5f\160\150\x6f\156\145" => __("\x41\156\x20\x4f\x54\120\40\167\x69\x6c\154\x20\x62\x65\x20\163\145\156\x74\40\164\157\x20\x79\157\x75\x72\x20\x4d\x6f\x62\151\x6c\145\40\x4e\x75\155\142\x65\x72", "\155\x69\x6e\151\157\x72\x61\156\147\145\x2d\62\x2d\x66\141\x63\164\x6f\x72\55\x61\165\x74\x68\145\x6e\x74\151\x63\141\164\x69\157\x6e"), "\157\164\160\137\163\x65\156\164\x5f\142\x6f\164\150" => __("\101\x6e\x20\x4f\x54\x50\x20\x77\x69\154\154\x20\x62\145\40\x73\x65\x6e\164\x20\x74\x6f\x20\171\x6f\165\162\x20\115\x6f\142\x69\x6c\x65\x20\x4e\x75\155\142\145\162\40\x61\156\144\40\x45\155\141\151\154", "\x6d\151\x6e\151\x6f\x72\x61\156\x67\x65\x2d\x32\x2d\x66\141\x63\164\x6f\x72\x2d\141\x75\x74\x68\x65\156\164\151\143\x61\x74\x69\157\x6e"), "\x6f\x74\160\x5f\x73\x65\156\164\137\145\x6d\x61\x69\154" => __("\x41\156\40\x4f\124\120\x20\167\x69\154\154\40\x62\x65\40\163\x65\x6e\164\40\x74\x6f\x20\171\157\165\162\40\x45\155\141\x69\154\x20\111\x44", "\x6d\x69\156\x69\157\x72\141\156\147\x65\x2d\62\x2d\146\x61\143\x74\x6f\x72\55\141\x75\x74\150\145\x6e\x74\x69\143\x61\164\x69\x6f\x6e"), "\141\154\x72\145\141\144\x79\137\x76\x61\154\151\144\x61\x74\x65\x64" => __("\101\x6c\x72\x65\x61\144\x79\40\x56\x61\x6c\151\144\x61\x74\x65\144", "\x6d\x69\x6e\x69\x6f\162\141\x6e\x67\x65\x2d\62\55\x66\141\x63\x74\157\162\55\141\x75\164\150\x65\x6e\164\x69\143\141\164\x69\157\x6e"), "\166\141\x6c\x69\144\141\x74\x65\x5f\x70\x68\x6f\x6e\145" => __("\120\x6c\x65\x61\163\x65\x20\126\x61\154\x69\144\x61\x74\145\40\x50\150\x6f\x6e\145\40\x66\x69\x72\x73\164", "\155\x69\x6e\151\x6f\x72\x61\x6e\x67\x65\55\x32\x2d\146\141\x63\x74\157\x72\55\141\x75\x74\x68\x65\x6e\164\151\x63\141\164\x69\157\156"), "\166\141\154\151\x64\x61\164\x65\137\145\x6d\141\151\154" => __("\x50\154\145\x61\163\x65\x20\x56\141\x6c\151\144\x61\164\x65\40\105\x6d\x61\x69\154\40\x66\151\x72\163\x74", "\x6d\x69\156\151\157\x72\141\x6e\x67\145\x2d\62\55\146\141\x63\164\x6f\162\x2d\141\165\x74\x68\x65\156\x74\151\x63\x61\x74\x69\157\156"), "\160\x68\x6f\x6e\145\x5f\x66\151\145\154\144\x5f\156\157\164\137\146\157\165\156\144" => __("\155\x69\x6e\x69\117\162\x61\x6e\x67\x65\x20\x3a\x20\120\150\x6f\x6e\x65\40\x46\x69\x65\x6c\x64\x20\156\157\x74\x20\106\157\165\x6e\x64\x2e", "\x6d\151\156\151\x6f\x72\141\x6e\147\145\x2d\x32\x2d\x66\141\143\164\157\x72\55\x61\165\164\x68\x65\156\164\151\x63\141\164\x69\x6f\156"), "\x65\155\x61\x69\x6c\137\x66\x69\x65\154\144" => __("\x6d\151\x6e\151\x4f\162\141\x6e\x67\x65\40\72\40\105\155\141\x69\154\40\106\151\x65\x6c\144", "\x6d\151\x6e\x69\x6f\162\141\156\147\x65\x2d\62\x2d\146\141\143\164\x6f\x72\x2d\141\x75\x74\x68\145\x6e\164\151\143\x61\x74\151\157\156"), "\156\x6f\164\137\146\x6f\x75\156\x64" => __("\x20\x6e\x6f\164\40\x46\157\165\156\x64\56\40\120\154\x65\x61\163\x65\x20\x63\150\145\x63\x6b\40\123\x65\154\x65\x63\164\x6f\162", "\155\151\156\x69\x6f\x72\141\156\147\145\55\62\x2d\x66\141\143\164\x6f\x72\55\x61\165\x74\150\145\156\x74\151\143\x61\164\151\x6f\156"), "\166\141\154\x69\144\141\x74\x65\x5f\x62\157\164\150" => __("\x50\x6c\145\x61\163\x65\40\126\141\x6c\151\144\141\x74\145\40\105\x6d\x61\151\x6c\40\x61\156\144\40\x50\x68\157\156\145\40\x66\x69\162\x73\x74", "\155\x69\156\x69\157\162\141\x6e\x67\x65\x2d\x32\x2d\x66\x61\x63\x74\157\x72\55\141\x75\x74\x68\145\156\x74\x69\x63\141\164\151\x6f\156"), "\141\143\143\157\x75\x6e\x74\137\x72\x65\147\x69\163\x74\x65\x72" => __("\x6d\151\156\x69\117\162\141\x6e\x67\145\x20\x3a\x20\x52\x65\x67\151\x73\x74\145\162\57\114\x6f\147\x69\156\x20\167\151\164\150\40\155\x69\x6e\151\x4f\x72\141\x6e\147\x65\40\164\x6f\x20\x45\x6e\x61\142\154\145\40\x32\106\x41\40\x66\x6f\162\40\x74\150\x69\163\40\x46\157\162\155", "\x6d\x69\x6e\x69\x6f\162\141\156\x67\145\55\x32\55\x66\141\143\164\157\x72\55\141\165\x74\150\x65\156\164\x69\143\x61\x74\x69\x6f\x6e"), "\162\145\147\x69\163\164\145\162" => __("\122\145\147\x69\163\x74\145\x72", "\x6d\x69\156\x69\157\x72\x61\x6e\x67\145\55\62\55\146\141\x63\164\x6f\162\55\141\x75\164\x68\x65\x6e\164\x69\x63\x61\x74\x69\157\x6e"), "\x76\x61\x6c\151\x64\x61\164\151\x6f\x6e\137\x65\162\162\x6f\x72" => __("\105\162\162\157\x72\x20\126\x61\x6c\x69\x64\x61\x74\151\x6e\147\40\x4f\x54\120", "\155\x69\x6e\151\157\162\141\156\147\x65\55\x32\55\x66\141\x63\x74\x6f\162\x2d\141\165\x74\150\x65\x6e\x74\151\143\141\x74\151\157\x6e"), "\160\150\x6f\156\x65\x5f\166\141\x6c\x69\x64\141\x74\x65\144" => __("\x50\x68\157\156\x65\40\116\x75\155\142\x65\162\x20\x56\x61\154\x69\144\141\164\145\x64", "\x6d\151\156\151\157\x72\141\x6e\147\145\x2d\62\x2d\x66\x61\143\164\x6f\162\x2d\x61\x75\164\150\145\156\x74\x69\x63\141\x74\x69\x6f\156")));
wp_enqueue_script("\155\x6f\x32\146\137\157\x74\x70\126\x65\x72\x69\x66\x69\x63\141\164\151\157\156");
}
public function mo2f_login_form_url()
{
if (!(!is_user_logged_in() && esc_url(get_site_option("\x6d\157\62\146\137\154\x6f\x67\151\x6e\137\x66\157\x72\x6d\137\165\162\154")) && wp_http_validate_url(get_site_option("\155\x6f\62\x66\137\154\157\147\151\x6e\137\x66\x6f\x72\x6d\137\x75\162\x6c")))) {
goto pLi;
}
$yI = $_SERVER["\x48\124\x54\120\x5f\110\x4f\123\124"];
$yI .= $_SERVER["\x52\105\121\125\105\x53\x54\137\125\x52\111"];
if (!empty($_SERVER["\110\124\124\120\x53"]) && $_SERVER["\110\x54\124\x50\123"] != "\x6f\146\146" || $_SERVER["\123\x45\x52\x56\x45\x52\x5f\120\117\x52\124"] == 443) {
goto j0X;
}
$yI = "\x68\x74\164\x70\72\57\57" . $yI;
goto fDF;
j0X:
$yI = "\x68\164\164\160\x73\x3a\x2f\57" . $yI;
fDF:
$jB = esc_url(get_site_option("\155\157\62\x66\x5f\x6c\x6f\147\151\x6e\137\x66\157\x72\155\x5f\x75\x72\154"));
if (str_contains($jB, "\54")) {
goto oS3;
}
if (strpos($yI, $jB) !== false) {
goto Tv0;
}
goto cJ3;
oS3:
$vQ = explode("\54", $jB);
foreach ($vQ as $ZS) {
if (!(strpos($yI, $ZS) !== false)) {
goto L29;
}
$this->mo2f_enqueue_url_script();
L29:
XAX:
}
xj9:
goto cJ3;
Tv0:
$this->mo2f_enqueue_url_script();
cJ3:
pLi:
}
function feedback_request()
{
if (!("\x70\x6c\165\x67\151\x6e\x73\56\x70\x68\160" != basename($_SERVER["\120\x48\120\x5f\x53\x45\x4c\x46"]))) {
goto tm1;
}
return;
tm1:
global $WC;
$vj = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\146\x5f\x65\155\141\x69\154");
if (!empty($vj)) {
goto f_s;
}
$user = wp_get_current_user();
$vj = $user->user_email;
f_s:
$Cm4 = plugins_url("\x2f\x69\x6e\x63\x6c\x75\144\x65\x73\57\x69\155\x61\x67\145\163\x2f", __FILE__);
wp_enqueue_style("\x77\160\x2d\160\x6f\151\x6e\x74\145\x72");
wp_enqueue_script("\x77\x70\x2d\x70\x6f\151\156\164\x65\162");
wp_enqueue_script("\x75\x74\151\x6c\163");
wp_enqueue_style("\x6d\x6f\x5f\167\160\156\x73\137\141\144\x6d\x69\156\137\160\154\165\147\151\x6e\163\x5f\x70\141\x67\x65\137\163\164\171\154\145", plugins_url("\x2f\151\x6e\x63\154\x75\x64\x65\163\57\143\163\163\x2f\x73\164\171\x6c\145\x5f\163\145\x74\x74\x69\156\x67\x73\x2e\x63\163\x73", __FILE__), array(), MO2F_VERSION);
include $WC . "\166\151\145\x77\163" . DIRECTORY_SEPARATOR . "\x66\x65\x65\144\142\141\143\153\137\146\x6f\162\155\56\160\x68\x70";
}
function mo2fa_load_textdomain()
{
global $aq;
load_plugin_textdomain("\x6d\151\x6e\x69\x6f\162\141\156\147\145\x2d\x32\x2d\146\141\x63\x74\157\x72\x2d\141\x75\164\150\x65\156\164\x69\143\x61\x74\151\x6f\x6e", false, dirname(plugin_basename(__FILE__)) . "\57\154\x61\156\147\x2f");
$aq->mo2f_plugin_migration();
}
function mo_wpns_malware_notices()
{
global $aq;
$L1v = wp_get_current_user();
$np = $aq->get_user_detail("\155\x6f\62\146\137\143\x6f\x6e\x66\151\147\165\162\x65\x64\137\62\106\x41\x5f\x6d\145\164\150\157\x64", $L1v->ID);
$RFG = 60 * 60 * 24;
$dOo = (time() - get_site_option("\163\x6d\x73\x5f\144\x69\x73\x6d\x69\163\x73")) / $RFG;
$dOo = floor($dOo);
$bdA = (time() - get_site_option("\x65\x6d\141\x69\x6c\x5f\144\x69\163\x6d\151\x73\x73")) / $RFG;
$bdA = floor($bdA);
$zK = array();
$eT = wp_get_themes($zK);
$y6V = get_site_option("\x6d\157\x5f\x77\x70\156\163\137\x6c\141\x73\x74\x5f\x74\x68\x65\155\x65\163");
$aT = 0;
if (is_array($y6V)) {
goto F0l;
}
$aT = 1;
goto OvQ;
F0l:
if (sizeof($eT) == sizeof($y6V)) {
goto BpK;
}
$aT = 1;
goto bL0;
BpK:
foreach ($eT as $Yt => $kB) {
if (isset($y6V[$Yt])) {
goto hmw;
}
$aT = 1;
goto noM;
goto Dwi;
hmw:
if (!($eT[$Yt] != $y6V[$Yt])) {
goto Do5;
}
$aT = 1;
goto noM;
Do5:
Dwi:
wG8:
}
noM:
bL0:
OvQ:
$s1G = get_plugins();
$eW2 = get_site_option("\x6d\157\137\167\160\156\163\137\154\141\163\164\x5f\x70\x6c\x75\147\151\x6e\x73");
$IWu = 0;
if (is_array($eW2)) {
goto MJR;
}
$IWu = 1;
goto mqY;
MJR:
if (sizeof($s1G) == sizeof($eW2)) {
goto B1w;
}
$IWu = 1;
goto C8h;
B1w:
foreach ($s1G as $Yt => $kB) {
if (isset($eW2[$Yt])) {
goto wQP;
}
$IWu = 1;
goto Wh_;
goto wb2;
wQP:
if (!($s1G[$Yt] != $eW2[$Yt])) {
goto aB0;
}
$IWu = 1;
goto Wh_;
aB0:
wb2:
RG7:
}
Wh_:
C8h:
mqY:
$RFG = 60 * 60 * 24;
$s7 = (time() - get_site_option("\x6d\157\x5f\167\x70\156\163\x5f\x6c\x61\163\x74\x5f\163\143\x61\x6e\137\x74\151\x6d\x65")) / $RFG;
$s7 = (int) $s7;
$Aok = (time() - get_site_option("\151\156\x66\x65\143\x74\145\144\137\144\151\x73\x6d\151\x73\163")) / $RFG;
$Aok = floor($Aok);
$Ub2 = (time() - get_site_option("\x77\x65\x65\153\x6c\x79\x5f\144\x69\163\x6d\151\163\x73")) / $RFG;
$Ub2 = floor($Ub2);
if (!MoWpnsUtility::get_mo2f_db_option("\155\157\137\167\x70\156\x73\137\62\146\x61\137\167\151\164\x68\x5f\x6e\x65\x74\167\157\x72\x6b\137\163\x65\x63\165\x72\151\x74\x79", "\x73\151\164\145\137\157\x70\164\x69\157\x6e")) {
goto rGU;
}
if (!get_site_option("\144\x6f\156\x6f\164\137\163\150\157\167\x5f\x69\x6e\x66\145\143\x74\145\144\x5f\146\x69\154\145\137\x6e\157\164\151\143\145") && get_site_option("\155\157\x5f\167\160\x6e\163\x5f\x69\156\x66\x65\143\164\145\x64\137\146\x69\154\145\163") != 0 && $Aok >= 1) {
goto Ql4;
}
if (!get_site_option("\144\157\x6e\157\164\137\163\x68\157\167\137\156\145\x77\137\160\154\165\x67\151\156\x5f\x74\x68\x65\155\145\137\156\157\164\151\143\145") && ($IWu || $aT)) {
goto lnY;
}
goto qiN;
Ql4:
echo MoWpnsMessages::mo2fa_wpns_showMessage("\x49\116\106\x45\103\x54\x45\104\137\106\x49\x4c\x45");
goto qiN;
lnY:
echo MoWpnsMessages::mo2fa_wpns_showMessage("\x4e\x45\x57\137\x50\114\125\x47\111\x4e\x5f\x54\x48\105\115\x45\137\x43\x48\105\103\113");
qiN:
rGU:
if (!current_user_can("\141\144\x6d\151\156\151\x73\x74\162\x61\164\x6f\162")) {
goto UTO;
}
if (!(!get_site_option("\144\157\x6e\157\164\x5f\x73\x68\x6f\167\137\154\x6f\x77\x5f\163\155\x73\137\156\x6f\x74\151\143\x65") && base64_decode(get_site_option(md5("\x73\155\x73\122\145\x6d\x61\151\x6e\x69\156\147"))) <= 10 && $dOo >= 1 && $np == "\x4f\124\x50\x20\x4f\166\145\162\40\x53\115\123")) {
goto FOZ;
}
echo MoWpnsMessages::mo2fa_wpns_showMessage("\114\x4f\x57\x5f\x53\x4d\x53\x5f\x54\122\101\x4e\x53\101\x43\124\x49\x4f\x4e\123");
FOZ:
UTO:
}
function mo_wpns_widget_menu()
{
$user = wp_get_current_user();
$dm = $user->ID;
$Zzc = MoWpnsUtility::get_mo2f_multisite_compatible("\155\x6f\62\146\137\x6f\156\x70\x72\145\155\137\x61\x64\x6d\151\156");
$TA = (array) $user->roles;
$Ct = 0;
foreach ($TA as $S5) {
if (!(MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x32\146\x61\x5f" . $S5) == "\x31")) {
goto COL;
}
$Ct = 1;
COL:
o4p:
}
MXU:
$eNH = ($Ct or $dm == $Zzc);
$gi = "\x6d\x6f\x5f\x32\146\x61\137\x74\167\157\x5f\146\x61";
if (MoWpnsUtility::get_mo2f_db_option("\155\x6f\62\146\137\x62\171\137\x72\157\154\145\163", "\x73\x69\164\x65\137\157\x70\x74\x69\157\x6e")) {
goto EUv;
}
$DI = MoWpnsUtility::get_mo2f_db_option("\x6d\x6f\62\x66\x5f\x73\145\154\145\143\x74\137\x75\x73\145\162\x5f\146\157\162\x5f\62\146\141", "\163\151\x74\x65\x5f\157\x70\x74\151\157\x6e");
$h_ = in_array($user->ID, $DI);
goto c98;
EUv:
$h_ = miniorange_check_if_2fa_enabled_for_roles($user->roles);
c98:
if (!current_user_can("\155\x61\156\x61\x67\145\x5f\157\160\164\151\x6f\156\163") && $h_ && get_site_option("\155\157\x5f\x32\x66\x61\143\x74\x6f\x72\137\x61\144\x6d\x69\x6e\137\x72\x65\147\x69\163\x74\x72\141\x74\x69\157\156\x5f\163\x74\141\x74\165\163") == "\x4d\117\137\x32\137\x46\101\103\124\117\122\x5f\103\x55\123\x54\x4f\115\105\122\x5f\x52\105\107\x49\123\x54\x45\122\x45\104\137\x53\125\103\x43\105\123\123" && get_site_option("\155\x6f\x32\x66\137\155\x69\156\151\157\x72\x61\156\147\x65\137\x61\x64\155\151\x6e") != $user->ID && MoWpnsUtility::get_mo2f_db_option("\155\157\62\146\137\x61\143\x74\x69\166\x61\x74\145\x5f\x70\154\x75\x67\151\x6e", "\x73\x69\x74\x65\x5f\x6f\160\164\151\x6f\x6e") == 1) {
goto dpP;
}
if (current_user_can("\x6d\x61\x6e\x61\147\145\137\x6f\160\164\151\157\156\163")) {
goto YkB;
}
goto f6L;
dpP:
$Cy = add_menu_page("\155\x69\x6e\151\x4f\162\141\x6e\147\145\x20\x32\x20\x46\141\x63\164\x6f\x72\x20", "\x6d\x69\156\151\117\162\x61\156\x67\145\x20\62\55\x46\141\143\x74\x6f\162", "\162\x65\141\x64", $gi, array($this, "\x6d\157\137\x77\160\x6e\x73"), plugin_dir_url(__FILE__) . "\151\156\143\x6c\x75\144\145\163\x2f\x69\x6d\141\x67\x65\163\x2f\x6d\151\x6e\151\157\162\x61\156\147\x65\137\151\x63\157\x6e\x2e\160\156\x67");
goto f6L;
YkB:
$Cy = add_menu_page("\x6d\151\x6e\x69\x4f\162\x61\x6e\x67\145\40\x32\x20\106\x61\143\164\157\x72\x20", "\x6d\x69\x6e\x69\x4f\162\x61\156\147\145\x20\62\55\x46\x61\143\x74\x6f\162", "\155\141\x6e\141\x67\145\x5f\x6f\x70\x74\151\x6f\x6e\163", $gi, array($this, "\155\x6f\137\167\160\x6e\x73"), plugin_dir_url(__FILE__) . "\x69\x6e\x63\x6c\x75\144\145\x73\57\x69\155\x61\147\145\163\57\155\151\156\x69\x6f\162\x61\x6e\147\x65\x5f\x69\x63\x6f\x6e\56\x70\156\147");
if (!(isset($_GET["\141\x63\x74\x69\x6f\156"]) && "\x72\145\x73\145\x74\137\x65\144\151\x74" === sanitize_text_field(wp_unslash($_GET["\141\x63\164\151\157\x6e"])))) {
goto lby;
}
$Cy = add_users_page("\x52\145\163\x65\164\x20\x32\156\144\x20\106\141\143\164\x6f\x72", null, "\155\x61\156\141\147\x65\x5f\x6f\x70\164\x69\157\156\163", "\162\145\163\x65\x74", array($this, "\155\x6f\137\x72\x65\163\x65\x74\x5f\62\x66\x61\137\x66\x6f\x72\x5f\x75\x73\145\162\x73\x5f\142\171\137\141\144\x6d\151\156"), 66);
lby:
f6L:
if (!MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\137\x77\x70\156\163\x5f\62\x66\141\137\x77\151\164\150\137\x6e\x65\x74\x77\x6f\162\x6b\137\x73\145\143\165\x72\x69\x74\171", "\147\145\x74\x5f\x6f\160\x74\x69\157\156")) {
goto G0N;
}
add_submenu_page($gi, "\155\151\156\x69\x4f\162\141\156\147\145\40\x32\55\x46\141\x63\164\157\x72", "\x44\141\163\150\142\157\x61\x72\x64", "\x61\x64\x6d\151\x6e\x69\x73\x74\162\141\x74\157\x72", "\155\x6f\137\x32\x66\x61\x5f\x64\141\163\x68\142\157\x61\x72\144", array($this, "\155\x6f\137\x77\x70\x6e\163"), 1);
G0N:
if (MO2F_IS_ONPREM) {
goto gbm;
}
add_submenu_page($gi, "\x6d\x69\156\151\117\162\141\156\147\x65\40\62\55\106\x61\143\x74\x6f\162", "\124\x77\x6f\x20\x46\x61\x63\x74\157\x72", "\162\x65\141\144", "\155\x6f\x5f\x32\146\x61\137\x74\167\x6f\137\x66\141", array($this, "\155\x6f\x5f\167\160\x6e\x73"), 2);
goto pwa;
gbm:
if (!$eNH) {
goto V8h;
}
add_submenu_page($gi, "\155\x69\x6e\x69\117\x72\x61\156\x67\x65\40\62\x2d\x46\x61\143\x74\x6f\162", "\124\x77\157\x20\x46\141\143\x74\x6f\x72", "\x72\145\x61\x64", "\155\157\137\62\146\x61\x5f\164\167\157\x5f\x66\x61", array($this, "\x6d\x6f\x5f\167\160\156\163"), 1);
V8h:
pwa:
if (!MoWpnsUtility::get_mo2f_db_and_migrate("\155\157\x5f\x77\x70\156\x73\x5f\x32\146\141\x5f\167\151\164\150\x5f\x6e\x65\164\x77\157\x72\x6b\137\163\145\143\x75\162\x69\164\x79", "\x67\x65\164\137\157\x70\x74\151\157\156")) {
goto LoG;
}
add_submenu_page($gi, "\155\151\156\x69\117\x72\141\156\x67\x65\40\x32\55\106\141\x63\x74\x6f\x72", "\x46\151\162\145\167\141\154\154", "\x61\x64\x6d\151\x6e\x69\x73\x74\x72\x61\164\x6f\162", "\155\x6f\137\62\146\141\137\167\141\x66", array($this, "\155\x6f\x5f\x77\x70\x6e\x73"), 3);
add_submenu_page($gi, "\155\x69\x6e\x69\x4f\x72\x61\x6e\x67\x65\40\62\55\106\141\x63\164\x6f\162", "\x4c\x6f\x67\x69\x6e\40\x61\x6e\144\40\x53\160\141\x6d", "\141\144\155\x69\x6e\151\x73\x74\162\141\164\x6f\162", "\x6d\x6f\137\62\146\x61\x5f\154\x6f\147\151\x6e\x5f\x61\x6e\144\137\163\x70\141\x6d", array($this, "\x6d\x6f\137\167\160\156\163"), 4);
add_submenu_page($gi, "\155\151\156\x69\x4f\162\141\156\147\145\x20\62\55\106\x61\143\164\x6f\162", "\102\x61\x63\153\x75\160", "\x61\144\155\151\156\151\x73\x74\x72\141\x74\157\x72", "\155\x6f\137\x32\x66\x61\x5f\142\x61\143\153\165\x70", array($this, "\155\x6f\x5f\167\x70\x6e\163"), 5);
add_submenu_page($gi, "\x6d\151\x6e\151\x4f\x72\141\156\147\x65\x20\62\55\x46\141\x63\164\x6f\x72", "\115\x61\x6c\x77\x61\162\x65\40\123\143\x61\x6e", "\141\144\x6d\151\156\151\163\164\162\x61\164\x6f\162", "\155\157\137\62\146\141\137\155\141\154\x77\141\x72\145\163\143\x61\156", array($this, "\x6d\157\x5f\167\x70\156\163"), 6);
add_submenu_page($gi, "\x6d\151\x6e\151\117\x72\x61\x6e\x67\x65\x20\x32\x2d\106\x61\143\164\157\x72", "\111\120\40\102\154\x6f\x63\x6b\151\156\x67", "\141\x64\155\x69\156\151\163\x74\x72\141\164\157\x72", "\155\x6f\137\x32\x66\141\x5f\x61\144\166\141\x6e\x63\x65\144\142\154\x6f\x63\x6b\x69\156\x67", array($this, "\155\157\x5f\x77\160\156\x73"), 7);
add_submenu_page($gi, "\x6d\x69\x6e\151\117\162\x61\x6e\x67\x65\x20\62\55\x46\x61\x63\x74\x6f\x72", "\116\157\164\x69\x66\x69\x63\141\164\151\157\156\x73", "\x61\x64\x6d\151\x6e\x69\163\x74\162\x61\164\157\x72", "\x6d\157\137\x32\x66\141\137\x6e\x6f\x74\151\146\151\143\141\164\151\x6f\156\163", array($this, "\x6d\157\x5f\x77\160\156\x73"), 8);
LoG:
add_submenu_page($gi, "\155\151\x6e\151\117\162\x61\156\x67\x65\40\62\55\106\141\143\x74\157\162", "\124\x72\x6f\x75\x62\154\145\x73\150\x6f\157\164\151\156\x67", "\141\x64\x6d\x69\156\x69\163\x74\x72\141\164\x6f\x72", "\x6d\x6f\137\x32\x66\141\137\x74\x72\157\165\x62\x6c\145\x73\x68\x6f\157\x74\x69\x6e\147", array($this, "\155\157\x5f\167\160\156\163"), 10);
add_submenu_page($gi, "\155\x69\156\x69\117\x72\x61\x6e\x67\145\40\x32\x2d\106\x61\x63\x74\x6f\162", "\122\x65\x70\157\162\164\163", "\141\x64\x6d\x69\x6e\151\x73\x74\162\x61\164\157\x72", "\155\x6f\x5f\62\x66\141\x5f\162\x65\160\157\162\x74\163", array($this, "\x6d\x6f\137\167\160\156\163"), 9);
add_submenu_page($gi, "\155\151\156\151\117\x72\x61\156\147\145\x20\x32\x2d\106\x61\x63\x74\x6f\x72", "\125\x70\147\162\141\x64\x65", "\x61\x64\x6d\x69\x6e\x69\x73\164\162\141\164\157\162", "\x6d\x6f\x5f\62\146\141\x5f\165\160\147\162\x61\x64\x65", array($this, "\x6d\157\x5f\x77\x70\156\x73"), 12);
}
function mo2f_enqueue_url_script()
{
$YaU = esc_js(get_site_option("\155\x6f\x32\146\x5f\x6c\157\147\151\x6e\x5f\163\165\142\155\x69\x74\137\x73\x65\x6c\x65\143\x74\x6f\x72"));
$lcZ = esc_js(get_site_option("\155\x6f\x32\146\137\154\x6f\147\151\156\x5f\x65\x6d\141\151\154\137\x73\x65\154\x65\143\x74\x6f\x72"));
$E2y = esc_js(get_site_option("\x6d\157\x32\146\x5f\x6c\x6f\147\151\x6e\x5f\x70\x61\x73\x73\x5f\163\x65\154\x65\143\x74\x6f\x72"));
$Dw2 = esc_js(get_site_option("\x6d\157\x32\146\x5f\x6c\x6f\x67\151\156\x5f\146\157\162\x6d\x5f\163\x65\x6c\145\143\x74\157\x72"));
$aK0 = esc_js(get_site_option("\155\157\62\x66\x5f\154\x6f\147\x69\x6e\137\160\141\x73\x73\154\x61\x62\145\x6c\137\163\145\154\x65\x63\x74\x6f\162"));
$oPY = esc_js(get_option("\x6d\157\x32\146\137\x73\150\x6f\x77\x5f\x6c\157\147\151\156\167\151\164\x68\137\x70\x68\157\x6e\x65"));
$gov = false;
$YCs = array("\x65\x6d\x61\x69\154\x5f\154\141\142\145\x6c" => __("\x55\x73\145\x72\x6e\141\155\145\40\157\162\40\x45\155\141\151\x6c", "\155\x69\156\x69\x6f\x72\x61\x6e\x67\x65\55\x32\55\x66\x61\x63\164\157\162\55\141\x75\164\150\x65\156\x74\151\143\141\164\151\157\x6e"), "\160\141\163\x73\167\x6f\x72\x64\154\x65\x73\163\137\x6c\157\147\x69\156\x5f\142\x74\156" => __("\x4c\157\147\151\x6e\40\167\x69\x74\x68\40\62\156\144\40\146\141\143\164\157\162", "\155\151\x6e\151\x6f\x72\x61\156\147\145\x2d\x32\55\146\x61\143\x74\x6f\x72\55\141\x75\x74\x68\145\156\x74\151\x63\x61\x74\151\157\x6e"), "\151\x6e\166\141\x6c\151\x64\137\143\162\x65\x64\x65\156\164\151\141\x6c\163" => __("\111\x6e\166\x61\x6c\x69\x64\40\x43\x72\x65\x64\145\x6e\164\151\141\x6c\x73\x21", "\x6d\x69\156\x69\x6f\x72\x61\x6e\x67\145\x2d\62\x2d\146\x61\x63\x74\x6f\x72\55\141\165\x74\150\145\156\x74\151\x63\141\164\151\x6f\156"), "\164\167\157\137\146\x61\143\164\x6f\162\137\156\x6f\x74\137\x63\157\x6e\x66\x69\x67\x75\x72\x65\144" => __("\x54\x77\x6f\40\x46\141\x63\164\157\162\x20\151\x73\x20\x6e\x6f\164\40\x63\157\156\146\x69\x67\165\x72\145\144\40\x66\x6f\x72\40\171\x6f\x75\56\40\120\154\x65\x61\x73\x65\x20\x6c\157\147\151\x6e\x20\x77\151\164\x68\40\160\x61\163\163\167\x6f\x72\144\x20\164\x6f\x20\x73\145\164\165\160\x20\x32\x46\101\x2e", "\155\x69\x6e\x69\157\x72\141\156\147\145\x2d\62\55\x66\141\x63\164\x6f\x72\x2d\141\165\x74\x68\145\x6e\x74\x69\x63\141\x74\151\157\156"), "\x69\156\166\x61\154\151\x64\x5f\x72\x65\x71\x75\x65\x73\164" => __("\x49\x6e\166\141\154\151\x64\x20\x52\145\161\165\145\163\x74\x2c\x20\120\154\x65\141\x73\145\x20\164\x72\x79\40\141\147\x61\151\156", "\x6d\151\156\x69\x6f\162\x61\156\x67\x65\x2d\62\x2d\x66\x61\143\x74\x6f\x72\55\x61\165\164\150\145\x6e\164\x69\x63\x61\164\x69\x6f\x6e"), "\x73\145\163\x73\151\x6f\x6e\137\162\145\x73\164\162\x69\x63\x74\x69\157\x6e" => __("\103\x6f\x6e\x63\165\162\x72\145\x6e\x74\x20\123\145\x73\x73\x69\x6f\156\x20\154\151\x6d\x69\164\40\162\x65\141\x63\150\x65\x64\54\40\114\x6f\x67\157\165\164\x20\146\x72\x6f\x6d\40\157\x74\x68\x65\x72\x20\x73\x65\163\x73\x69\157\x6e\40\146\151\x72\x73\164", "\x6d\x69\x6e\151\x6f\x72\x61\156\147\145\55\x32\55\x66\x61\x63\164\x6f\x72\55\141\x75\x74\150\x65\x6e\x74\x69\143\141\164\x69\157\156"));
if (!class_exists("\x53\124\x4d\x5f\x4c\x4d\123\x5f\x55\123\105\x52")) {
goto FE3;
}
$gov = true;
FE3:
wp_enqueue_script("\152\x71\165\x65\162\x79");
wp_enqueue_script("\x6d\x6f\62\x66\141\137\x6c\157\147\x69\x6e\x73\143\162\x69\160\164", plugin_dir_url(__FILE__) . "\x69\x6e\x63\x6c\165\144\x65\x73\57\x6a\163\57\x6c\x6f\147\x69\156\x2d\x73\x68\157\162\164\x63\x6f\144\x65\x2e\152\x73", array(), MO2F_VERSION);
wp_localize_script("\x6d\x6f\62\146\x61\137\154\157\x67\151\156\163\143\162\x69\x70\x74", "\155\171\137\141\152\x61\x78\x5f\157\x62\152\x65\143\164", array("\x61\x6a\x61\x78\x5f\165\x72\x6c" => admin_url("\141\144\x6d\151\x6e\55\141\152\x61\x78\x2e\x70\150\160"), "\156\157\x6e\143\x65" => wp_create_nonce("\155\x69\x6e\151\x6f\x72\x61\x6e\147\145\55\62\x2d\146\x61\143\164\x6f\162\55\x6c\157\x67\x69\x6e\55\x6e\157\x6e\143\145"), "\141\152\x61\x78\137\x6e\157\x6e\x63\145" => wp_create_nonce("\x6d\151\156\x69\157\x72\141\156\147\x65\55\x32\55\146\141\x63\164\157\162\x2d\141\x6a\x61\170\55\154\x6f\x67\x69\156\x2d\x6e\157\156\143\145"), "\141\152\x61\x78\137\x70\141\163\163\167\x6f\162\144\x6c\145\163\x73\137\156\x6f\156\143\145" => wp_create_nonce("\155\151\156\151\x6f\162\141\x6e\147\145\55\x32\x2d\x66\x61\143\x74\157\x72\55\x70\x61\x73\163\167\x6f\162\144\x6c\145\x73\x73\55\141\x6a\141\170\55\154\157\x67\151\156\55\156\x6f\156\x63\145"), "\x6d\x6f\62\146\137\154\x6f\147\x69\x6e\x5f\x6f\160\164\151\x6f\156" => esc_js(MoWpnsUtility::get_mo2f_db_option("\155\x6f\x32\x66\x5f\x6c\x6f\147\151\x6e\x5f\x6f\160\x74\x69\x6f\156", "\x67\x65\x74\137\157\160\x74\151\157\x6e")), "\x6d\x6f\62\x66\x5f\x73\150\x6f\x77\x5f\x6c\x6f\x67\x69\156\167\151\164\150\137\160\150\x6f\x6e\145" => $oPY, "\x73\165\142\155\x69\164\123\145\154\145\x63\x74\x6f\x72" => $YaU, "\x65\155\x61\151\x6c\123\145\x6c\145\143\164\157\x72" => $lcZ, "\x70\x61\x73\x73\x53\145\x6c\145\143\164\157\162" => $E2y, "\160\x61\x73\x73\114\x61\142\x65\x6c\x53\145\x6c\145\x63\164\157\x72" => $aK0, "\146\157\x72\x6d\x53\x65\154\x65\x63\x74\x6f\x72" => $Dw2, "\x6d\x6f\62\x66\x5f\x72\x65\x6d\x65\x6d\x62\145\x72\x5f\144\145\166\x69\x63\x65" => esc_js(get_option("\x6d\x6f\x32\x66\137\x72\145\x6d\x65\155\x62\x65\x72\x5f\x64\x65\166\x69\x63\x65\40")), "\151\163\137\155\141\x73\164\145\x72\x73\x74\165\x64\171" => $gov, "\146\157\162\155\x53\x74\x72\151\x6e\147\163" => $YCs));
}
function checkSecurity()
{
$uJ9 = new Customer_Setup();
$uJ9->guest_audit();
}
function mo_wpns()
{
global $FD, $aq;
$FD->mo_plugin_activate();
$aq->mo_plugin_activate();
add_site_option("\x53\121\114\x49\156\152\x65\143\x74\151\157\x6e", 1);
add_site_option("\127\x41\x46\x45\156\x61\142\154\x65\144", 0);
add_site_option("\x58\123\x53\x41\164\164\141\143\153", 1);
add_site_option("\x52\106\111\x41\164\164\141\x63\x6b", 0);
add_site_option("\x4c\x46\x49\101\164\x74\141\x63\x6b", 0);
add_site_option("\x52\x43\105\x41\164\x74\x61\x63\x6b", 0);
add_site_option("\141\143\164\x69\157\x6e\122\x61\x74\145\x4c", 0);
add_site_option("\122\x61\164\x65\137\154\151\155\x69\164\x69\156\x67", 0);
add_site_option("\122\x61\x74\145\x5f\x72\145\161\x75\x65\x73\x74", 240);
add_site_option("\x6c\x69\x6d\151\164\101\x74\164\141\143\x6b", 10);
add_site_option(base64_encode("\x74\x6f\x74\141\x6c\125\x73\145\162\x73\103\154\x6f\x75\x64"), 0);
include "\x63\157\156\164\162\157\154\154\145\162\x73\x2f\x6d\x61\x69\156\x5f\143\x6f\x6e\x74\x72\x6f\x6c\154\145\162\56\x70\150\160";
}
function mo_wpns_activate()
{
$this->checkSecurity();
global $FD, $aq;
$gg = wp_get_current_user()->ID;
$FD->mo_plugin_activate();
$aq->mo_plugin_activate();
add_site_option("\155\157\x32\x66\137\151\163\137\116\x43", 1);
add_site_option("\x6d\157\x32\x66\137\151\163\137\x4e\x4e\x43", 1);
add_site_option("\155\x6f\62\146\x61\x5f\141\144\155\x69\156\151\x73\164\162\x61\x74\157\162", 1);
$gT = new Miniorange_Authentication();
$gT->mo2f_update_db_check();
$aq->mo2f_plugin_migration();
if (!is_multisite()) {
goto reO;
}
add_site_option("\x6d\157\x32\x66\141\x5f\163\x75\x70\x65\x72\x61\144\155\x69\156", 1);
add_option("\x6d\157\62\146\141\x5f\163\165\160\145\x72\x61\x64\155\151\x6e\x5f\x6c\x6f\x67\151\156\137\x75\162\154", admin_url());
reO:
global $wp_roles;
if (isset($wp_roles)) {
goto UA9;
}
$wp_roles = new WP_Roles();
UA9:
MO2f_Utility::mo2f_debug_file("\120\154\x75\147\x69\156\40\x61\x63\x74\151\166\x61\x74\145\144");
foreach ($wp_roles->role_names as $IZ => $Wg) {
add_site_option("\155\x6f\x32\146\x61\137" . $IZ, 1);
if ($IZ == "\141\x64\x6d\x69\x6e\151\163\x74\162\x61\x74\157\162") {
goto aEj;
}
add_option("\155\157\62\146\x61\x5f" . $IZ . "\137\x6c\x6f\147\151\156\x5f\165\x72\x6c", home_url());
goto sqE;
aEj:
add_option("\x6d\x6f\62\146\x61\x5f" . $IZ . "\137\x6c\x6f\147\151\x6e\137\x75\x72\x6c", admin_url());
sqE:
n4Y:
}
YYP:
add_action("\x6d\x6f\137\x61\165\164\x68\x5f\x73\150\x6f\x77\137\x73\x75\143\143\x65\x73\163\137\155\x65\163\163\x61\147\x65", array($this, "\x6d\157\x5f\141\165\x74\150\x5f\x73\150\157\x77\137\x73\165\143\x63\145\163\163\x5f\x6d\x65\x73\163\x61\x67\x65"), 10, 1);
add_action("\155\157\x5f\141\x75\164\x68\x5f\x73\150\x6f\167\137\x65\x72\162\x6f\162\x5f\x6d\x65\163\x73\141\147\x65", array($this, "\x6d\x6f\137\141\x75\x74\150\x5f\163\x68\x6f\167\x5f\145\x72\x72\x6f\x72\137\x6d\145\163\163\x61\x67\x65"), 10, 1);
add_site_option("\155\157\62\146\x5f\157\156\x70\162\x65\155\137\141\x64\x6d\151\x6e", $gg);
add_site_option("\x6d\157\137\167\160\x6e\163\x5f\154\x61\163\x74\x5f\x73\x63\141\x6e\x5f\164\x69\x6d\145", time());
if (!(get_site_option("\155\x6f\62\146\137\141\x63\x74\151\166\x61\164\145\x64\x5f\x74\151\155\x65") == null)) {
goto HlO;
}
add_site_option("\155\157\x32\146\137\x61\143\164\151\x76\141\x74\145\144\137\164\x69\155\145", time());
HlO:
if (!(get_site_option(md5("\x73\155\x73\122\x65\x6d\x61\151\156\x69\x6e\x67")) == null)) {
goto IAQ;
}
add_site_option(md5("\163\x6d\163\x52\x65\x6d\141\x69\x6e\151\156\147"), 0);
IAQ:
update_site_option("\155\x6f\x32\x66\x5f\160\154\x75\147\151\x6e\x5f\162\145\144\x69\x72\145\x63\164", true);
update_site_option("\155\157\62\146\x5f\154\141\163\x74\137\x61\x63\164\151\x76\x61\x74\151\157\156\x5f\x64\x61\x74\145", date("\131\x2f\x6d\57\x64\40\110\72\x69\x3a\x73"));
}
function mo_wpns_deactivate()
{
update_site_option("\155\x6f\62\146\x5f\141\x63\x74\151\166\x61\x74\x65\137\x70\x6c\x75\147\151\156", 1);
$U3 = new Miniorange_Authentication();
$U3->mo_auth_deactivate();
}
function mo_wpns_settings_style($V6)
{
if (!strpos($V6, "\160\x61\x67\145\137\155\x6f\137\x32\146\141")) {
goto fs2;
}
wp_enqueue_style("\155\157\x5f\x32\x66\141\137\x61\x64\x6d\x69\156\137\163\x65\x74\164\x69\x6e\x67\163\137\152\x71\165\x65\162\171\x5f\x73\164\x79\154\x65", plugins_url("\x69\156\143\x6c\x75\144\145\163\57\x63\x73\x73\x2f\152\x71\x75\x65\x72\171\56\165\x69\56\x63\163\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("\x6d\x6f\x5f\x32\146\x61\137\x61\144\155\151\156\x5f\163\145\x74\x74\x69\x6e\x67\163\137\x70\150\157\x6e\x65\137\x73\164\x79\x6c\145", plugins_url("\x69\x6e\x63\x6c\165\x64\145\x73\x2f\x63\x73\x73\x2f\x70\150\x6f\x6e\x65\x2e\143\x73\163", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("\155\x6f\137\x77\160\x6e\x73\137\x61\144\x6d\x69\x6e\x5f\163\x65\164\x74\x69\156\x67\x73\137\x73\x74\171\x6c\x65", plugins_url("\x69\156\143\154\165\144\145\163\x2f\x63\x73\x73\57\x73\x74\x79\x6c\x65\137\x73\x65\164\x74\x69\156\x67\163\x2e\143\x73\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("\x6d\x6f\x5f\167\x70\156\163\x5f\141\144\x6d\151\x6e\137\x73\145\164\x74\151\x6e\x67\163\x5f\160\150\157\x6e\145\x5f\163\164\x79\154\x65", plugins_url("\151\x6e\143\154\x75\x64\145\163\57\x63\x73\x73\57\160\x68\157\156\x65\x2e\143\163\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("\155\x6f\137\x77\x70\x6e\x73\137\x61\144\x6d\x69\156\137\x73\x65\x74\x74\x69\x6e\x67\x73\x5f\x64\x61\164\141\x74\141\x62\x6c\x65\x5f\x73\164\171\x6c\145", plugins_url("\151\x6e\x63\154\165\144\x65\163\57\x63\163\163\x2f\152\161\x75\x65\x72\171\x2e\x64\141\164\141\124\x61\x62\x6c\x65\163\56\155\151\x6e\56\143\163\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("\x6d\x6f\137\x77\x70\156\163\137\142\x75\x74\x74\x6f\x6e\x5f\x73\145\164\x74\x69\x6e\x67\163\137\x73\164\x79\x6c\x65", plugins_url("\151\x6e\x63\154\165\144\x65\x73\57\143\x73\163\57\x62\165\x74\164\157\156\x5f\163\164\171\x6c\x65\x73\x2e\x63\x73\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_style("\x6d\x6f\137\x77\x70\x6e\163\137\160\157\160\165\160\x5f\x73\145\x74\x74\151\x6e\147\x73\137\x73\x74\171\x6c\x65", plugins_url("\x69\156\x63\x6c\165\144\x65\x73\x2f\143\163\x73\57\x70\157\160\165\x70\56\143\163\x73", __FILE__), array(), MO2F_VERSION);
fs2:
wp_register_style("\155\x6f\x5f\x77\x70\156\x73\x5f\163\x68\x6f\162\164\x63\x6f\144\145\137\x73\164\171\x6c\x65", plugins_url("\x69\156\143\154\165\x64\x65\163\x2f\143\163\163\x2f\x73\x74\171\154\x65\137\x73\x65\164\164\151\x6e\x67\163\56\143\163\163", __FILE__), array(), MO2F_VERSION);
}
function mo_wpns_settings_script($V6)
{
wp_enqueue_script("\155\157\x5f\x77\x70\x6e\163\137\x61\x64\155\151\156\x5f\x73\x65\164\164\151\x6e\x67\x73\x5f\163\143\x72\x69\x70\164", plugins_url("\x69\x6e\x63\154\x75\144\145\x73\57\152\163\x2f\x73\x65\x74\x74\x69\x6e\x67\163\x5f\160\x61\147\145\56\152\163", __FILE__), array("\152\x71\165\145\162\x79"), MO2F_VERSION);
if (!strpos($V6, "\x70\x61\x67\145\x5f\x6d\x6f\x5f\x32\x66\141")) {
goto PMu;
}
wp_enqueue_script("\x6d\157\137\167\x70\156\x73\137\x61\144\x6d\151\x6e\137\163\145\x74\x74\151\x6e\147\x73\137\x70\x68\157\x6e\x65\x5f\163\x63\162\x69\160\x74", plugins_url("\151\156\x63\x6c\165\144\145\163\57\x6a\x73\x2f\160\x68\157\x6e\x65\x2e\152\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\155\x6f\62\146\55\163\143\162\151\x70\x74\x2d\150\x61\x6e\x64\x6c\x65", plugins_url("\x69\x6e\143\x6c\x75\144\145\x73\x2f\x6a\x73\57\155\157\x32\x66\137\x73\143\x72\x69\x70\x74\x2e\152\x73", __FILE__), array("\167\160\x2d\x63\157\x6c\157\162\55\x70\x69\143\x6b\x65\x72"), false, true);
wp_enqueue_script("\155\157\137\x77\160\156\163\x5f\x61\x64\155\151\x6e\137\x64\x61\164\x61\164\141\142\154\145\137\163\x63\162\151\x70\x74", plugins_url("\x69\x6e\143\154\x75\x64\x65\163\x2f\x6a\163\x2f\152\x71\x75\145\x72\x79\x2e\x64\x61\164\x61\124\x61\142\154\145\163\x2e\x6d\151\x6e\56\x6a\x73", __FILE__), array("\x6a\x71\165\145\x72\x79"), MO2F_VERSION);
wp_enqueue_script("\x6d\157\x5f\x77\160\x6e\163\x5f\x71\x72\x63\157\x64\x65\x5f\x73\143\162\151\x70\164", plugins_url("\x2f\151\156\x63\154\165\144\145\x73\57\x6a\161\165\145\162\171\x2d\161\x72\143\x6f\x64\145\x2f\152\161\165\145\x72\171\x2d\161\162\x63\157\x64\x65\x2e\x6a\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x5f\167\x70\x6e\x73\137\155\x69\x6e\137\x71\x72\143\x6f\144\x65\x5f\x73\143\162\151\160\164", plugins_url("\57\x69\156\x63\x6c\165\144\145\x73\57\x6a\161\x75\x65\162\x79\55\161\162\143\157\144\x65\57\x6a\161\x75\145\162\x79\55\x71\162\x63\157\144\145\56\155\151\156\x2e\x6a\163", __FILE__), array(), MO2F_VERSION);
PMu:
}
function mo_wpns_ajax_login_script($V6)
{
$qn = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\x5f\62\146\x61\143\164\x6f\162\137\x61\144\x6d\x69\156\x5f\x72\x65\x67\x69\163\x74\162\x61\164\x69\157\x6e\x5f\x73\x74\141\164\x75\x73");
if (!(MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\62\x66\137\x61\143\164\x69\166\x61\x74\145\137\160\154\165\147\151\x6e", "\147\145\x74\137\x6f\x70\x74\151\x6f\156") and !is_user_logged_in() and ($qn == "\x4d\x4f\x5f\x32\137\x46\x41\103\x54\117\122\x5f\103\x55\123\x54\x4f\115\x45\x52\x5f\122\x45\x47\111\123\x54\105\x52\105\104\x5f\123\125\103\103\x45\x53\123" or MO2F_IS_ONPREM))) {
goto DbN;
}
if (!defined("\x44\x49\107\x49\115\105\x4d\102\105\x52\x5f\x44\111\x52")) {
goto isn;
}
wp_enqueue_script("\144\155\141\152\141\x78\137\163\143\162\151\x70\164", plugins_url("\x69\x6e\143\x6c\165\144\x65\x73\x2f\152\x73\x2f\x64\x6d\x61\152\x61\170\56\x6a\x73", __FILE__), array(), MO2F_VERSION);
wp_localize_script("\144\155\x61\152\x61\170\x5f\163\x63\x72\x69\160\x74", "\155\171\x5f\x61\x6a\x61\x78\x5f\157\142\152\x65\x63\x74", array("\x61\x6a\141\x78\137\x75\x72\x6c" => admin_url("\x61\144\155\151\156\x2d\x61\152\141\170\56\x70\150\x70")));
isn:
echo "\11\x9\x9\74\151\156\160\165\x74\x20\x74\x79\x70\x65\x3d\42\x68\x69\144\144\145\156\x22\x20\156\141\155\145\x3d\42\x6d\x69\156\x69\x6f\162\x61\x6e\x67\145\137\154\x6f\147\x69\x6e\137\156\157\x6e\143\145\42\40\x76\x61\154\165\145\x3d\x22";
echo wp_create_nonce("\x6d\151\x6e\151\157\x72\x61\156\147\145\55\x32\55\146\141\x63\164\157\x72\x2d\x6c\x6f\x67\151\x6e\55\x6e\157\x6e\x63\x65");
echo "\42\x20\x2f\76\xa\11\x9\11";
$e8 = MoWpnsUtility::get_mo2f_multisite_compatible("\x6d\157\62\146\137\162\145\x6d\145\x6d\142\x65\162\137\x64\145\166\x69\x63\145");
if ($e8 && !is_user_logged_in()) {
goto Sy0;
}
if (MoWpnsUtility::get_mo2f_db_and_migrate("\x6d\x6f\62\146\x5f\x65\156\141\x62\x6c\145\137\62\146\x61\x5f\160\162\x6f\155\x70\x74\x5f\x6f\x6e\x5f\154\x6f\x67\x69\156\x5f\x70\x61\147\x65", "\x67\145\x74\x5f\x6f\x70\164\x69\x6f\x6e")) {
goto ttj;
}
goto dmr;
Sy0:
if (!defined("\x44\111\x47\x49\x4d\x45\x4d\x42\105\122\x5f\104\x49\x52")) {
goto NAN;
}
echo "\11\x9\x9\11\x9\x3c\163\x63\x72\x69\x70\164\x20\x74\x79\160\145\75\42\164\145\x78\164\x2f\152\141\166\141\x73\x63\x72\x69\x70\x74\42\76\xa\x9\x9\x9\11\11\11\x6a\x51\165\x65\x72\x79\x28\42\56\x6e\x63\157\162\145\137\x69\156\160\165\164\x5f\160\x61\163\163\167\157\x72\x64\40\x22\51\x2e\x61\x70\160\145\156\144\x28\x22\74\151\156\x70\x75\x74\x20\x74\171\160\x65\75\47\x68\151\x64\144\145\156\x27\40\x69\x64\75\47\x6d\151\x6e\x69\x6f\162\x61\156\147\x65\x5f\162\x62\x61\x5f\x61\x74\x74\162\151\142\165\162\145\163\47\40\x6e\x61\x6d\x65\x3d\x27\155\x69\156\151\157\162\x61\156\147\x65\137\x72\142\141\x5f\x61\164\x74\162\x69\142\x75\162\x65\163\47\40\166\x61\x6c\165\145\x3d\x27\47\57\x3e\42\x29\73\12\11\11\x9\x9\x9\x3c\x2f\163\x63\162\x69\x70\164\x3e\xa\x9\11\11\11\11";
NAN:
if (!(defined("\115\105\120\x52\x5f\x50\114\125\107\x49\x4e\x5f\x53\x4c\x55\x47") || defined("\103\125\x41\x52\x4c\x46\137\x50\114\x55\x47\x49\116\x5f\104\x49\122"))) {
goto bP6;
}
echo "\x9\x9\x9\x9\x9\74\163\x63\162\151\x70\164\x20\x74\x79\160\145\75\42\164\x65\x78\164\x2f\x6a\141\166\141\163\x63\x72\151\x70\x74\x22\76\12\x9\11\x9\x9\x9\x9\152\x51\x75\x65\x72\171\x28\42\43\165\163\145\162\x5f\160\x61\163\x73\42\51\x2e\141\x70\160\145\x6e\x64\x28\x22\74\x69\x6e\x70\165\x74\x20\164\171\x70\145\x3d\x27\x68\151\x64\x64\145\156\x27\40\151\144\x3d\47\x6d\x69\x6e\151\157\162\x61\156\x67\145\137\x72\142\141\x5f\x61\x74\x74\x72\151\142\x75\x72\145\x73\x27\40\156\141\155\x65\75\x27\155\151\x6e\151\157\162\141\156\x67\145\x5f\162\142\x61\137\141\x74\x74\162\151\x62\165\x72\145\163\x27\x20\x76\141\154\x75\x65\x3d\x27\x27\57\76\42\51\x3b\xa\x9\11\11\11\x9\11\x73\x65\164\x54\151\155\145\157\x75\164\x28\12\x9\x9\11\x9\x9\11\x9\50\x29\x20\x3d\x3e\40\x7b\12\x9\x9\x9\x9\11\x9\11\11\x6a\121\x75\145\x72\x79\x28\x64\157\143\165\155\145\156\x74\51\56\x72\145\141\144\171\50\x66\x75\x6e\143\164\151\x6f\156\50\x29\x20\x7b\12\12\x9\11\x9\11\x9\x9\11\x9\x9\152\x51\x75\x65\x72\x79\50\x27\151\156\160\165\x74\x5b\x6e\141\155\145\x3d\42\x6d\x69\x6e\x69\x6f\162\141\156\x67\x65\x5f\x72\x62\141\137\x61\x74\x74\x72\x69\142\x75\162\x65\x73\42\x5d\x27\51\x2e\x76\x61\154\50\112\x53\x4f\116\56\163\164\162\x69\x6e\x67\151\x66\x79\x28\x72\142\141\101\164\x74\162\x69\x62\x75\x74\145\163\56\141\x74\164\x72\x69\x62\165\164\145\x73\51\x29\x3b\xa\xa\11\11\11\11\11\11\11\x9\x9\151\x66\x20\x28\x64\157\143\x75\x6d\145\156\x74\56\x67\x65\164\105\154\145\155\x65\x6e\x74\x42\x79\111\144\x28\47\x6c\157\x67\x69\156\146\x6f\x72\x6d\47\51\40\41\75\40\156\x75\x6c\x6c\x29\40\173\12\x9\11\x9\x9\x9\11\x9\x9\x9\x9\152\121\x75\145\162\171\x28\47\x23\154\157\147\151\x6e\146\x6f\162\155\47\x29\56\x6f\156\50\47\163\x75\142\x6d\151\164\47\54\x20\146\x75\x6e\143\164\151\157\x6e\50\x65\x29\x20\173\12\11\x9\11\11\x9\11\11\x9\x9\11\11\152\x51\165\145\162\x79\x28\x27\x69\x6e\x70\x75\x74\x5b\x6e\x61\155\x65\x3d\x22\x6d\151\156\x69\157\162\x61\x6e\x67\145\137\x72\x62\x61\137\x61\164\x74\x72\151\142\x75\162\145\163\42\135\47\x29\x2e\x76\x61\x6c\x28\112\x53\117\x4e\56\x73\164\162\x69\156\147\151\x66\x79\50\162\142\x61\x41\164\164\x72\x69\x62\x75\x74\145\x73\56\x61\164\164\x72\151\x62\x75\x74\x65\x73\51\x29\73\12\x9\11\11\11\11\x9\x9\11\11\11\175\x29\x3b\xa\11\x9\11\x9\x9\x9\x9\x9\11\x7d\x20\145\x6c\x73\145\40\x7b\12\11\11\11\11\x9\x9\11\x9\x9\11\x69\146\x20\x28\144\x6f\143\165\x6d\x65\156\x74\x2e\147\145\164\x45\x6c\145\155\x65\156\164\163\x42\171\x43\154\x61\163\163\116\x61\x6d\145\50\x27\154\157\x67\x69\156\47\51\x20\x21\75\40\156\165\154\154\51\40\173\12\x9\11\x9\11\x9\11\11\11\x9\11\11\152\x51\165\145\162\171\x28\x27\56\x6c\x6f\x67\x69\156\x27\x29\x2e\157\x6e\x28\x27\x73\x75\x62\155\x69\164\x27\54\40\x66\165\x6e\x63\x74\151\x6f\x6e\50\x65\x29\x20\173\12\x9\x9\11\11\11\11\x9\11\11\11\11\11\152\x51\x75\x65\x72\x79\50\x27\151\x6e\160\165\x74\133\x6e\141\155\x65\x3d\42\155\x69\x6e\151\x6f\162\x61\x6e\147\x65\x5f\162\142\x61\137\141\164\x74\x72\151\x62\165\162\145\x73\x22\135\x27\51\x2e\166\141\154\50\x4a\x53\117\x4e\x2e\163\x74\162\x69\156\147\x69\146\x79\50\x72\142\141\x41\164\x74\x72\x69\142\x75\164\x65\x73\56\141\164\x74\x72\x69\142\x75\164\x65\x73\x29\x29\73\xa\11\x9\11\x9\x9\11\x9\11\x9\x9\11\x7d\51\x3b\12\x9\11\x9\x9\11\x9\x9\x9\11\x9\x7d\xa\x9\x9\x9\11\x9\x9\11\11\x9\175\12\12\x9\x9\11\x9\11\x9\11\11\x7d\51\12\x9\11\11\11\11\x9\11\x7d\x2c\40\x31\60\x30\60\x29\x3b\xa\x9\11\11\11\11\74\57\x73\x63\x72\x69\160\x74\x3e\xa\11\11\x9\x9\x9";
bP6:
if (MO2F_IS_ONPREM) {
goto i0r;
}
wp_enqueue_script("\155\x6f\x32\x66\x61\x5f\x6a\161\x75\145\162\171\137\x73\x63\x72\151\160\164", plugins_url("\x69\156\143\x6c\x75\144\x65\163\57\x6a\x73\57\x72\x62\141\57\x6a\x73\57\152\161\165\x65\162\x79\x2d\61\x2e\x39\x2e\x31\x2e\152\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\155\x6f\x32\146\141\137\146\154\141\163\x68\137\163\x63\162\x69\x70\164", plugins_url("\x69\x6e\x63\x6c\165\x64\145\163\57\x6a\163\57\x72\x62\141\57\x6a\163\57\152\x71\165\145\x72\171\x2e\x66\154\x61\x73\x68\56\152\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\157\x32\x66\141\137\165\x61\160\x61\162\163\x65\x72\137\x73\x63\x72\151\x70\164", plugins_url("\151\156\143\x6c\165\144\x65\163\57\152\163\57\x72\142\141\x2f\x6a\x73\57\x75\141\x2d\x70\x61\162\163\x65\x72\x2e\x6a\163", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\62\146\141\x5f\143\154\151\145\x6e\x74\137\163\143\162\x69\160\164", plugins_url("\x69\156\143\154\x75\144\145\163\x2f\x6a\163\x2f\162\x62\x61\57\152\163\57\x63\154\151\x65\156\164\x2e\x6a\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\157\62\146\x61\137\x64\145\x76\x69\143\x65\x5f\163\x63\x72\151\x70\164", plugins_url("\x69\x6e\143\x6c\x75\x64\x65\163\57\x6a\163\57\x72\x62\141\57\152\x73\x2f\144\x65\x76\151\143\x65\137\x61\x74\x74\x72\151\142\x75\164\x65\163\56\x6a\163", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x32\146\x61\x5f\163\167\x66\137\x73\x63\x72\151\x70\x74", plugins_url("\151\x6e\x63\x6c\x75\x64\145\163\x2f\x6a\x73\57\x72\142\x61\x2f\x6a\163\57\163\x77\146\x6f\142\152\145\x63\164\x2e\x6a\163", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\155\157\x32\x66\x61\x5f\x66\x6f\x6e\x74\x5f\163\143\162\x69\x70\164", plugins_url("\x69\156\143\154\165\x64\145\163\x2f\x6a\x73\57\162\x62\141\x2f\152\x73\x2f\x66\157\156\164\144\145\164\145\143\x74\x2e\152\163", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\157\62\146\x61\137\155\x75\162\155\x75\162\137\x73\x63\x72\151\160\x74", plugins_url("\x69\156\x63\154\x75\144\x65\163\x2f\152\163\x2f\162\142\x61\57\152\x73\x2f\x6d\x75\162\155\x75\x72\150\141\x73\150\x33\x2e\x6a\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x32\146\141\137\155\x69\156\x69\157\x72\x61\156\147\145\137\163\143\162\x69\x70\x74", plugins_url("\x69\x6e\x63\x6c\165\x64\145\x73\57\x6a\163\x2f\162\x62\141\57\x6a\163\x2f\155\x69\156\x69\157\x72\x61\156\147\145\55\x66\x70\56\152\x73", __FILE__), array(), MO2F_VERSION);
goto Q2a;
i0r:
wp_enqueue_script("\x6d\x6f\62\146\x61\137\155\x6f\x64\x65\x5f\x73\143\x72\151\160\x74", plugins_url("\151\156\x63\x6c\x75\x64\x65\163\x2f\x6a\x73\x2f\102\162\157\x77\x73\x69\x6e\147\x4d\x6f\x64\x65\104\x65\x74\145\x63\164\157\162\x2e\x6a\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\157\x32\x66\x61\x5f\x63\x6c\151\x65\x6e\x74\x5f\155\x69\156\x5f\163\143\162\x69\x70\x74", plugins_url("\x69\156\x63\x6c\x75\144\145\163\x2f\152\163\57\143\154\151\x65\156\164\56\x6d\151\x6e\x2e\152\x73", __FILE__), array(), MO2F_VERSION);
wp_enqueue_script("\x6d\x6f\x32\146\x61\137\x64\145\166\x69\x63\145\x5f\x73\x63\x72\151\160\164", plugins_url("\151\x6e\x63\154\x75\x64\x65\163\57\x6a\163\57\x64\145\166\x69\x63\x65\x5f\144\x65\x74\x61\151\x6c\x73\56\152\x73", __FILE__), array(), MO2F_VERSION);
Q2a:
goto dmr;
ttj:
echo "\11\x9\11\x9\x9\x3c\x73\x63\x72\x69\x70\x74\40\164\171\160\145\x3d\42\164\145\170\164\x2f\x6a\x61\x76\141\163\143\162\151\x70\x74\42\76\12\x9\x9\x9\x9\11\152\121\x75\145\162\171\x28\x22\56\x6e\143\x6f\x72\x65\x5f\x69\x6e\160\x75\x74\x5f\160\x61\x73\163\167\157\162\144\40\x22\x29\x2e\141\x70\160\145\x6e\x64\50\x27\x3c\x69\156\x70\165\164\40\164\x79\x70\x65\x3d\42\164\x65\x78\x74\x22\40\x70\x6c\x61\143\x65\x68\157\154\144\145\162\75\42\116\157\x20\163\x6f\146\x74\x20\124\x6f\x6b\145\x6e\40\77\x20\123\x6b\x69\160\42\x20\x6e\141\155\x65\75\x22\x6d\x6f\x5f\x73\x6f\146\164\x74\x6f\153\145\x6e\x22\x20\151\144\x3d\42\x6d\x6f\62\x66\137\62\x66\x61\x5f\143\157\x64\145\42\x20\x63\154\141\x73\163\75\x22\155\157\62\146\137\x32\x66\141\x5f\143\x6f\x64\145\x22\40\166\141\x6c\165\145\x3d\42\x22\40\163\151\x7a\x65\x3d\42\x32\x30\x22\40\x73\164\x79\x6c\x65\x3d\x22\x69\x6d\145\55\x6d\157\x64\x65\72\40\151\156\141\143\164\151\x76\x65\73\42\x3e\47\x29\x3b\xa\x9\11\x9\11\74\x2f\163\143\x72\151\x70\164\76\12\11\x9\x9\11";
dmr:
DbN:
}
function mo_show_message($CG, $Gm)
{
if (!($Gm == "\x43\125\123\x54\117\x4d\137\x4d\105\123\x53\x41\x47\105")) {
goto kEd;
}
echo "\x3c\x64\151\166\x20\143\x6c\141\163\163\x3d\x27\157\166\145\x72\x6c\x61\x79\137\156\157\164\x5f\x4a\121\x5f\163\165\x63\143\145\163\x73\47\x20\x69\144\75\x27\160\157\x70\137\x75\x70\137\x73\165\143\x63\x65\x73\163\47\76\x3c\160\40\143\x6c\x61\163\x73\75\x27\160\157\x70\165\160\137\x74\x65\x78\164\137\156\157\164\137\x4a\121\47\x3e" . $CG . "\74\x2f\160\x3e\40\x3c\x2f\x64\151\x76\76";
echo "\11\x9\11\74\x73\143\162\x69\x70\x74\40\x74\x79\x70\x65\x3d\42\x74\x65\170\x74\x2f\x6a\141\166\141\x73\x63\x72\x69\160\164\42\76\12\11\x9\x9\x9\x73\x65\164\x54\151\155\145\157\165\x74\50\146\165\156\143\x74\x69\157\x6e\50\51\x20\x7b\xa\11\11\11\x9\11\166\x61\162\40\x65\x6c\145\x6d\x65\x6e\164\x20\x3d\x20\x64\x6f\143\x75\155\145\x6e\x74\56\x67\x65\x74\105\154\x65\155\145\156\x74\102\x79\111\x64\50\42\160\157\160\137\165\160\137\163\x75\143\143\145\x73\163\42\51\x3b\xa\x9\11\x9\11\x9\x65\154\x65\155\145\x6e\164\56\143\x6c\x61\x73\163\x4c\x69\x73\164\56\x74\157\x67\x67\154\145\50\x22\157\166\145\x72\154\x61\171\x5f\156\157\x74\x5f\112\121\x5f\163\165\143\x63\x65\x73\x73\x22\x29\x3b\xa\x9\11\11\11\11\145\154\145\155\145\x6e\164\x2e\151\156\156\x65\162\110\x54\x4d\114\40\75\40\x22\42\73\12\x9\11\11\11\175\54\40\x37\60\60\x30\51\73\12\11\x9\11\x3c\57\x73\143\162\151\160\164\x3e\xa\x9\x9\x9";
kEd:
if (!($Gm == "\x4e\117\124\111\103\105")) {
goto xnP;
}
echo "\x3c\x64\151\x76\x20\143\154\141\x73\163\x3d\x27\x6f\x76\145\x72\x6c\141\171\137\156\157\x74\x5f\x4a\121\137\x65\x72\x72\157\x72\47\x20\x69\x64\x3d\x27\160\x6f\x70\x5f\165\x70\x5f\x65\162\162\x6f\162\47\x3e\x3c\160\40\143\154\x61\163\163\x3d\x27\x70\157\160\x75\160\137\x74\145\170\164\x5f\x6e\x6f\x74\137\x4a\x51\47\76" . $CG . "\x3c\x2f\160\x3e\x20\74\x2f\144\151\x76\x3e";
echo "\11\x9\11\74\x73\x63\x72\x69\x70\164\40\164\171\160\145\x3d\x22\x74\x65\x78\164\57\x6a\x61\x76\x61\163\143\x72\151\160\164\x22\76\12\11\x9\11\11\163\145\164\x54\x69\155\145\x6f\165\x74\x28\x66\x75\x6e\143\164\x69\x6f\x6e\50\x29\x20\x7b\12\11\x9\11\x9\11\x76\141\162\40\x65\x6c\x65\x6d\145\x6e\x74\40\x3d\x20\x64\157\143\x75\x6d\145\x6e\x74\x2e\x67\145\x74\105\x6c\x65\x6d\x65\x6e\164\102\x79\111\144\x28\42\x70\157\160\x5f\x75\x70\x5f\x65\162\x72\x6f\162\42\x29\x3b\xa\x9\11\11\x9\11\145\154\x65\155\x65\x6e\x74\x2e\x63\154\x61\x73\x73\x4c\x69\163\x74\56\x74\157\x67\147\154\x65\x28\x22\x6f\x76\145\162\x6c\141\171\x5f\156\x6f\x74\x5f\x4a\x51\x5f\x65\162\x72\x6f\162\42\x29\73\xa\x9\11\11\x9\11\x65\x6c\x65\155\x65\x6e\164\56\151\156\x6e\145\x72\x48\x54\115\x4c\40\x3d\x20\42\42\x3b\12\x9\x9\x9\11\175\x2c\40\67\60\60\60\51\x3b\xa\x9\11\11\x3c\57\163\143\x72\x69\160\164\x3e\12\11\11\x9";
xnP:
if (!($Gm == "\105\122\122\x4f\x52")) {
goto oww;
}
echo "\74\144\151\166\x20\143\x6c\x61\x73\163\x3d\x27\x6f\166\145\162\x6c\x61\171\x5f\156\157\164\x5f\112\x51\137\x65\x72\x72\157\x72\47\40\x69\144\75\47\160\157\160\137\x75\x70\x5f\145\x72\x72\x6f\162\47\76\74\160\x20\x63\x6c\141\163\163\x3d\x27\160\x6f\x70\x75\x70\137\164\x65\170\164\137\x6e\157\x74\x5f\112\x51\47\76" . $CG . "\74\57\x70\x3e\40\74\57\x64\151\166\76";
echo "\11\x9\11\x3c\x73\x63\162\151\160\x74\40\x74\x79\x70\145\75\42\164\145\170\x74\57\x6a\141\166\x61\163\143\162\151\160\x74\42\x3e\12\x9\11\x9\x9\163\145\x74\124\x69\x6d\x65\157\x75\164\x28\x66\165\156\143\164\x69\157\156\x28\x29\40\x7b\12\11\11\11\x9\x9\166\x61\x72\40\145\x6c\x65\155\145\156\x74\x20\75\x20\x64\157\x63\165\x6d\145\156\x74\x2e\147\x65\x74\x45\x6c\x65\155\x65\156\164\102\x79\111\144\50\42\x70\157\160\x5f\x75\x70\x5f\x65\162\x72\157\x72\42\x29\73\12\11\x9\x9\x9\11\x65\154\x65\x6d\x65\x6e\164\x2e\143\154\x61\163\163\114\151\x73\164\56\164\x6f\x67\147\x6c\145\x28\x22\157\x76\x65\x72\154\x61\x79\137\156\x6f\x74\137\112\121\x5f\x65\x72\x72\157\x72\x22\x29\73\xa\11\x9\x9\11\x9\145\154\145\155\145\x6e\164\56\x69\156\x6e\145\x72\x48\124\115\114\x20\75\x20\42\x22\73\12\11\x9\11\11\175\54\40\67\60\60\60\51\x3b\xa\x9\x9\x9\74\57\163\143\x72\x69\160\164\x3e\xa\11\11\11";
oww:
if (!($Gm == "\123\x55\103\103\x45\x53\123")) {
goto n7a;
}
echo "\74\x64\x69\166\40\x63\154\141\x73\163\x3d\x27\157\166\x65\x72\x6c\x61\x79\137\156\157\x74\x5f\x4a\121\137\x73\165\x63\x63\145\x73\163\x27\x20\x69\x64\75\x27\160\157\160\137\x75\x70\x5f\163\165\143\143\x65\163\163\x27\x3e\x3c\160\x20\143\x6c\141\x73\163\75\47\160\x6f\160\x75\160\x5f\x74\x65\170\164\x5f\156\157\164\x5f\112\121\x27\76" . $CG . "\74\x2f\x70\76\40\74\57\144\x69\x76\x3e";
echo "\x9\x9\11\x3c\163\x63\x72\151\x70\x74\40\164\171\160\x65\x3d\x22\x74\x65\x78\x74\57\152\x61\166\141\163\x63\x72\151\x70\164\42\76\12\x9\x9\x9\x9\x73\x65\164\x54\x69\x6d\x65\157\x75\164\x28\x66\x75\x6e\x63\x74\151\x6f\x6e\x28\x29\40\x7b\12\x9\x9\11\x9\11\166\141\x72\40\145\x6c\145\155\145\x6e\164\40\x3d\x20\144\157\x63\165\155\x65\x6e\164\x2e\147\x65\164\105\154\145\x6d\x65\156\x74\102\x79\111\x64\x28\x22\x70\x6f\160\x5f\x75\x70\x5f\x73\x75\143\143\x65\163\x73\x22\x29\x3b\xa\x9\x9\x9\x9\x9\x65\154\145\155\x65\156\164\56\x63\154\x61\163\163\x4c\x69\x73\x74\56\164\157\147\x67\154\145\x28\x22\x6f\166\x65\162\x6c\141\x79\x5f\156\x6f\x74\137\x4a\121\x5f\163\165\x63\143\x65\163\163\42\51\73\xa\x9\11\x9\x9\x9\x65\x6c\x65\x6d\x65\x6e\x74\x2e\x69\x6e\156\145\x72\110\124\x4d\114\x20\x3d\40\x22\42\73\xa\11\11\11\11\x7d\x2c\40\x37\60\x30\60\x29\x3b\12\x9\x9\x9\x3c\x2f\163\143\x72\151\x70\164\76\12\11\11\x9";
n7a:
}
function includes()
{
require "\150\x65\x6c\x70\145\x72\57\160\x6c\x75\x67\x69\156\x55\x74\151\x6c\151\164\171\x2e\x70\x68\x70";
require "\144\141\164\x61\x62\x61\x73\145\x2f\x64\x61\164\141\142\x61\x73\x65\137\146\165\156\143\x74\x69\157\156\163\x2e\160\x68\x70";
require "\x64\141\164\x61\x62\x61\163\x65\57\144\x61\164\141\142\141\163\x65\x5f\x66\165\156\x63\164\x69\x6f\x6e\x73\137\x32\146\141\56\160\150\x70";
require "\x68\141\x6e\144\x6c\145\162\x2f\141\152\141\170\56\160\x68\x70";
require "\141\160\x69\x2f\x63\x6c\141\x73\163\55\143\x75\x73\164\157\x6d\145\162\55\x63\x6f\x6d\x6d\157\x6e\55\x73\145\x74\165\x70\x2e\x70\x68\160";
if (!MO2F_IS_ONPREM) {
goto GYV;
}
require "\x61\x70\151\57\x63\x6c\141\x73\x73\x2d\143\x75\163\164\x6f\155\x65\x72\55\x6f\156\x70\x72\x65\155\x2d\163\145\x74\x75\160\x2e\160\x68\160";
goto h09;
GYV:
require "\141\x70\x69\x2f\143\154\x61\x73\163\x2d\143\165\x73\x74\x6f\155\145\x72\x2d\x73\145\164\x75\160\x2e\x70\150\x70";
h09:
require "\x61\x70\151\x2f\x63\154\x61\163\x73\55\162\x62\x61\55\x61\x74\164\x72\x69\142\165\164\145\x73\x2e\x70\x68\160";
require "\141\160\151\57\143\154\141\163\163\55\x74\x77\x6f\55\x66\141\143\x74\157\x72\x2d\x73\x65\164\x75\x70\56\160\x68\160";
require "\150\x61\x6e\144\154\145\x72\57\142\141\x63\x6b\x75\160\56\160\x68\160";
require "\150\141\156\144\x6c\145\162\x2f\163\x65\143\x75\x72\x69\x74\171\137\x66\145\141\x74\165\x72\x65\x73\x2e\x70\x68\x70";
require "\150\x61\x6e\144\154\145\162\x2f\x74\167\157\146\x61\57\x6d\157\x32\x66\x2d\x70\154\165\x67\x69\156\x2d\166\145\162\163\151\157\156\x2d\165\160\144\x61\164\145\x2e\x70\x68\x70";
require "\x68\x61\156\x64\154\145\162\x2f\x72\145\x63\141\x70\164\x63\x68\141\x2e\160\x68\160";
require "\150\141\x6e\x64\154\x65\x72\57\x6c\157\147\x69\156\56\x70\150\160";
require "\150\141\x6e\144\x6c\x65\162\57\162\x62\141\x5f\144\x65\x76\151\x63\x65\137\141\152\141\170\56\x70\150\160";
require "\150\141\x6e\x64\154\145\162\57\x66\145\145\x64\x62\141\143\x6b\137\146\157\162\x6d\56\160\x68\x70";
require "\x68\x61\156\144\x6c\x65\x72\57\164\x77\157\x66\x61\57\163\145\x74\x75\160\137\164\167\x6f\146\141\56\x70\150\x70";
require "\150\141\x6e\144\154\x65\x72\x2f\x74\x77\157\x66\x61\x2f\x74\167\x6f\137\146\x61\137\163\x65\164\164\151\156\x67\163\56\160\x68\x70";
require "\x68\141\x6e\x64\154\145\x72\x2f\164\x77\x6f\146\141\x2f\x74\x77\x6f\137\x66\x61\x5f\165\x74\151\x6c\x69\164\x79\56\x70\x68\160";
require "\150\141\x6e\x64\x6c\145\162\x2f\164\167\157\x66\x61\57\164\x77\x6f\x5f\x66\141\137\143\x6f\x6e\163\x74\141\156\164\163\56\x70\150\160";
require "\x68\x61\x6e\144\154\x65\162\57\x63\154\141\x73\x73\x2d\155\x6f\154\x6d\163\55\x73\145\x73\163\x69\x6f\x6e\x2e\160\x68\x70";
require "\x68\x61\x6e\x64\154\145\162\x2f\162\x65\147\151\x73\x74\x72\x61\x74\x69\x6f\156\56\160\150\x70";
require "\150\x61\156\x64\x6c\x65\162\57\154\x6f\x67\147\145\x72\x2e\x70\x68\160";
require "\150\141\x6e\x64\154\145\x72\x2f\163\160\x61\155\x2e\160\150\160";
require "\150\x65\x6c\x70\x65\x72\x2f\x64\141\x73\x68\142\157\141\162\x64\137\x73\145\x63\x75\162\x69\x74\171\137\156\x6f\164\x69\146\151\x63\141\164\151\x6f\x6e\x2e\160\x68\160";
require "\x68\145\154\x70\x65\x72\57\x63\165\x72\x6c\x2e\160\150\x70";
require "\150\x65\154\160\145\x72\x2f\160\154\165\147\x69\156\163\x2e\160\x68\x70";
require "\x68\145\x6c\160\145\162\57\x63\157\x6e\x73\164\141\156\164\163\56\x70\150\x70";
require "\150\145\154\160\x65\162\x2f\155\x65\x73\163\x61\147\145\163\56\x70\150\160";
require "\166\151\145\x77\163\57\x63\x6f\155\155\157\x6e\55\x65\x6c\145\155\x65\156\x74\x73\56\x70\x68\x70";
require "\150\141\156\144\154\145\162\x2f\x74\x77\157\x66\141\57\164\x77\x6f\137\x66\141\x5f\x73\x68\x6f\x72\164\137\143\x75\163\164\157\x6d\x2e\160\150\x70";
require "\x63\157\x6e\x74\162\x6f\154\x6c\145\162\x73\x2f\167\x70\156\x73\x2d\154\x6f\x67\x69\x6e\x73\145\x63\x75\162\x69\164\x79\55\x61\152\x61\x78\x2e\160\150\x70";
require "\143\157\156\164\x72\x6f\154\x6c\145\162\x73\57\155\141\x6c\x77\141\162\x65\x5f\x73\143\141\x6e\x6e\x65\x72\x2f\155\141\x6c\x77\x61\162\x65\x5f\x73\x63\141\x6e\137\x61\x6a\141\170\56\160\150\x70";
require "\143\x6f\156\164\162\x6f\154\154\x65\162\x73\57\x62\x61\143\153\165\160\57\142\x61\x63\x6b\x75\x70\x5f\x61\x6a\141\x78\56\160\150\x70";
require "\x63\157\x6e\164\x72\x6f\x6c\154\x65\162\x73\x2f\x74\157\x75\x72\57\164\157\x75\x72\x5f\141\152\141\170\x2e\160\x68\160";
require "\x63\157\156\164\x72\157\x6c\154\x65\x72\163\57\164\x77\x6f\146\141\x2f\164\x77\157\137\146\x61\143\164\x6f\162\137\141\152\x61\x78\x2e\160\150\x70";
require "\143\x6f\x6e\164\162\x6f\x6c\x6c\145\162\163\57\x64\141\163\150\x62\157\x61\162\144\x5f\x61\x6a\x61\x78\x2e\160\150\x70";
require "\150\141\156\144\154\145\162\57\155\x61\154\167\141\x72\145\x5f\163\143\x61\x6e\x6e\145\162\57\x6d\x61\154\167\x61\x72\x65\137\x73\143\x61\x6e\156\145\x72\137\x63\162\157\x6e\x2e\160\x68\x70";
require "\x68\x61\156\144\x6c\145\162\x2f\x6d\141\x6c\x77\x61\162\145\137\x73\143\x61\156\156\145\162\x2f\x73\x63\x61\156\156\145\162\x5f\163\x65\x74\137\143\162\157\x6e\x2e\x70\x68\160";
require_once "\x63\x6f\x6e\164\162\157\x6c\x6c\145\162\163\57\120\x6f\x69\156\x74\x65\x72\163\x4d\141\x6e\x61\x67\145\162\x2e\x70\x68\160";
}
function miniorange_reset_users($IeQ, $L1v)
{
global $aq;
$np = $aq->get_user_detail("\155\x6f\62\146\137\x63\x6f\x6e\x66\x69\147\x75\x72\145\x64\x5f\62\106\101\137\155\145\164\x68\157\x64", $L1v->ID);
if (!(current_user_can("\x61\x64\155\151\x6e\151\163\164\162\141\164\157\162", $L1v->ID) && $np)) {
goto NMm;
}
if (!(get_current_user_id() != $L1v->ID || 1)) {
goto rJf;
}
$IeQ["\x6d\151\x6e\151\x6f\x72\141\x6e\147\x65\137\162\x65\x73\145\164\137\x75\163\x65\162\163"] = "\74\x61\x20\143\x6c\141\163\x73\75\x27\155\151\156\x69\x6f\162\x61\x6e\147\x65\x5f\162\145\x73\145\164\137\165\x73\x65\x72\x73\x27\40\x68\x72\x65\146\x3d\x27" . admin_url("\x75\163\x65\162\x73\56\160\x68\160\77\x70\141\x67\x65\75\162\x65\163\x65\164\x26\x61\x63\x74\x69\x6f\156\x3d\x72\145\163\145\164\137\145\144\x69\x74\46\141\x6d\x70\x3b\x75\163\145\x72\x3d{$L1v->ID}") . "\47\76" . __("\x52\145\x73\145\x74\40\62\x20\x46\x61\x63\164\157\162", "\x63\x67\x63\137\x75\x62") . "\74\57\141\x3e";
rJf:
NMm:
return $IeQ;
}
function mo2f_mapped_email_column($oSy)
{
$oSy["\155\x61\x70\x70\x65\x64\x5f\145\x6d\141\151\154"] = "\x52\x65\147\151\163\x74\x65\x72\x65\x64\x20\62\106\101\x20\x45\x6d\x61\x69\154";
$oSy["\x73\145\154\145\143\164\x65\144\137\165\x73\x65\x72"] = "\124\x77\157\40\106\141\x63\164\157\162\40\x45\x6e\141\x62\154\145\144";
$oSy["\x63\165\x72\162\x65\156\x74\x5f\x6d\145\164\x68\157\144"] = "\62\x46\101\x20\x4d\x65\164\150\x6f\144";
return $oSy;
}
function mo_reset_2fa_for_users_by_admin()
{
$T7 = wp_create_nonce("\x52\x65\x73\145\164\x54\167\x6f\x46\156\157\x6e\x63\x65");
if (!(isset($_GET["\x61\x63\x74\x69\x6f\156"]) && $_GET["\141\x63\164\151\157\156"] == "\x72\x65\x73\145\x74\137\145\144\151\164")) {
goto K0w;
}
$bR = sanitize_text_field($_GET["\165\163\145\x72"]);
if (!is_numeric($bR)) {
goto CYk;
}
$JSU = get_userdata($bR);
echo "\x9\x9\11\11\x3c\146\x6f\x72\155\x20\155\145\164\x68\x6f\x64\75\x22\160\157\163\x74\42\x20\x6e\x61\155\x65\x3d\42\162\145\x73\x65\x74\x32\x66\x61\42\x20\x69\144\75\42\162\145\x73\x65\164\62\146\141\x22\40\x61\x63\x74\x69\157\156\75\x22";
echo esc_url("\165\163\x65\162\x73\56\x70\150\x70");
echo "\x22\x3e\xa\xa\11\11\x9\x9\x9\74\144\x69\x76\40\x63\154\141\163\163\x3d\x22\x77\x72\141\x70\x22\x3e\xa\x9\11\11\x9\x9\11\x3c\x68\x31\x3e\122\x65\x73\145\164\x20\x32\x6e\x64\40\x46\141\143\x74\157\162\x3c\x2f\150\x31\76\12\xa\11\x9\11\x9\11\x9\74\x70\76\x59\157\165\x20\150\141\166\145\x20\x73\160\145\143\x69\146\x69\145\x64\40\164\x68\151\x73\x20\165\163\145\162\x20\146\x6f\162\x20\162\x65\x73\x65\x74\72\x3c\x2f\160\x3e\xa\xa\11\x9\x9\x9\x9\x9\x3c\165\x6c\x3e\12\x9\11\x9\11\11\11\x9\x3c\154\151\76\x49\x44\x20\x23";
echo esc_attr($JSU->ID);
echo "\x3a\x20";
echo esc_attr($JSU->user_login);
echo "\74\57\x6c\x69\x3e\12\11\x9\x9\x9\11\11\x3c\x2f\165\154\76\xa\11\x9\11\x9\x9\x9\74\151\x6e\160\165\164\x20\x74\171\x70\145\x3d\42\150\x69\144\x64\145\156\42\x20\x6e\141\155\x65\75\42\165\163\145\162\x69\144\42\40\166\141\x6c\165\145\75\42";
echo esc_attr($bR);
echo "\42\76\xa\11\11\11\11\11\x9\74\x69\x6e\160\165\164\40\x74\x79\x70\x65\75\x22\150\151\x64\x64\145\156\x22\40\x6e\141\x6d\145\75\x22\155\151\x6e\x69\x6f\x72\141\x6e\147\x65\x5f\162\x65\x73\x65\x74\x5f\x32\146\141\x5f\157\x70\164\x69\x6f\x6e\42\40\166\141\x6c\x75\145\75\42\x6d\157\137\x72\145\x73\145\x74\137\62\146\141\42\x3e\12\11\x9\11\11\x9\x9\74\151\156\160\165\164\x20\x74\x79\x70\x65\x3d\x22\150\x69\x64\144\145\156\42\40\x6e\x61\155\145\75\42\156\157\156\143\145\x22\x20\166\141\154\165\145\75\x22";
echo esc_attr($T7);
echo "\42\x3e\12\x9\x9\11\x9\11\11\74\x70\x20\x63\x6c\141\x73\163\x3d\x22\163\x75\142\155\x69\x74\x22\x3e\74\151\x6e\160\x75\x74\40\164\x79\160\x65\x3d\42\163\x75\142\x6d\151\164\x22\40\x6e\x61\155\x65\75\x22\x73\x75\x62\x6d\x69\x74\42\40\x69\144\75\42\163\x75\x62\155\x69\164\42\40\143\x6c\x61\163\x73\x3d\42\x62\x75\164\x74\157\156\40\x62\x75\164\164\x6f\156\x2d\160\x72\151\155\141\x72\x79\x22\40\x76\x61\x6c\165\145\75\x22\x43\157\156\x66\151\162\155\40\122\x65\163\x65\x74\x22\x3e\x3c\x2f\160\76\xa\x9\11\11\11\11\74\x2f\144\151\x76\x3e\xa\11\x9\x9\11\74\x2f\x66\x6f\162\x6d\x3e\xa\x9\11\x9\x9";
CYk:
K0w:
}
function miniorange_reset_save_settings()
{
if (!(isset($_POST["\155\151\x6e\x69\157\x72\x61\x6e\x67\145\137\162\145\163\145\x74\x5f\62\146\x61\137\157\160\164\x69\x6f\156"]) && sanitize_text_field($_POST["\x6d\x69\x6e\151\x6f\x72\141\x6e\x67\x65\137\x72\x65\163\x65\x74\137\x32\146\x61\x5f\157\x70\x74\x69\x6f\x6e"]) == "\x6d\x6f\137\x72\145\x73\x65\x74\137\62\x66\x61")) {
goto y4B;
}
$T7 = sanitize_text_field($_POST["\x6e\x6f\x6e\x63\145"]);
if (wp_verify_nonce($T7, "\x52\x65\x73\145\x74\124\167\x6f\x46\156\157\x6e\x63\145")) {
goto jJW;
}
return;
jJW:
$bR = isset($_POST["\x75\163\x65\162\x69\x64"]) && !empty($_POST["\x75\163\145\x72\151\x64"]) ? sanitize_text_field($_POST["\x75\x73\x65\x72\x69\x64"]) : '';
if (empty($bR)) {
goto lyo;
}
if (!current_user_can("\145\x64\151\164\137\x75\163\145\x72")) {
goto mOD;
}
global $aq;
if (get_current_user_id() == $bR) {
goto Etv;
}
delete_user_meta($bR, "\x6d\x6f\62\146\137\153\x62\x61\x5f\143\150\x61\154\x6c\145\156\147\x65");
delete_user_meta($bR, "\x6d\157\62\x66\137\x32\x46\x41\137\155\145\164\x68\x6f\144\x5f\164\x6f\137\x63\x6f\x6e\x66\x69\147\165\162\x65");
delete_user_meta($bR, "\123\145\x63\165\x72\x69\164\171\40\121\165\145\163\164\x69\x6f\x6e\x73");
$aq->delete_user_details($bR);
delete_user_meta($bR, "\155\x6f\x32\x66\137\x32\106\x41\x5f\155\145\x74\150\x6f\x64\137\164\x6f\137\164\145\x73\x74");
update_user_meta($bR, "\155\x6f\x32\x66\x5f\165\163\x65\x72\x5f\154\x6f\147\151\x6e\x5f\163\x74\x61\x74\x75\163", 0);
delete_user_meta($bR, "\155\157\62\146\x5f\147\162\x61\143\145\137\160\145\x72\151\x6f\144\x5f\163\x74\x61\x74\165\x73");
goto YIE;
Etv:
delete_user_meta($bR, "\x6d\x6f\x32\x66\137\153\142\x61\137\143\x68\141\x6c\x6c\145\156\x67\145");
delete_user_meta($bR, "\155\x6f\62\146\137\x32\x46\x41\137\155\x65\164\150\x6f\x64\x5f\x74\x6f\x5f\143\x6f\156\x66\x69\x67\x75\x72\x65");
delete_user_meta($bR, "\123\x65\143\165\x72\x69\164\x79\40\x51\165\x65\x73\164\x69\x6f\156\x73");
delete_user_meta($bR, "\155\x6f\62\146\137\x32\106\101\137\155\x65\164\x68\x6f\x64\137\x74\157\137\x74\x65\163\164");
$aq->update_user_details($bR, array("\155\157\x5f\x32\x66\141\143\x74\x6f\162\137\165\163\145\x72\x5f\162\x65\147\151\x73\164\x72\141\164\151\x6f\x6e\x5f\163\164\141\x74\165\163" => "\115\x4f\x5f\62\x5f\106\x41\103\x54\117\x52\137\x49\116\x49\124\111\x41\x4c\x49\132\105\137\124\127\117\x5f\106\x41\103\124\117\122", "\155\x6f\x32\146\x5f\143\157\x6e\x66\151\x67\x75\x72\x65\x64\x5f\x32\x46\101\137\x6d\x65\x74\150\157\144" => ''));
YIE:
mOD:
lyo:
y4B:
}
function mo2f_mapped_email_column_content($kB, $p7, $bR)
{
global $aq;
$user = get_userdata($bR);
$Re = $aq->get_user_detail("\x6d\157\x32\146\x5f\x63\157\x6e\x66\151\x67\165\162\x65\x64\137\x32\x46\101\x5f\155\145\164\150\157\x64", $bR);
$vj = $aq->get_user_detail("\x6d\157\x32\x66\137\165\163\x65\x72\x5f\145\x6d\141\151\154", $bR);
if ($Re) {
goto Ymw;
}
$Re = "\x4e\x6f\x74\40\x52\145\x67\151\163\x74\x65\162\145\144\40\146\157\x72\x20\x32\106\x41";
Ymw:
if ("\x63\165\162\162\x65\156\x74\137\x6d\x65\x74\150\157\144" == $p7) {
goto QCi;
}
if ("\x6d\141\x70\x70\145\x64\137\x65\x6d\x61\x69\x6c" == $p7) {
goto G85;
}
if ("\163\x65\x6c\x65\x63\164\145\x64\x5f\x75\163\x65\x72" == $p7) {
goto IDR;
}
goto NtW;
QCi:
return $Re;
goto NtW;
G85:
if ($vj) {
goto B7i;
}
$vj = "\x4e\157\x74\40\x52\x65\147\151\163\164\145\162\x65\144\40\x66\157\x72\x20\62\106\101";
B7i:
return $vj;
goto NtW;
IDR:
$IZ = (int) $user->ID;
$TA = $user->roles;
if (MoWpnsUtility::get_mo2f_db_option("\x6d\157\62\x66\137\x62\x79\x5f\162\157\154\145\163", "\163\151\x74\x65\137\x6f\160\x74\x69\157\156")) {
goto xhg;
}
$DI = MoWpnsUtility::get_mo2f_db_option("\x6d\157\x32\x66\137\x73\145\x6c\x65\x63\164\x5f\165\163\145\162\x5f\x66\157\162\x5f\x32\x66\141", "\x73\x69\164\145\137\157\x70\x74\151\157\156");
$GD = MoWpnsUtility::get_mo2f_db_option("\155\x6f\x32\146\137\162\145\155\x6f\x76\145\x5f\x75\x73\x65\162\137\x66\157\162\x5f\x32\146\x61", "\x73\151\x74\x65\137\x6f\160\x74\151\x6f\156");
if (in_array($bR, $DI)) {
goto Pj4;
}
if (in_array($bR, $GD)) {
goto aXi;
}
array_push($DI, $bR);
update_site_option("\x6d\x6f\x32\x66\137\163\145\x6c\x65\143\x74\137\165\x73\145\x72\137\x66\157\162\x5f\x32\146\141", $DI);
$Oj7 = "\131\x65\163";
goto wO4;
Pj4:
$Oj7 = "\x59\x65\x73";
goto wO4;
aXi:
$Oj7 = "\116\x6f";
wO4:
goto inh;
xhg:
$h_ = miniorange_check_if_2fa_enabled_for_roles($TA);
if ($h_) {
goto bp0;
}
$Oj7 = "\116\157";
goto eHn;
bp0:
$Oj7 = "\x59\145\163";
eHn:
inh:
return $Oj7;
NtW:
return $kB;
}
}
new Miniorange_twoFactor();
Function Calls
None |
Stats
MD5 | 2183c04260fe3474cee3636cfeffa1c5 |
Eval Count | 0 |
Decode Time | 92 ms |