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 class Miniorange_User_Register { function __construct() { a..
Decoded Output download
<?php
class Miniorange_User_Register
{
function __construct()
{
add_action("admin_init", array($this, "miniorange_user_save_settings"));
add_action("admin_enqueue_scripts", array($this, "plugin_settings_style"));
}
function plugin_settings_style()
{
wp_enqueue_style("mo_2_factor_admin_settings_style", plugins_url("includes/css/style_settings.css", __FILE__), array(), MO2F_VERSION);
}
function mo_auth_success_message()
{
$F3 = get_site_option("mo2f_message");
echo " \x9<script> \xa\x9\x9jQuery(document).ready(function() {\xa \x9 var message = "";
echo $F3;
echo "";
jQuery('#messages').append("<div class='error notice is-dismissible mo2f_error_container'> <p class='mo2f_msgs'>" + message + "</p></div>");
\x9\x9});\xa\x9\x9</script>\xa ";
}
function mo_auth_error_message()
{
$F3 = get_site_option("mo2f_message");
echo " <script> \xa\x9\x9jQuery(document).ready(function() {
\x9 \x9var message = "";
echo $F3;
echo "";\xa\x9 \x9jQuery('#messages').append("<div class='updated notice is-dismissible mo2f_success_container'> <p class='mo2f_msgs'>" + message + "</p></div>");\xa jQuery('a[href="#test"]').click(function() {\xa\x9 var currentMethod = jQuery(this).data("method");
\x9 \x9if(currentMethod == 'MOBILE AUTHENTICATION'){
\x9 \x9 \x9jQuery('#mo2f_2factor_test_mobile_form').submit();
\x9\x9\x9}else if(currentMethod == 'PUSH NOTIFICATIONS'){
\x9\x9 \x9 jQuery('#mo2f_2factor_test_push_form').submit();
\x9\x9 }else if(currentMethod == 'SOFT TOKEN'){
\x9\x9\x9\x9jQuery('#mo2f_2factor_test_softtoken_form').submit();
\x9\x9 }else if(currentMethod == 'SMS' || currentMethod == 'PHONE VERIFICATION' || currentMethod == 'SMS AND EMAIL'||currentMethod == 'OTP_OVER_EMAIL'){\xa \x9 jQuery('#mo2f_test_2factor_method').val(currentMethod);
\x9\x9 jQuery('#mo2f_2factor_test_smsotp_form').submit();\xa \x9 }else if(currentMethod == 'OUT OF BAND EMAIL'){\xa\x9\x9 \x9jQuery('#mo2f_2factor_test_out_of_band_email_form').submit();\xa \x9 }else if(currentMethod == 'GOOGLE AUTHENTICATOR'){
\x9jQuery('#mo2f_2factor_test_google_auth_form').submit();\xa\x9 \x9 }\xa\x9\x9 });
\x9});
</script>
\x9";
}
private function mo_auth_show_success_message()
{
$current_user = wp_get_current_user();
if (is_multisite() and is_super_admin($current_user->ID)) {
goto Ltt;
}
remove_action("admin_notices", array($this, "mo_auth_success_message"));
add_action("admin_notices", array($this, "mo_auth_error_message"));
goto tYa;
Ltt:
remove_action("network_admin_notices", array($this, "mo_auth_success_message"));
add_action("network_admin_notices", array($this, "mo_auth_error_message"));
remove_action("admin_notices", array($this, "mo_auth_success_message"));
add_action("admin_notices", array($this, "mo_auth_error_message"));
tYa:
}
private function mo_auth_show_error_message()
{
$current_user = wp_get_current_user();
if (is_multisite() and is_super_admin($current_user->ID)) {
goto Pg9;
}
remove_action("admin_notices", array($this, "mo_auth_error_message"));
add_action("admin_notices", array($this, "mo_auth_success_message"));
goto jO2;
Pg9:
remove_action("network_admin_notices", array($this, "mo_auth_error_message"));
add_action("network_admin_notices", array($this, "mo_auth_success_message"));
remove_action("admin_notices", array($this, "mo_auth_error_message"));
add_action("admin_notices", array($this, "mo_auth_success_message"));
jO2:
}
public function mo2f_register_user()
{
global $wpdb;
global $current_user;
$current_user = wp_get_current_user();
global $aq;
$lj = $aq->get_user_detail("mo_2factor_user_registration_status", $current_user->ID);
if (!($this->mo_2factor_is_curl_installed() == 0)) {
goto Q4c;
}
echo "\x9 <p style="color:red;"> (";
echo __("Warning: ", "miniorange-2-factor-authentication");
echo "<a href="http://php.net/manual/en/curl.installation.php" target="_blank"> ";
echo __("PHP CURL extension", "miniorange-2-factor-authentication");
echo "</a> ";
echo __("is not installed or disabled", "miniorange-2-factor-authentication");
echo ")</p>
\x9";
Q4c:
$rE = isset($_GET["mo2f_tab"]) ? $_GET["mo2f_tab"] : "mo_2fa_two_fa";
echo "\x9 <div id="tab">\xa \x9\x9<h2 class="nav-tab-wrapper">\xa \x9 <a href="admin.php?page=mo_2fa_two_fa" class="nav-tab ";
echo $rE == "mo_2fa_two_fa" ? "nav-tab-active" : '';
echo "" id="mo2f_tab1">
\x9 \x9\x9 \x9\x9 \x9\x9\x9\x9 \x9 \x9\x9 ";
if ($lj == "MO_2_FACTOR_INITIALIZE_TWO_FACTOR" || $lj == "MO_2_FACTOR_INITIALIZE_MOBILE_REGISTRATION" || $lj == "MO_2_FACTOR_PLUGIN_SETTINGS") {
goto C92;
}
echo " \x9 \x9\x9 Account Setup ";
goto F5L;
C92:
echo "\x9\x9 \x9User Profile \xa\x9\x9\x9\x9 \x9 \x9\x9\x9 \x9 \x9 \x9\x9\x9 ";
F5L:
echo "</a> \xa\x9 <a href="admin.php?page=mo_2fa_two_fa" class="nav-tab ";
echo $rE == "mo_2fa_two_fa" ? "nav-tab-active" : '';
echo "" id="mo2f_tab2">";
echo __("Setup Two-Factor", "miniorange-2-factor-authentication");
echo "</a>\xa \x9";
if (!get_site_option("mo2f_deviceid_enabled")) {
goto jFl;
}
echo " \x9\x9 <!-- <a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=advance_option" class="nav-tab ";
echo "" id="mo2f_tab5">Device Management</a> -->
";
jFl:
echo " \x9 </h2>
\x9 </div>\xa\x9 <div class="mo2f_container">
<div id="messages"></div>
\x9\x9<table style="width:100%;padding:10px;">\xa \x9\x9 <tr>\xa \x9 <td style="width:60%;vertical-align:top;">
";
if ($rE == "mo_2fa_two_fa") {
goto XnR;
}
if ($rE == "mo2f_demo") {
goto oMn;
}
if ($rE == "mo2f_help") {
goto Za5;
}
if (get_site_option("mo2f_deviceid_enabled") && $rE == "advance_option") {
goto HoG;
}
unset($_SESSION["mo2f_google_auth"]);
unset($_SESSION["mo2f_mobile_support"]);
if ($lj == "MO_2_FACTOR_OTP_DELIVERED_SUCCESS" || $lj == "MO_2_FACTOR_OTP_DELIVERED_FAILURE") {
goto xnA;
}
if ($lj == "MO_2_FACTOR_INITIALIZE_MOBILE_REGISTRATION") {
goto J1a;
}
if ($lj == "MO_2_FACTOR_INITIALIZE_TWO_FACTOR") {
goto QYI;
}
if ($lj == "MO_2_FACTOR_PLUGIN_SETTINGS") {
goto AH0;
}
show_user_welcome_page($current_user);
goto bDh;
xnA:
mo2f_show_user_otp_validation_page();
goto bDh;
J1a:
$uV = mo2f_get_activated_second_factor($current_user);
mo2f_show_instruction_to_allusers($current_user, $uV);
goto bDh;
QYI:
mo2f_show_instruction_to_allusers($current_user, "NONE");
goto bDh;
AH0:
$uV = mo2f_get_activated_second_factor($current_user);
mo2f_show_instruction_to_allusers($current_user, $uV);
bDh:
goto e5i;
XnR:
$uV = mo2f_get_activated_second_factor($current_user);
mo2f_select_2_factor_method($current_user, $uV);
echo " \x9\x9\x9<script>
\x9\x9\x9\x9\x9jQuery(document).ready(function(){\xa \x9\x9\x9 jQuery("#mo2f_support_table").hide();
\x9\x9 \x9 });
\x9\x9 </script>
";
goto e5i;
oMn:
unset($_SESSION["mo2f_google_auth"]);
unset($_SESSION["mo2f_mobile_support"]);
show_2_factor_login_demo($current_user);
goto e5i;
Za5:
unset($_SESSION["mo2f_google_auth"]);
unset($_SESSION["mo2f_mobile_support"]);
mo2f_show_help_and_troubleshooting($current_user, false);
goto e5i;
HoG:
unset($_SESSION["mo2f_google_auth"]);
unset($_SESSION["mo2f_mobile_support"]);
show_2_factor_advanced_options($current_user);
e5i:
echo "\x9 \x9 </td>\xa \x9 <td style="vertical-align:top;padding-left:1%;" id="mo2f_support_table">\xa\x9 \x9 </td>\xa\x9 </tr>\xa\x9\x9\x9</table>
</div>\xa ";
}
function mo_2factor_is_curl_installed()
{
if (in_array("curl", get_loaded_extensions())) {
goto FK2;
}
return 0;
goto wem;
FK2:
return 1;
wem:
}
function miniorange_user_save_settings()
{
global $wpdb;
global $current_user;
$current_user = wp_get_current_user();
global $aq;
if (current_user_can("manage_options")) {
goto gRr;
}
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_2factor_validate_user_otp")) {
goto YgZ;
}
$wp = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["otp_token"])) {
goto eks;
}
$wp = sanitize_text_field($_POST["otp_token"]);
goto OR_;
eks:
update_site_option("mo2f_message", Mo2fConstants::langTranslate("INVALID_ENTRY"));
$this->mo_auth_show_error_message();
return;
OR_:
$vj = $aq->get_user_detail("mo_2factor_user_email", $current_user->ID);
if (!MO2f_Utility::check_if_email_is_already_registered($current_user->ID, $vj)) {
goto owp;
}
update_site_option("mo2f_message", Mo2fConstants::langTranslate("EMAIL_IN_USE"));
$this->mo_auth_show_error_message();
goto kPY;
owp:
$eO = new Customer_Setup();
$dc = $_SESSION["mo2f_transactionId"];
$CG = json_decode($eO->validate_otp_token("VERIFYEMAIL", null, $dc, $wp, get_site_option("mo2f_customerKey"), get_site_option("mo2f_api_key"), $current_user), true);
if ($CG["status"] == "ERROR") {
goto BSY;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto q8r;
}
update_site_option("mo2f_message", Mo2fConstants::langTranslate("INVALID_OTP"));
$aq->update_user_details($current_user->ID, array("mo_2factor_user_registration_status" => "MO_2_FACTOR_OTP_DELIVERED_FAILURE"));
$this->mo_auth_show_error_message();
goto KDU;
q8r:
$this->mo2f_create_user($current_user, $vj);
delete_user_meta($current_user->ID, "mo_2fa_verify_otp_create_account");
KDU:
goto frt;
BSY:
update_site_option("mo2f_message", Mo2fConstants::langTranslate($CG["message"]));
delete_user_meta($current_user->ID, "mo_2fa_verify_otp_create_account");
frt:
kPY:
YgZ:
gRr:
}
function mo2f_create_user($current_user, $vj)
{
$vj = strtolower($vj);
$qf = new Two_Factor_Setup();
global $aq;
if (MO2F_IS_ONPREM) {
goto XvH;
}
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
goto THW;
XvH:
$Kk["status"] = "USER_NOT_FOUND";
THW:
if (json_last_error() == JSON_ERROR_NONE) {
goto G4I;
}
update_site_option("mo2f_message", Mo2fConstants::langTranslate("ERROR_DURING_USER_REGISTRATION"));
$this->mo_auth_show_error_message();
goto pP9;
G4I:
if ($Kk["status"] == "ERROR") {
goto AY8;
}
if (strcasecmp($Kk["status"], "USER_FOUND") == 0) {
goto jRl;
}
if (strcasecmp($Kk["status"], "USER_NOT_FOUND") == 0) {
goto Qt_;
}
update_site_option("mo2f_message", Mo2fConstants::langTranslate("ERROR_DURING_USER_REGISTRATION"));
$this->mo_auth_show_error_message();
goto jqG;
jRl:
$aq->update_user_details($current_user->ID, array("mo_2factor_user_registration_with_miniorange" => "SUCCESS", "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", "mo2f_user_email" => $vj, "mo_2factor_user_email" => ''));
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$qf = new Two_Factor_Setup();
$qM = json_decode($qf->mo2f_get_userinfo($vj), true);
$lK = $qM["authType"];
$this->mo2f_set_status($lK, $current_user, $vj);
$F3 = Mo2fConstants::langTranslate("REGISTRATION_SUCCESS") . " <a href=\"admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mobile_configure\" >" . Mo2fConstants::langTranslate("CLICK_HERE") . "</a> " . Mo2fConstants::langTranslate("CONFIG_2FA");
update_site_option("mo2f_message", $F3);
$this->mo_auth_show_success_message();
goto jqG;
Qt_:
if (MO2F_IS_ONPREM) {
goto gF5;
}
$CG = json_decode($qf->mo_create_user($current_user, $vj), true);
goto N9K;
gF5:
update_user_meta($current_user->ID, "currentMethod", "Email Verification");
$CG["status"] = "SUCCESS";
N9K:
if (json_last_error() == JSON_ERROR_NONE) {
goto Vh8;
}
update_site_option("mo2f_message", Mo2fConstants::langTranslate("ERROR_REG_USER_ADMIN"));
$this->mo_auth_show_error_message();
goto pAc;
Vh8:
if ($CG["status"] == "ERROR") {
goto g2V;
}
if (strcasecmp($CG["status"], "SUCCESS") == 0) {
goto TME;
}
update_site_option("mo2f_message", Mo2fConstants::langTranslate("ERROR_DURING_USER_REGISTRATION"));
$this->mo_auth_show_error_message();
goto vjo;
TME:
$aq->update_user_details($current_user->ID, array("mo_2factor_user_registration_with_miniorange" => "SUCCESS", "mo_2factor_user_registration_status" => "MO_2_FACTOR_INITIALIZE_TWO_FACTOR", "mo2f_user_email" => $vj, "mo_2factor_user_email" => ''));
$vj = $aq->get_user_detail("mo2f_user_email", $current_user->ID);
$F3 = Mo2fConstants::langTranslate("REGISTRATION_SUCCESS") . " <a href=\"admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mobile_configure\" > " . Mo2fConstants::langTranslate("CLICK_HERE") . "</a> " . Mo2fConstants::langTranslate("CONFIG_2FA");
update_site_option("mo2f_message", $F3);
$this->mo_auth_show_success_message();
vjo:
goto GwL;
g2V:
update_site_option("mo2f_message", Mo2fConstants::langTranslate($CG["message"]));
$this->mo_auth_show_error_message();
GwL:
pAc:
jqG:
goto Hi8;
AY8:
update_site_option("mo2f_message", Mo2fConstants::langTranslate($Kk["message"]));
$this->mo_auth_show_error_message();
Hi8:
pP9:
}
function mo2f_set_status($lK, $current_user, $vj)
{
global $aq;
$qf = new Two_Factor_Setup();
if ($lK == "KBA") {
goto JdB;
}
if ($lK == "MOBILE AUTHENTICATION" || $lK == "SOFT TOKEN" || $lK == "PUSH NOTIFICATIONS") {
goto UE4;
}
if ($lK == "GOOGLE AUTHENTICATOR") {
goto wQL;
}
if ($lK == "SMS AND EMAIL" || $lK == "SMS") {
goto gtO;
}
if ($lK == "EMAIL") {
goto zXM;
}
$qf->mo2f_update_userinfo($vj, "OUT OF BAND EMAIL", null, "API_2FA", true);
$aq->update_user_details($current_user->ID, array("mo2f_email_verification_status" => true));
goto qPx;
JdB:
$aq->update_user_details($current_user->ID, array("mo2f_SecurityQuestions_config_status" => true));
goto qPx;
UE4:
$aq->update_user_details($current_user->ID, array("mo2f_mobile_registration_status" => true));
goto qPx;
wQL:
$aq->update_user_details($current_user->ID, array("mo2f_GoogleAuthenticator_config_status" => true));
goto qPx;
gtO:
$aq->update_user_details($current_user->ID, array("mo2f_otp_registration_status" => true));
goto qPx;
zXM:
$aq->update_user_details($current_user->ID, array("mo2f_email_verification_status" => true));
qPx:
}
}
?>
Did this file decode correctly?
Original Code
<?php
class Miniorange_User_Register
{
function __construct()
{
add_action("\141\144\155\x69\x6e\x5f\151\156\151\164", array($this, "\155\151\x6e\151\157\x72\141\x6e\147\x65\x5f\x75\163\x65\162\x5f\163\141\x76\x65\x5f\163\145\164\164\151\x6e\x67\163"));
add_action("\141\144\155\x69\x6e\137\145\156\161\165\x65\x75\x65\137\163\143\x72\x69\x70\164\x73", array($this, "\x70\x6c\x75\x67\x69\x6e\137\x73\x65\x74\x74\x69\x6e\x67\x73\x5f\163\x74\x79\x6c\145"));
}
function plugin_settings_style()
{
wp_enqueue_style("\155\157\x5f\x32\x5f\x66\x61\x63\x74\x6f\162\x5f\141\144\155\151\x6e\137\x73\145\164\x74\x69\156\147\x73\137\163\164\x79\154\x65", plugins_url("\151\156\x63\154\x75\144\x65\163\x2f\143\163\163\57\x73\164\x79\154\145\x5f\x73\x65\x74\x74\151\156\x67\163\56\x63\x73\x73", __FILE__), array(), MO2F_VERSION);
}
function mo_auth_success_message()
{
$F3 = get_site_option("\155\157\62\x66\137\155\145\x73\163\x61\x67\145");
echo "\11\x9\74\163\x63\162\x69\x70\x74\x3e\x20\xa\x9\x9\x6a\121\x75\145\162\x79\50\x64\157\143\165\x6d\x65\x6e\x74\x29\56\162\145\141\144\x79\x28\146\165\x6e\x63\x74\x69\157\x6e\x28\x29\40\173\xa\11\x9\40\166\141\x72\x20\x6d\x65\163\x73\x61\x67\x65\40\75\x20\x22";
echo $F3;
echo "\42\x3b\12\11\11\152\x51\165\x65\x72\x79\x28\47\43\155\145\163\x73\141\x67\145\163\x27\51\56\141\x70\x70\145\x6e\x64\50\x22\74\x64\151\166\x20\x63\x6c\141\x73\x73\75\x27\x65\162\162\157\162\x20\156\x6f\x74\x69\143\x65\x20\x69\163\55\x64\x69\x73\x6d\x69\163\163\151\142\x6c\145\40\155\157\62\146\x5f\145\162\x72\x6f\x72\x5f\143\157\156\x74\x61\x69\156\x65\x72\x27\76\40\74\x70\40\143\154\141\163\x73\x3d\x27\155\157\x32\146\x5f\155\163\147\163\x27\76\x22\x20\53\40\155\x65\x73\x73\x61\x67\145\x20\x2b\x20\x22\74\x2f\160\76\74\x2f\144\x69\x76\x3e\x22\x29\x3b\12\x9\x9\175\51\x3b\xa\x9\x9\74\57\163\143\162\x69\x70\164\76\xa\11\11";
}
function mo_auth_error_message()
{
$F3 = get_site_option("\x6d\157\x32\146\x5f\155\x65\x73\163\141\x67\145");
echo "\11\11\x3c\x73\x63\162\151\160\164\76\40\xa\x9\x9\152\121\x75\145\x72\x79\x28\x64\157\143\x75\155\145\x6e\164\x29\x2e\162\x65\141\x64\171\50\x66\x75\156\x63\164\x69\x6f\156\50\51\40\173\12\x9\11\x9\x76\141\162\40\155\145\x73\163\x61\x67\x65\40\75\40\42";
echo $F3;
echo "\x22\x3b\xa\x9\11\x9\152\x51\x75\145\162\x79\50\47\x23\x6d\x65\x73\163\x61\147\145\163\x27\x29\x2e\141\x70\x70\x65\x6e\x64\50\x22\74\144\x69\166\40\x63\154\141\163\163\75\47\x75\x70\x64\x61\164\145\144\x20\x6e\x6f\x74\151\143\145\40\151\163\x2d\x64\151\x73\155\151\x73\163\x69\x62\x6c\x65\40\x6d\157\x32\x66\137\x73\165\x63\143\x65\x73\x73\137\x63\x6f\156\x74\x61\x69\156\145\x72\x27\x3e\x20\74\x70\40\143\154\141\x73\163\75\x27\x6d\x6f\x32\146\x5f\x6d\x73\x67\x73\47\x3e\42\40\x2b\x20\x6d\145\163\163\x61\147\x65\40\x2b\x20\x22\74\57\x70\x3e\74\x2f\144\151\x76\76\x22\x29\x3b\xa\11\11\11\152\121\165\x65\x72\x79\x28\47\x61\x5b\150\x72\x65\x66\x3d\x22\43\x74\x65\163\x74\42\x5d\47\51\56\x63\x6c\151\x63\x6b\x28\146\x75\156\143\x74\x69\157\x6e\x28\51\x20\173\xa\x9\11\11\11\x76\x61\162\40\x63\165\162\162\145\156\x74\115\x65\x74\150\x6f\144\40\75\40\152\x51\165\x65\162\171\x28\x74\x68\x69\163\51\x2e\144\141\164\141\50\42\x6d\145\x74\x68\x6f\x64\x22\x29\x3b\12\11\x9\11\x9\x69\146\x28\x63\x75\x72\162\x65\x6e\x74\115\145\164\150\x6f\144\x20\x3d\x3d\40\47\115\x4f\x42\x49\x4c\x45\x20\101\x55\x54\x48\x45\x4e\124\x49\103\x41\124\111\117\x4e\47\51\173\12\x9\11\x9\11\x9\x6a\121\165\x65\x72\x79\x28\x27\43\155\157\x32\146\137\62\x66\141\143\x74\157\x72\137\164\x65\163\164\137\x6d\157\142\x69\x6c\145\x5f\x66\157\x72\155\x27\51\x2e\x73\x75\142\155\x69\x74\x28\x29\x3b\12\11\x9\x9\x9\x7d\x65\x6c\163\x65\x20\x69\x66\50\x63\x75\162\x72\x65\x6e\164\x4d\145\x74\150\x6f\x64\40\x3d\x3d\40\x27\120\x55\123\110\40\116\x4f\124\x49\x46\x49\103\x41\124\x49\x4f\x4e\x53\47\51\173\12\x9\x9\11\x9\11\x6a\121\x75\145\162\171\x28\47\43\x6d\x6f\62\x66\x5f\62\146\141\143\164\157\x72\137\164\x65\163\164\137\160\165\163\150\x5f\146\x6f\x72\155\x27\51\x2e\163\165\x62\155\x69\164\x28\x29\73\12\x9\x9\11\11\x7d\145\x6c\163\x65\40\151\146\x28\x63\x75\162\x72\x65\156\x74\115\145\164\x68\x6f\144\x20\75\75\40\x27\123\117\x46\x54\x20\124\117\x4b\105\116\47\51\173\12\11\x9\x9\x9\x9\x6a\x51\165\145\x72\x79\50\x27\43\155\157\62\x66\x5f\x32\146\141\143\164\x6f\x72\137\x74\x65\163\x74\x5f\163\157\x66\164\x74\157\153\x65\x6e\x5f\146\157\162\x6d\47\51\x2e\163\x75\x62\x6d\151\x74\x28\51\x3b\12\11\x9\x9\11\175\145\154\x73\x65\40\x69\146\x28\143\165\x72\x72\145\x6e\x74\115\x65\164\x68\157\x64\40\75\75\x20\47\x53\115\123\47\40\x7c\x7c\40\143\165\162\162\145\156\x74\115\145\x74\x68\x6f\144\40\x3d\75\40\47\120\x48\117\x4e\105\x20\x56\105\122\111\106\111\103\x41\124\111\117\116\47\40\x7c\x7c\40\x63\165\x72\x72\x65\x6e\x74\x4d\145\x74\150\157\144\x20\x3d\x3d\40\47\123\x4d\x53\40\101\x4e\x44\x20\x45\115\x41\111\x4c\x27\174\174\x63\165\x72\x72\x65\x6e\x74\x4d\145\164\150\157\144\40\75\75\x20\x27\x4f\x54\120\x5f\117\x56\x45\122\x5f\105\115\x41\x49\114\x27\51\x7b\xa\11\11\x9\11\11\x6a\x51\x75\145\x72\x79\x28\x27\x23\x6d\157\x32\146\137\x74\x65\x73\x74\x5f\62\x66\141\143\164\157\162\137\x6d\145\164\150\157\x64\47\51\x2e\166\x61\x6c\x28\143\165\x72\162\x65\x6e\164\x4d\x65\x74\x68\157\x64\x29\73\12\11\x9\x9\11\11\x6a\x51\165\x65\x72\x79\50\x27\x23\155\x6f\x32\x66\137\x32\146\x61\x63\x74\157\162\x5f\x74\x65\163\164\137\163\155\x73\x6f\164\160\x5f\x66\157\162\155\x27\x29\x2e\x73\165\x62\155\151\164\50\x29\x3b\xa\11\x9\11\11\175\145\x6c\x73\145\x20\151\146\50\x63\165\162\x72\145\156\x74\115\x65\164\x68\157\x64\x20\75\x3d\40\x27\x4f\x55\x54\40\117\x46\40\102\x41\116\x44\x20\105\115\101\x49\114\x27\51\x7b\xa\x9\x9\11\11\x9\152\121\x75\145\162\171\x28\47\43\x6d\157\62\x66\x5f\62\146\141\143\164\x6f\x72\137\164\x65\x73\x74\137\x6f\x75\x74\x5f\x6f\146\137\142\141\x6e\x64\x5f\145\x6d\x61\x69\154\x5f\x66\157\x72\x6d\47\x29\x2e\x73\165\142\155\x69\x74\50\51\73\xa\11\x9\11\11\x7d\145\x6c\x73\x65\40\151\146\x28\x63\165\162\x72\x65\x6e\164\115\145\x74\x68\157\144\x20\75\75\40\x27\x47\117\117\107\114\105\40\101\x55\124\x48\105\116\124\111\103\x41\x54\x4f\122\47\51\173\12\11\11\11\11\x9\x6a\121\x75\x65\x72\171\x28\x27\x23\155\x6f\x32\146\137\x32\146\141\143\164\x6f\x72\137\x74\x65\x73\164\x5f\147\157\x6f\x67\x6c\x65\x5f\141\165\x74\150\x5f\x66\157\x72\x6d\x27\x29\x2e\163\165\142\155\151\x74\50\51\73\xa\x9\11\x9\11\x7d\xa\x9\x9\11\175\51\73\12\11\x9\x7d\51\x3b\12\11\11\x3c\57\x73\143\x72\x69\x70\164\x3e\12\11\x9";
}
private function mo_auth_show_success_message()
{
$current_user = wp_get_current_user();
if (is_multisite() and is_super_admin($current_user->ID)) {
goto Ltt;
}
remove_action("\x61\144\x6d\151\156\137\x6e\157\x74\151\143\145\163", array($this, "\x6d\x6f\137\x61\x75\164\150\137\163\x75\143\x63\x65\163\163\137\155\x65\x73\163\141\x67\x65"));
add_action("\x61\x64\155\151\x6e\x5f\156\157\164\x69\x63\x65\x73", array($this, "\x6d\x6f\137\x61\165\x74\x68\x5f\145\x72\162\x6f\x72\137\155\145\163\163\141\x67\145"));
goto tYa;
Ltt:
remove_action("\156\x65\164\167\x6f\x72\153\137\141\x64\155\x69\156\137\156\157\x74\151\x63\145\x73", array($this, "\x6d\157\137\x61\165\164\150\x5f\163\165\x63\143\x65\163\x73\x5f\155\x65\x73\163\141\x67\x65"));
add_action("\x6e\x65\164\167\157\x72\x6b\137\x61\144\x6d\x69\x6e\x5f\156\x6f\164\151\x63\x65\163", array($this, "\155\x6f\x5f\141\165\x74\x68\x5f\145\x72\x72\157\x72\x5f\155\145\163\x73\x61\147\x65"));
remove_action("\141\x64\155\x69\x6e\137\x6e\x6f\x74\x69\143\x65\x73", array($this, "\x6d\x6f\x5f\x61\x75\164\x68\x5f\163\165\x63\x63\x65\163\163\x5f\155\145\x73\x73\x61\147\145"));
add_action("\x61\x64\155\151\x6e\137\x6e\157\x74\x69\x63\145\163", array($this, "\x6d\x6f\x5f\141\x75\164\150\137\145\162\x72\x6f\x72\137\x6d\145\x73\163\x61\x67\145"));
tYa:
}
private function mo_auth_show_error_message()
{
$current_user = wp_get_current_user();
if (is_multisite() and is_super_admin($current_user->ID)) {
goto Pg9;
}
remove_action("\141\144\155\x69\x6e\137\x6e\x6f\164\x69\x63\145\x73", array($this, "\155\157\x5f\x61\165\x74\150\x5f\145\x72\162\x6f\x72\137\155\145\x73\163\x61\147\145"));
add_action("\141\144\x6d\x69\x6e\137\156\x6f\164\x69\x63\145\x73", array($this, "\155\x6f\x5f\141\165\x74\x68\137\x73\165\143\143\145\163\163\x5f\155\x65\x73\163\141\147\x65"));
goto jO2;
Pg9:
remove_action("\x6e\x65\164\x77\157\x72\153\137\141\x64\x6d\151\156\137\x6e\157\x74\151\143\x65\163", array($this, "\155\157\x5f\141\165\164\x68\x5f\x65\x72\x72\x6f\x72\137\155\145\x73\x73\141\147\145"));
add_action("\156\x65\x74\x77\x6f\x72\153\137\141\144\155\151\156\x5f\x6e\157\164\151\143\x65\163", array($this, "\155\157\137\x61\165\x74\150\x5f\x73\165\x63\143\145\x73\x73\x5f\x6d\x65\x73\163\141\x67\x65"));
remove_action("\x61\x64\x6d\151\x6e\x5f\x6e\157\x74\151\143\145\163", array($this, "\155\157\x5f\x61\165\164\150\137\145\x72\162\x6f\x72\137\155\145\163\163\x61\x67\145"));
add_action("\141\144\155\x69\x6e\137\x6e\x6f\164\x69\x63\145\x73", array($this, "\155\x6f\137\x61\x75\x74\150\x5f\163\165\x63\143\x65\x73\163\x5f\x6d\145\163\x73\141\x67\145"));
jO2:
}
public function mo2f_register_user()
{
global $wpdb;
global $current_user;
$current_user = wp_get_current_user();
global $aq;
$lj = $aq->get_user_detail("\155\x6f\137\x32\146\x61\x63\164\x6f\162\x5f\x75\163\x65\162\137\162\145\147\151\x73\x74\162\x61\164\151\x6f\156\137\x73\164\x61\x74\x75\163", $current_user->ID);
if (!($this->mo_2factor_is_curl_installed() == 0)) {
goto Q4c;
}
echo "\x9\11\11\x3c\160\x20\163\164\171\154\145\75\x22\143\x6f\154\157\162\72\162\x65\x64\73\42\76\x20\x28";
echo __("\x57\x61\162\156\151\156\x67\72\x20", "\x6d\151\x6e\x69\x6f\x72\x61\x6e\x67\145\x2d\x32\x2d\x66\141\143\x74\x6f\162\55\141\x75\x74\x68\145\156\x74\151\143\x61\164\x69\x6f\156");
echo "\x3c\141\x20\150\x72\145\146\x3d\42\150\164\x74\x70\x3a\57\x2f\x70\150\x70\56\x6e\145\164\57\x6d\141\x6e\165\141\x6c\x2f\145\156\57\x63\x75\162\154\x2e\x69\x6e\x73\x74\141\x6c\x6c\x61\164\151\x6f\156\56\x70\x68\160\42\40\x74\x61\x72\x67\145\164\75\x22\x5f\142\x6c\141\x6e\153\x22\x3e\40";
echo __("\120\x48\x50\40\103\125\122\x4c\40\145\x78\x74\145\156\x73\x69\x6f\156", "\155\x69\x6e\x69\157\x72\141\156\147\145\x2d\62\x2d\146\x61\143\x74\157\162\55\x61\x75\x74\x68\x65\156\x74\151\143\141\164\151\x6f\156");
echo "\74\57\141\76\x20";
echo __("\151\163\40\156\157\164\40\151\156\x73\164\141\x6c\x6c\145\144\x20\x6f\x72\x20\144\x69\163\141\x62\154\145\144", "\x6d\x69\156\x69\157\x72\141\156\x67\x65\55\x32\55\146\x61\x63\x74\x6f\x72\55\141\165\x74\150\145\x6e\164\151\x63\141\164\151\x6f\x6e");
echo "\51\74\57\x70\76\12\11\11\x9";
Q4c:
$rE = isset($_GET["\155\157\x32\x66\x5f\164\x61\x62"]) ? $_GET["\x6d\x6f\62\x66\x5f\164\141\x62"] : "\x6d\157\137\62\x66\141\x5f\x74\167\157\137\x66\141";
echo "\x9\11\74\x64\151\166\x20\151\x64\75\x22\x74\x61\142\42\76\xa\11\x9\x9\x3c\150\62\x20\x63\x6c\x61\163\x73\75\42\156\x61\x76\x2d\x74\x61\142\x2d\x77\x72\x61\160\160\145\x72\42\76\xa\11\x9\11\11\74\x61\x20\150\162\x65\146\75\42\x61\144\x6d\x69\x6e\56\x70\x68\160\77\x70\141\x67\145\75\155\157\137\62\x66\x61\137\x74\x77\157\x5f\146\x61\x22\40\143\154\141\x73\x73\x3d\42\x6e\141\166\x2d\164\141\x62\40";
echo $rE == "\155\x6f\x5f\x32\x66\x61\x5f\164\167\157\137\x66\x61" ? "\x6e\x61\166\x2d\164\x61\142\x2d\141\x63\x74\x69\x76\145" : '';
echo "\x22\40\151\x64\75\42\155\x6f\62\x66\137\x74\x61\x62\x31\x22\76\12\x9\11\x9\x9\11\11\11\x9\x9\11\x9\x9\x9\x9\11\11\x9\11\x9\x9\40";
if ($lj == "\x4d\x4f\x5f\62\x5f\106\101\103\x54\x4f\x52\x5f\x49\116\x49\x54\111\101\114\111\x5a\x45\137\124\127\x4f\137\106\101\103\124\x4f\x52" || $lj == "\x4d\117\137\62\x5f\106\x41\x43\x54\x4f\122\137\x49\116\x49\x54\x49\x41\x4c\x49\132\105\137\x4d\117\102\111\114\x45\x5f\122\105\107\x49\123\124\x52\101\x54\x49\117\x4e" || $lj == "\115\x4f\x5f\62\137\106\101\103\x54\117\x52\x5f\x50\x4c\125\x47\x49\116\137\123\105\124\x54\111\x4e\x47\x53") {
goto C92;
}
echo "\11\x9\11\x9\x9\40\x41\143\143\157\x75\156\164\x20\123\145\164\x75\x70\40";
goto F5L;
C92:
echo "\x9\x9\11\11\x9\125\x73\x65\162\40\120\162\x6f\x66\x69\x6c\x65\x20\xa\x9\x9\x9\x9\11\x9\11\x9\x9\x9\11\11\x9\11\x9\11\x9\x9\x9\11\11\11";
F5L:
echo "\74\57\141\76\x20\xa\x9\11\11\11\x3c\x61\x20\150\x72\x65\146\75\42\x61\x64\155\x69\156\x2e\160\x68\x70\x3f\160\141\x67\x65\75\155\x6f\137\62\146\x61\x5f\164\x77\x6f\x5f\x66\141\42\x20\143\x6c\x61\163\163\x3d\42\x6e\141\166\x2d\164\x61\x62\x20";
echo $rE == "\155\157\x5f\x32\146\x61\x5f\164\x77\x6f\x5f\x66\x61" ? "\x6e\141\x76\55\164\141\142\55\x61\x63\x74\151\166\145" : '';
echo "\42\x20\x69\144\75\42\155\157\x32\x66\x5f\x74\141\142\62\x22\76";
echo __("\x53\145\x74\165\x70\x20\x54\167\157\x2d\106\141\143\164\157\162", "\x6d\151\x6e\x69\x6f\162\141\x6e\147\x65\x2d\x32\x2d\146\x61\143\164\157\x72\55\141\165\x74\150\x65\156\x74\151\143\x61\x74\x69\x6f\x6e");
echo "\74\x2f\x61\x3e\xa\11\11\11\x9";
if (!get_site_option("\155\x6f\62\x66\x5f\x64\145\166\151\143\x65\x69\x64\x5f\145\x6e\141\142\x6c\145\144")) {
goto jFl;
}
echo "\11\x9\x9\11\74\41\x2d\55\x20\x3c\x61\40\x68\162\x65\146\75\42\141\x64\155\x69\x6e\56\x70\x68\160\x3f\x70\141\x67\145\x3d\x6d\151\156\x69\117\162\141\156\147\x65\137\62\x5f\x66\x61\143\x74\x6f\x72\137\x73\x65\x74\164\151\x6e\x67\x73\x26\141\x6d\x70\x3b\155\x6f\62\146\137\164\x61\142\x3d\141\144\x76\141\x6e\x63\x65\137\x6f\x70\x74\x69\x6f\x6e\x22\x20\x63\x6c\141\x73\x73\75\x22\156\141\166\x2d\164\141\x62\x20";
echo "\x22\x20\x69\144\75\42\155\157\x32\x66\x5f\x74\x61\142\65\42\x3e\104\x65\x76\151\143\x65\40\115\x61\x6e\x61\147\x65\155\145\x6e\x74\74\x2f\141\76\x20\x2d\x2d\x3e\12\11\11\11\11\11";
jFl:
echo "\11\x9\11\x3c\x2f\150\x32\76\12\x9\11\x3c\x2f\144\151\x76\x3e\xa\x9\11\74\144\151\166\x20\143\154\141\163\163\x3d\42\x6d\157\x32\146\x5f\143\x6f\x6e\x74\141\x69\156\x65\x72\x22\x3e\12\11\11\x3c\144\x69\x76\40\151\144\x3d\x22\x6d\x65\163\163\141\x67\145\x73\x22\76\74\57\144\151\166\x3e\12\11\x9\x9\x3c\164\x61\x62\154\x65\40\163\x74\x79\154\x65\x3d\42\x77\x69\x64\164\x68\72\61\60\60\45\x3b\x70\141\x64\x64\x69\x6e\x67\72\61\x30\160\170\x3b\42\76\xa\11\x9\x9\11\x3c\x74\162\76\xa\11\11\x9\11\11\74\x74\144\40\x73\x74\x79\x6c\x65\75\42\x77\151\x64\x74\x68\x3a\x36\x30\x25\73\x76\x65\x72\x74\x69\x63\x61\x6c\55\141\x6c\x69\x67\156\x3a\164\157\x70\73\42\x3e\12\11\11";
if ($rE == "\155\x6f\x5f\x32\x66\x61\137\x74\167\x6f\137\146\x61") {
goto XnR;
}
if ($rE == "\155\x6f\62\x66\137\x64\145\x6d\157") {
goto oMn;
}
if ($rE == "\x6d\157\62\146\x5f\x68\x65\154\160") {
goto Za5;
}
if (get_site_option("\155\x6f\x32\146\x5f\x64\145\166\x69\143\145\151\x64\x5f\145\156\x61\142\154\x65\144") && $rE == "\x61\144\166\x61\x6e\143\x65\137\x6f\x70\164\151\x6f\156") {
goto HoG;
}
unset($_SESSION["\155\157\62\x66\137\147\x6f\157\x67\154\145\x5f\141\165\164\x68"]);
unset($_SESSION["\x6d\x6f\62\146\x5f\155\x6f\142\151\x6c\x65\137\x73\165\x70\160\x6f\x72\x74"]);
if ($lj == "\115\x4f\137\x32\137\x46\x41\103\x54\117\x52\x5f\x4f\x54\x50\x5f\x44\x45\x4c\111\x56\x45\122\x45\x44\x5f\x53\125\103\x43\105\x53\x53" || $lj == "\x4d\x4f\x5f\62\137\106\x41\103\x54\117\122\x5f\x4f\124\x50\137\104\105\114\111\126\x45\x52\x45\x44\x5f\x46\101\x49\114\x55\122\105") {
goto xnA;
}
if ($lj == "\x4d\x4f\x5f\x32\137\106\101\x43\x54\117\x52\x5f\x49\116\111\x54\111\101\x4c\111\x5a\105\x5f\x4d\x4f\102\111\x4c\x45\x5f\122\x45\107\x49\x53\x54\x52\x41\124\111\117\116") {
goto J1a;
}
if ($lj == "\x4d\117\137\62\137\106\x41\x43\x54\x4f\122\x5f\x49\x4e\111\124\111\x41\114\x49\132\x45\x5f\x54\x57\117\x5f\106\101\x43\124\x4f\x52") {
goto QYI;
}
if ($lj == "\115\x4f\x5f\x32\x5f\106\101\103\124\117\122\137\120\114\125\107\x49\116\137\x53\x45\124\x54\111\116\107\123") {
goto AH0;
}
show_user_welcome_page($current_user);
goto bDh;
xnA:
mo2f_show_user_otp_validation_page();
goto bDh;
J1a:
$uV = mo2f_get_activated_second_factor($current_user);
mo2f_show_instruction_to_allusers($current_user, $uV);
goto bDh;
QYI:
mo2f_show_instruction_to_allusers($current_user, "\x4e\117\116\x45");
goto bDh;
AH0:
$uV = mo2f_get_activated_second_factor($current_user);
mo2f_show_instruction_to_allusers($current_user, $uV);
bDh:
goto e5i;
XnR:
$uV = mo2f_get_activated_second_factor($current_user);
mo2f_select_2_factor_method($current_user, $uV);
echo "\11\x9\x9\x9\74\163\143\162\x69\160\x74\76\12\x9\x9\x9\x9\x9\152\x51\x75\145\x72\x79\50\x64\157\143\x75\155\x65\156\164\x29\56\x72\145\141\144\171\x28\146\x75\x6e\x63\164\x69\x6f\156\50\51\173\xa\11\x9\x9\x9\11\11\x6a\x51\x75\145\x72\171\x28\x22\43\x6d\157\62\146\137\163\165\x70\160\x6f\x72\164\137\x74\x61\142\x6c\145\x22\x29\56\x68\151\x64\145\x28\x29\73\12\x9\x9\11\x9\11\x7d\x29\x3b\12\x9\x9\11\11\x3c\57\x73\x63\162\x69\x70\164\76\12\11\11\11";
goto e5i;
oMn:
unset($_SESSION["\x6d\x6f\62\146\137\147\157\x6f\147\154\145\x5f\x61\x75\164\150"]);
unset($_SESSION["\155\x6f\x32\x66\x5f\x6d\157\142\x69\x6c\x65\137\x73\165\160\x70\157\162\x74"]);
show_2_factor_login_demo($current_user);
goto e5i;
Za5:
unset($_SESSION["\155\157\62\x66\x5f\147\157\157\x67\x6c\x65\x5f\x61\x75\x74\150"]);
unset($_SESSION["\155\x6f\x32\x66\x5f\x6d\x6f\x62\151\x6c\x65\137\163\165\x70\160\x6f\x72\164"]);
mo2f_show_help_and_troubleshooting($current_user, false);
goto e5i;
HoG:
unset($_SESSION["\x6d\x6f\x32\146\137\x67\157\x6f\x67\x6c\x65\x5f\141\165\164\150"]);
unset($_SESSION["\x6d\157\62\146\137\155\x6f\x62\x69\x6c\145\x5f\163\165\x70\x70\x6f\x72\x74"]);
show_2_factor_advanced_options($current_user);
e5i:
echo "\x9\11\11\x9\11\x3c\x2f\x74\144\76\xa\11\11\x9\11\11\x3c\x74\144\40\163\164\171\x6c\x65\75\42\166\145\162\164\151\x63\x61\154\x2d\x61\x6c\151\x67\156\72\164\157\160\x3b\160\x61\144\144\x69\x6e\147\55\154\145\146\164\72\61\45\73\42\40\151\x64\75\42\x6d\x6f\62\x66\x5f\163\165\x70\x70\x6f\x72\164\x5f\164\141\142\x6c\x65\42\x3e\xa\x9\11\x9\11\11\x3c\57\164\144\x3e\xa\x9\11\11\11\74\x2f\164\162\76\xa\x9\x9\x9\x3c\57\164\x61\x62\154\x65\76\12\11\11\x3c\57\144\x69\166\76\xa\11\11";
}
function mo_2factor_is_curl_installed()
{
if (in_array("\x63\165\x72\154", get_loaded_extensions())) {
goto FK2;
}
return 0;
goto wem;
FK2:
return 1;
wem:
}
function miniorange_user_save_settings()
{
global $wpdb;
global $current_user;
$current_user = wp_get_current_user();
global $aq;
if (current_user_can("\155\141\x6e\141\147\x65\x5f\157\160\x74\151\157\x6e\x73")) {
goto gRr;
}
if (!(isset($_POST["\x6f\160\164\x69\x6f\x6e"]) and $_POST["\157\160\x74\x69\x6f\156"] == "\x6d\157\x5f\x32\146\x61\143\164\x6f\x72\137\x76\141\154\151\x64\x61\x74\x65\137\x75\163\145\x72\x5f\157\164\x70")) {
goto YgZ;
}
$wp = '';
if (MO2f_Utility::mo2f_check_empty_or_null($_POST["\157\x74\160\x5f\164\157\x6b\x65\x6e"])) {
goto eks;
}
$wp = sanitize_text_field($_POST["\157\164\160\x5f\164\157\153\145\156"]);
goto OR_;
eks:
update_site_option("\155\157\62\x66\137\155\x65\x73\x73\141\x67\145", Mo2fConstants::langTranslate("\x49\x4e\126\101\x4c\111\104\137\x45\116\x54\x52\131"));
$this->mo_auth_show_error_message();
return;
OR_:
$vj = $aq->get_user_detail("\x6d\157\x5f\x32\x66\x61\143\164\157\x72\x5f\165\x73\145\x72\x5f\x65\155\141\x69\154", $current_user->ID);
if (!MO2f_Utility::check_if_email_is_already_registered($current_user->ID, $vj)) {
goto owp;
}
update_site_option("\x6d\157\62\x66\137\155\145\x73\x73\141\x67\145", Mo2fConstants::langTranslate("\105\115\x41\x49\114\x5f\111\116\x5f\125\x53\105"));
$this->mo_auth_show_error_message();
goto kPY;
owp:
$eO = new Customer_Setup();
$dc = $_SESSION["\x6d\x6f\x32\146\x5f\164\x72\141\x6e\x73\x61\x63\164\x69\157\156\x49\144"];
$CG = json_decode($eO->validate_otp_token("\x56\105\122\x49\x46\131\x45\x4d\x41\x49\x4c", null, $dc, $wp, get_site_option("\x6d\157\62\146\137\143\165\x73\x74\x6f\155\145\162\113\x65\x79"), get_site_option("\x6d\x6f\62\146\x5f\x61\160\x69\x5f\x6b\145\x79"), $current_user), true);
if ($CG["\163\164\141\164\x75\163"] == "\x45\x52\122\x4f\x52") {
goto BSY;
}
if (strcasecmp($CG["\x73\164\x61\164\165\x73"], "\x53\x55\x43\103\x45\x53\x53") == 0) {
goto q8r;
}
update_site_option("\155\157\62\x66\x5f\155\145\163\x73\141\x67\x65", Mo2fConstants::langTranslate("\111\x4e\126\x41\x4c\111\104\137\117\x54\120"));
$aq->update_user_details($current_user->ID, array("\155\x6f\137\x32\x66\141\143\x74\157\x72\x5f\165\x73\145\x72\x5f\162\x65\147\151\x73\164\x72\141\x74\x69\x6f\x6e\x5f\163\x74\x61\164\x75\x73" => "\x4d\117\x5f\x32\x5f\106\101\x43\x54\x4f\x52\x5f\117\x54\x50\x5f\104\x45\114\x49\x56\105\x52\105\x44\x5f\x46\101\x49\114\125\122\x45"));
$this->mo_auth_show_error_message();
goto KDU;
q8r:
$this->mo2f_create_user($current_user, $vj);
delete_user_meta($current_user->ID, "\x6d\157\137\x32\x66\x61\x5f\166\145\162\x69\146\x79\137\157\x74\x70\137\143\x72\145\x61\164\x65\x5f\141\143\x63\157\165\156\x74");
KDU:
goto frt;
BSY:
update_site_option("\155\157\62\146\137\155\145\163\x73\141\147\145", Mo2fConstants::langTranslate($CG["\x6d\145\163\163\141\x67\145"]));
delete_user_meta($current_user->ID, "\155\x6f\x5f\x32\x66\x61\137\x76\x65\162\151\146\171\137\x6f\164\160\x5f\143\x72\145\x61\x74\145\x5f\141\143\143\x6f\x75\x6e\164");
frt:
kPY:
YgZ:
gRr:
}
function mo2f_create_user($current_user, $vj)
{
$vj = strtolower($vj);
$qf = new Two_Factor_Setup();
global $aq;
if (MO2F_IS_ONPREM) {
goto XvH;
}
$Kk = json_decode($qf->mo_check_user_already_exist($vj), true);
goto THW;
XvH:
$Kk["\163\164\x61\164\165\x73"] = "\x55\123\105\x52\x5f\116\x4f\x54\137\106\117\125\x4e\x44";
THW:
if (json_last_error() == JSON_ERROR_NONE) {
goto G4I;
}
update_site_option("\155\157\62\146\x5f\x6d\x65\163\x73\x61\x67\x65", Mo2fConstants::langTranslate("\x45\x52\x52\x4f\x52\137\104\125\122\x49\x4e\x47\x5f\x55\x53\x45\x52\x5f\122\105\x47\111\x53\x54\x52\x41\x54\111\x4f\x4e"));
$this->mo_auth_show_error_message();
goto pP9;
G4I:
if ($Kk["\x73\164\141\x74\165\163"] == "\105\x52\x52\x4f\x52") {
goto AY8;
}
if (strcasecmp($Kk["\163\164\141\x74\x75\x73"], "\x55\x53\105\x52\137\x46\117\125\x4e\104") == 0) {
goto jRl;
}
if (strcasecmp($Kk["\x73\x74\x61\x74\x75\163"], "\x55\123\x45\x52\x5f\116\117\124\137\106\117\125\x4e\104") == 0) {
goto Qt_;
}
update_site_option("\x6d\x6f\62\146\x5f\x6d\145\x73\x73\x61\x67\x65", Mo2fConstants::langTranslate("\x45\122\x52\x4f\x52\137\x44\125\x52\x49\x4e\107\137\x55\x53\x45\122\137\x52\x45\107\x49\x53\124\122\101\x54\x49\x4f\116"));
$this->mo_auth_show_error_message();
goto jqG;
jRl:
$aq->update_user_details($current_user->ID, array("\155\x6f\137\x32\x66\141\143\x74\x6f\x72\x5f\x75\163\145\162\137\x72\145\147\x69\163\x74\162\141\x74\x69\157\156\x5f\x77\151\164\150\x5f\x6d\x69\x6e\x69\157\162\x61\x6e\x67\x65" => "\123\125\103\103\105\x53\123", "\155\157\x5f\x32\146\x61\143\x74\x6f\x72\x5f\165\x73\x65\162\137\162\145\147\151\163\164\162\x61\164\x69\157\156\x5f\163\164\x61\164\165\163" => "\115\117\137\62\x5f\106\101\103\124\x4f\x52\x5f\x49\116\x49\x54\111\101\x4c\111\x5a\105\137\x54\x57\117\x5f\x46\101\x43\124\117\122", "\155\x6f\62\146\x5f\165\163\x65\x72\137\x65\x6d\141\x69\154" => $vj, "\x6d\157\137\x32\x66\141\x63\164\x6f\x72\x5f\165\x73\145\162\x5f\145\155\x61\151\154" => ''));
$vj = $aq->get_user_detail("\x6d\x6f\x32\146\x5f\165\163\x65\x72\x5f\x65\x6d\141\x69\154", $current_user->ID);
$qf = new Two_Factor_Setup();
$qM = json_decode($qf->mo2f_get_userinfo($vj), true);
$lK = $qM["\141\165\164\150\124\171\160\145"];
$this->mo2f_set_status($lK, $current_user, $vj);
$F3 = Mo2fConstants::langTranslate("\x52\x45\107\111\123\124\122\101\124\111\x4f\116\x5f\123\125\103\x43\x45\x53\123") . "\40\74\x61\40\150\x72\x65\146\75\x5c\x22\141\x64\155\151\x6e\x2e\x70\x68\x70\x3f\160\x61\147\x65\75\x6d\151\x6e\x69\117\x72\141\x6e\147\145\x5f\x32\x5f\146\x61\143\x74\157\162\137\x73\145\x74\x74\151\156\147\x73\x26\141\155\160\x3b\155\x6f\62\x66\x5f\164\141\x62\x3d\155\157\x62\x69\154\x65\x5f\x63\x6f\156\x66\x69\x67\165\162\145\134\42\40\x3e" . Mo2fConstants::langTranslate("\103\x4c\111\x43\113\137\110\x45\x52\105") . "\74\x2f\141\x3e\x20" . Mo2fConstants::langTranslate("\x43\x4f\x4e\x46\111\x47\137\x32\x46\101");
update_site_option("\x6d\x6f\62\x66\137\x6d\x65\x73\163\141\x67\x65", $F3);
$this->mo_auth_show_success_message();
goto jqG;
Qt_:
if (MO2F_IS_ONPREM) {
goto gF5;
}
$CG = json_decode($qf->mo_create_user($current_user, $vj), true);
goto N9K;
gF5:
update_user_meta($current_user->ID, "\x63\165\162\x72\145\156\x74\x4d\x65\164\150\x6f\x64", "\x45\155\x61\151\154\40\126\145\x72\151\146\x69\x63\x61\164\x69\x6f\x6e");
$CG["\163\x74\141\164\x75\163"] = "\x53\125\x43\103\x45\x53\x53";
N9K:
if (json_last_error() == JSON_ERROR_NONE) {
goto Vh8;
}
update_site_option("\x6d\157\x32\x66\137\155\x65\163\x73\141\147\x65", Mo2fConstants::langTranslate("\x45\122\122\x4f\122\x5f\122\105\x47\x5f\125\123\x45\x52\x5f\x41\104\115\111\116"));
$this->mo_auth_show_error_message();
goto pAc;
Vh8:
if ($CG["\163\164\141\164\x75\163"] == "\105\122\x52\117\122") {
goto g2V;
}
if (strcasecmp($CG["\x73\x74\141\164\165\163"], "\x53\x55\103\103\x45\123\x53") == 0) {
goto TME;
}
update_site_option("\155\x6f\62\146\x5f\155\145\163\x73\x61\147\x65", Mo2fConstants::langTranslate("\x45\122\x52\117\122\x5f\104\125\122\111\x4e\107\x5f\x55\x53\105\x52\x5f\122\105\107\111\123\x54\x52\101\x54\x49\117\x4e"));
$this->mo_auth_show_error_message();
goto vjo;
TME:
$aq->update_user_details($current_user->ID, array("\155\157\x5f\x32\146\x61\143\x74\x6f\162\x5f\165\163\145\x72\x5f\162\145\x67\151\x73\164\x72\x61\164\151\157\x6e\137\167\x69\x74\150\137\155\151\156\x69\x6f\162\x61\156\x67\x65" => "\x53\x55\103\103\105\123\123", "\155\157\x5f\x32\x66\141\x63\164\x6f\x72\137\165\x73\x65\162\137\162\145\x67\x69\x73\x74\162\141\x74\151\x6f\156\137\163\x74\x61\x74\165\163" => "\115\x4f\137\62\137\x46\x41\x43\x54\x4f\122\x5f\x49\116\x49\x54\111\101\114\111\x5a\x45\137\124\x57\117\x5f\x46\x41\x43\124\x4f\x52", "\155\157\62\x66\137\x75\163\145\162\x5f\145\155\x61\151\154" => $vj, "\155\157\137\x32\x66\141\143\164\x6f\162\137\165\x73\x65\x72\x5f\x65\155\x61\x69\154" => ''));
$vj = $aq->get_user_detail("\x6d\x6f\x32\146\137\165\163\x65\162\137\x65\155\x61\x69\x6c", $current_user->ID);
$F3 = Mo2fConstants::langTranslate("\122\105\x47\x49\123\124\x52\x41\x54\x49\117\116\x5f\123\125\103\x43\x45\123\123") . "\x20\x3c\x61\x20\150\x72\x65\x66\75\x5c\x22\141\144\x6d\x69\x6e\x2e\x70\x68\x70\77\160\x61\x67\145\x3d\x6d\151\x6e\x69\117\x72\x61\156\x67\x65\137\x32\137\x66\141\x63\164\157\x72\x5f\x73\x65\164\164\x69\x6e\x67\163\46\141\x6d\x70\73\155\x6f\62\146\137\164\141\x62\75\155\157\x62\151\x6c\x65\x5f\x63\157\156\x66\x69\x67\165\x72\145\134\x22\40\76\x20" . Mo2fConstants::langTranslate("\103\x4c\111\103\x4b\137\x48\105\122\105") . "\x3c\x2f\141\76\40" . Mo2fConstants::langTranslate("\103\117\x4e\x46\111\x47\x5f\62\106\101");
update_site_option("\155\157\x32\x66\x5f\x6d\x65\x73\x73\141\x67\x65", $F3);
$this->mo_auth_show_success_message();
vjo:
goto GwL;
g2V:
update_site_option("\155\157\x32\x66\137\155\145\x73\163\x61\147\x65", Mo2fConstants::langTranslate($CG["\x6d\x65\163\x73\141\x67\x65"]));
$this->mo_auth_show_error_message();
GwL:
pAc:
jqG:
goto Hi8;
AY8:
update_site_option("\x6d\x6f\x32\x66\x5f\x6d\x65\163\x73\141\x67\145", Mo2fConstants::langTranslate($Kk["\155\x65\163\163\141\147\x65"]));
$this->mo_auth_show_error_message();
Hi8:
pP9:
}
function mo2f_set_status($lK, $current_user, $vj)
{
global $aq;
$qf = new Two_Factor_Setup();
if ($lK == "\x4b\102\101") {
goto JdB;
}
if ($lK == "\x4d\x4f\102\x49\114\x45\40\x41\125\124\x48\x45\116\x54\x49\x43\101\x54\x49\x4f\116" || $lK == "\123\117\x46\x54\40\124\117\x4b\x45\x4e" || $lK == "\120\125\123\x48\x20\x4e\117\x54\111\106\x49\x43\x41\124\x49\117\x4e\x53") {
goto UE4;
}
if ($lK == "\x47\117\117\107\114\x45\40\x41\x55\x54\x48\105\116\124\111\x43\101\x54\117\x52") {
goto wQL;
}
if ($lK == "\123\x4d\123\x20\x41\116\104\40\105\x4d\101\111\114" || $lK == "\x53\x4d\123") {
goto gtO;
}
if ($lK == "\105\x4d\101\x49\x4c") {
goto zXM;
}
$qf->mo2f_update_userinfo($vj, "\117\x55\x54\40\117\x46\x20\102\101\116\x44\x20\105\115\101\x49\114", null, "\101\120\x49\137\x32\x46\101", true);
$aq->update_user_details($current_user->ID, array("\155\157\x32\x66\137\145\x6d\x61\151\154\x5f\166\145\162\x69\146\151\143\141\164\151\157\156\x5f\163\x74\141\164\165\x73" => true));
goto qPx;
JdB:
$aq->update_user_details($current_user->ID, array("\155\157\62\146\x5f\x53\145\143\165\x72\x69\164\171\121\x75\145\163\164\x69\x6f\x6e\163\x5f\143\x6f\156\146\x69\x67\137\163\164\141\x74\x75\163" => true));
goto qPx;
UE4:
$aq->update_user_details($current_user->ID, array("\x6d\x6f\x32\x66\137\x6d\157\142\x69\x6c\145\137\x72\145\x67\151\x73\x74\x72\141\x74\x69\x6f\x6e\x5f\163\164\141\164\x75\x73" => true));
goto qPx;
wQL:
$aq->update_user_details($current_user->ID, array("\x6d\x6f\x32\146\137\x47\x6f\157\147\154\x65\101\x75\164\x68\145\x6e\164\x69\143\141\x74\157\x72\x5f\143\157\156\146\x69\x67\x5f\x73\164\x61\x74\165\x73" => true));
goto qPx;
gtO:
$aq->update_user_details($current_user->ID, array("\155\x6f\x32\x66\x5f\x6f\x74\160\137\162\145\x67\151\163\x74\162\141\x74\151\157\x6e\137\x73\164\x61\x74\x75\x73" => true));
goto qPx;
zXM:
$aq->update_user_details($current_user->ID, array("\155\157\62\x66\137\x65\155\141\151\154\x5f\x76\145\162\151\x66\151\143\141\164\151\157\x6e\137\163\164\x61\164\x75\163" => true));
qPx:
}
}
Function Calls
None |
Stats
MD5 | 0e3180050f2a8c8151523a8b3003fc3e |
Eval Count | 0 |
Decode Time | 56 ms |