Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace OTP\Handler; if (defined("\101\102\x53\x50\x41\124\x48")) { g..
Decoded Output download
<?php
namespace OTP\Handler;
if (defined("ABSPATH")) {
goto sK;
}
exit;
sK:
use OTP\Helper\FormSessionVars;
use OTP\Helper\GatewayFunctions;
use OTP\Helper\MoConstants;
use OTP\Helper\MoMessages;
use OTP\Helper\MoUtility;
use OTP\Helper\SessionUtils;
use OTP\Objects\FormSessionData;
use OTP\Objects\VerificationLogic;
use OTP\Traits\Instance;
use OTP\LicenseLibrary\Mo_License_Service;
if (class_exists("PhoneVerificationLogic")) {
goto qk;
}
final class PhoneVerificationLogic extends VerificationLogic
{
use Instance;
public function handle_logic($Pf, $e8, $mQ, $mt, $i8)
{
$this->checkIfUserRegistered($mt, $i8);
$F3 = MoUtility::validate_phone_number($mQ);
$pY = MoUtility::check_for_selected_country_addon($mQ);
$e1 = MoMessages::showMessage(MoMessages::BLOCKED_COUNTRY);
$xM = MoUtility::mllc();
$l1 = MoMessages::showMessage(MoMessages::ERROR_OTP_PHONE);
if (!$xM["STATUS"]) {
goto Qn;
}
if ($this->is_ajax_form()) {
goto fT;
}
miniorange_site_otp_validation_form(null, null, null, $l1, $mt, $i8);
goto xw;
fT:
wp_send_json(MoUtility::create_json($l1, MoConstants::ERROR_JSON_TYPE));
xw:
Qn:
if (!($F3 && $pY)) {
goto f1;
}
if ($this->is_ajax_form()) {
goto aa;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto vq;
aa:
wp_send_json(MoUtility::create_json($e1, MoConstants::COUNTRY_BLOCKED_ERROR));
vq:
f1:
switch ($F3) {
case 0:
$this->handle_not_matched($mQ, $mt, $i8);
goto Ct;
case 1:
$this->handle_matched($Pf, $e8, $mQ, $mt, $i8);
goto Ct;
}
t5:
Ct:
}
private function checkIfUserRegistered($mt, $i8)
{
if (MoUtility::micr()) {
goto R0;
}
$e1 = MoMessages::showMessage(MoMessages::NEED_TO_REGISTER);
if ($this->is_ajax_form()) {
goto Ca;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto kD;
Ca:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
kD:
R0:
}
public function handle_matched($Pf, $e8, $mQ, $mt, $i8)
{
$e1 = str_replace("##phone##", $mQ, $this->get_is_blocked_message());
if ($this->is_blocked($e8, $mQ)) {
goto gQ;
}
do_action("mo_globally_banned_phone_check", $mQ, $this->is_ajax_form(), $mt, $i8);
$this->start_otp_verification($Pf, $e8, $mQ, $mt, $i8);
goto vt;
gQ:
if ($this->is_ajax_form()) {
goto R6;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto r4;
R6:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
r4:
vt:
}
public function start_otp_verification($Pf, $e8, $mQ, $mt, $i8)
{
$Mq = GatewayFunctions::instance();
$JF = "SMS";
$Wg = $Mq->mo_send_otp_token($JF, '', $mQ);
switch ($Wg["status"]) {
case "SUCCESS":
$this->handle_otp_sent($Pf, $e8, $mQ, $mt, $i8, $Wg);
goto zm;
default:
$this->handle_otp_sent_failed($Pf, $e8, $mQ, $mt, $i8, $Wg);
goto zm;
}
HD:
zm:
}
public function handle_not_matched($mQ, $mt, $i8)
{
$e1 = str_replace("##phone##", $mQ, $this->get_otp_invalid_format_message());
if ($this->is_ajax_form()) {
goto uB;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto fk;
uB:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
fk:
}
public function handle_otp_sent_failed($Pf, $e8, $mQ, $mt, $i8, $Wg)
{
$e1 = str_replace("##phone##", $mQ, $this->get_otp_sent_failed_message());
if ($this->is_ajax_form()) {
goto Dh;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto Wp;
Dh:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
Wp:
}
public function handle_otp_sent($Pf, $e8, $mQ, $mt, $i8, $Wg)
{
SessionUtils::set_phone_transaction_id($Wg["txId"]);
$e1 = str_replace("##phone##", $mQ, $this->get_otp_sent_message());
apply_filters("mo_start_reporting", $Wg["txId"], $mQ, $mQ, $mt, $e1, "OTP_SENT");
if ($this->is_ajax_form()) {
goto xN;
}
miniorange_site_otp_validation_form($Pf, $e8, $mQ, $e1, $mt, $i8);
goto a_;
xN:
wp_send_json(MoUtility::create_json($e1, MoConstants::SUCCESS_JSON_TYPE));
a_:
}
public function get_otp_sent_message()
{
$GC = get_mo_option("success_phone_message", "mo_otp_");
return $GC ? mo_($GC) : MoMessages::showMessage(MoMessages::OTP_SENT_PHONE);
}
public function get_otp_sent_failed_message()
{
$Ol = get_mo_option("error_phone_message", "mo_otp_");
$Ol = $Ol ? mo_($Ol) : MoMessages::showMessage(MoMessages::ERROR_OTP_PHONE);
$Ol = apply_filters("mo_get_otp_sent_failed_message", $Ol);
return $Ol;
}
public function get_otp_invalid_format_message()
{
$V0 = get_mo_option("invalid_phone_message", "mo_otp_");
return $V0 ? mo_($V0) : MoMessages::showMessage(MoMessages::ERROR_PHONE_FORMAT);
}
public function is_blocked($e8, $mQ)
{
$bV = explode(";", get_mo_option("blocked_phone_numbers"));
$bV = apply_filters("mo_blocked_phones", $bV, $mQ);
return in_array($mQ, $bV, true);
}
public function get_is_blocked_message()
{
$n_ = get_mo_option("blocked_phone_message", "mo_otp_");
return $n_ ? mo_($n_) : MoMessages::showMessage(MoMessages::ERROR_PHONE_BLOCKED);
}
}
qk:
?>
Did this file decode correctly?
Original Code
<?php
namespace OTP\Handler;
if (defined("\101\102\x53\x50\x41\124\x48")) {
goto sK;
}
exit;
sK:
use OTP\Helper\FormSessionVars;
use OTP\Helper\GatewayFunctions;
use OTP\Helper\MoConstants;
use OTP\Helper\MoMessages;
use OTP\Helper\MoUtility;
use OTP\Helper\SessionUtils;
use OTP\Objects\FormSessionData;
use OTP\Objects\VerificationLogic;
use OTP\Traits\Instance;
use OTP\LicenseLibrary\Mo_License_Service;
if (class_exists("\x50\x68\x6f\x6e\x65\x56\x65\x72\x69\146\151\x63\141\164\x69\157\x6e\x4c\x6f\x67\x69\143")) {
goto qk;
}
final class PhoneVerificationLogic extends VerificationLogic
{
use Instance;
public function handle_logic($Pf, $e8, $mQ, $mt, $i8)
{
$this->checkIfUserRegistered($mt, $i8);
$F3 = MoUtility::validate_phone_number($mQ);
$pY = MoUtility::check_for_selected_country_addon($mQ);
$e1 = MoMessages::showMessage(MoMessages::BLOCKED_COUNTRY);
$xM = MoUtility::mllc();
$l1 = MoMessages::showMessage(MoMessages::ERROR_OTP_PHONE);
if (!$xM["\123\124\101\x54\125\x53"]) {
goto Qn;
}
if ($this->is_ajax_form()) {
goto fT;
}
miniorange_site_otp_validation_form(null, null, null, $l1, $mt, $i8);
goto xw;
fT:
wp_send_json(MoUtility::create_json($l1, MoConstants::ERROR_JSON_TYPE));
xw:
Qn:
if (!($F3 && $pY)) {
goto f1;
}
if ($this->is_ajax_form()) {
goto aa;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto vq;
aa:
wp_send_json(MoUtility::create_json($e1, MoConstants::COUNTRY_BLOCKED_ERROR));
vq:
f1:
switch ($F3) {
case 0:
$this->handle_not_matched($mQ, $mt, $i8);
goto Ct;
case 1:
$this->handle_matched($Pf, $e8, $mQ, $mt, $i8);
goto Ct;
}
t5:
Ct:
}
private function checkIfUserRegistered($mt, $i8)
{
if (MoUtility::micr()) {
goto R0;
}
$e1 = MoMessages::showMessage(MoMessages::NEED_TO_REGISTER);
if ($this->is_ajax_form()) {
goto Ca;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto kD;
Ca:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
kD:
R0:
}
public function handle_matched($Pf, $e8, $mQ, $mt, $i8)
{
$e1 = str_replace("\43\x23\x70\150\157\156\x65\x23\43", $mQ, $this->get_is_blocked_message());
if ($this->is_blocked($e8, $mQ)) {
goto gQ;
}
do_action("\x6d\157\137\x67\154\x6f\x62\141\154\154\171\137\142\141\156\x6e\x65\x64\x5f\160\150\157\x6e\x65\x5f\143\x68\x65\143\153", $mQ, $this->is_ajax_form(), $mt, $i8);
$this->start_otp_verification($Pf, $e8, $mQ, $mt, $i8);
goto vt;
gQ:
if ($this->is_ajax_form()) {
goto R6;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto r4;
R6:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
r4:
vt:
}
public function start_otp_verification($Pf, $e8, $mQ, $mt, $i8)
{
$Mq = GatewayFunctions::instance();
$JF = "\123\115\x53";
$Wg = $Mq->mo_send_otp_token($JF, '', $mQ);
switch ($Wg["\x73\x74\141\164\165\163"]) {
case "\x53\125\x43\x43\105\123\x53":
$this->handle_otp_sent($Pf, $e8, $mQ, $mt, $i8, $Wg);
goto zm;
default:
$this->handle_otp_sent_failed($Pf, $e8, $mQ, $mt, $i8, $Wg);
goto zm;
}
HD:
zm:
}
public function handle_not_matched($mQ, $mt, $i8)
{
$e1 = str_replace("\x23\43\160\x68\157\x6e\x65\43\x23", $mQ, $this->get_otp_invalid_format_message());
if ($this->is_ajax_form()) {
goto uB;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto fk;
uB:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
fk:
}
public function handle_otp_sent_failed($Pf, $e8, $mQ, $mt, $i8, $Wg)
{
$e1 = str_replace("\43\43\x70\x68\x6f\x6e\145\43\43", $mQ, $this->get_otp_sent_failed_message());
if ($this->is_ajax_form()) {
goto Dh;
}
miniorange_site_otp_validation_form(null, null, null, $e1, $mt, $i8);
goto Wp;
Dh:
wp_send_json(MoUtility::create_json($e1, MoConstants::ERROR_JSON_TYPE));
Wp:
}
public function handle_otp_sent($Pf, $e8, $mQ, $mt, $i8, $Wg)
{
SessionUtils::set_phone_transaction_id($Wg["\x74\170\x49\144"]);
$e1 = str_replace("\43\x23\x70\150\x6f\x6e\x65\43\x23", $mQ, $this->get_otp_sent_message());
apply_filters("\x6d\157\137\x73\x74\x61\x72\164\137\x72\145\x70\157\x72\164\151\x6e\x67", $Wg["\164\x78\x49\144"], $mQ, $mQ, $mt, $e1, "\117\x54\120\137\123\x45\x4e\124");
if ($this->is_ajax_form()) {
goto xN;
}
miniorange_site_otp_validation_form($Pf, $e8, $mQ, $e1, $mt, $i8);
goto a_;
xN:
wp_send_json(MoUtility::create_json($e1, MoConstants::SUCCESS_JSON_TYPE));
a_:
}
public function get_otp_sent_message()
{
$GC = get_mo_option("\x73\165\143\143\145\x73\163\137\160\150\157\x6e\x65\137\155\145\163\x73\x61\x67\145", "\x6d\157\x5f\157\164\x70\137");
return $GC ? mo_($GC) : MoMessages::showMessage(MoMessages::OTP_SENT_PHONE);
}
public function get_otp_sent_failed_message()
{
$Ol = get_mo_option("\x65\x72\x72\x6f\x72\137\160\x68\157\156\145\137\155\145\x73\x73\x61\147\145", "\155\x6f\137\x6f\x74\x70\137");
$Ol = $Ol ? mo_($Ol) : MoMessages::showMessage(MoMessages::ERROR_OTP_PHONE);
$Ol = apply_filters("\x6d\157\137\x67\x65\x74\137\157\164\160\137\x73\145\x6e\x74\137\x66\141\151\x6c\145\144\x5f\155\x65\x73\x73\x61\x67\x65", $Ol);
return $Ol;
}
public function get_otp_invalid_format_message()
{
$V0 = get_mo_option("\151\x6e\x76\141\x6c\151\x64\x5f\x70\150\157\156\145\x5f\x6d\145\x73\x73\141\147\x65", "\155\157\x5f\x6f\x74\160\x5f");
return $V0 ? mo_($V0) : MoMessages::showMessage(MoMessages::ERROR_PHONE_FORMAT);
}
public function is_blocked($e8, $mQ)
{
$bV = explode("\73", get_mo_option("\x62\x6c\157\x63\x6b\145\144\x5f\160\x68\157\x6e\145\137\x6e\165\155\142\145\x72\163"));
$bV = apply_filters("\x6d\157\x5f\142\x6c\157\143\x6b\145\144\x5f\160\150\157\156\x65\x73", $bV, $mQ);
return in_array($mQ, $bV, true);
}
public function get_is_blocked_message()
{
$n_ = get_mo_option("\142\154\157\143\x6b\x65\x64\137\x70\x68\157\156\145\x5f\155\x65\163\163\x61\x67\x65", "\x6d\x6f\137\x6f\164\x70\x5f");
return $n_ ? mo_($n_) : MoMessages::showMessage(MoMessages::ERROR_PHONE_BLOCKED);
}
}
qk:
Function Calls
None |
Stats
MD5 | c9c3526a56466ba62f61a34ad8af2638 |
Eval Count | 0 |
Decode Time | 56 ms |