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: Radius client (Radius login) * Plugin URI: https://xecurify.c..
Decoded Output download
<?php
/**
* Plugin Name: Radius client (Radius login)
* Plugin URI: https://xecurify.com
* Description: Radius client plugin allows login or authentication with Radius Server
* Version: 2.1.3
* Author: miniOrange
* Author URI: https://xecurify.com
* License: GPL2
*/
require "mo_rad_settings_page.php";
require_once __DIR__ . DIRECTORY_SEPARATOR . "includes" . DIRECTORY_SEPARATOR . "autoload.php";
require "class-customer.php";
class mo_rad_client_class
{
function __construct()
{
add_action("admin_menu", array($this, "mo_radius_menu"));
add_action("admin_init", array($this, "miniorange_radius_save_settings"));
add_action("admin_enqueue_scripts", array($this, "mo_radius_plugin_settings_style"));
add_action("admin_enqueue_scripts", array($this, "mo_radius_plugin_settings_script"));
register_activation_hook(__FILE__, array($this, "mo_radius_activate"));
register_deactivation_hook(__FILE__, array($this, "mo_radius_deactivate"));
remove_action("admin_notices", array($this, "mo_radius_success_message"));
remove_action("admin_notices", array($this, "mo_radius_error_message"));
if (!(get_option("mo_radius_enable_login") == 1)) {
goto Dd;
}
remove_filter("authenticate", "wp_authenticate_username_password", 20, 3);
add_filter("authenticate", array($this, "mo_rad_login"), 20, 3);
Dd:
}
function mo_radius_success_message()
{
$v4 = "error";
$RQ = get_option("message");
echo "<div class='" . $v4 . "'> <p>" . $RQ . "</p></div>";
}
function mo_radius_error_message()
{
$v4 = "updated";
$RQ = get_option("message");
echo "<div class='" . $v4 . "'><p>" . $RQ . "</p></div>";
}
public function mo_radius_activate()
{
update_option("host_name", "https://login.xecurify.com");
}
public function mo_radius_deactivate()
{
delete_option("message");
delete_option("host_name");
delete_option("mo_radius_admin_customer_key");
delete_option("mo_radius_admin_api_key");
delete_option("customer_token");
delete_option("password");
delete_option("message");
delete_option("verify_customer");
delete_option("new_registration");
delete_option("mo_oauth_show_mo_radius_server_message");
delete_option("mo_radius_admin_email");
delete_option("mo_radius_server_name");
delete_option("mo_radius_server_host");
delete_option("mo_radius_server_port");
delete_option("mo_radius_shared_secret");
delete_option("mo_radius_auth_scheme");
delete_option("mo_radius_find_user_by");
delete_option("mo_radius_auto_create_user");
delete_option("mo_radius_enable_login");
}
function mo_radius_menu()
{
$Gk = "Account Setup";
if (!mo_radius_is_customer_registered()) {
goto CM;
}
$Gk = "User Profile";
CM:
$Fi = $Gk;
if (!(isset($_GET["page"]) && $_GET["page"] == "mo_radius_settings")) {
goto YD;
}
$Fi = "Configure Radius";
YD:
if (!(isset($_GET["page"]) && $_GET["page"] == "mo_radius_support")) {
goto DT;
}
$Fi = "Support";
DT:
if (!(isset($_GET["page"]) && $_GET["page"] == "mo_radius_licence")) {
goto bo;
}
$Fi = "Upgrade Plan";
bo:
add_menu_page("miniOrange Radius Client" . __("Configure Radius", "mo_radius_setting"), "miniOrange Radius Client", "administrator", "mo_radius_setting", array($this, "mo_radius_login_options"), plugin_dir_url(__FILE__) . "resource/images/xecurify.png");
add_submenu_page("mo_radius_setting", $Fi . " - miniOrange Radius Client", "Configure Radius", "administrator", "mo_radius_settings", array($this, "mo_radius_login_options"));
add_submenu_page("mo_radius_setting", $Fi . " - miniOrange Radius Client", "Support", "administrator", "mo_radius_support", array($this, "mo_radius_login_options"));
add_submenu_page("mo_radius_setting", $Gk . " - miniOrange Radius Client", $Gk, "administrator", "mo_radius_account_setup", array($this, "mo_radius_login_options"));
remove_submenu_page("mo_radius_setting", "mo_radius_setting");
}
function mo_radius_login_options()
{
mo_radius_register();
}
function mo_radius_plugin_settings_style()
{
wp_enqueue_style("mo_radius_admin_settings_style", plugins_url("resource/css/style_settings.css", __FILE__));
wp_enqueue_style("mo_radius_phone_style", plugins_url("resource/css/phone.css", __FILE__));
}
function mo_radius_plugin_settings_script()
{
wp_enqueue_script("jquery");
wp_enqueue_script("mo_radius_phone_script", plugins_url("resource/js/phone.js", __FILE__));
}
private function mo_radius_show_success_message()
{
remove_action("admin_notices", array($this, "mo_radius_success_message"));
add_action("admin_notices", array($this, "mo_radius_error_message"));
}
private function mo_radius_show_error_message()
{
remove_action("admin_notices", array($this, "mo_radius_error_message"));
add_action("admin_notices", array($this, "mo_radius_success_message"));
}
function miniorange_radius_save_settings()
{
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_oauth_mo_radius_server_message")) {
goto Ce;
}
update_option("mo_oauth_show_mo_radius_server_message", 1);
return;
Ce:
if (!(current_user_can("manage_options") && isset($_POST["option"]))) {
goto UU;
}
if (isset($_SESSION)) {
goto vS;
}
session_start();
vS:
if ($_POST["option"] == "mo_radius_register_customer") {
goto Dh;
}
if (isset($_POST["option"]) and $_POST["option"] == "mo_radius_validate_otp") {
goto G8;
}
if ($_POST["option"] == "mo_radius_verify_customer") {
goto Q6;
}
if ($_POST["option"] == "mo_radius_add_app" && check_admin_referer("mo_radius_configure_app")) {
goto UW;
}
if ($_POST["option"] == "mo_radius_resend_otp") {
goto Ks;
}
if ($_POST["option"] == "mo_radius_change_email") {
goto Yq;
}
if ($_POST["option"] == "mo_radius_validate_test") {
goto U_;
}
if (!(isset($_POST["option"]) and $_POST["option"] == "mo_radius_contact_us")) {
goto u3;
}
$Iy = '';
if ($this->mo_radius_check_empty_or_null($_POST["mo_radius_contact_us_email"]) || $this->mo_radius_check_empty_or_null($_POST["mo_radius_contact_us_query"])) {
goto h6;
}
$Iy = sanitize_text_field($_POST["mo_radius_contact_us_query"]);
$vo = sanitize_text_field($_POST["mo_radius_contact_us_email"]);
$cX = sanitize_text_field($_POST["mo_radius_contact_us_phone"]);
$GW = new Customer();
$og = json_decode($GW->submit_contact_us($vo, $cX, $Iy), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto Ne;
}
if (is_array($og) && array_key_exists("status", $og) && $og["status"] == "ERROR") {
goto vU;
}
if ($og == false) {
goto MR;
}
update_site_option("message", "Thanks for getting in touch! We shall get back to you shortly.");
$this->mo_radius_show_success_message();
goto Ek;
MR:
update_site_option("message", "Your query could not be submitted. Please try again.");
$this->mo_radius_show_error_message();
Ek:
goto NM;
vU:
update_site_option("message", $og["message"]);
$this->mo_radius_show_error_message();
NM:
Ne:
goto ex;
h6:
update_site_option("message", "Please submit your query with email");
$this->mo_radius_show_error_message();
return;
ex:
u3:
goto n9;
U_:
$Rp = stripslashes(sanitize_text_field($_POST["mo_radius_username"]));
$Ni = stripslashes(sanitize_text_field($_POST["mo_radius_password"]));
$XY = $this->mo_radius_validate_login_data($Rp, $Ni);
if ($XY) {
goto LP;
}
update_option("message", "Radius client not configured successfully");
$this->mo_radius_show_error_message();
goto na;
LP:
update_option("message", "Radius client configured successfully");
$this->mo_radius_show_success_message();
na:
n9:
goto Q7;
Yq:
update_option("mo_radius_registration_status", '');
Q7:
goto jV;
Ks:
if (!(mo_radius_is_curl_installed() == 0)) {
goto sN;
}
return $this->mo_radius_show_curl_error();
sN:
$ZY = new Customer();
$Zz = json_decode($ZY->send_otp_token(), true);
if (strcasecmp($Zz["status"], "SUCCESS") == 0) {
goto z4;
}
update_option("message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_option("mo_radius_registration_status", "MO_OTP_DELIVERED_FAILURE");
$this->mo_radius_show_error_message();
goto C8;
z4:
update_option("message", " A one time passcode is sent to " . get_option("mo_radius_admin_email") . " again. Please check if you got the otp and enter it here.");
$_SESSION["mo_radius_transactionId"] = $Zz["txId"];
update_option("mo_radius_registration_status", "MO_OTP_DELIVERED_SUCCESS");
$this->mo_radius_show_success_message();
C8:
jV:
goto iN;
UW:
$k3 = stripslashes(sanitize_text_field($_POST["mo_radius_server_name"]));
$w7 = stripslashes(sanitize_text_field($_POST["mo_radius_server_host"]));
$yp = stripslashes(sanitize_text_field($_POST["mo_radius_server_port"]));
$oC = stripslashes(sanitize_text_field($_POST["mo_radius_shared_secret"]));
$wA = stripslashes(sanitize_text_field($_POST["mo_radius_auth_scheme"]));
$Wv = stripslashes(sanitize_text_field($_POST["mo_radius_find_user_by"]));
$xu = stripslashes(sanitize_text_field($_POST["mo_radius_auto_create_user"]));
update_option("mo_radius_server_name", $k3);
update_option("mo_radius_server_host", $w7);
update_option("mo_radius_server_port", $yp);
update_option("mo_radius_shared_secret", $oC);
update_option("mo_radius_auth_scheme", $wA);
update_option("mo_radius_find_user_by", $Wv);
update_option("mo_radius_auto_create_user", $xu);
update_option("mo_radius_enable_login", isset($_POST["mo_radius_enable_login"]) ? $_POST["mo_radius_enable_login"] : 0);
update_option("message", "Your settings were saved");
$this->mo_radius_show_success_message();
iN:
goto Ng;
Q6:
if (!(mo_radius_is_curl_installed() == 0)) {
goto Ef;
}
return $this->mo_radius_show_curl_error();
Ef:
$vo = '';
$Tc = '';
if (empty($_POST["email"]) || empty($_POST["password"])) {
goto cD;
}
$vo = sanitize_email($_POST["email"]);
$Tc = sanitize_text_field($_POST["password"]);
goto fG;
cD:
update_option("message", "All the fields are required. Please enter valid entries.");
$this->mo_radius_show_error_message();
return;
fG:
update_option("mo_radius_admin_email", $vo);
update_option("password", $Tc);
$ZY = new Customer();
$Zz = $ZY->get_customer_key();
$rV = json_decode($Zz, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto Tb;
}
update_option("message", "Invalid username or password. Please try again.");
$this->mo_radius_show_error_message();
goto Xa;
Tb:
update_option("mo_radius_admin_customer_key", $rV["id"]);
update_option("mo_radius_admin_api_key", $rV["apiKey"]);
update_option("customer_token", $rV["token"]);
delete_option("password");
update_option("message", "Customer retrieved successfully");
delete_option("verify_customer");
$this->mo_radius_show_success_message();
Xa:
Ng:
goto js;
G8:
if (!(mo_radius_is_curl_installed() == 0)) {
goto tW;
}
return $this->mo_radius_show_curl_error();
tW:
$Co = '';
if (empty($_POST["mo_radius_otp_token"])) {
goto vA;
}
$Co = sanitize_text_field($_POST["mo_radius_otp_token"]);
goto co;
vA:
update_option("message", "Please enter a value in OTP field.");
update_option("mo_radius_registration_status", "MO_OTP_VALIDATION_FAILURE");
$this->mo_radius_show_error_message();
return;
co:
$ZY = new Customer();
$Zz = json_decode($ZY->validate_otp_token($_SESSION["mo_radius_transactionId"], $Co), true);
if (strcasecmp($Zz["status"], "SUCCESS") == 0) {
goto Lj;
}
update_option("message", "Invalid one time passcode. Please enter a valid OTP.");
update_option("mo_radius_registration_status", "MO_OTP_VALIDATION_FAILURE");
$this->mo_radius_show_error_message();
goto lH;
Lj:
$this->create_customer();
lH:
js:
goto lU;
Dh:
$vo = '';
$Tc = '';
$Zl = '';
$TH = '';
$Q0 = '';
$h_ = '';
if (empty($_POST["email"]) || empty($_POST["password"]) || empty($_POST["confirmPassword"])) {
goto wS;
}
if (strlen($_POST["password"]) < 8 || strlen($_POST["confirmPassword"]) < 8) {
goto n2;
}
$vo = sanitize_email($_POST["email"]);
$Tc = sanitize_text_field($_POST["password"]);
$Zl = sanitize_text_field($_POST["confirmPassword"]);
$TH = sanitize_text_field($_POST["fname"]);
$Q0 = sanitize_text_field($_POST["lname"]);
$h_ = sanitize_text_field($_POST["company"]);
goto Cw;
n2:
update_option("message", "Choose a password with minimum length 8.");
$this->mo_radius_show_error_message();
return;
Cw:
goto YK;
wS:
update_option("message", "All the fields are required. Please enter valid entries.");
$this->mo_radius_show_error_message();
return;
YK:
update_option("mo_radius_admin_email", $vo);
update_option("mo_radius_admin_fname", $TH);
update_option("mo_radius_admin_lname", $Q0);
update_option("mo_radius_admin_company", $h_);
if (!(mo_radius_is_curl_installed() == 0)) {
goto aB;
}
return $this->mo_radius_show_curl_error();
aB:
if (strcmp($Tc, $Zl) == 0) {
goto HJ;
}
update_option("message", "Passwords do not match.");
delete_option("verify_customer");
$this->mo_radius_show_error_message();
goto YW;
HJ:
update_option("password", $Tc);
$ZY = new Customer();
$Zz = json_decode($ZY->check_customer(), true);
if (strcasecmp($Zz["status"], "CUSTOMER_NOT_FOUND") == 0) {
goto mx;
}
$this->mo_radius_get_current_customer();
goto iD;
mx:
$Zz = json_decode($ZY->send_otp_token(), true);
if (strcasecmp($Zz["status"], "SUCCESS") == 0) {
goto Qa;
}
update_option("message", "There was an error in sending email. Please click on Resend OTP to try again.");
update_option("mo_radius_registration_status", "MO_OTP_DELIVERED_FAILURE");
$this->mo_radius_show_error_message();
goto OX;
Qa:
update_option("message", " A one time passcode is sent to " . get_option("mo_radius_admin_email") . ". Please enter the OTP here to verify your email.");
$_SESSION["mo_radius_transactionId"] = $Zz["txId"];
update_option("mo_radius_registration_status", "MO_OTP_DELIVERED_SUCCESS");
$this->mo_radius_show_success_message();
OX:
iD:
YW:
lU:
UU:
}
function mo_rad_login($user, $F6, $Tc)
{
if (!(empty($F6) || empty($Tc))) {
goto kq;
}
$N5 = new WP_Error();
if (!empty($F6)) {
goto Gn;
}
$N5->add("empty_username", __("<strong>ERROR</strong>: Email field is empty."));
Gn:
if (!empty($Tc)) {
goto Z3;
}
$N5->add("empty_password", __("<strong>ERROR</strong>: Password field is empty."));
Z3:
return $N5;
kq:
$BK = wp_authenticate_username_password($user, $F6, $Tc);
if (is_wp_error($BK)) {
goto vf;
}
return $BK;
vf:
$XY = $this->mo_radius_validate_login_data($F6, $Tc);
$user = false;
if (!($XY === true)) {
goto um;
}
$Wv = get_option("mo_radius_find_user_by");
if (!($Wv == "Both")) {
goto k0;
}
$vO = get_user_by("login", $F6);
if ($vO) {
goto YX;
}
$vO = get_user_by("email", $F6);
YX:
return $vO;
k0:
$zb = $Wv . "_exists";
$X4 = get_option("mo_radius_find_user_by") == "username" ? "login" : get_option("mo_radius_find_user_by");
if (!$zb($F6)) {
goto Ru;
}
$user = get_user_by($X4, $F6);
Ru:
if (!(get_option("mo_radius_auto_create_user") == "allowed" && !$user)) {
goto fB;
}
$ch = wp_generate_password(10, false);
if (is_email($F6)) {
goto yU;
}
$U4 = wp_create_user($F6, $ch);
goto ke;
yU:
$U4 = wp_create_user($F6, $ch, $F6);
ke:
$user = get_user_by("login", $F6);
fB:
um:
return $user;
}
function mo_radius_validate_login_data($F6, $Tc)
{
$wA = get_option("mo_radius_auth_scheme");
$XY = false;
$w7 = get_option("mo_radius_server_host") ? get_option("mo_radius_server_host") : '';
$yp = get_option("mo_radius_server_port") ? get_option("mo_radius_server_port") : '';
$oC = get_option("mo_radius_shared_secret") ? get_option("mo_radius_shared_secret") : '';
$Z_ = new \Dapphp\Radius\Radius();
$Z_->setServer($w7)->setSecret($oC)->setAuthenticationPort($yp)->setNasIpAddress($_SERVER["SERVER_ADDR"])->setAttribute(32, "miniorange-wordpress");
$XY = $Z_->accessRequest($F6, $Tc);
return $XY;
}
function mo_radius_get_current_customer()
{
$ZY = new Customer();
$Zz = $ZY->get_customer_key();
$rV = json_decode($Zz, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto H5;
}
update_option("message", "You already have an account with xecurify. Please enter a valid password.");
update_option("verify_customer", "true");
delete_option("new_registration");
$this->mo_radius_show_error_message();
goto WZ;
H5:
update_option("mo_radius_admin_customer_key", $rV["id"]);
update_option("mo_radius_admin_api_key", $rV["apiKey"]);
update_option("customer_token", $rV["token"]);
update_option("password", '');
update_option("message", "Customer retrieved successfully");
delete_option("verify_customer");
delete_option("new_registration");
$this->mo_radius_show_success_message();
WZ:
}
function create_customer()
{
$ZY = new Customer();
$rV = json_decode($ZY->create_customer(), true);
if (strcasecmp($rV["status"], "CUSTOMER_USERNAME_ALREADY_EXISTS") == 0) {
goto IW;
}
if (!(strcasecmp($rV["status"], "SUCCESS") == 0)) {
goto wB;
}
update_option("mo_radius_admin_customer_key", $rV["id"]);
update_option("mo_radius_admin_api_key", $rV["apiKey"]);
update_option("customer_token", $rV["token"]);
update_option("password", '');
update_option("message", "Registered successfully.");
update_option("mo_radius_registration_status", "MO_OAUTH_REGISTRATION_COMPLETE");
update_option("mo_radius_new_customer", 1);
delete_option("verify_customer");
delete_option("new_registration");
$this->mo_radius_show_success_message();
wB:
goto Eg;
IW:
$this->mo_radius_get_current_customer();
delete_option("mo_radius_new_customer");
Eg:
}
public function mo_radius_check_empty_or_null($ij)
{
if (!(!isset($ij) || $ij == '')) {
goto ah;
}
return true;
ah:
return false;
}
}
function mo_radius_is_curl_installed()
{
if (in_array("curl", get_loaded_extensions())) {
goto n_;
}
return 0;
goto zv;
n_:
return 1;
zv:
}
new mo_rad_client_class();
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: Radius client (Radius login)
* Plugin URI: https://xecurify.com
* Description: Radius client plugin allows login or authentication with Radius Server
* Version: 2.1.3
* Author: miniOrange
* Author URI: https://xecurify.com
* License: GPL2
*/
require "\x6d\x6f\x5f\162\141\144\x5f\x73\145\x74\x74\x69\x6e\x67\x73\137\160\x61\147\145\56\x70\x68\x70";
require_once __DIR__ . DIRECTORY_SEPARATOR . "\151\156\x63\154\x75\x64\145\x73" . DIRECTORY_SEPARATOR . "\141\x75\164\157\154\x6f\141\144\56\x70\x68\x70";
require "\x63\x6c\141\x73\x73\55\x63\165\x73\164\x6f\x6d\145\x72\56\x70\150\160";
class mo_rad_client_class
{
function __construct()
{
add_action("\x61\x64\155\151\156\x5f\155\145\156\x75", array($this, "\x6d\157\x5f\162\141\144\151\165\x73\x5f\155\145\156\x75"));
add_action("\141\144\x6d\x69\156\x5f\151\156\151\x74", array($this, "\x6d\x69\x6e\x69\157\x72\141\156\x67\145\137\162\x61\144\151\x75\x73\137\x73\x61\x76\x65\x5f\163\145\x74\x74\x69\x6e\x67\163"));
add_action("\x61\x64\155\151\x6e\x5f\145\156\161\x75\145\x75\145\137\x73\143\162\151\160\164\x73", array($this, "\x6d\157\x5f\162\x61\144\x69\x75\163\137\x70\x6c\165\147\x69\x6e\x5f\x73\x65\164\164\x69\156\147\163\137\163\164\x79\154\145"));
add_action("\x61\144\x6d\x69\x6e\x5f\145\156\161\x75\145\x75\145\x5f\x73\143\162\x69\x70\164\163", array($this, "\x6d\x6f\x5f\162\141\144\x69\165\x73\x5f\160\154\x75\x67\x69\156\x5f\x73\145\x74\x74\151\x6e\x67\163\x5f\x73\143\x72\x69\160\x74"));
register_activation_hook(__FILE__, array($this, "\155\x6f\x5f\162\141\144\x69\165\x73\x5f\x61\143\x74\x69\x76\141\x74\x65"));
register_deactivation_hook(__FILE__, array($this, "\x6d\157\x5f\162\x61\144\x69\x75\163\x5f\x64\x65\x61\x63\164\x69\x76\141\164\x65"));
remove_action("\141\144\155\x69\156\x5f\x6e\x6f\164\151\x63\145\163", array($this, "\155\157\137\162\x61\144\x69\x75\x73\137\x73\165\143\143\145\x73\x73\x5f\x6d\145\x73\x73\x61\x67\145"));
remove_action("\x61\x64\x6d\151\156\x5f\x6e\x6f\164\151\143\x65\163", array($this, "\x6d\157\x5f\x72\x61\x64\151\165\163\137\145\x72\162\x6f\x72\137\155\145\x73\163\x61\147\x65"));
if (!(get_option("\x6d\157\137\x72\141\x64\151\165\x73\137\x65\156\141\142\x6c\x65\137\x6c\x6f\147\151\x6e") == 1)) {
goto Dd;
}
remove_filter("\141\165\x74\x68\x65\156\164\151\x63\141\164\145", "\x77\x70\x5f\141\x75\164\150\x65\156\164\151\x63\141\164\x65\137\165\x73\145\x72\156\141\x6d\x65\137\x70\141\x73\x73\167\x6f\x72\x64", 20, 3);
add_filter("\141\165\164\x68\x65\x6e\164\151\143\x61\164\x65", array($this, "\x6d\157\x5f\x72\x61\x64\x5f\x6c\x6f\x67\151\156"), 20, 3);
Dd:
}
function mo_radius_success_message()
{
$v4 = "\x65\162\x72\x6f\162";
$RQ = get_option("\x6d\145\163\x73\141\x67\x65");
echo "\74\144\151\166\x20\x63\154\x61\163\163\x3d\x27" . $v4 . "\47\x3e\40\x3c\x70\76" . $RQ . "\x3c\57\160\x3e\74\57\144\x69\x76\x3e";
}
function mo_radius_error_message()
{
$v4 = "\165\160\144\x61\164\145\x64";
$RQ = get_option("\x6d\145\x73\163\141\x67\x65");
echo "\x3c\144\151\x76\x20\x63\154\x61\x73\163\75\47" . $v4 . "\x27\x3e\x3c\x70\76" . $RQ . "\74\x2f\160\76\x3c\57\144\x69\166\x3e";
}
public function mo_radius_activate()
{
update_option("\x68\x6f\163\x74\137\x6e\x61\x6d\x65", "\x68\164\x74\x70\163\72\57\57\154\x6f\x67\151\x6e\x2e\x78\145\x63\x75\x72\x69\x66\171\x2e\143\x6f\x6d");
}
public function mo_radius_deactivate()
{
delete_option("\x6d\145\163\x73\x61\x67\x65");
delete_option("\150\x6f\163\164\137\x6e\x61\155\145");
delete_option("\x6d\157\x5f\162\141\144\151\x75\x73\x5f\141\144\155\151\x6e\x5f\x63\x75\x73\x74\x6f\x6d\x65\162\x5f\x6b\x65\x79");
delete_option("\x6d\157\x5f\162\x61\144\x69\165\163\137\x61\x64\155\x69\x6e\137\141\x70\151\137\153\x65\x79");
delete_option("\143\165\163\164\x6f\155\145\162\137\x74\157\x6b\145\x6e");
delete_option("\x70\x61\163\163\x77\x6f\x72\x64");
delete_option("\x6d\145\163\163\x61\x67\145");
delete_option("\x76\x65\162\151\x66\171\137\x63\165\x73\164\x6f\x6d\x65\x72");
delete_option("\x6e\145\167\137\x72\x65\147\x69\x73\164\x72\x61\164\151\x6f\x6e");
delete_option("\x6d\157\137\x6f\141\x75\164\150\x5f\163\x68\157\x77\x5f\155\157\x5f\162\141\144\151\165\x73\137\x73\x65\x72\166\145\162\137\155\145\163\163\x61\x67\x65");
delete_option("\x6d\x6f\x5f\162\x61\x64\151\165\163\x5f\141\144\x6d\x69\156\137\145\x6d\x61\151\x6c");
delete_option("\x6d\x6f\137\162\141\144\151\x75\163\x5f\x73\x65\162\166\145\x72\x5f\156\x61\155\145");
delete_option("\x6d\157\137\x72\x61\144\x69\165\x73\x5f\163\x65\162\x76\145\162\x5f\150\x6f\x73\164");
delete_option("\x6d\157\x5f\x72\x61\144\x69\x75\163\137\x73\x65\x72\x76\x65\x72\137\160\157\x72\x74");
delete_option("\155\x6f\137\x72\x61\x64\x69\x75\x73\x5f\163\150\141\162\x65\x64\137\163\x65\143\162\145\x74");
delete_option("\155\x6f\x5f\162\x61\x64\151\165\163\x5f\x61\165\x74\150\137\x73\x63\150\x65\x6d\x65");
delete_option("\x6d\x6f\137\162\x61\144\151\x75\x73\137\x66\x69\x6e\144\x5f\x75\163\145\162\137\142\171");
delete_option("\155\x6f\137\162\x61\144\151\x75\163\x5f\141\x75\164\157\x5f\143\162\x65\141\x74\x65\137\x75\163\x65\x72");
delete_option("\155\157\x5f\162\x61\144\151\165\163\137\145\156\141\x62\x6c\x65\x5f\154\157\147\x69\156");
}
function mo_radius_menu()
{
$Gk = "\x41\143\143\157\x75\156\x74\x20\x53\x65\164\165\160";
if (!mo_radius_is_customer_registered()) {
goto CM;
}
$Gk = "\125\163\x65\162\40\120\x72\x6f\x66\151\154\145";
CM:
$Fi = $Gk;
if (!(isset($_GET["\x70\141\x67\145"]) && $_GET["\160\x61\147\x65"] == "\155\x6f\137\162\141\144\x69\165\163\x5f\x73\145\x74\164\x69\x6e\147\163")) {
goto YD;
}
$Fi = "\103\157\x6e\x66\151\147\165\x72\x65\x20\x52\x61\144\151\165\x73";
YD:
if (!(isset($_GET["\x70\141\147\x65"]) && $_GET["\160\141\x67\x65"] == "\155\157\x5f\162\x61\x64\151\x75\163\137\x73\x75\160\160\x6f\x72\x74")) {
goto DT;
}
$Fi = "\123\165\160\160\x6f\x72\x74";
DT:
if (!(isset($_GET["\x70\x61\x67\x65"]) && $_GET["\x70\141\147\145"] == "\x6d\x6f\x5f\x72\141\x64\151\x75\163\137\x6c\x69\143\x65\156\x63\145")) {
goto bo;
}
$Fi = "\x55\160\x67\x72\141\144\145\40\x50\154\141\156";
bo:
add_menu_page("\x6d\151\x6e\x69\117\162\141\156\147\x65\40\122\141\144\151\165\x73\40\x43\154\151\x65\156\164" . __("\103\x6f\x6e\146\x69\147\165\x72\x65\x20\122\x61\x64\151\165\163", "\155\x6f\137\162\x61\x64\x69\x75\x73\x5f\163\x65\164\x74\151\x6e\147"), "\x6d\x69\156\151\117\x72\141\156\147\x65\x20\122\141\x64\151\165\x73\40\103\154\x69\x65\x6e\x74", "\x61\x64\155\x69\156\x69\x73\x74\162\141\x74\157\x72", "\x6d\157\137\x72\141\144\151\x75\x73\137\163\145\164\x74\151\156\x67", array($this, "\x6d\x6f\x5f\x72\141\144\x69\x75\163\137\x6c\x6f\147\151\156\x5f\x6f\x70\x74\151\157\x6e\x73"), plugin_dir_url(__FILE__) . "\x72\145\x73\x6f\165\162\x63\145\x2f\151\x6d\x61\x67\145\x73\x2f\170\145\143\165\162\151\146\171\56\x70\x6e\147");
add_submenu_page("\155\157\137\162\141\144\151\165\x73\x5f\x73\x65\164\164\x69\x6e\147", $Fi . "\x20\55\x20\x6d\x69\156\x69\x4f\162\141\156\147\x65\x20\122\x61\144\x69\165\163\x20\x43\154\x69\x65\156\x74", "\x43\x6f\x6e\x66\151\x67\x75\162\145\x20\122\141\144\x69\165\163", "\x61\144\155\151\x6e\151\163\x74\x72\141\x74\157\x72", "\155\157\137\162\x61\144\x69\x75\163\137\163\145\x74\164\x69\156\147\163", array($this, "\155\x6f\x5f\x72\141\x64\151\x75\x73\x5f\x6c\157\147\x69\156\x5f\x6f\x70\164\x69\157\x6e\163"));
add_submenu_page("\x6d\157\137\162\141\144\x69\x75\163\x5f\163\x65\x74\164\x69\x6e\x67", $Fi . "\x20\55\40\x6d\151\x6e\x69\x4f\x72\x61\156\x67\x65\x20\x52\x61\144\151\165\x73\x20\103\154\151\x65\x6e\164", "\123\x75\160\x70\x6f\x72\164", "\141\144\x6d\x69\x6e\x69\163\164\162\141\x74\x6f\162", "\155\157\x5f\x72\141\x64\151\x75\163\x5f\163\165\160\x70\x6f\x72\x74", array($this, "\155\x6f\x5f\162\141\144\151\165\x73\137\x6c\x6f\147\x69\x6e\137\157\160\x74\x69\157\x6e\x73"));
add_submenu_page("\155\157\137\x72\x61\144\x69\165\163\x5f\x73\x65\x74\164\151\x6e\147", $Gk . "\40\x2d\x20\155\x69\156\x69\117\x72\141\156\x67\145\40\122\x61\144\x69\x75\x73\x20\x43\154\151\145\156\164", $Gk, "\141\x64\x6d\151\156\x69\x73\164\162\x61\164\157\x72", "\155\x6f\x5f\x72\x61\x64\x69\x75\x73\x5f\141\143\x63\157\165\156\164\x5f\x73\x65\164\x75\x70", array($this, "\x6d\157\x5f\x72\x61\144\x69\x75\x73\137\154\157\x67\151\x6e\x5f\157\x70\164\x69\157\x6e\x73"));
remove_submenu_page("\x6d\x6f\137\162\141\144\151\165\x73\x5f\163\x65\x74\x74\151\156\147", "\155\157\x5f\x72\141\144\151\165\163\137\163\x65\x74\x74\151\x6e\x67");
}
function mo_radius_login_options()
{
mo_radius_register();
}
function mo_radius_plugin_settings_style()
{
wp_enqueue_style("\155\157\137\162\x61\x64\151\x75\x73\x5f\x61\x64\x6d\x69\x6e\137\163\x65\x74\164\x69\156\147\163\x5f\163\164\x79\x6c\145", plugins_url("\162\145\163\157\165\x72\143\145\57\143\x73\x73\57\163\x74\171\x6c\145\x5f\x73\145\164\164\151\156\x67\x73\x2e\143\x73\x73", __FILE__));
wp_enqueue_style("\155\x6f\137\162\141\x64\x69\165\163\x5f\160\150\157\x6e\x65\x5f\163\x74\171\x6c\145", plugins_url("\x72\145\x73\x6f\165\162\143\145\57\x63\x73\x73\x2f\160\150\157\x6e\x65\56\x63\163\163", __FILE__));
}
function mo_radius_plugin_settings_script()
{
wp_enqueue_script("\x6a\x71\x75\x65\162\171");
wp_enqueue_script("\155\x6f\137\x72\141\x64\151\165\x73\x5f\160\150\157\156\x65\x5f\163\143\x72\x69\x70\x74", plugins_url("\x72\145\x73\157\165\162\x63\x65\57\x6a\163\x2f\160\150\157\x6e\145\x2e\152\163", __FILE__));
}
private function mo_radius_show_success_message()
{
remove_action("\141\144\x6d\151\156\137\x6e\157\x74\x69\143\x65\x73", array($this, "\x6d\157\x5f\162\141\x64\x69\x75\163\x5f\x73\x75\x63\x63\x65\x73\x73\x5f\155\145\163\x73\x61\x67\x65"));
add_action("\x61\x64\x6d\x69\156\x5f\x6e\157\164\151\x63\145\x73", array($this, "\155\157\x5f\x72\141\144\x69\165\163\x5f\145\x72\162\157\x72\137\155\x65\163\x73\141\147\x65"));
}
private function mo_radius_show_error_message()
{
remove_action("\x61\144\155\151\156\x5f\156\x6f\x74\x69\143\145\x73", array($this, "\x6d\x6f\137\x72\x61\144\151\165\163\x5f\x65\162\x72\157\162\137\155\145\163\163\141\x67\x65"));
add_action("\141\144\x6d\x69\x6e\x5f\x6e\x6f\164\x69\x63\145\x73", array($this, "\x6d\157\137\x72\x61\x64\151\x75\x73\137\x73\165\x63\x63\145\x73\163\137\155\145\x73\163\141\147\x65"));
}
function miniorange_radius_save_settings()
{
if (!(isset($_POST["\x6f\160\x74\x69\x6f\x6e"]) and $_POST["\157\x70\x74\x69\157\x6e"] == "\155\x6f\x5f\157\x61\x75\164\x68\x5f\155\x6f\x5f\162\x61\144\151\x75\163\x5f\x73\145\162\166\x65\x72\x5f\x6d\145\163\x73\x61\x67\x65")) {
goto Ce;
}
update_option("\x6d\157\x5f\157\x61\165\x74\x68\137\163\x68\x6f\167\x5f\x6d\x6f\x5f\162\141\x64\x69\165\163\x5f\163\145\162\x76\145\x72\137\x6d\145\x73\163\x61\x67\x65", 1);
return;
Ce:
if (!(current_user_can("\x6d\x61\156\x61\x67\x65\137\x6f\x70\x74\151\157\156\x73") && isset($_POST["\x6f\160\164\151\x6f\156"]))) {
goto UU;
}
if (isset($_SESSION)) {
goto vS;
}
session_start();
vS:
if ($_POST["\x6f\x70\x74\x69\x6f\x6e"] == "\x6d\157\137\x72\141\144\x69\x75\163\x5f\x72\x65\147\x69\x73\164\x65\162\x5f\x63\165\163\164\x6f\155\145\x72") {
goto Dh;
}
if (isset($_POST["\x6f\x70\164\151\x6f\156"]) and $_POST["\157\x70\164\151\x6f\156"] == "\155\157\x5f\x72\x61\144\151\x75\163\x5f\x76\141\154\151\x64\141\164\145\137\x6f\164\160") {
goto G8;
}
if ($_POST["\x6f\x70\x74\x69\x6f\x6e"] == "\x6d\157\x5f\x72\x61\x64\151\165\163\137\166\145\162\x69\x66\x79\137\143\165\x73\164\x6f\x6d\145\162") {
goto Q6;
}
if ($_POST["\157\x70\x74\151\x6f\x6e"] == "\x6d\x6f\137\162\x61\144\x69\x75\163\x5f\x61\144\144\137\x61\160\160" && check_admin_referer("\x6d\157\x5f\162\x61\144\151\x75\163\x5f\143\157\156\x66\151\147\165\x72\x65\137\141\x70\x70")) {
goto UW;
}
if ($_POST["\157\160\x74\151\x6f\x6e"] == "\x6d\x6f\x5f\162\141\144\x69\165\163\137\162\x65\163\145\x6e\x64\137\157\164\x70") {
goto Ks;
}
if ($_POST["\157\x70\164\x69\x6f\x6e"] == "\x6d\x6f\x5f\x72\x61\x64\151\165\163\x5f\143\150\x61\x6e\x67\x65\x5f\145\155\141\x69\154") {
goto Yq;
}
if ($_POST["\x6f\x70\x74\151\x6f\x6e"] == "\x6d\x6f\x5f\x72\x61\x64\x69\x75\x73\137\x76\141\x6c\x69\144\141\x74\x65\137\x74\145\163\x74") {
goto U_;
}
if (!(isset($_POST["\x6f\160\x74\151\157\x6e"]) and $_POST["\157\x70\x74\x69\x6f\x6e"] == "\x6d\x6f\x5f\x72\x61\144\151\165\x73\x5f\x63\x6f\156\x74\x61\143\164\137\x75\x73")) {
goto u3;
}
$Iy = '';
if ($this->mo_radius_check_empty_or_null($_POST["\x6d\157\137\x72\141\144\x69\165\163\137\x63\x6f\156\x74\141\x63\164\x5f\x75\163\x5f\145\x6d\141\151\154"]) || $this->mo_radius_check_empty_or_null($_POST["\155\157\137\x72\x61\x64\x69\x75\x73\137\143\x6f\x6e\x74\x61\143\164\137\165\x73\x5f\x71\x75\145\x72\x79"])) {
goto h6;
}
$Iy = sanitize_text_field($_POST["\155\157\137\162\141\144\x69\165\x73\137\x63\x6f\x6e\x74\x61\143\164\137\x75\x73\137\161\x75\145\x72\171"]);
$vo = sanitize_text_field($_POST["\155\x6f\x5f\x72\141\x64\151\x75\x73\137\143\x6f\x6e\164\x61\143\x74\137\x75\x73\137\145\155\141\151\x6c"]);
$cX = sanitize_text_field($_POST["\x6d\157\137\x72\x61\144\151\165\163\137\x63\157\x6e\164\x61\143\x74\x5f\x75\x73\137\160\x68\x6f\156\x65"]);
$GW = new Customer();
$og = json_decode($GW->submit_contact_us($vo, $cX, $Iy), true);
if (!(json_last_error() == JSON_ERROR_NONE)) {
goto Ne;
}
if (is_array($og) && array_key_exists("\x73\164\x61\x74\x75\x73", $og) && $og["\x73\164\141\164\165\x73"] == "\105\x52\x52\x4f\x52") {
goto vU;
}
if ($og == false) {
goto MR;
}
update_site_option("\155\x65\x73\163\x61\147\145", "\124\x68\141\x6e\x6b\163\40\146\x6f\162\x20\147\145\164\164\151\156\147\x20\x69\156\x20\164\x6f\x75\143\150\x21\40\x57\x65\40\x73\150\x61\x6c\154\x20\147\145\x74\40\x62\141\x63\153\40\x74\157\x20\171\x6f\x75\x20\163\150\157\162\x74\154\x79\x2e");
$this->mo_radius_show_success_message();
goto Ek;
MR:
update_site_option("\x6d\145\x73\x73\x61\x67\x65", "\131\x6f\x75\162\40\x71\165\145\x72\x79\x20\x63\x6f\165\154\x64\x20\156\157\164\40\x62\145\x20\x73\165\x62\x6d\151\164\164\145\144\x2e\x20\120\154\x65\141\x73\145\x20\x74\x72\x79\40\141\x67\x61\x69\x6e\x2e");
$this->mo_radius_show_error_message();
Ek:
goto NM;
vU:
update_site_option("\155\145\163\163\141\147\x65", $og["\155\x65\163\x73\141\x67\x65"]);
$this->mo_radius_show_error_message();
NM:
Ne:
goto ex;
h6:
update_site_option("\155\145\x73\x73\x61\x67\x65", "\120\x6c\145\x61\x73\x65\40\x73\x75\142\x6d\x69\x74\x20\x79\157\x75\x72\40\161\x75\145\x72\x79\x20\167\x69\164\x68\x20\145\x6d\141\x69\x6c");
$this->mo_radius_show_error_message();
return;
ex:
u3:
goto n9;
U_:
$Rp = stripslashes(sanitize_text_field($_POST["\155\x6f\137\x72\x61\x64\x69\165\x73\x5f\x75\163\145\162\x6e\141\x6d\145"]));
$Ni = stripslashes(sanitize_text_field($_POST["\155\x6f\x5f\162\141\x64\151\x75\x73\x5f\x70\141\163\163\x77\x6f\x72\144"]));
$XY = $this->mo_radius_validate_login_data($Rp, $Ni);
if ($XY) {
goto LP;
}
update_option("\x6d\145\x73\163\x61\147\x65", "\x52\x61\144\151\x75\x73\40\x63\x6c\151\x65\156\x74\40\156\157\x74\x20\x63\x6f\156\x66\x69\147\x75\162\145\x64\x20\x73\165\x63\x63\x65\x73\x73\146\165\x6c\154\x79");
$this->mo_radius_show_error_message();
goto na;
LP:
update_option("\x6d\x65\163\x73\141\147\x65", "\122\x61\x64\x69\x75\163\x20\143\x6c\151\x65\156\x74\40\143\x6f\x6e\146\x69\x67\x75\162\x65\x64\40\x73\165\143\x63\145\x73\x73\x66\x75\154\x6c\x79");
$this->mo_radius_show_success_message();
na:
n9:
goto Q7;
Yq:
update_option("\155\157\x5f\162\x61\x64\151\x75\x73\137\x72\x65\x67\151\x73\x74\x72\x61\164\x69\157\156\137\163\164\x61\x74\165\163", '');
Q7:
goto jV;
Ks:
if (!(mo_radius_is_curl_installed() == 0)) {
goto sN;
}
return $this->mo_radius_show_curl_error();
sN:
$ZY = new Customer();
$Zz = json_decode($ZY->send_otp_token(), true);
if (strcasecmp($Zz["\x73\x74\x61\164\165\163"], "\x53\125\x43\103\x45\123\x53") == 0) {
goto z4;
}
update_option("\155\x65\x73\x73\141\x67\x65", "\124\x68\145\162\145\40\x77\141\x73\40\x61\x6e\x20\145\x72\162\157\x72\40\x69\x6e\x20\163\145\x6e\144\x69\156\147\x20\x65\x6d\x61\x69\154\x2e\40\x50\x6c\x65\x61\163\x65\x20\x63\x6c\151\143\x6b\40\x6f\x6e\x20\x52\x65\x73\x65\156\144\x20\117\x54\x50\40\x74\157\x20\x74\x72\171\x20\x61\147\x61\151\156\x2e");
update_option("\x6d\157\x5f\x72\x61\144\x69\165\163\137\x72\x65\147\151\163\x74\162\x61\x74\151\157\156\137\163\164\141\x74\165\x73", "\115\x4f\x5f\x4f\124\x50\137\x44\x45\x4c\111\126\x45\x52\x45\104\137\x46\x41\111\x4c\125\x52\105");
$this->mo_radius_show_error_message();
goto C8;
z4:
update_option("\x6d\145\163\x73\x61\x67\145", "\40\x41\x20\x6f\x6e\x65\x20\x74\151\x6d\145\40\x70\141\x73\x73\x63\157\x64\145\x20\x69\163\40\x73\145\x6e\x74\40\x74\x6f\40" . get_option("\x6d\157\137\162\141\x64\x69\x75\163\x5f\x61\x64\155\151\156\137\145\x6d\141\x69\x6c") . "\x20\x61\x67\141\151\x6e\56\40\x50\154\145\x61\163\145\x20\x63\150\145\x63\x6b\x20\151\146\x20\171\157\165\x20\147\157\x74\x20\x74\x68\x65\x20\x6f\164\x70\x20\x61\x6e\x64\x20\x65\156\164\x65\162\x20\151\164\40\150\145\x72\145\56");
$_SESSION["\155\x6f\137\162\141\144\x69\x75\x73\x5f\164\x72\141\x6e\x73\x61\143\x74\151\x6f\x6e\111\144"] = $Zz["\x74\170\x49\x64"];
update_option("\x6d\157\137\x72\x61\144\151\x75\163\137\x72\145\x67\151\163\164\x72\141\x74\x69\x6f\156\137\x73\x74\x61\164\165\x73", "\x4d\x4f\x5f\x4f\x54\x50\137\104\105\x4c\111\x56\x45\122\x45\104\x5f\x53\x55\x43\103\x45\123\x53");
$this->mo_radius_show_success_message();
C8:
jV:
goto iN;
UW:
$k3 = stripslashes(sanitize_text_field($_POST["\155\157\x5f\162\141\144\151\x75\x73\x5f\163\x65\x72\x76\145\162\x5f\156\x61\x6d\x65"]));
$w7 = stripslashes(sanitize_text_field($_POST["\155\x6f\x5f\x72\x61\144\151\165\x73\x5f\163\145\162\x76\145\162\x5f\150\157\163\164"]));
$yp = stripslashes(sanitize_text_field($_POST["\x6d\157\x5f\162\x61\144\x69\x75\x73\137\x73\x65\x72\166\145\x72\x5f\160\x6f\162\x74"]));
$oC = stripslashes(sanitize_text_field($_POST["\155\157\137\x72\x61\x64\151\x75\163\x5f\x73\x68\141\x72\145\144\x5f\x73\x65\x63\162\x65\164"]));
$wA = stripslashes(sanitize_text_field($_POST["\x6d\157\137\x72\141\144\151\165\x73\137\141\165\x74\150\137\x73\143\150\x65\155\145"]));
$Wv = stripslashes(sanitize_text_field($_POST["\x6d\157\x5f\162\x61\144\151\165\x73\x5f\x66\151\x6e\144\x5f\165\x73\x65\x72\137\x62\171"]));
$xu = stripslashes(sanitize_text_field($_POST["\155\x6f\137\x72\x61\144\151\165\163\137\141\x75\164\x6f\137\x63\162\145\x61\164\145\137\165\x73\x65\162"]));
update_option("\x6d\157\137\162\141\144\151\x75\x73\137\163\145\x72\166\x65\x72\x5f\x6e\x61\x6d\x65", $k3);
update_option("\155\157\x5f\162\141\x64\151\x75\x73\137\163\145\162\x76\145\162\137\x68\157\163\164", $w7);
update_option("\155\157\137\x72\x61\144\x69\165\x73\x5f\163\145\x72\x76\145\x72\x5f\160\x6f\162\164", $yp);
update_option("\x6d\x6f\137\x72\141\144\x69\165\x73\x5f\163\150\141\x72\145\144\137\163\145\x63\x72\x65\164", $oC);
update_option("\x6d\x6f\137\162\x61\x64\151\165\x73\137\x61\x75\164\x68\x5f\163\143\150\x65\x6d\x65", $wA);
update_option("\155\x6f\137\x72\x61\x64\151\165\163\137\146\151\x6e\x64\137\165\x73\x65\162\137\142\x79", $Wv);
update_option("\155\x6f\137\162\x61\144\151\165\163\137\x61\165\164\x6f\x5f\x63\x72\145\x61\x74\x65\137\165\163\145\162", $xu);
update_option("\x6d\x6f\137\x72\141\144\151\x75\x73\x5f\x65\156\x61\x62\x6c\x65\x5f\x6c\x6f\x67\x69\x6e", isset($_POST["\x6d\157\137\162\141\144\x69\x75\163\x5f\145\x6e\141\142\x6c\145\x5f\154\x6f\x67\x69\156"]) ? $_POST["\x6d\x6f\137\x72\141\144\151\165\x73\137\145\x6e\x61\142\154\145\x5f\154\x6f\147\151\x6e"] : 0);
update_option("\x6d\145\x73\163\x61\147\x65", "\x59\x6f\165\162\40\x73\x65\164\164\151\156\147\x73\40\167\x65\162\x65\x20\x73\x61\x76\145\x64");
$this->mo_radius_show_success_message();
iN:
goto Ng;
Q6:
if (!(mo_radius_is_curl_installed() == 0)) {
goto Ef;
}
return $this->mo_radius_show_curl_error();
Ef:
$vo = '';
$Tc = '';
if (empty($_POST["\x65\x6d\x61\x69\154"]) || empty($_POST["\x70\x61\x73\x73\167\157\162\144"])) {
goto cD;
}
$vo = sanitize_email($_POST["\145\x6d\x61\151\154"]);
$Tc = sanitize_text_field($_POST["\160\141\x73\163\167\x6f\x72\x64"]);
goto fG;
cD:
update_option("\155\145\x73\x73\141\147\145", "\x41\154\x6c\40\x74\150\145\x20\x66\151\145\154\144\x73\40\141\x72\x65\x20\x72\145\x71\x75\x69\162\x65\x64\x2e\40\x50\x6c\x65\141\x73\145\x20\145\x6e\x74\x65\162\x20\x76\141\154\151\x64\x20\145\156\164\162\151\145\x73\x2e");
$this->mo_radius_show_error_message();
return;
fG:
update_option("\155\157\137\162\141\144\x69\165\163\x5f\x61\144\x6d\x69\156\137\145\x6d\x61\151\154", $vo);
update_option("\x70\x61\x73\163\x77\157\162\x64", $Tc);
$ZY = new Customer();
$Zz = $ZY->get_customer_key();
$rV = json_decode($Zz, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto Tb;
}
update_option("\x6d\145\x73\163\141\147\145", "\x49\x6e\166\x61\x6c\151\144\x20\165\x73\145\162\156\141\x6d\x65\x20\x6f\162\x20\x70\x61\163\x73\x77\157\162\144\56\x20\x50\x6c\145\x61\163\x65\40\164\162\x79\40\x61\x67\x61\151\156\x2e");
$this->mo_radius_show_error_message();
goto Xa;
Tb:
update_option("\x6d\157\137\162\141\144\151\165\x73\137\141\x64\x6d\x69\x6e\137\x63\x75\163\x74\x6f\x6d\x65\x72\x5f\x6b\145\x79", $rV["\x69\x64"]);
update_option("\x6d\x6f\x5f\162\x61\x64\151\x75\163\137\141\144\155\151\156\137\141\160\x69\137\153\x65\x79", $rV["\141\x70\151\113\145\171"]);
update_option("\x63\165\163\164\157\155\145\162\x5f\164\x6f\x6b\x65\x6e", $rV["\x74\157\153\x65\156"]);
delete_option("\160\141\x73\x73\x77\x6f\x72\144");
update_option("\x6d\145\163\x73\x61\x67\145", "\x43\x75\x73\x74\x6f\155\145\162\x20\x72\145\164\162\151\145\x76\145\144\x20\x73\x75\x63\143\145\x73\x73\146\x75\154\x6c\x79");
delete_option("\166\145\x72\151\146\171\137\143\x75\x73\164\x6f\x6d\145\162");
$this->mo_radius_show_success_message();
Xa:
Ng:
goto js;
G8:
if (!(mo_radius_is_curl_installed() == 0)) {
goto tW;
}
return $this->mo_radius_show_curl_error();
tW:
$Co = '';
if (empty($_POST["\155\157\137\x72\141\x64\x69\165\163\137\x6f\x74\160\x5f\x74\157\153\x65\x6e"])) {
goto vA;
}
$Co = sanitize_text_field($_POST["\x6d\x6f\137\162\141\144\151\165\x73\x5f\157\x74\x70\137\x74\157\x6b\145\156"]);
goto co;
vA:
update_option("\155\145\x73\163\x61\x67\145", "\120\x6c\145\x61\x73\x65\40\145\x6e\x74\145\162\x20\141\x20\x76\x61\154\165\x65\x20\x69\x6e\40\117\x54\x50\40\146\x69\145\154\x64\56");
update_option("\155\x6f\137\162\141\x64\x69\165\163\x5f\x72\145\147\151\x73\164\x72\141\164\151\157\156\137\x73\x74\141\164\x75\x73", "\x4d\x4f\x5f\117\x54\x50\137\126\x41\114\111\x44\101\124\x49\x4f\x4e\x5f\106\x41\111\x4c\125\122\105");
$this->mo_radius_show_error_message();
return;
co:
$ZY = new Customer();
$Zz = json_decode($ZY->validate_otp_token($_SESSION["\x6d\157\137\x72\x61\144\x69\165\x73\x5f\x74\162\x61\x6e\x73\x61\x63\164\151\157\156\111\144"], $Co), true);
if (strcasecmp($Zz["\163\164\141\164\165\163"], "\123\125\103\x43\x45\x53\x53") == 0) {
goto Lj;
}
update_option("\155\x65\x73\163\x61\147\x65", "\x49\156\166\x61\x6c\x69\144\40\157\156\145\x20\x74\x69\x6d\145\x20\160\x61\x73\x73\143\x6f\144\145\56\40\120\154\145\141\163\x65\x20\145\156\164\x65\x72\40\x61\40\x76\141\x6c\x69\144\40\x4f\124\120\56");
update_option("\x6d\157\x5f\x72\141\144\x69\x75\x73\137\x72\x65\x67\x69\163\164\x72\141\164\x69\157\x6e\x5f\163\164\x61\x74\165\163", "\x4d\x4f\x5f\117\124\x50\x5f\x56\101\x4c\111\104\x41\x54\x49\x4f\116\x5f\x46\101\111\114\x55\122\105");
$this->mo_radius_show_error_message();
goto lH;
Lj:
$this->create_customer();
lH:
js:
goto lU;
Dh:
$vo = '';
$Tc = '';
$Zl = '';
$TH = '';
$Q0 = '';
$h_ = '';
if (empty($_POST["\145\155\141\151\x6c"]) || empty($_POST["\x70\x61\x73\163\x77\157\x72\144"]) || empty($_POST["\x63\157\156\146\151\162\x6d\120\x61\163\163\x77\x6f\x72\144"])) {
goto wS;
}
if (strlen($_POST["\x70\141\163\x73\167\x6f\x72\x64"]) < 8 || strlen($_POST["\x63\157\x6e\x66\151\162\x6d\120\x61\x73\x73\167\157\x72\144"]) < 8) {
goto n2;
}
$vo = sanitize_email($_POST["\145\155\x61\151\x6c"]);
$Tc = sanitize_text_field($_POST["\160\x61\163\x73\167\x6f\x72\x64"]);
$Zl = sanitize_text_field($_POST["\x63\x6f\x6e\146\x69\162\155\120\x61\163\x73\167\157\162\x64"]);
$TH = sanitize_text_field($_POST["\x66\156\141\155\145"]);
$Q0 = sanitize_text_field($_POST["\x6c\156\141\x6d\145"]);
$h_ = sanitize_text_field($_POST["\x63\x6f\155\x70\x61\x6e\x79"]);
goto Cw;
n2:
update_option("\155\145\163\x73\x61\x67\145", "\x43\x68\x6f\x6f\163\145\40\x61\40\160\141\x73\163\167\x6f\162\144\40\x77\151\164\x68\40\x6d\x69\x6e\151\x6d\x75\x6d\40\x6c\x65\x6e\x67\x74\150\x20\x38\56");
$this->mo_radius_show_error_message();
return;
Cw:
goto YK;
wS:
update_option("\x6d\x65\x73\x73\141\147\145", "\x41\x6c\x6c\40\x74\x68\x65\x20\x66\151\x65\x6c\x64\163\x20\x61\162\145\x20\162\x65\x71\165\151\x72\145\144\x2e\40\x50\154\x65\141\163\x65\40\x65\156\164\145\x72\40\x76\x61\154\x69\144\40\x65\x6e\x74\x72\151\x65\163\x2e");
$this->mo_radius_show_error_message();
return;
YK:
update_option("\155\x6f\137\162\x61\144\x69\165\x73\x5f\141\144\155\151\x6e\137\x65\155\141\x69\x6c", $vo);
update_option("\x6d\x6f\137\x72\x61\x64\151\165\163\137\141\x64\x6d\151\x6e\137\x66\x6e\x61\x6d\145", $TH);
update_option("\x6d\157\x5f\162\x61\144\151\x75\163\x5f\141\144\x6d\151\156\137\154\x6e\141\x6d\x65", $Q0);
update_option("\x6d\157\137\x72\141\144\x69\165\163\x5f\141\x64\x6d\x69\156\x5f\143\x6f\155\160\x61\x6e\171", $h_);
if (!(mo_radius_is_curl_installed() == 0)) {
goto aB;
}
return $this->mo_radius_show_curl_error();
aB:
if (strcmp($Tc, $Zl) == 0) {
goto HJ;
}
update_option("\155\145\163\x73\141\x67\x65", "\x50\141\x73\163\x77\157\162\x64\x73\x20\x64\157\40\156\157\164\x20\x6d\141\164\x63\150\x2e");
delete_option("\x76\x65\162\x69\146\171\137\143\x75\x73\164\x6f\155\x65\x72");
$this->mo_radius_show_error_message();
goto YW;
HJ:
update_option("\160\x61\x73\x73\167\157\x72\144", $Tc);
$ZY = new Customer();
$Zz = json_decode($ZY->check_customer(), true);
if (strcasecmp($Zz["\163\x74\x61\164\x75\x73"], "\103\x55\123\x54\117\x4d\105\122\137\x4e\x4f\124\x5f\106\117\125\x4e\x44") == 0) {
goto mx;
}
$this->mo_radius_get_current_customer();
goto iD;
mx:
$Zz = json_decode($ZY->send_otp_token(), true);
if (strcasecmp($Zz["\x73\x74\141\x74\165\x73"], "\123\125\x43\103\105\123\x53") == 0) {
goto Qa;
}
update_option("\x6d\x65\163\x73\141\x67\145", "\124\x68\x65\162\145\40\x77\141\163\x20\x61\x6e\x20\145\162\162\157\162\x20\151\156\40\x73\x65\x6e\x64\151\156\147\40\145\155\x61\151\x6c\56\x20\x50\154\145\141\x73\x65\40\143\x6c\x69\x63\x6b\x20\x6f\x6e\40\x52\x65\163\145\156\x64\40\x4f\x54\120\40\x74\157\40\164\x72\171\x20\x61\x67\141\151\156\x2e");
update_option("\x6d\157\137\162\141\x64\x69\x75\x73\x5f\x72\145\147\151\x73\x74\162\x61\x74\x69\x6f\x6e\x5f\163\x74\x61\x74\x75\x73", "\115\117\137\117\x54\x50\x5f\x44\x45\114\x49\126\x45\x52\x45\104\137\106\x41\x49\114\125\x52\105");
$this->mo_radius_show_error_message();
goto OX;
Qa:
update_option("\x6d\145\163\x73\x61\147\145", "\40\101\x20\157\156\145\x20\x74\151\x6d\x65\x20\160\141\163\x73\143\157\x64\x65\x20\151\163\x20\163\x65\x6e\x74\40\164\x6f\x20" . get_option("\x6d\x6f\137\x72\x61\x64\151\x75\x73\x5f\x61\x64\155\x69\x6e\137\x65\155\141\x69\x6c") . "\x2e\40\x50\x6c\x65\141\x73\145\40\x65\x6e\x74\x65\x72\40\x74\150\x65\x20\117\x54\x50\x20\x68\x65\162\x65\x20\164\x6f\40\166\145\162\x69\146\171\40\x79\x6f\165\162\x20\x65\155\x61\151\154\56");
$_SESSION["\x6d\157\x5f\x72\141\x64\x69\x75\x73\137\164\x72\141\156\x73\141\143\x74\x69\x6f\156\x49\x64"] = $Zz["\x74\x78\111\x64"];
update_option("\155\157\x5f\x72\x61\144\x69\x75\x73\x5f\x72\145\147\x69\x73\164\162\141\164\x69\x6f\156\x5f\x73\164\x61\x74\165\x73", "\115\x4f\137\x4f\124\x50\x5f\x44\x45\114\111\x56\105\x52\x45\x44\x5f\123\125\x43\x43\105\x53\x53");
$this->mo_radius_show_success_message();
OX:
iD:
YW:
lU:
UU:
}
function mo_rad_login($user, $F6, $Tc)
{
if (!(empty($F6) || empty($Tc))) {
goto kq;
}
$N5 = new WP_Error();
if (!empty($F6)) {
goto Gn;
}
$N5->add("\x65\x6d\x70\164\171\137\x75\163\145\x72\156\141\155\145", __("\74\x73\x74\162\157\156\x67\x3e\105\122\x52\117\122\x3c\57\x73\164\162\x6f\156\x67\x3e\72\40\x45\155\141\x69\x6c\40\x66\151\145\x6c\144\x20\x69\163\x20\x65\x6d\x70\164\x79\x2e"));
Gn:
if (!empty($Tc)) {
goto Z3;
}
$N5->add("\x65\x6d\x70\164\171\x5f\x70\x61\x73\163\x77\x6f\x72\144", __("\x3c\x73\164\162\x6f\156\x67\76\x45\122\122\x4f\122\74\57\x73\x74\162\157\156\147\x3e\x3a\40\x50\x61\x73\163\167\x6f\x72\x64\40\146\151\x65\154\x64\40\151\x73\40\x65\x6d\160\x74\x79\56"));
Z3:
return $N5;
kq:
$BK = wp_authenticate_username_password($user, $F6, $Tc);
if (is_wp_error($BK)) {
goto vf;
}
return $BK;
vf:
$XY = $this->mo_radius_validate_login_data($F6, $Tc);
$user = false;
if (!($XY === true)) {
goto um;
}
$Wv = get_option("\x6d\157\x5f\x72\x61\x64\151\x75\x73\137\146\151\156\x64\x5f\165\x73\x65\162\137\142\171");
if (!($Wv == "\x42\x6f\x74\x68")) {
goto k0;
}
$vO = get_user_by("\154\157\x67\151\156", $F6);
if ($vO) {
goto YX;
}
$vO = get_user_by("\x65\x6d\141\151\154", $F6);
YX:
return $vO;
k0:
$zb = $Wv . "\137\x65\170\151\163\164\x73";
$X4 = get_option("\155\x6f\137\162\x61\144\151\165\163\137\x66\x69\x6e\x64\137\165\x73\145\x72\137\x62\171") == "\165\163\x65\162\156\141\x6d\145" ? "\154\157\147\151\156" : get_option("\155\157\x5f\x72\x61\x64\151\x75\163\x5f\146\x69\156\144\137\165\x73\145\x72\x5f\x62\x79");
if (!$zb($F6)) {
goto Ru;
}
$user = get_user_by($X4, $F6);
Ru:
if (!(get_option("\x6d\157\x5f\x72\x61\x64\x69\165\163\x5f\x61\x75\164\x6f\137\143\x72\x65\141\164\145\x5f\x75\x73\x65\x72") == "\x61\154\154\157\x77\x65\x64" && !$user)) {
goto fB;
}
$ch = wp_generate_password(10, false);
if (is_email($F6)) {
goto yU;
}
$U4 = wp_create_user($F6, $ch);
goto ke;
yU:
$U4 = wp_create_user($F6, $ch, $F6);
ke:
$user = get_user_by("\154\157\147\x69\x6e", $F6);
fB:
um:
return $user;
}
function mo_radius_validate_login_data($F6, $Tc)
{
$wA = get_option("\155\x6f\x5f\x72\x61\x64\x69\x75\163\x5f\x61\165\164\150\137\x73\143\x68\145\155\145");
$XY = false;
$w7 = get_option("\x6d\x6f\x5f\162\x61\x64\151\x75\x73\x5f\163\145\x72\x76\x65\162\137\150\157\x73\164") ? get_option("\x6d\157\x5f\x72\x61\144\151\165\x73\x5f\x73\x65\x72\x76\145\x72\x5f\150\x6f\163\164") : '';
$yp = get_option("\x6d\x6f\137\162\x61\x64\x69\x75\x73\137\163\x65\x72\166\x65\x72\137\x70\x6f\x72\164") ? get_option("\x6d\x6f\137\x72\x61\x64\x69\x75\x73\x5f\x73\x65\x72\166\145\x72\137\160\x6f\162\x74") : '';
$oC = get_option("\x6d\x6f\137\162\x61\144\x69\x75\163\137\163\x68\141\162\145\x64\137\163\145\143\x72\145\x74") ? get_option("\155\x6f\137\162\x61\144\x69\165\x73\x5f\163\x68\141\162\x65\x64\x5f\x73\x65\143\x72\145\x74") : '';
$Z_ = new \Dapphp\Radius\Radius();
$Z_->setServer($w7)->setSecret($oC)->setAuthenticationPort($yp)->setNasIpAddress($_SERVER["\x53\105\122\126\105\x52\x5f\x41\104\x44\x52"])->setAttribute(32, "\155\151\156\151\157\162\141\x6e\147\x65\55\x77\157\x72\x64\x70\162\x65\x73\x73");
$XY = $Z_->accessRequest($F6, $Tc);
return $XY;
}
function mo_radius_get_current_customer()
{
$ZY = new Customer();
$Zz = $ZY->get_customer_key();
$rV = json_decode($Zz, true);
if (json_last_error() == JSON_ERROR_NONE) {
goto H5;
}
update_option("\155\x65\x73\163\x61\x67\145", "\x59\x6f\x75\x20\x61\154\x72\145\x61\x64\x79\x20\150\141\x76\145\x20\141\156\40\x61\x63\143\x6f\165\x6e\164\x20\x77\x69\x74\x68\x20\170\145\x63\165\162\x69\146\171\x2e\x20\120\154\145\x61\x73\x65\x20\145\x6e\x74\x65\162\40\141\40\166\141\x6c\x69\144\40\x70\141\163\163\x77\x6f\x72\144\x2e");
update_option("\166\145\x72\151\146\171\137\x63\x75\x73\x74\157\155\145\162", "\x74\x72\165\x65");
delete_option("\x6e\145\x77\137\x72\x65\x67\x69\x73\x74\x72\141\x74\151\x6f\x6e");
$this->mo_radius_show_error_message();
goto WZ;
H5:
update_option("\155\x6f\x5f\162\141\x64\x69\165\x73\137\141\144\x6d\151\x6e\137\x63\x75\163\x74\157\x6d\x65\x72\137\x6b\145\171", $rV["\151\144"]);
update_option("\x6d\x6f\x5f\x72\141\x64\151\165\x73\137\x61\x64\155\151\156\137\141\160\x69\x5f\153\145\x79", $rV["\x61\160\x69\x4b\145\x79"]);
update_option("\x63\x75\x73\164\x6f\x6d\145\x72\137\x74\157\153\145\156", $rV["\164\x6f\x6b\145\x6e"]);
update_option("\x70\141\163\x73\x77\x6f\162\x64", '');
update_option("\155\145\163\x73\x61\x67\x65", "\x43\x75\x73\164\157\155\x65\162\40\x72\145\164\162\x69\145\166\145\x64\40\163\x75\x63\x63\x65\x73\x73\146\x75\x6c\x6c\171");
delete_option("\x76\x65\162\x69\146\x79\137\x63\165\x73\164\x6f\155\145\x72");
delete_option("\x6e\145\x77\137\x72\x65\x67\x69\163\164\162\141\164\x69\x6f\x6e");
$this->mo_radius_show_success_message();
WZ:
}
function create_customer()
{
$ZY = new Customer();
$rV = json_decode($ZY->create_customer(), true);
if (strcasecmp($rV["\x73\x74\x61\164\x75\163"], "\x43\x55\x53\x54\x4f\115\105\x52\137\125\123\x45\x52\x4e\101\x4d\x45\137\101\114\x52\x45\101\x44\131\137\105\130\x49\123\x54\123") == 0) {
goto IW;
}
if (!(strcasecmp($rV["\163\164\x61\x74\x75\163"], "\x53\125\103\x43\x45\123\x53") == 0)) {
goto wB;
}
update_option("\155\x6f\137\162\141\144\151\x75\x73\x5f\141\144\x6d\151\156\x5f\143\165\x73\164\x6f\x6d\x65\x72\x5f\x6b\x65\x79", $rV["\151\144"]);
update_option("\155\157\137\162\141\x64\151\x75\x73\137\141\144\155\x69\156\x5f\x61\160\151\x5f\153\x65\171", $rV["\141\x70\x69\x4b\x65\171"]);
update_option("\x63\x75\x73\x74\x6f\x6d\145\162\x5f\164\157\x6b\145\156", $rV["\x74\x6f\x6b\x65\x6e"]);
update_option("\160\x61\x73\x73\x77\157\x72\x64", '');
update_option("\x6d\x65\163\163\141\147\x65", "\122\x65\147\151\163\x74\145\x72\145\x64\40\x73\165\143\x63\145\163\163\146\165\154\154\171\56");
update_option("\x6d\157\137\x72\141\x64\151\x75\x73\137\162\x65\x67\151\163\164\x72\141\164\x69\157\156\137\x73\164\x61\164\x75\163", "\x4d\117\x5f\x4f\101\x55\124\110\137\x52\x45\107\x49\123\124\122\101\124\x49\x4f\x4e\137\x43\x4f\x4d\x50\x4c\x45\124\105");
update_option("\x6d\157\x5f\x72\141\x64\x69\165\163\137\x6e\145\167\x5f\143\x75\x73\164\x6f\x6d\145\162", 1);
delete_option("\x76\145\x72\x69\x66\x79\137\143\165\x73\x74\157\x6d\145\162");
delete_option("\156\x65\x77\137\162\145\x67\151\x73\164\162\141\164\151\x6f\x6e");
$this->mo_radius_show_success_message();
wB:
goto Eg;
IW:
$this->mo_radius_get_current_customer();
delete_option("\155\x6f\137\162\141\x64\151\x75\x73\137\x6e\145\167\x5f\x63\x75\x73\x74\157\x6d\145\162");
Eg:
}
public function mo_radius_check_empty_or_null($ij)
{
if (!(!isset($ij) || $ij == '')) {
goto ah;
}
return true;
ah:
return false;
}
}
function mo_radius_is_curl_installed()
{
if (in_array("\143\165\x72\x6c", get_loaded_extensions())) {
goto n_;
}
return 0;
goto zv;
n_:
return 1;
zv:
}
new mo_rad_client_class();
Function Calls
None |
Stats
MD5 | a2145ba352e2b807d3ad07e25da3080a |
Eval Count | 0 |
Decode Time | 160 ms |