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\Forms; if (defined("\x41\102\123\x50\101\x54\110")) { ..
Decoded Output download
<?php
namespace OTP\Handler\Forms;
if (defined("ABSPATH")) {
goto nHD;
}
exit;
nHD:
use OTP\Helper\FormSessionVars;
use OTP\Helper\MoConstants;
use OTP\Helper\MoMessages;
use OTP\Helper\MoFormDocs;
use OTP\Helper\MoPHPSessions;
use OTP\Helper\MoUtility;
use OTP\Helper\SessionUtils;
use OTP\Objects\BaseMessages;
use OTP\Objects\FormHandler;
use OTP\Objects\IFormHandler;
use OTP\Objects\VerificationType;
use OTP\Traits\Instance;
use ReflectionException;
use WC_Checkout;
use WP_Error;
if (class_exists("WooCommerceCheckOutForm")) {
goto mpI;
}
class WooCommerceCheckOutForm extends FormHandler implements IFormHandler
{
use Instance;
private $guest_check_out_only;
private $show_button;
private $popup_enabled;
private $payment_methods;
private $selective_payment;
private $disable_auto_login;
private $mo_special_category_list;
protected function __construct()
{
$this->is_login_or_social_form = false;
$this->is_ajax_form = true;
$this->form_session_var = FormSessionVars::WC_CHECKOUT;
$this->type_phone_tag = "mo_wc_phone_enable";
$this->type_email_tag = "mo_wc_email_enable";
$this->phone_form_id = "input[name=billing_phone]";
$this->form_key = "WC_CHECKOUT_FORM";
$this->form_name = mo_("WooCommerce Checkout Form");
$this->is_form_enabled = get_mo_option("wc_checkout_enable");
$this->button_text = get_mo_option("wc_checkout_button_link_text");
$this->button_text = !MoUtility::is_blank($this->button_text) ? $this->button_text : (!$this->popup_enabled ? mo_("Verify Your Purchase") : mo_("Place Order"));
$this->form_documents = MoFormDocs::WC_CHECKOUT_LINK;
parent::__construct();
}
public function handle_form()
{
if (!function_exists("is_plugin_active")) {
include_once ABSPATH . "wp-admin/includes/plugin.php";
}
if (is_plugin_active("woocommerce/woocommerce.php")) {
goto M97;
}
return;
M97:
if (!file_exists(MOV_DIR . "addons/wcselectedcategory")) {
goto XKP;
}
add_action("woocommerce_checkout_before_customer_details", array($this, "webroom_check_if_product_category_in_cart"));
XKP:
$this->disable_auto_login = get_mo_option("wc_checkout_disable_auto_login");
$this->payment_methods = maybe_unserialize(get_mo_option("wc_checkout_payment_type"));
$this->payment_methods = $this->payment_methods ? $this->payment_methods : WC()->payment_gateways->payment_gateways();
$this->popup_enabled = get_mo_option("wc_checkout_popup");
$this->guest_check_out_only = get_mo_option("wc_checkout_guest");
$this->show_button = get_mo_option("wc_checkout_button");
$this->otp_type = get_mo_option("wc_checkout_type");
$this->selective_payment = get_mo_option("wc_checkout_selective_payment");
$this->restrict_duplicates = get_mo_option("wc_checkout_restrict_duplicates");
if ($this->popup_enabled) {
goto qV6;
}
add_action("woocommerce_after_checkout_billing_form", array($this, "my_custom_checkout_field"), 99);
goto p4J;
qV6:
add_action("woocommerce_after_checkout_billing_form", array($this, "add_custom_popup"), 99);
add_action("woocommerce_review_order_after_submit", array($this, "add_custom_button"), 1, 1);
p4J:
if (!$this->disable_auto_login) {
goto ylG;
}
add_action("woocommerce_thankyou", array($this, "disable_auto_login_after_checkout"), 1, 1);
ylG:
add_filter("woocommerce_checkout_posted_data", array($this, "billing_phone_process"), 99, 1);
add_action("wp_enqueue_scripts", array($this, "enqueue_script_on_page"));
add_action("woocommerce_after_checkout_validation", array($this, "my_custom_checkout_field_process"), 99, 2);
$this->routeData();
}
public function webroom_check_if_product_category_in_cart()
{
MoPHPSessions::add_session_var("specialproductexist", "false");
$this->mo_special_category_list = get_option("mo_wcsc_sms_wc_selected_category");
foreach (WC()->cart->get_cart() as $yw => $gp) {
$tq = $gp["product_id"];
$u2 = wp_get_post_terms($tq, "product_cat");
$u2 = json_decode(wp_json_encode($u2), true);
$u2 = $u2[0]["name"];
if (!in_array($u2, $this->mo_special_category_list, true)) {
goto LdZ;
}
MoPHPSessions::add_session_var("specialproductexist", "true");
goto VBO;
LdZ:
uyP:
}
VBO:
}
public function billing_phone_process($kT)
{
if (!(file_exists(MOV_DIR . "addons/wcselectedcategory") && MoPHPSessions::get_session_var("specialproductexist") !== "true")) {
goto xD0;
}
return $kT;
xD0:
$kT["billing_phone"] = MoUtility::process_phone_number($kT["billing_phone"]);
return $kT;
}
public function disable_auto_login_after_checkout($Y_)
{
MoPHPSessions::add_session_var("specialproductexist", "false");
if (!is_user_logged_in()) {
goto J_B;
}
wp_logout();
$RC = isset($_SERVER["REQUEST_URI"]) ? esc_url_raw(wp_unslash($_SERVER["REQUEST_URI"])) : '';
wp_safe_redirect($RC);
exit;
J_B:
}
private function routeData()
{
if (array_key_exists("option", $_GET)) {
goto wy9;
}
return;
wy9:
if (!(strcasecmp(trim(sanitize_text_field(wp_unslash($_GET["option"]))), "miniorange-woocommerce-checkout") === 0)) {
goto Uo0;
}
$this->handle_woocommerce_checkout_form($_POST);
Uo0:
}
private function handle_woocommerce_checkout_form($UD)
{
MoUtility::initialize_transaction($this->form_session_var);
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto HqY;
}
$this->send_challenge("test", sanitize_email($UD["user_email"]), null, null, VerificationType::EMAIL);
goto eWi;
HqY:
$this->checkPhoneValidity($UD);
$this->send_challenge("test", sanitize_email($UD["user_email"]), null, sanitize_text_field(trim($UD["user_phone"])), VerificationType::PHONE);
eWi:
}
private function checkPhoneValidity($UD)
{
if (!($this->isPhoneNumberAlreadyInUse(sanitize_text_field($UD["user_phone"])) && $this->restrict_duplicates)) {
goto dG1;
}
wp_send_json(MoUtility::create_json(MoMessages::showMessage(MoMessages::PHONE_EXISTS), MoConstants::ERROR_JSON_TYPE));
exit;
dG1:
}
private function isPhoneNumberAlreadyInUse($is)
{
global $wpdb;
$is = MoUtility::process_phone_number($is);
$wI = "billing_phone";
$rk = strval(wp_get_current_user()->ID);
$xt = $wpdb->get_row($wpdb->prepare("SELECT `user_id` FROM `{$wpdb->prefix}usermeta` WHERE `meta_key` = %s AND `meta_value` = %s", array($wI, $is)));
return MoUtility::is_blank($xt) ? false : $xt->user_id !== $rk;
}
private function checkIfVerificationNotStarted()
{
if (SessionUtils::is_otp_initialized($this->form_session_var)) {
goto yJm;
}
wc_add_notice(MoMessages::showMessage(MoMessages::ENTER_VERIFY_CODE), MoConstants::ERROR_JSON_TYPE);
return true;
yJm:
return false;
}
private function checkIfVerificationCodeNotEntered()
{
if (!(array_key_exists("order_verify", $_POST) && !MoUtility::is_blank(sanitize_text_field(wp_unslash($_POST["order_verify"]))))) {
goto V7U;
}
return false;
V7U:
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto m0K;
}
wc_add_notice(MoMessages::showMessage(MoMessages::ENTER_EMAIL_CODE), MoConstants::ERROR_JSON_TYPE);
goto QVP;
m0K:
wc_add_notice(MoMessages::showMessage(MoMessages::ENTER_PHONE_CODE), MoConstants::ERROR_JSON_TYPE);
QVP:
return true;
}
public function add_custom_button($Ms)
{
if (!(file_exists(MOV_DIR . "addons/wcselectedcategory") && MoPHPSessions::get_session_var("specialproductexist") !== "true")) {
goto F7J;
}
return;
F7J:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto ksQ;
}
return;
ksQ:
$this->show_validation_button_or_text();
$this->common_button_or_link_enable_disable_script();
echo ",$mo("#miniorange_otp_token_submit").click(function(o){\xd\xa var requiredFields = areAllMandotryFieldsFilled(),
\xa e=$mo("input[name=billing_email]").val(),
\xa m=$mo("#billing_phone").val(),\xd
a=$mo("div.woocommerce");\xd
if(requiredFields=="")\xd
{\xd
a.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});
\xa $mo.ajax({
\xa url:"" . esc_url(site_url()) . "/?option=miniorange-woocommerce-checkout",type:"POST",
data:{user_email:e,user_phone:m},crossDomain:!0,dataType:"json",\xd
success:function(o){\xd\xa "success"==o.result?(\xd\xa $mo(".blockUI").hide(),$mo("#mo_message").empty(),\xd\xa $mo("#mo_message").append(o.message).show(),
\xa $mo("#mo_message").addClass("woocommerce-message").removeClass("woocommerce-error"),
//$mo("#myModal .modal-content").append(popupTemplate),\xd\xa $mo("#myModal").show(),$mo("#mo_validate_field").show()):($mo(".blockUI").hide(),$mo("#mo_message").empty(),\xd\xa $mo("#mo_message").append(o.message),$mo("#mo_message").addClass("woocommerce-error"),
\xa $mo("#mo_validate_field").hide(),$mo("#myModal").show()
\xa )
\xa },\xd
error:function(o,e,m){}
\xa });
}else{\xd
$mo(".woocommerce-NoticeGroup-checkout").empty();
\xa $mo("form.woocommerce-checkout").prepend(requiredFields);
$mo("html, body").animate({scrollTop: $mo(".woocommerce-error").offset().top}, 2000);
}\xd\xa o.preventDefault()});
$mo("#miniorange_otp_validate_submit").click(function(o){$mo("#myModal").hide(),$mo('form[name="checkout"]').submit()}),
\xa $mo(".close").click(function(){$mo(".modal").hide();});});";
echo "function areAllMandotryFieldsFilled(){\xd\xa var err = `<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">`+
\xa `<ul class="woocommerce-error" role="alert">{{errors}}</ul>`+\xd\xa `</div>`;\xd
var errors = "";
\xa $mo(".validate-required").each(function(){\xd
var id = $mo(this).attr("id");\xd
if(id!=undefined){\xd
var n = id.replace("_field","");\xd\xa if(n!="") {\xd\xa var val = $mo("#"+n).val();
\xa if((val=="" || val=="select") && checkOptionalMandatoryFields(n) ) {\xd
$mo("#"+n).addClass("woocommerce-invalid woocommerce-invalid-required-field");\xd
errors += \x9`<li><strong>`+\xd
$mo("#"+n+"_field").children("label").text().replace("*","")+\xd
"</strong> is a required field."+
\xa `</li>`;
\xa }\xd
}
}
\xa });
\xa return errors != "" ? err.replace("{{errors}}",errors) : 0;
\xa }\xd\xa function checkOptionalMandatoryFields(n){\xd\xa var optional = { "shipping": { "fields": [ "shipping_first_name","shipping_last_name","shipping_postcode","shipping_address_1","shipping_address_2","shipping_city","shipping_state"],"checkbox": "ship-to-different-address-checkbox"},"account": {"fields": ["account_password","account_username"],"checkbox": "createaccount"}};\xd
if(n.indexOf("shipping") != -1){
return check_fields(n,optional["shipping"]);\xd\xa }else if(n.indexOf("account") != -1){
return check_fields(n,optional["account"]);\xd
}\xd\xa return true;\xd\xa }
function check_fields(n,data){\xd
if($mo.inArray(n,data["fields"]) == -1 || ($mo.inArray(n,data["fields"]) > -1 &&\xd\xa $mo("#"+data['checkbox']+":checked").length > 0)) {\xd
return true;
\xa }
\xa return false;\xd\xa }</script>";
}
public function add_custom_popup()
{
if (!(file_exists(MOV_DIR . "addons/wcselectedcategory") && MoPHPSessions::get_session_var("specialproductexist") !== "true")) {
goto KvS;
}
return;
KvS:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto K9D;
}
return;
K9D:
echo "<style>@media only screen and (max-width: 800px) {.modal-content {width: 90% !important;}.modal-header .close{margin-left: 80% !important;}}.modal{display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4);}.modal-content{position:relative;background-color:#fefefe;margin:auto;padding:0;border:1px solid #888;width:40%;box-shadow:04px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);-webkit-animation-name:animatetop;-webkit-animation-duration:0.4s;animation-name:animatetop;animation-duration:0.4s}@-webkit-keyframes animatetop{from{top:-300px;opacity:0}to{top:0;opacity:1}}@keyframes animatetop{from{top:-300px;opacity:0}to{top:0;opacity:1}}.close{color:white;font-weight:bold;}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;}.modal-header{background-color:#5cb85c;color:white;}.modal-footer{background-color:#5cb85c;color:white;</style>";
echo "<script>
\xa var e = `<div id="myModal" class="modal"><div class="modal-content"><div class="modal-header"> <i><span style="margin-left:90%;" class="close" id="close"> close </span></i> </div><div class="modal-body"><div id="mo_message"></div><div id="mo_validate_field" style="margin:1em"><input type="text" name="order_verify" autofocus="true" placeholder="" id="mo_otp_token" required="true" style="color: #000;font-family: Helvetica,sans-serif;padding: 7px;text-shadow: 1px 1px 0 #fff;width: 100%;border-radius: 2px;" class="mo_customer_validation-textbox" autofocus="true"/><input type="button" name="miniorange_otp_validate_submit" style="margin-top:1%;width:100%" id="miniorange_otp_validate_submit" class="miniorange_otp_token_submit" value="" . esc_attr(mo_("Validate OTP")) . "" /></div></div></div></div>`;
\xa jQuery(`form[name="checkout"]`).append(e);
</script>";
}
public function my_custom_checkout_field($ia)
{
if (!(file_exists(MOV_DIR . "addons/wcselectedcategory") && MoPHPSessions::get_session_var("specialproductexist") !== "true")) {
goto WuI;
}
return;
WuI:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto xpM;
}
return;
xpM:
echo "<div id="mo_validation_wrapper">";
$this->show_validation_button_or_text();
echo "<div id="mo_message" hidden></div>";
woocommerce_form_field("order_verify", array("type" => "text", "class" => array("form-row-wide"), "label" => mo_("Verify Code"), "required" => true, "placeholder" => mo_("Enter Verification Code")), $ia->get_value("order_verify"));
$this->place_after_validating_field();
$this->common_button_or_link_enable_disable_script();
echo ",$mo(".woocommerce-error").length>0&&$mo("html, body").animate({scrollTop:$mo("div.woocommerce").offset().top-50},1e3),$mo("#miniorange_otp_token_submit").click(function(o){var e=$mo("input[name=billing_email]").val(),n=$mo("#billing_phone").val(),a=$mo("div.woocommerce");a.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),$mo.ajax({url:"" . esc_url(site_url()) . "/?option=miniorange-woocommerce-checkout",type:"POST",data:{user_email:e, user_phone:n},crossDomain:!0,dataType:"json",success:function(o){ if(o.result=="success"){$mo(".blockUI").hide(),$mo("#mo_message").empty(),$mo("#mo_message").append(o.message),$mo("#mo_message").addClass("woocommerce-message").removeClass("woocommerce-error"),$mo("#mo_message").show()}else{$mo(".blockUI").hide(),$mo("#mo_message").empty(),$mo("#mo_message").append(o.message),$mo("#mo_message").addClass("woocommerce-error"),$mo("#mo_message").show();} ;},error:function(o,e,n){}}),o.preventDefault()});});</script></div>";
}
private function show_validation_button_or_text()
{
if ($this->show_button) {
goto m2A;
}
$this->showTextLinkOnPage();
m2A:
if (!$this->show_button) {
goto ZDS;
}
$this->mo_showButtonOnPage();
ZDS:
}
private function showTextLinkOnPage()
{
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto cTD;
}
echo "<div style = "margin-bottom: 15px;" title="" . esc_attr(mo_("Please Enter an Email Address to enable this link")) . "">\xd\xa <a href="#"
\xa style="text-align:center;color:grey;pointer-events:initial;display:none;" \xd
id="miniorange_otp_token_submit"
\xa class="" >" . esc_html(mo_($this->button_text)) . "
</a>\xd
</div>";
goto jQj;
cTD:
echo "<div style = "margin-bottom: 15px;" title="" . esc_attr(mo_("Please Enter a Phone Number to enable this link")) . "">\xd\xa <a href="#" style="text-align:center;color:grey;pointer-events:initial;display:none;"
\xa id="miniorange_otp_token_submit" \xd
class="" >" . esc_html(mo_($this->button_text)) . "
</a>\xd
</div>";
jQj:
}
private function mo_showButtonOnPage()
{
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto evl;
}
echo "<input type="button" class="button alt" style="" . ($this->popup_enabled ? "float: right;line-height: 1;margin-right: 2em;padding: 1em 2em; display:none;" : "display:none;width:100%;margin-bottom: 15px;") . "" id="miniorange_otp_token_submit" title="" . esc_attr(mo_("Please Enter an Email Address to enable this.")) . "" value="";
goto Sr3;
evl:
echo "<input type="button" class="button alt" style="" . ($this->popup_enabled ? "float: right;line-height: 1;margin-right: 2em;padding: 1em 2em; display:none;" : "display:none;width:100%;margin-bottom: 15px;") . "" id="miniorange_otp_token_submit" title="" . esc_attr(mo_("Please Enter a Phone Number to enable this.")) . "" value="";
Sr3:
echo esc_attr(mo_($this->button_text)) . ""></input>";
}
private function common_button_or_link_enable_disable_script()
{
echo "<script>jQuery(document).ready(function() { $mo = jQuery,";
echo "$mo(".woocommerce-message").length>0&&($mo("#mo_message").addClass("woocommerce-message"),$mo("#mo_message").show())";
}
private function place_after_validating_field()
{
echo "<script>jQuery(document).ready(function(){
\xa setTimeout(function(){
\xa jQuery("#mo_validation_wrapper").insertAfter("#billing_" . (strcasecmp($this->otp_type, $this->type_phone_tag) === 0 ? "phone" : "email") . "_field");\xd
},200);
});</script>";
}
public function my_custom_checkout_field_process($kT, $errors)
{
if (!(file_exists(MOV_DIR . "addons/wcselectedcategory") && MoPHPSessions::get_session_var("specialproductexist") !== "true")) {
goto S8B;
}
return;
S8B:
if (MoUtility::is_blank($errors->get_error_messages())) {
goto zxV;
}
return;
zxV:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto mMq;
}
return;
mMq:
if ($this->isPaymentVerificationNeeded()) {
goto m6o;
}
return;
m6o:
if (!$this->checkIfVerificationNotStarted()) {
goto KxD;
}
return;
KxD:
if (!$this->checkIfVerificationCodeNotEntered()) {
goto igS;
}
return;
igS:
$this->handle_otp_token_submitted();
}
private function handle_otp_token_submitted()
{
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto OQo;
}
$FN = $this->processEmail();
goto DyD;
OQo:
$FN = $this->process_phone_number();
DyD:
if ($FN) {
goto SfI;
}
$this->validate_challenge($this->get_verification_type(), "order_verify");
SfI:
}
private function isPaymentVerificationNeeded()
{
$CX = isset($_POST["payment_method"]) ? sanitize_text_field(wp_unslash($_POST["payment_method"])) : '';
return $this->selective_payment ? array_key_exists($CX, $this->payment_methods) : true;
}
private function process_phone_number()
{
$is = isset($_POST["billing_phone"]) ? MoUtility::process_phone_number(sanitize_text_field(wp_unslash($_POST["billing_phone"]))) : '';
if (!(strcasecmp(MoPHPSessions::get_session_var("phone_number_mo"), $is) !== 0)) {
goto j90;
}
wc_add_notice(MoMessages::showMessage(MoMessages::PHONE_MISMATCH), MoConstants::ERROR_JSON_TYPE);
return true;
j90:
return false;
}
private function processEmail()
{
$TC = isset($_POST["billing_email"]) ? sanitize_email(wp_unslash($_POST["billing_email"])) : '';
if (!(strcasecmp(MoPHPSessions::get_session_var("user_email"), $TC) !== 0)) {
goto zfQ;
}
wc_add_notice(MoMessages::showMessage(MoMessages::EMAIL_MISMATCH), MoConstants::ERROR_JSON_TYPE);
return true;
zfQ:
return false;
}
public function handle_failed_verification($cA, $xy, $Zg, $m2)
{
wc_add_notice(MoUtility::get_invalid_otp_method(), MoConstants::ERROR_JSON_TYPE);
}
public function handle_post_verification($KK, $cA, $xy, $Xm, $Zg, $ZG, $m2)
{
$this->unset_otp_session_variables();
MoPHPSessions::unset_session("specialproductexist");
}
public function enqueue_script_on_page()
{
if (!(file_exists(MOV_DIR . "addons/wcselectedcategory") && MoPHPSessions::get_session_var("specialproductexist") !== "true")) {
goto TkW;
}
return;
TkW:
$hr = MOV_URL . "includes/js/wccheckout.min.js?version=" . MOV_VERSION;
wp_register_script("wccheckout", $hr, array("jquery"), MOV_VERSION, true);
wp_localize_script("wccheckout", "mowccheckout", array("paymentMethods" => $this->payment_methods, "selectivePaymentEnabled" => $this->selective_payment, "popupEnabled" => $this->popup_enabled, "isLoggedIn" => $this->guest_check_out_only && is_user_logged_in(), "otpType" => strcasecmp($this->otp_type, $this->type_phone_tag) === 0 ? "phone" : "email"));
wp_enqueue_script("wccheckout");
}
public function unset_otp_session_variables()
{
SessionUtils::unset_session(array($this->tx_session_id, $this->form_session_var));
}
public function get_phone_number_selector($kj)
{
if (!($this->is_form_enabled() && $this->otp_type === $this->type_phone_tag)) {
goto nZd;
}
array_push($kj, $this->phone_form_id);
nZd:
return $kj;
}
public function handle_form_options()
{
if (!(!MoUtility::are_form_options_being_saved($this->get_form_option()) || !current_user_can("manage_options") || !check_admin_referer($this->admin_nonce))) {
goto dZr;
}
return;
dZr:
if (!function_exists("is_plugin_active")) {
include_once ABSPATH . "wp-admin/includes/plugin.php";
}
if (is_plugin_active("woocommerce/woocommerce.php")) {
goto ARD;
}
return;
ARD:
$kT = MoUtility::mo_sanitize_array($_POST);
$Xa = array();
if (!array_key_exists("wc_payment", $kT)) {
goto BFo;
}
foreach ($kT["wc_payment"] as $Bj) {
$Xa[$Bj] = $Bj;
PIr:
}
gI5:
BFo:
$this->is_form_enabled = $this->sanitize_form_post("wc_checkout_enable");
$this->otp_type = $this->sanitize_form_post("wc_checkout_type");
$this->guest_check_out_only = $this->sanitize_form_post("wc_checkout_guest");
$this->show_button = $this->sanitize_form_post("wc_checkout_button");
$this->popup_enabled = $this->sanitize_form_post("wc_checkout_popup");
$this->selective_payment = $this->sanitize_form_post("wc_checkout_selective_payment");
$this->button_text = $this->sanitize_form_post("wc_checkout_button_link_text");
$this->payment_methods = $Xa;
$this->disable_auto_login = $this->sanitize_form_post("wc_checkout_disable_auto_login");
$this->restrict_duplicates = $this->sanitize_form_post("wc_checkout_restrict_duplicates");
if (!$this->basic_validation_check(BaseMessages::WC_CHECKOUT_CHOOSE)) {
goto S92;
}
update_mo_option("wc_checkout_restrict_duplicates", $this->restrict_duplicates);
update_mo_option("wc_checkout_disable_auto_login", $this->disable_auto_login);
update_mo_option("wc_checkout_enable", $this->is_form_enabled);
update_mo_option("wc_checkout_type", $this->otp_type);
update_mo_option("wc_checkout_guest", $this->guest_check_out_only);
update_mo_option("wc_checkout_button", $this->show_button);
update_mo_option("wc_checkout_popup", $this->popup_enabled);
update_mo_option("wc_checkout_selective_payment", $this->selective_payment);
update_mo_option("wc_checkout_button_link_text", $this->button_text);
update_mo_option("wc_checkout_payment_type", maybe_serialize($Xa));
S92:
}
public function isGuestCheckoutOnlyEnabled()
{
return $this->guest_check_out_only;
}
public function showButtonInstead()
{
return $this->show_button;
}
public function isPopUpEnabled()
{
return $this->popup_enabled;
}
public function getPaymentMethods()
{
return $this->payment_methods;
}
public function isSelectivePaymentEnabled()
{
return $this->selective_payment;
}
public function isAutoLoginDisabled()
{
return $this->disable_auto_login;
}
}
mpI:
?>
Did this file decode correctly?
Original Code
<?php
namespace OTP\Handler\Forms;
if (defined("\x41\102\123\x50\101\x54\110")) {
goto nHD;
}
exit;
nHD:
use OTP\Helper\FormSessionVars;
use OTP\Helper\MoConstants;
use OTP\Helper\MoMessages;
use OTP\Helper\MoFormDocs;
use OTP\Helper\MoPHPSessions;
use OTP\Helper\MoUtility;
use OTP\Helper\SessionUtils;
use OTP\Objects\BaseMessages;
use OTP\Objects\FormHandler;
use OTP\Objects\IFormHandler;
use OTP\Objects\VerificationType;
use OTP\Traits\Instance;
use ReflectionException;
use WC_Checkout;
use WP_Error;
if (class_exists("\127\157\x6f\x43\x6f\x6d\x6d\145\162\x63\145\103\150\145\x63\x6b\x4f\165\164\x46\x6f\x72\x6d")) {
goto mpI;
}
class WooCommerceCheckOutForm extends FormHandler implements IFormHandler
{
use Instance;
private $guest_check_out_only;
private $show_button;
private $popup_enabled;
private $payment_methods;
private $selective_payment;
private $disable_auto_login;
private $mo_special_category_list;
protected function __construct()
{
$this->is_login_or_social_form = false;
$this->is_ajax_form = true;
$this->form_session_var = FormSessionVars::WC_CHECKOUT;
$this->type_phone_tag = "\155\x6f\137\x77\x63\x5f\160\150\x6f\x6e\145\x5f\x65\156\141\x62\154\x65";
$this->type_email_tag = "\155\157\137\167\x63\137\145\155\x61\x69\x6c\x5f\145\156\x61\142\154\x65";
$this->phone_form_id = "\x69\156\x70\165\164\x5b\x6e\141\155\x65\75\x62\151\154\x6c\151\x6e\147\137\160\150\157\156\145\x5d";
$this->form_key = "\x57\103\x5f\x43\x48\x45\103\x4b\117\x55\124\137\x46\x4f\x52\x4d";
$this->form_name = mo_("\x57\x6f\157\x43\157\155\155\145\x72\x63\145\40\x43\x68\x65\143\x6b\157\165\164\40\106\157\162\x6d");
$this->is_form_enabled = get_mo_option("\x77\143\137\143\150\x65\143\x6b\157\165\x74\x5f\x65\x6e\x61\142\154\x65");
$this->button_text = get_mo_option("\x77\x63\x5f\x63\150\x65\x63\x6b\157\x75\x74\137\142\165\x74\164\x6f\156\x5f\x6c\x69\x6e\153\x5f\x74\145\170\164");
$this->button_text = !MoUtility::is_blank($this->button_text) ? $this->button_text : (!$this->popup_enabled ? mo_("\126\145\x72\151\x66\171\x20\131\x6f\x75\x72\40\120\165\x72\x63\150\x61\x73\x65") : mo_("\x50\x6c\141\x63\x65\x20\x4f\162\x64\145\162"));
$this->form_documents = MoFormDocs::WC_CHECKOUT_LINK;
parent::__construct();
}
public function handle_form()
{
if (!function_exists("\151\x73\x5f\x70\154\x75\147\151\156\137\x61\143\x74\x69\x76\145")) {
include_once ABSPATH . "\167\x70\55\x61\x64\x6d\151\156\x2f\151\x6e\x63\x6c\x75\144\145\x73\57\x70\x6c\165\x67\x69\x6e\56\x70\150\x70";
}
if (is_plugin_active("\x77\157\157\143\157\x6d\x6d\x65\162\x63\x65\x2f\x77\x6f\157\x63\x6f\x6d\x6d\x65\x72\143\x65\56\x70\x68\x70")) {
goto M97;
}
return;
M97:
if (!file_exists(MOV_DIR . "\x61\x64\x64\157\156\163\57\x77\143\163\145\154\x65\x63\x74\145\x64\x63\141\x74\x65\147\157\162\171")) {
goto XKP;
}
add_action("\167\157\x6f\x63\157\155\x6d\x65\162\143\x65\x5f\x63\x68\x65\143\153\x6f\165\x74\137\x62\145\x66\157\x72\145\x5f\x63\165\x73\164\157\x6d\x65\x72\x5f\x64\145\x74\141\x69\x6c\163", array($this, "\167\145\x62\162\x6f\x6f\x6d\x5f\x63\150\x65\x63\x6b\x5f\x69\146\x5f\160\162\x6f\144\165\x63\x74\137\x63\141\164\145\x67\x6f\162\x79\x5f\151\x6e\x5f\x63\141\x72\164"));
XKP:
$this->disable_auto_login = get_mo_option("\167\x63\137\143\x68\145\143\153\157\x75\164\x5f\x64\151\x73\x61\142\x6c\145\x5f\x61\x75\164\157\x5f\154\157\147\x69\156");
$this->payment_methods = maybe_unserialize(get_mo_option("\x77\143\137\x63\x68\145\143\x6b\157\x75\164\x5f\x70\x61\171\x6d\145\x6e\x74\137\x74\171\x70\145"));
$this->payment_methods = $this->payment_methods ? $this->payment_methods : WC()->payment_gateways->payment_gateways();
$this->popup_enabled = get_mo_option("\167\143\x5f\x63\150\145\x63\x6b\157\165\x74\137\x70\157\160\165\160");
$this->guest_check_out_only = get_mo_option("\167\143\137\143\150\145\x63\x6b\x6f\x75\164\137\147\x75\145\163\x74");
$this->show_button = get_mo_option("\x77\x63\x5f\x63\x68\x65\143\153\x6f\165\x74\x5f\142\x75\164\164\157\156");
$this->otp_type = get_mo_option("\167\143\137\143\150\x65\143\153\157\x75\164\137\x74\171\x70\145");
$this->selective_payment = get_mo_option("\x77\x63\137\143\x68\145\143\x6b\x6f\x75\x74\x5f\163\145\154\x65\143\x74\x69\x76\x65\x5f\x70\x61\x79\x6d\145\156\164");
$this->restrict_duplicates = get_mo_option("\x77\143\137\143\x68\x65\x63\x6b\x6f\x75\164\137\x72\x65\x73\164\162\151\143\x74\137\x64\165\x70\x6c\x69\143\141\164\x65\x73");
if ($this->popup_enabled) {
goto qV6;
}
add_action("\x77\x6f\x6f\143\x6f\155\155\145\x72\x63\145\x5f\x61\146\x74\x65\x72\x5f\x63\x68\145\x63\153\x6f\x75\164\x5f\142\151\x6c\x6c\151\x6e\147\137\146\x6f\x72\x6d", array($this, "\x6d\171\137\143\165\x73\x74\157\x6d\137\x63\x68\145\143\x6b\x6f\x75\x74\137\x66\x69\145\154\x64"), 99);
goto p4J;
qV6:
add_action("\x77\x6f\157\x63\157\155\x6d\145\162\143\x65\137\141\146\x74\x65\162\x5f\143\x68\x65\143\x6b\157\x75\x74\137\x62\x69\x6c\154\151\x6e\147\137\x66\x6f\162\155", array($this, "\141\144\144\137\143\165\x73\x74\157\x6d\x5f\160\x6f\x70\x75\x70"), 99);
add_action("\x77\157\x6f\143\157\155\155\145\x72\x63\145\137\x72\145\x76\x69\145\x77\137\x6f\x72\x64\145\162\x5f\x61\146\164\x65\162\137\163\165\x62\155\151\164", array($this, "\x61\144\144\x5f\x63\165\163\x74\157\x6d\x5f\x62\165\164\164\157\156"), 1, 1);
p4J:
if (!$this->disable_auto_login) {
goto ylG;
}
add_action("\x77\157\157\143\x6f\155\x6d\x65\x72\x63\x65\137\x74\150\141\156\x6b\171\157\x75", array($this, "\144\151\x73\x61\x62\154\x65\x5f\x61\165\x74\x6f\137\x6c\x6f\x67\x69\x6e\x5f\141\x66\164\x65\162\x5f\143\150\145\143\x6b\x6f\x75\x74"), 1, 1);
ylG:
add_filter("\167\157\x6f\143\157\x6d\x6d\145\x72\x63\x65\137\143\150\145\143\153\x6f\165\164\137\x70\157\163\164\x65\x64\x5f\144\141\x74\x61", array($this, "\x62\151\x6c\x6c\151\x6e\147\x5f\x70\x68\157\156\145\137\x70\162\157\x63\145\163\x73"), 99, 1);
add_action("\167\x70\x5f\145\156\x71\165\x65\165\145\x5f\163\x63\162\x69\160\x74\x73", array($this, "\145\156\161\165\x65\x75\x65\137\x73\x63\162\x69\x70\x74\137\157\x6e\x5f\x70\141\147\x65"));
add_action("\167\157\x6f\143\157\155\x6d\x65\x72\x63\x65\x5f\x61\146\164\145\162\137\143\150\145\143\153\x6f\165\x74\x5f\x76\141\154\x69\x64\141\164\x69\157\x6e", array($this, "\x6d\x79\137\x63\x75\163\x74\157\155\x5f\x63\150\145\143\x6b\x6f\165\164\x5f\146\x69\145\154\x64\x5f\160\x72\x6f\143\145\x73\163"), 99, 2);
$this->routeData();
}
public function webroom_check_if_product_category_in_cart()
{
MoPHPSessions::add_session_var("\x73\160\145\143\151\x61\x6c\x70\162\x6f\x64\165\x63\x74\x65\x78\151\163\x74", "\x66\141\x6c\163\x65");
$this->mo_special_category_list = get_option("\155\x6f\x5f\x77\143\163\x63\137\x73\x6d\x73\x5f\167\143\x5f\163\145\154\145\143\164\145\144\137\x63\x61\164\x65\x67\157\162\171");
foreach (WC()->cart->get_cart() as $yw => $gp) {
$tq = $gp["\x70\x72\157\144\x75\143\x74\x5f\x69\144"];
$u2 = wp_get_post_terms($tq, "\160\162\x6f\144\x75\143\164\137\x63\141\164");
$u2 = json_decode(wp_json_encode($u2), true);
$u2 = $u2[0]["\156\141\x6d\x65"];
if (!in_array($u2, $this->mo_special_category_list, true)) {
goto LdZ;
}
MoPHPSessions::add_session_var("\163\160\x65\x63\x69\141\154\160\162\x6f\x64\165\143\164\145\x78\151\x73\164", "\x74\162\165\x65");
goto VBO;
LdZ:
uyP:
}
VBO:
}
public function billing_phone_process($kT)
{
if (!(file_exists(MOV_DIR . "\141\144\144\x6f\156\x73\57\167\x63\163\x65\154\x65\143\x74\x65\x64\143\141\164\145\x67\x6f\162\171") && MoPHPSessions::get_session_var("\x73\160\x65\x63\151\x61\154\160\162\157\x64\165\143\164\x65\170\151\x73\x74") !== "\x74\x72\165\x65")) {
goto xD0;
}
return $kT;
xD0:
$kT["\142\151\154\x6c\x69\x6e\147\137\160\x68\157\x6e\145"] = MoUtility::process_phone_number($kT["\x62\x69\x6c\x6c\151\156\147\137\160\x68\157\x6e\145"]);
return $kT;
}
public function disable_auto_login_after_checkout($Y_)
{
MoPHPSessions::add_session_var("\163\160\x65\x63\x69\x61\154\x70\x72\x6f\x64\165\x63\164\x65\170\151\163\x74", "\x66\141\x6c\x73\145");
if (!is_user_logged_in()) {
goto J_B;
}
wp_logout();
$RC = isset($_SERVER["\x52\105\x51\125\105\x53\x54\x5f\125\122\111"]) ? esc_url_raw(wp_unslash($_SERVER["\x52\105\121\x55\x45\123\x54\137\x55\x52\x49"])) : '';
wp_safe_redirect($RC);
exit;
J_B:
}
private function routeData()
{
if (array_key_exists("\157\160\164\x69\x6f\x6e", $_GET)) {
goto wy9;
}
return;
wy9:
if (!(strcasecmp(trim(sanitize_text_field(wp_unslash($_GET["\157\x70\x74\x69\157\156"]))), "\x6d\151\156\151\157\x72\x61\x6e\x67\x65\x2d\x77\x6f\x6f\x63\x6f\x6d\x6d\x65\162\143\x65\55\143\150\145\143\x6b\x6f\x75\164") === 0)) {
goto Uo0;
}
$this->handle_woocommerce_checkout_form($_POST);
Uo0:
}
private function handle_woocommerce_checkout_form($UD)
{
MoUtility::initialize_transaction($this->form_session_var);
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto HqY;
}
$this->send_challenge("\x74\x65\163\x74", sanitize_email($UD["\x75\x73\145\162\137\x65\x6d\x61\151\x6c"]), null, null, VerificationType::EMAIL);
goto eWi;
HqY:
$this->checkPhoneValidity($UD);
$this->send_challenge("\x74\x65\163\164", sanitize_email($UD["\x75\163\145\162\137\145\155\x61\151\x6c"]), null, sanitize_text_field(trim($UD["\x75\x73\x65\x72\x5f\x70\x68\x6f\156\145"])), VerificationType::PHONE);
eWi:
}
private function checkPhoneValidity($UD)
{
if (!($this->isPhoneNumberAlreadyInUse(sanitize_text_field($UD["\165\163\x65\x72\137\160\150\x6f\156\145"])) && $this->restrict_duplicates)) {
goto dG1;
}
wp_send_json(MoUtility::create_json(MoMessages::showMessage(MoMessages::PHONE_EXISTS), MoConstants::ERROR_JSON_TYPE));
exit;
dG1:
}
private function isPhoneNumberAlreadyInUse($is)
{
global $wpdb;
$is = MoUtility::process_phone_number($is);
$wI = "\x62\151\154\x6c\151\156\147\137\160\150\157\x6e\x65";
$rk = strval(wp_get_current_user()->ID);
$xt = $wpdb->get_row($wpdb->prepare("\x53\x45\x4c\x45\103\x54\x20\x60\165\x73\x65\x72\137\x69\144\140\40\106\122\117\115\x20\x60{$wpdb->prefix}\x75\163\145\x72\x6d\145\164\x61\x60\40\x57\x48\105\x52\105\40\x60\x6d\145\x74\141\x5f\x6b\x65\x79\x60\x20\x3d\x20\45\163\x20\x41\x4e\104\40\x60\x6d\145\164\141\x5f\x76\141\154\165\x65\x60\40\x3d\x20\40\x25\x73", array($wI, $is)));
return MoUtility::is_blank($xt) ? false : $xt->user_id !== $rk;
}
private function checkIfVerificationNotStarted()
{
if (SessionUtils::is_otp_initialized($this->form_session_var)) {
goto yJm;
}
wc_add_notice(MoMessages::showMessage(MoMessages::ENTER_VERIFY_CODE), MoConstants::ERROR_JSON_TYPE);
return true;
yJm:
return false;
}
private function checkIfVerificationCodeNotEntered()
{
if (!(array_key_exists("\157\x72\144\145\162\x5f\166\x65\x72\151\x66\x79", $_POST) && !MoUtility::is_blank(sanitize_text_field(wp_unslash($_POST["\157\162\x64\145\162\137\x76\145\162\151\146\171"]))))) {
goto V7U;
}
return false;
V7U:
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto m0K;
}
wc_add_notice(MoMessages::showMessage(MoMessages::ENTER_EMAIL_CODE), MoConstants::ERROR_JSON_TYPE);
goto QVP;
m0K:
wc_add_notice(MoMessages::showMessage(MoMessages::ENTER_PHONE_CODE), MoConstants::ERROR_JSON_TYPE);
QVP:
return true;
}
public function add_custom_button($Ms)
{
if (!(file_exists(MOV_DIR . "\x61\x64\144\157\x6e\x73\57\x77\143\163\x65\154\x65\x63\x74\x65\144\143\141\x74\x65\x67\157\x72\171") && MoPHPSessions::get_session_var("\x73\160\x65\143\x69\141\154\160\162\157\x64\165\143\x74\x65\170\x69\163\164") !== "\x74\162\165\145")) {
goto F7J;
}
return;
F7J:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto ksQ;
}
return;
ksQ:
$this->show_validation_button_or_text();
$this->common_button_or_link_enable_disable_script();
echo "\x2c\44\155\x6f\x28\x22\43\x6d\151\x6e\x69\x6f\x72\141\156\x67\x65\137\x6f\164\160\x5f\164\x6f\x6b\x65\x6e\x5f\163\x75\x62\155\151\x74\x22\x29\x2e\143\154\151\143\x6b\50\146\165\x6e\x63\164\151\157\x6e\50\x6f\x29\x7b\xd\xa\40\40\40\40\40\40\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\40\40\166\141\x72\x20\162\145\x71\x75\151\x72\x65\144\x46\151\145\154\144\163\40\x3d\x20\141\162\x65\101\x6c\x6c\x4d\141\x6e\144\157\x74\x72\x79\x46\x69\x65\x6c\x64\x73\x46\x69\x6c\154\145\144\50\x29\54\15\xa\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\145\x3d\x24\155\157\50\x22\x69\x6e\160\165\x74\x5b\x6e\141\x6d\x65\x3d\142\151\x6c\154\151\156\x67\137\x65\155\x61\151\154\135\x22\51\56\166\x61\x6c\50\x29\x2c\15\xa\40\40\x20\x20\40\x20\40\40\40\40\40\40\x20\40\40\40\40\40\x20\40\x6d\x3d\44\x6d\157\50\x22\43\142\151\154\154\x69\x6e\147\x5f\160\150\x6f\156\x65\42\51\x2e\x76\141\x6c\50\51\x2c\xd\12\x20\40\40\40\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x61\75\x24\155\x6f\50\42\144\x69\166\56\167\157\157\143\157\155\x6d\x65\x72\x63\145\x22\x29\73\xd\12\40\40\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\40\x20\40\x20\40\x69\146\50\162\x65\x71\165\151\162\145\144\x46\x69\145\154\x64\x73\x3d\x3d\42\x22\51\xd\12\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\173\xd\12\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\40\40\x20\x20\x20\40\x20\x20\x61\x2e\x61\x64\144\103\154\x61\x73\163\x28\42\160\x72\157\x63\145\163\x73\x69\156\x67\42\51\x2e\x62\154\157\143\x6b\x28\173\x6d\145\x73\163\x61\147\x65\72\156\x75\x6c\154\x2c\157\x76\145\x72\x6c\x61\x79\x43\x53\x53\72\173\142\141\143\x6b\x67\162\157\165\156\144\72\42\43\146\146\x66\x22\x2c\x6f\160\141\143\x69\164\x79\72\x2e\x36\x7d\x7d\51\x3b\15\xa\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\44\x6d\157\56\x61\152\141\x78\50\x7b\15\xa\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\165\x72\x6c\72\x22" . esc_url(site_url()) . "\x2f\x3f\x6f\x70\164\151\x6f\156\x3d\155\x69\x6e\x69\157\162\x61\156\147\x65\x2d\167\157\157\143\157\x6d\x6d\145\162\x63\145\55\x63\150\145\143\153\157\x75\x74\42\x2c\164\x79\160\145\x3a\42\x50\117\123\124\42\x2c\15\12\x20\40\40\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\40\40\x20\40\144\x61\164\x61\72\x7b\165\x73\x65\x72\137\x65\x6d\x61\151\154\x3a\x65\x2c\x75\x73\x65\162\x5f\160\x68\x6f\x6e\x65\x3a\x6d\175\54\x63\162\x6f\x73\163\x44\x6f\155\141\x69\156\x3a\x21\60\x2c\144\141\164\x61\124\171\160\x65\72\x22\x6a\163\x6f\156\42\54\xd\12\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\x73\x75\143\143\145\163\x73\72\146\165\x6e\143\164\151\157\156\50\x6f\51\x7b\xd\xa\40\40\x20\40\x20\x20\40\40\40\40\40\x20\40\x20\40\40\40\x20\40\40\40\40\40\40\40\40\40\40\x20\x20\x20\x20\42\163\165\143\143\145\x73\x73\42\75\x3d\x6f\56\162\145\163\x75\154\164\x3f\x28\xd\xa\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\44\155\157\50\x22\56\142\x6c\x6f\x63\x6b\x55\111\42\x29\56\150\151\144\x65\x28\x29\54\44\x6d\x6f\50\x22\x23\x6d\157\137\155\145\163\163\x61\147\145\42\x29\56\x65\155\x70\164\x79\50\51\54\xd\xa\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\44\155\x6f\x28\x22\x23\155\157\137\155\x65\x73\x73\x61\147\145\x22\x29\56\x61\160\160\x65\156\x64\x28\x6f\56\x6d\x65\x73\163\141\147\x65\51\56\x73\150\157\167\x28\51\54\15\xa\40\40\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\x20\40\44\x6d\157\x28\42\43\155\157\x5f\x6d\145\x73\163\x61\x67\x65\x22\51\x2e\141\144\144\x43\x6c\x61\x73\163\x28\x22\167\x6f\x6f\x63\157\155\155\145\162\x63\x65\55\155\145\x73\163\x61\147\x65\42\x29\56\162\x65\155\157\x76\x65\103\x6c\141\163\163\x28\x22\167\157\157\x63\x6f\155\x6d\x65\162\143\x65\55\145\x72\x72\x6f\162\42\x29\x2c\15\12\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\x20\40\40\40\x20\40\x20\40\40\40\40\x20\40\40\40\x20\x20\x20\40\40\x2f\x2f\x24\155\157\x28\x22\43\x6d\x79\115\157\x64\x61\154\40\x2e\x6d\x6f\144\x61\x6c\55\x63\x6f\156\164\x65\156\x74\x22\51\56\x61\x70\160\x65\156\144\50\x70\157\x70\x75\160\x54\x65\155\x70\154\x61\x74\x65\x29\x2c\xd\xa\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\x20\x20\40\x20\40\44\x6d\x6f\50\42\x23\155\x79\115\x6f\x64\141\154\42\51\56\163\150\x6f\167\50\51\54\x24\155\157\x28\42\x23\x6d\x6f\137\166\141\154\151\x64\x61\164\x65\x5f\x66\x69\x65\154\144\x22\x29\x2e\x73\150\157\167\x28\51\51\72\x28\x24\155\x6f\x28\42\56\142\154\157\x63\153\x55\111\x22\x29\x2e\150\151\144\145\50\x29\x2c\44\x6d\x6f\50\x22\x23\155\157\x5f\155\145\x73\x73\x61\x67\145\42\x29\x2e\145\x6d\x70\164\x79\x28\51\x2c\xd\xa\40\x20\40\40\40\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40\x24\155\x6f\50\x22\43\x6d\157\x5f\x6d\x65\163\x73\x61\147\x65\x22\51\x2e\141\x70\160\x65\x6e\144\x28\x6f\56\x6d\145\163\x73\x61\x67\x65\51\x2c\44\155\157\x28\42\x23\x6d\x6f\137\155\145\163\x73\141\147\145\42\x29\56\141\144\144\103\x6c\x61\x73\x73\50\x22\x77\157\157\143\157\x6d\155\145\x72\x63\145\55\x65\162\x72\157\x72\x22\x29\x2c\15\xa\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\44\155\x6f\50\x22\43\155\157\137\x76\141\154\x69\x64\x61\164\x65\x5f\x66\151\145\x6c\144\42\51\56\x68\x69\x64\x65\50\x29\x2c\x24\155\x6f\x28\42\x23\x6d\x79\x4d\x6f\144\x61\154\42\x29\56\163\150\x6f\x77\x28\x29\15\xa\40\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\51\15\xa\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\x7d\54\xd\12\40\40\40\40\40\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\x65\x72\162\157\x72\72\x66\165\156\x63\164\x69\x6f\x6e\50\157\x2c\145\54\155\51\173\x7d\15\xa\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\40\x20\40\40\40\x20\x20\x20\x20\175\51\73\15\12\x20\x20\40\x20\40\40\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\x20\40\x7d\x65\154\163\145\x7b\xd\12\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\44\155\157\x28\x22\x2e\x77\157\x6f\143\157\155\x6d\x65\162\x63\145\55\116\x6f\x74\x69\143\x65\107\x72\x6f\165\x70\x2d\143\150\145\x63\x6b\x6f\165\164\x22\51\56\145\x6d\160\x74\171\50\x29\x3b\15\xa\40\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\40\40\40\x20\40\x20\x20\x20\40\x24\x6d\x6f\50\x22\146\x6f\162\x6d\56\167\157\157\x63\x6f\x6d\155\145\x72\x63\145\x2d\x63\150\145\143\x6b\157\x75\164\42\x29\56\x70\162\145\160\145\x6e\144\x28\162\x65\x71\x75\151\x72\145\144\106\x69\x65\x6c\x64\163\51\x3b\15\12\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x24\155\157\x28\x22\150\164\155\x6c\54\x20\x62\157\x64\171\x22\x29\56\141\156\x69\155\141\164\x65\50\173\x73\x63\x72\x6f\154\154\x54\x6f\x70\72\x20\44\155\157\x28\42\x2e\x77\x6f\157\x63\157\155\x6d\x65\162\x63\x65\55\x65\x72\162\x6f\162\x22\51\x2e\157\146\146\163\x65\164\50\x29\x2e\x74\x6f\x70\175\54\x20\62\60\x30\x30\51\73\15\12\40\x20\40\40\40\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\x20\x7d\xd\xa\40\x20\40\40\40\x20\40\40\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\157\56\160\x72\x65\x76\x65\x6e\x74\x44\x65\x66\141\x75\154\164\50\x29\175\x29\73\15\12\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\44\x6d\157\50\x22\x23\x6d\151\x6e\151\x6f\x72\141\156\x67\145\x5f\x6f\x74\160\x5f\166\141\154\151\144\141\164\x65\x5f\163\165\x62\155\x69\164\42\x29\56\x63\x6c\x69\x63\x6b\50\146\x75\x6e\143\x74\x69\157\x6e\50\157\51\x7b\44\x6d\157\x28\42\43\x6d\x79\115\x6f\x64\x61\154\42\51\x2e\x68\151\144\x65\50\51\54\x24\155\157\x28\47\146\157\162\x6d\133\156\x61\x6d\x65\75\42\143\150\145\x63\x6b\x6f\165\164\42\x5d\47\51\x2e\163\x75\142\155\x69\164\x28\51\x7d\51\54\15\xa\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\44\x6d\157\x28\42\x2e\x63\154\157\x73\x65\x22\51\56\143\x6c\x69\x63\153\x28\x66\x75\x6e\143\x74\151\x6f\x6e\50\x29\x7b\x24\155\157\x28\42\x2e\x6d\157\x64\141\154\x22\51\x2e\150\151\144\145\x28\51\x3b\x7d\x29\x3b\175\51\73";
echo "\x66\x75\x6e\x63\164\x69\x6f\x6e\x20\141\x72\x65\101\x6c\x6c\115\x61\x6e\x64\x6f\x74\x72\x79\106\151\x65\x6c\x64\163\x46\x69\x6c\154\145\144\x28\x29\173\xd\xa\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\x20\40\166\x61\162\40\x65\x72\x72\40\75\x20\140\x3c\144\151\x76\x20\143\x6c\x61\163\163\75\x22\x77\x6f\157\143\x6f\155\x6d\145\162\143\145\x2d\x4e\157\x74\151\x63\145\107\162\157\165\x70\x20\x77\157\157\x63\157\155\155\x65\x72\x63\x65\55\x4e\157\164\151\x63\x65\107\x72\x6f\x75\x70\55\143\x68\x65\x63\153\157\165\164\x22\x3e\140\53\15\xa\x20\x20\40\x20\40\40\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\x20\140\74\165\154\x20\x63\x6c\x61\163\x73\x3d\x22\167\157\x6f\143\157\x6d\155\x65\162\143\x65\55\x65\x72\162\157\162\42\x20\162\x6f\154\145\75\x22\141\154\x65\162\164\42\76\x7b\173\145\162\x72\157\x72\163\x7d\175\74\57\x75\x6c\76\140\x2b\xd\xa\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\x20\40\x60\x3c\x2f\144\x69\x76\76\x60\73\xd\12\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\40\40\x20\40\x76\x61\162\x20\x65\162\x72\x6f\x72\163\x20\x3d\x20\x22\42\x3b\15\xa\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\44\155\157\50\42\56\166\141\154\151\144\141\x74\145\x2d\x72\x65\161\165\151\162\x65\144\x22\x29\x2e\145\x61\x63\150\50\x66\x75\x6e\x63\x74\151\157\x6e\x28\51\173\xd\12\x20\40\40\x20\x20\40\40\40\x20\40\40\x20\40\40\40\40\40\x20\x20\x20\166\141\x72\x20\151\144\x20\x3d\x20\x24\x6d\x6f\x28\164\150\x69\163\x29\56\141\x74\164\162\50\42\151\144\x22\x29\73\xd\12\40\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\x20\40\40\40\x20\x20\x20\x69\x66\50\151\144\x21\x3d\x75\156\144\145\146\x69\156\x65\144\x29\x7b\xd\12\40\x20\40\40\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\x20\40\166\141\162\x20\156\40\x3d\40\x69\144\x2e\162\x65\x70\154\141\143\145\50\42\x5f\146\x69\x65\x6c\144\x22\54\42\x22\x29\73\xd\xa\x20\40\x20\x20\40\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\40\40\x69\x66\50\x6e\x21\75\x22\x22\51\40\x7b\xd\xa\40\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\x20\40\40\40\x20\166\x61\162\40\166\x61\x6c\x20\75\40\x24\x6d\x6f\x28\42\43\x22\x2b\156\51\x2e\x76\x61\x6c\x28\x29\73\15\xa\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\40\x20\40\x20\40\x20\40\40\x20\40\x20\151\x66\50\50\x76\x61\x6c\75\x3d\x22\42\x20\x7c\174\40\166\x61\x6c\x3d\x3d\x22\163\x65\154\x65\x63\164\42\x29\40\x26\46\40\x63\150\x65\143\x6b\x4f\x70\x74\x69\157\156\141\154\115\x61\x6e\x64\141\164\x6f\x72\x79\x46\x69\145\154\144\163\50\x6e\x29\40\x29\x20\x7b\xd\12\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\40\x20\x20\40\40\40\40\40\x24\155\x6f\50\42\x23\x22\53\156\x29\x2e\141\x64\x64\103\x6c\x61\163\x73\50\x22\167\x6f\157\143\157\x6d\155\x65\x72\143\145\55\x69\x6e\x76\141\154\x69\x64\40\x77\x6f\157\x63\x6f\155\155\x65\162\143\145\x2d\x69\156\x76\x61\154\x69\144\x2d\162\x65\x71\165\151\x72\x65\144\x2d\x66\151\145\154\144\x22\x29\x3b\xd\12\x20\40\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\40\145\162\162\x6f\162\163\40\x20\x2b\x3d\x20\x9\140\74\154\x69\x3e\74\163\164\162\157\x6e\147\x3e\140\53\xd\12\40\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\x20\x24\155\x6f\50\x22\43\42\x2b\156\53\x22\x5f\146\x69\x65\x6c\144\x22\x29\56\x63\x68\151\x6c\x64\x72\145\156\x28\42\154\141\x62\x65\154\x22\x29\x2e\x74\x65\x78\x74\x28\51\56\x72\145\160\x6c\141\143\x65\50\x22\x2a\42\x2c\x22\42\51\x2b\xd\12\40\40\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\40\40\40\40\x20\40\40\40\40\40\x20\x20\40\40\40\40\40\40\40\x20\40\40\40\x20\40\40\x20\40\40\x20\x20\40\x20\x20\42\x3c\57\x73\x74\162\157\156\147\x3e\40\x69\163\40\x61\40\162\x65\x71\x75\151\162\145\144\40\x66\151\x65\154\144\56\42\x2b\15\xa\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x60\x3c\x2f\154\x69\x3e\140\x3b\15\xa\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x20\x7d\xd\12\x20\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\x20\40\x20\x7d\15\12\40\x20\40\x20\40\x20\x20\40\x20\40\40\x20\40\40\40\x20\40\x20\x20\40\x7d\15\xa\x20\40\40\40\40\40\x20\40\x20\40\40\40\40\x20\x20\40\175\51\x3b\15\xa\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\40\40\x20\x20\x72\x65\164\165\162\x6e\40\x65\162\162\157\x72\x73\x20\x21\75\40\42\42\x20\77\x20\x65\162\162\56\x72\x65\160\x6c\141\x63\145\x28\x22\173\x7b\x65\x72\x72\157\x72\163\x7d\x7d\x22\54\145\x72\x72\x6f\162\163\51\40\72\x20\x30\73\15\xa\40\40\40\x20\x20\x20\40\40\x20\40\x20\x20\x7d\xd\xa\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\x20\146\165\x6e\x63\164\151\157\156\x20\x63\x68\x65\x63\x6b\117\160\x74\151\x6f\x6e\x61\x6c\x4d\x61\x6e\144\141\164\157\162\x79\106\x69\145\154\144\x73\x28\x6e\x29\x7b\xd\xa\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\166\x61\162\40\x6f\160\164\151\157\x6e\141\154\x20\x3d\40\x7b\40\42\163\150\151\160\160\x69\x6e\147\x22\x3a\40\173\x20\42\x66\151\145\154\x64\163\x22\x3a\x20\x5b\x20\42\x73\150\x69\x70\160\151\156\147\x5f\146\x69\x72\163\x74\137\x6e\x61\x6d\145\x22\x2c\x22\x73\150\151\x70\160\151\x6e\x67\x5f\154\141\163\164\x5f\x6e\141\155\145\42\54\x22\163\150\x69\160\160\x69\x6e\147\137\x70\x6f\x73\x74\143\157\x64\x65\x22\54\42\163\150\x69\x70\x70\151\156\147\x5f\141\144\144\x72\x65\x73\163\x5f\x31\42\54\42\163\x68\x69\x70\160\151\156\147\137\141\x64\x64\x72\x65\x73\163\137\62\42\x2c\42\x73\150\151\x70\160\x69\156\x67\137\143\x69\x74\171\x22\54\42\x73\x68\x69\x70\x70\x69\156\147\137\x73\x74\x61\164\145\x22\x5d\x2c\42\143\150\x65\143\x6b\142\157\x78\x22\72\x20\42\163\x68\151\160\55\x74\x6f\55\x64\x69\x66\x66\145\162\x65\156\164\55\141\x64\x64\x72\145\x73\x73\x2d\143\x68\x65\x63\153\x62\x6f\170\x22\x7d\x2c\x22\x61\143\143\x6f\x75\156\164\x22\x3a\40\173\x22\146\151\x65\x6c\x64\163\42\x3a\x20\x5b\x22\x61\143\x63\x6f\x75\x6e\x74\x5f\x70\x61\163\163\167\157\162\x64\42\x2c\42\141\x63\143\157\165\x6e\x74\137\165\x73\145\162\156\x61\155\145\42\135\54\42\x63\150\145\143\153\x62\157\x78\x22\72\x20\42\143\x72\145\x61\164\x65\x61\x63\x63\157\x75\x6e\164\42\175\x7d\x3b\xd\12\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x69\x66\50\x6e\x2e\151\x6e\144\x65\170\117\146\50\42\163\x68\151\x70\x70\151\156\147\42\51\40\41\75\x20\x2d\61\51\173\15\12\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\40\40\x20\40\x20\40\x20\x72\145\164\x75\x72\x6e\40\143\150\x65\143\153\137\146\x69\145\154\x64\x73\50\x6e\x2c\x6f\x70\164\x69\x6f\x6e\141\x6c\x5b\42\x73\150\151\160\160\151\156\147\x22\x5d\x29\x3b\xd\xa\x20\40\40\x20\x20\40\40\40\40\40\x20\40\x20\x20\40\40\175\x65\x6c\x73\x65\40\x69\x66\50\156\56\x69\156\144\145\170\x4f\146\50\42\x61\143\143\x6f\x75\156\x74\42\x29\40\41\75\40\x2d\61\51\173\15\12\40\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\x72\145\x74\165\162\x6e\x20\x63\150\145\143\153\137\x66\151\x65\154\x64\x73\x28\x6e\54\x6f\x70\164\x69\157\156\141\x6c\133\42\141\x63\x63\157\165\156\x74\42\135\x29\x3b\xd\12\x20\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x20\175\xd\xa\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\x20\40\40\x72\x65\x74\x75\162\156\40\164\x72\x75\145\73\xd\xa\40\40\x20\x20\x20\x20\40\40\40\40\x20\x20\175\15\12\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\146\x75\156\x63\164\x69\157\156\x20\143\x68\145\x63\x6b\137\146\151\x65\x6c\x64\163\50\156\54\x64\x61\x74\141\51\x7b\xd\12\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\151\146\50\44\x6d\157\56\x69\156\101\162\x72\x61\171\50\156\x2c\x64\141\x74\x61\x5b\x22\146\x69\x65\x6c\144\x73\42\135\51\40\75\x3d\40\55\61\40\174\x7c\x20\50\x24\155\157\56\x69\156\x41\162\x72\x61\171\x28\156\54\x64\x61\164\141\x5b\42\146\x69\x65\154\x64\163\x22\135\51\40\x3e\40\55\x31\x20\46\x26\xd\xa\x20\40\40\x20\40\x20\40\40\40\40\x20\40\40\40\40\40\x20\x20\40\40\40\x20\x20\x20\x24\x6d\x6f\x28\x22\x23\x22\53\144\141\x74\141\133\x27\x63\150\145\x63\153\142\157\x78\x27\135\x2b\42\72\x63\150\x65\x63\153\145\x64\x22\51\x2e\154\x65\x6e\x67\164\x68\x20\x3e\x20\60\x29\x29\40\173\xd\12\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\162\x65\164\165\162\156\x20\164\x72\165\x65\x3b\15\xa\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\175\15\xa\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\40\x20\40\162\145\164\x75\x72\156\x20\146\x61\x6c\x73\145\x3b\xd\xa\40\40\40\x20\40\x20\40\40\x20\40\40\x20\x7d\74\57\x73\x63\x72\x69\x70\164\76";
}
public function add_custom_popup()
{
if (!(file_exists(MOV_DIR . "\x61\144\144\157\156\x73\x2f\167\x63\163\145\154\145\143\x74\x65\144\x63\x61\164\145\x67\x6f\162\171") && MoPHPSessions::get_session_var("\x73\x70\x65\143\x69\x61\x6c\160\x72\x6f\x64\165\x63\x74\x65\170\151\x73\164") !== "\x74\x72\x75\x65")) {
goto KvS;
}
return;
KvS:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto K9D;
}
return;
K9D:
echo "\x3c\x73\164\171\154\145\x3e\x40\x6d\x65\x64\x69\x61\x20\x6f\x6e\x6c\x79\x20\163\143\162\145\145\156\x20\141\x6e\144\x20\50\x6d\x61\170\x2d\167\151\144\x74\150\72\40\x38\60\60\x70\170\51\x20\173\56\155\x6f\x64\141\x6c\55\x63\x6f\156\x74\145\x6e\164\40\173\167\x69\144\164\150\x3a\40\x39\60\x25\x20\x21\x69\155\x70\157\162\x74\x61\156\x74\73\x7d\x2e\x6d\x6f\x64\x61\154\x2d\150\145\141\144\x65\162\x20\56\143\x6c\x6f\x73\x65\173\x6d\x61\x72\147\151\x6e\55\154\145\x66\x74\x3a\x20\70\x30\x25\40\41\151\155\160\x6f\x72\164\x61\x6e\x74\x3b\175\x7d\x2e\155\x6f\x64\141\x6c\x7b\144\x69\x73\x70\x6c\141\171\72\156\x6f\x6e\145\x3b\x70\x6f\163\151\x74\x69\x6f\156\72\146\151\170\145\144\73\172\x2d\x69\x6e\144\x65\170\x3a\x31\x3b\x70\x61\x64\x64\151\156\x67\55\x74\157\160\72\x31\60\60\x70\170\73\x6c\x65\x66\164\72\x30\73\164\x6f\160\72\60\x3b\167\151\x64\x74\150\72\61\60\60\x25\x3b\x68\x65\151\147\x68\x74\x3a\61\x30\x30\45\73\157\166\145\162\146\154\x6f\167\72\x61\x75\x74\157\73\x62\x61\143\153\x67\x72\x6f\165\156\144\x2d\143\x6f\x6c\x6f\x72\x3a\x72\147\x62\50\60\x2c\x30\x2c\60\51\73\x62\x61\x63\153\x67\x72\157\165\x6e\x64\x2d\143\157\x6c\157\162\72\x72\147\x62\141\x28\60\54\60\54\60\54\x30\56\64\x29\x3b\x7d\56\x6d\x6f\x64\141\154\x2d\x63\x6f\156\x74\145\x6e\164\173\x70\x6f\x73\151\x74\151\157\x6e\x3a\162\x65\x6c\x61\164\x69\x76\145\73\142\x61\x63\x6b\147\x72\x6f\x75\x6e\x64\55\143\157\154\x6f\162\72\x23\x66\x65\x66\x65\x66\x65\x3b\x6d\x61\x72\x67\x69\156\x3a\141\x75\164\x6f\x3b\160\141\144\144\x69\156\x67\72\60\73\x62\x6f\x72\144\x65\x72\x3a\61\x70\170\x20\x73\157\154\151\144\40\43\x38\x38\x38\73\167\151\144\x74\150\72\64\x30\x25\x3b\142\x6f\x78\x2d\163\150\141\144\157\x77\72\60\x34\160\x78\x20\x38\160\x78\x20\x30\x20\x72\147\x62\141\x28\x30\54\x30\54\60\x2c\60\56\62\x29\54\60\x20\x36\160\x78\40\62\x30\x70\170\x20\60\40\x72\147\142\141\x28\x30\54\x30\x2c\x30\x2c\60\x2e\x31\x39\51\73\x2d\x77\x65\x62\x6b\x69\x74\x2d\141\x6e\x69\155\141\x74\x69\157\x6e\x2d\x6e\x61\155\145\72\x61\156\x69\x6d\141\164\x65\x74\157\160\73\x2d\167\x65\x62\153\x69\x74\55\141\x6e\x69\x6d\141\x74\151\157\156\55\x64\x75\x72\141\x74\151\x6f\156\72\x30\56\64\163\73\141\x6e\151\x6d\141\164\x69\x6f\156\x2d\156\x61\155\x65\x3a\141\156\x69\155\141\164\x65\164\x6f\160\x3b\x61\x6e\151\x6d\141\164\x69\157\x6e\x2d\x64\165\x72\x61\x74\x69\x6f\x6e\x3a\x30\x2e\64\163\x7d\x40\x2d\x77\145\142\153\x69\x74\x2d\153\145\171\x66\162\141\155\x65\x73\x20\141\156\x69\155\141\164\x65\x74\x6f\x70\173\146\162\157\155\173\x74\157\160\x3a\x2d\63\x30\x30\160\x78\73\x6f\x70\141\143\x69\x74\x79\x3a\60\x7d\x74\157\x7b\164\x6f\x70\72\x30\73\x6f\160\x61\x63\151\x74\171\x3a\x31\175\x7d\100\x6b\x65\171\146\x72\141\x6d\145\163\40\141\156\x69\155\x61\x74\145\164\x6f\x70\x7b\146\162\157\x6d\x7b\164\x6f\x70\x3a\55\x33\x30\60\x70\170\x3b\x6f\160\x61\143\x69\x74\171\72\60\x7d\164\157\173\164\x6f\160\72\60\73\157\x70\141\143\x69\164\x79\72\x31\x7d\x7d\x2e\143\x6c\x6f\163\x65\x7b\143\x6f\154\x6f\x72\x3a\167\150\x69\x74\145\73\146\157\156\x74\55\167\145\x69\x67\150\x74\72\142\157\154\144\x3b\175\x2e\x63\x6c\157\x73\145\72\150\x6f\166\145\x72\54\x2e\143\x6c\x6f\163\145\x3a\146\x6f\143\165\x73\x7b\143\157\x6c\x6f\x72\72\43\60\60\x30\x3b\164\145\170\164\x2d\x64\145\x63\x6f\x72\141\164\151\157\156\x3a\156\x6f\x6e\x65\x3b\x63\165\162\x73\x6f\162\72\160\x6f\151\156\x74\x65\162\x3b\175\x2e\155\x6f\144\141\154\55\x68\145\141\144\145\162\173\142\x61\x63\153\147\162\157\x75\156\144\55\143\157\154\x6f\x72\72\x23\x35\x63\x62\x38\x35\143\x3b\x63\157\154\x6f\x72\x3a\x77\150\x69\x74\145\x3b\x7d\x2e\155\x6f\144\141\154\x2d\146\157\157\x74\145\162\173\142\x61\143\x6b\x67\162\157\165\156\x64\55\143\x6f\x6c\157\162\x3a\x23\65\x63\x62\x38\65\143\x3b\143\157\x6c\x6f\x72\x3a\167\150\151\164\145\x3b\74\x2f\163\164\x79\154\x65\76";
echo "\x3c\163\x63\162\x69\x70\164\x3e\15\xa\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\x20\40\166\x61\x72\x20\145\40\75\x20\x60\74\144\x69\x76\x20\x69\144\x3d\x22\x6d\x79\115\x6f\x64\x61\x6c\42\40\x63\x6c\141\163\x73\75\x22\x6d\x6f\x64\x61\154\42\x3e\x3c\144\151\x76\40\143\154\141\x73\x73\75\42\155\x6f\144\x61\x6c\x2d\143\157\x6e\164\x65\x6e\164\42\76\x3c\x64\151\x76\x20\143\x6c\x61\x73\163\75\x22\155\157\x64\141\154\x2d\150\145\141\x64\x65\x72\42\76\x20\74\151\x3e\74\163\160\x61\156\40\x73\x74\171\x6c\145\75\x22\155\141\162\147\x69\156\55\x6c\x65\x66\164\72\71\60\x25\73\42\40\143\154\x61\163\163\x3d\42\143\154\157\163\145\42\x20\x69\144\75\42\x63\x6c\x6f\163\145\42\76\40\143\154\x6f\x73\145\40\74\x2f\x73\160\141\156\x3e\74\x2f\151\x3e\x20\74\57\x64\x69\166\76\x3c\x64\151\x76\x20\143\154\141\x73\163\x3d\42\x6d\157\x64\x61\154\55\x62\157\x64\x79\42\x3e\74\x64\x69\166\40\x69\144\x3d\42\x6d\x6f\x5f\x6d\145\x73\163\x61\x67\x65\x22\76\74\57\144\x69\166\76\x3c\x64\151\166\40\151\144\75\x22\x6d\157\x5f\x76\x61\154\151\x64\141\164\145\x5f\x66\x69\x65\154\x64\x22\40\x73\x74\171\154\145\75\42\x6d\x61\x72\x67\x69\x6e\x3a\61\145\x6d\x22\76\74\151\156\x70\x75\164\40\x74\x79\160\x65\x3d\42\164\145\170\164\x22\x20\x6e\x61\155\145\75\x22\x6f\162\x64\145\x72\137\x76\145\x72\151\x66\171\x22\x20\141\x75\x74\157\x66\x6f\x63\x75\x73\75\42\x74\162\x75\145\42\40\x70\154\x61\143\145\150\157\x6c\144\145\x72\75\42\x22\x20\151\x64\x3d\42\x6d\157\137\157\x74\160\137\164\x6f\x6b\145\x6e\42\40\x72\145\x71\x75\x69\x72\145\144\x3d\42\x74\162\165\x65\x22\40\x73\x74\x79\x6c\x65\75\x22\x63\157\x6c\x6f\x72\x3a\x20\43\60\60\x30\73\146\157\x6e\164\55\x66\141\x6d\x69\154\171\72\40\110\x65\x6c\x76\x65\x74\151\143\141\54\x73\141\x6e\163\x2d\x73\x65\162\151\146\x3b\160\141\144\144\x69\x6e\x67\72\40\x37\x70\x78\73\164\x65\170\x74\x2d\x73\150\x61\144\157\167\x3a\40\x31\160\170\40\x31\160\170\x20\60\40\43\146\x66\146\73\167\151\x64\164\150\x3a\x20\61\x30\60\45\x3b\142\x6f\162\144\145\x72\x2d\162\x61\x64\151\x75\163\72\40\x32\x70\x78\x3b\x22\x20\143\x6c\141\163\163\x3d\42\155\x6f\137\143\165\x73\x74\157\x6d\x65\162\137\166\x61\154\x69\144\141\x74\x69\157\156\55\x74\145\170\x74\x62\x6f\x78\x22\40\x61\x75\164\157\x66\x6f\143\x75\x73\75\x22\x74\162\165\145\42\57\76\x3c\x69\x6e\160\165\x74\40\164\171\160\x65\x3d\x22\142\x75\x74\x74\x6f\156\42\x20\x6e\x61\x6d\145\x3d\42\x6d\x69\x6e\151\x6f\162\x61\x6e\147\x65\x5f\157\x74\160\x5f\166\141\x6c\x69\x64\141\164\145\137\x73\165\x62\155\x69\164\x22\40\x20\163\164\171\x6c\x65\x3d\42\155\x61\162\147\151\x6e\55\164\x6f\160\x3a\x31\45\73\x77\x69\144\164\x68\72\x31\x30\x30\45\x22\40\x69\144\x3d\42\x6d\151\156\x69\x6f\162\x61\x6e\x67\x65\137\157\x74\160\x5f\166\141\x6c\x69\144\141\164\145\x5f\163\165\142\155\x69\x74\42\x20\x63\154\141\163\x73\x3d\42\155\151\156\151\x6f\162\x61\x6e\147\x65\x5f\157\164\x70\x5f\164\157\x6b\x65\x6e\137\x73\165\x62\155\x69\x74\42\x20\40\x76\x61\x6c\x75\x65\75\x22" . esc_attr(mo_("\x56\x61\x6c\x69\x64\x61\164\x65\x20\x4f\124\x50")) . "\42\40\57\76\x3c\57\144\151\166\x3e\74\57\x64\x69\166\x3e\x3c\57\x64\151\166\x3e\x3c\57\x64\x69\166\76\140\73\15\xa\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\152\x51\x75\x65\162\171\x28\140\x66\x6f\x72\155\x5b\x6e\x61\x6d\x65\x3d\42\143\x68\145\143\x6b\x6f\165\x74\x22\x5d\x60\x29\x2e\141\160\x70\145\x6e\144\50\x65\51\73\15\12\40\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\74\57\163\143\x72\x69\x70\164\76";
}
public function my_custom_checkout_field($ia)
{
if (!(file_exists(MOV_DIR . "\141\144\x64\157\x6e\163\x2f\167\x63\x73\145\154\145\x63\164\145\144\x63\141\164\x65\x67\x6f\162\171") && MoPHPSessions::get_session_var("\163\x70\145\143\x69\x61\154\x70\x72\157\144\165\x63\x74\145\x78\x69\163\164") !== "\164\162\x75\145")) {
goto WuI;
}
return;
WuI:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto xpM;
}
return;
xpM:
echo "\74\x64\x69\166\40\x69\x64\75\42\x6d\x6f\137\x76\141\154\x69\144\x61\164\151\x6f\x6e\x5f\167\x72\x61\x70\160\145\162\x22\76";
$this->show_validation_button_or_text();
echo "\74\144\x69\166\40\x69\144\x3d\x22\155\x6f\x5f\x6d\x65\163\163\x61\147\x65\x22\40\150\151\144\144\x65\156\x3e\74\57\144\x69\x76\76";
woocommerce_form_field("\x6f\x72\144\145\x72\x5f\166\145\162\151\x66\x79", array("\x74\x79\160\145" => "\x74\x65\x78\164", "\x63\154\141\x73\x73" => array("\146\157\x72\x6d\x2d\x72\x6f\x77\x2d\x77\151\144\145"), "\x6c\141\x62\145\154" => mo_("\126\x65\x72\151\146\171\x20\103\157\x64\145"), "\x72\x65\x71\x75\x69\x72\x65\144" => true, "\x70\154\x61\x63\x65\x68\157\154\x64\145\x72" => mo_("\x45\156\x74\145\162\40\126\145\162\151\146\x69\143\x61\164\151\x6f\156\x20\x43\x6f\x64\x65")), $ia->get_value("\x6f\162\144\x65\x72\137\166\x65\x72\x69\x66\x79"));
$this->place_after_validating_field();
$this->common_button_or_link_enable_disable_script();
echo "\x2c\44\155\x6f\50\42\56\x77\157\157\x63\x6f\155\x6d\x65\162\x63\145\x2d\145\x72\x72\x6f\162\42\51\x2e\154\145\156\147\x74\150\x3e\x30\x26\46\44\x6d\157\50\x22\150\164\x6d\154\x2c\x20\142\157\144\171\x22\x29\56\141\156\151\x6d\x61\164\145\x28\173\163\143\162\157\154\154\124\157\160\x3a\x24\x6d\x6f\50\42\x64\x69\166\56\x77\x6f\157\143\x6f\155\155\x65\162\x63\145\x22\x29\x2e\x6f\146\146\163\x65\164\x28\x29\56\164\x6f\x70\x2d\x35\x30\175\x2c\x31\145\x33\51\x2c\44\155\x6f\50\42\x23\x6d\x69\x6e\x69\x6f\x72\141\x6e\x67\145\x5f\x6f\164\x70\137\x74\157\153\x65\x6e\x5f\x73\x75\x62\x6d\x69\164\x22\51\56\143\x6c\x69\143\153\x28\x66\165\156\x63\x74\x69\157\x6e\x28\x6f\x29\x7b\166\x61\162\x20\145\x3d\44\155\x6f\x28\x22\x69\x6e\160\x75\164\133\x6e\141\155\145\75\x62\x69\x6c\x6c\x69\156\147\x5f\145\155\141\x69\x6c\x5d\x22\x29\x2e\x76\x61\154\50\x29\54\x6e\75\x24\155\x6f\50\x22\43\x62\151\x6c\x6c\x69\156\x67\x5f\160\150\157\156\x65\x22\51\56\166\x61\x6c\x28\51\x2c\141\75\44\155\157\x28\42\x64\x69\166\56\x77\157\157\143\x6f\x6d\155\x65\162\143\x65\42\x29\x3b\141\x2e\141\x64\144\103\x6c\x61\163\163\50\x22\160\162\157\143\x65\163\163\x69\x6e\x67\42\51\56\x62\x6c\x6f\143\153\x28\x7b\155\x65\x73\163\x61\x67\x65\x3a\x6e\x75\154\x6c\x2c\157\166\x65\x72\154\141\x79\x43\x53\123\x3a\173\142\x61\x63\153\147\162\157\165\x6e\144\72\42\43\x66\146\x66\x22\x2c\x6f\160\141\143\x69\164\x79\x3a\x2e\x36\175\175\x29\54\44\x6d\157\56\141\x6a\x61\170\50\x7b\165\162\154\x3a\42" . esc_url(site_url()) . "\x2f\x3f\157\x70\164\x69\x6f\x6e\x3d\x6d\x69\156\x69\x6f\x72\x61\156\147\x65\55\167\157\x6f\x63\157\x6d\155\145\162\143\x65\x2d\x63\x68\x65\x63\153\x6f\x75\x74\x22\54\164\x79\160\145\72\42\x50\x4f\x53\x54\x22\54\x64\141\x74\x61\72\173\165\163\x65\x72\137\145\155\141\151\154\72\x65\x2c\x20\165\163\x65\x72\137\x70\150\157\156\145\72\156\175\x2c\143\162\157\163\x73\x44\157\155\x61\151\156\72\x21\x30\x2c\x64\x61\164\141\124\171\160\x65\72\x22\152\x73\x6f\x6e\x22\54\x73\x75\x63\143\145\x73\x73\72\x66\x75\156\x63\x74\151\157\x6e\x28\x6f\x29\x7b\x20\x69\x66\50\157\56\x72\x65\x73\165\x6c\164\75\75\42\163\165\x63\143\x65\x73\163\x22\x29\x7b\x24\155\x6f\50\x22\56\x62\154\x6f\x63\153\125\x49\x22\x29\x2e\150\x69\144\x65\50\x29\x2c\x24\x6d\157\50\x22\x23\x6d\157\x5f\155\145\163\163\141\147\x65\42\x29\56\145\155\160\164\171\x28\x29\x2c\x24\155\x6f\50\42\x23\x6d\x6f\137\x6d\145\163\163\141\x67\145\42\51\56\141\x70\160\145\x6e\144\x28\x6f\56\x6d\145\163\163\x61\147\145\x29\x2c\44\155\x6f\50\42\x23\x6d\157\x5f\x6d\x65\x73\x73\x61\x67\145\42\51\x2e\x61\144\x64\x43\154\141\x73\163\50\42\x77\157\x6f\x63\x6f\x6d\x6d\x65\x72\x63\145\x2d\155\x65\x73\x73\x61\147\145\42\51\x2e\x72\x65\x6d\157\166\145\x43\154\x61\x73\x73\x28\42\x77\157\157\x63\x6f\155\155\145\x72\143\x65\55\145\x72\162\x6f\162\x22\51\x2c\x24\x6d\157\x28\42\x23\x6d\157\137\155\x65\x73\163\x61\147\145\x22\51\x2e\163\x68\157\x77\50\51\x7d\x65\x6c\x73\x65\173\44\x6d\157\x28\42\x2e\142\154\157\x63\x6b\x55\111\42\x29\x2e\x68\151\144\x65\50\51\54\x24\x6d\x6f\x28\42\x23\155\x6f\137\x6d\145\163\163\x61\147\x65\x22\51\56\x65\155\x70\x74\171\50\51\x2c\44\x6d\157\x28\x22\43\x6d\157\x5f\x6d\145\163\163\141\147\x65\x22\51\56\x61\160\x70\x65\156\144\50\157\x2e\x6d\x65\x73\163\x61\147\145\x29\54\44\155\157\50\x22\43\155\157\137\x6d\145\x73\163\x61\147\x65\42\51\x2e\141\x64\144\103\154\141\163\163\50\42\167\x6f\x6f\x63\157\155\x6d\145\x72\x63\145\55\x65\162\x72\x6f\162\x22\x29\54\x24\155\157\50\42\x23\155\x6f\x5f\x6d\x65\163\x73\x61\x67\145\x22\x29\x2e\163\150\x6f\x77\50\x29\x3b\175\40\73\x7d\54\145\162\162\x6f\162\72\146\165\x6e\x63\164\151\157\x6e\50\157\x2c\145\x2c\x6e\x29\x7b\x7d\x7d\51\54\x6f\x2e\160\x72\x65\x76\145\x6e\164\104\x65\x66\141\x75\154\x74\50\x29\x7d\51\x3b\175\x29\73\74\57\x73\x63\x72\x69\160\164\76\x3c\57\x64\x69\x76\x3e";
}
private function show_validation_button_or_text()
{
if ($this->show_button) {
goto m2A;
}
$this->showTextLinkOnPage();
m2A:
if (!$this->show_button) {
goto ZDS;
}
$this->mo_showButtonOnPage();
ZDS:
}
private function showTextLinkOnPage()
{
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto cTD;
}
echo "\x3c\x64\151\166\40\163\164\171\154\x65\40\x3d\40\42\x6d\x61\162\x67\x69\x6e\x2d\x62\x6f\164\164\x6f\155\x3a\x20\x31\x35\160\x78\73\x22\40\x74\x69\x74\x6c\145\75\x22" . esc_attr(mo_("\x50\154\x65\x61\x73\x65\x20\x45\x6e\x74\x65\162\x20\x61\156\40\x45\155\x61\x69\154\40\101\x64\144\162\x65\163\x73\40\164\157\40\145\x6e\141\x62\x6c\x65\x20\164\150\151\163\x20\x6c\151\156\x6b")) . "\42\x3e\xd\xa\x20\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\x20\40\74\x61\40\x20\x68\162\x65\x66\x3d\42\43\42\x20\15\xa\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\x20\40\163\x74\171\154\x65\x3d\42\164\145\x78\x74\55\141\154\x69\147\x6e\72\x63\x65\x6e\164\145\x72\x3b\143\x6f\154\x6f\162\72\147\162\x65\171\73\x70\x6f\x69\x6e\x74\x65\162\55\145\166\x65\156\164\163\72\x69\x6e\151\x74\151\x61\x6c\73\144\151\x73\x70\154\x61\171\72\x6e\x6f\156\145\x3b\x22\40\xd\12\40\40\40\40\x20\40\40\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x69\x64\75\42\x6d\151\x6e\x69\157\x72\141\x6e\x67\x65\x5f\157\x74\160\137\x74\x6f\x6b\x65\156\x5f\163\x75\x62\155\151\164\42\x20\15\xa\40\40\40\40\40\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\40\40\x20\x63\154\x61\163\x73\75\x22\x22\40\76" . esc_html(mo_($this->button_text)) . "\15\12\x20\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\74\57\141\x3e\xd\12\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\40\x20\40\x20\40\x20\74\57\144\x69\x76\x3e";
goto jQj;
cTD:
echo "\x3c\144\x69\x76\x20\x73\164\171\154\x65\40\75\x20\x22\155\141\x72\x67\151\x6e\x2d\142\x6f\x74\164\x6f\x6d\72\x20\61\x35\x70\x78\x3b\42\40\x74\151\x74\x6c\x65\75\42" . esc_attr(mo_("\120\x6c\145\141\163\x65\40\105\x6e\164\145\162\40\x61\40\120\150\157\156\x65\x20\116\x75\x6d\x62\145\162\40\x74\157\40\145\x6e\x61\142\x6c\x65\x20\x74\x68\151\163\40\154\151\x6e\x6b")) . "\42\x3e\xd\xa\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\40\40\40\x20\40\x20\x20\x3c\141\x20\40\x68\x72\x65\146\x3d\x22\x23\x22\x20\x73\164\171\x6c\145\x3d\x22\x74\145\x78\164\55\141\x6c\x69\x67\156\72\x63\x65\156\x74\145\162\x3b\143\x6f\x6c\x6f\162\72\x67\162\x65\x79\x3b\160\157\151\x6e\x74\x65\x72\x2d\x65\x76\x65\156\164\163\x3a\151\156\151\164\x69\141\154\x3b\x64\x69\x73\x70\154\141\x79\72\x6e\157\156\145\73\x22\40\15\xa\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x69\144\x3d\x22\155\151\x6e\151\x6f\x72\141\x6e\147\x65\137\x6f\x74\x70\x5f\164\x6f\153\145\x6e\x5f\163\165\142\x6d\x69\164\42\40\xd\12\40\40\x20\40\x20\40\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\x20\x20\40\40\40\x20\40\143\154\x61\163\x73\75\42\x22\40\x3e" . esc_html(mo_($this->button_text)) . "\15\12\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\40\x3c\57\x61\76\xd\12\40\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x3c\x2f\x64\x69\x76\x3e";
jQj:
}
private function mo_showButtonOnPage()
{
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto evl;
}
echo "\x3c\151\x6e\160\x75\x74\40\x74\x79\x70\x65\75\x22\x62\x75\164\x74\157\156\42\x20\x63\x6c\x61\163\x73\75\42\142\x75\164\164\x6f\x6e\x20\141\x6c\164\x22\x20\x73\x74\x79\154\145\x3d\42" . ($this->popup_enabled ? "\146\x6c\157\141\164\x3a\x20\x72\x69\x67\150\164\x3b\x6c\151\x6e\145\55\150\145\x69\x67\x68\164\x3a\x20\x31\x3b\x6d\x61\x72\x67\151\156\x2d\162\151\x67\150\164\72\40\x32\x65\155\x3b\x70\x61\x64\x64\x69\x6e\x67\x3a\40\61\x65\x6d\x20\62\x65\155\x3b\x20\x64\151\x73\160\x6c\x61\171\x3a\156\x6f\x6e\145\73" : "\x64\151\163\160\154\x61\x79\x3a\156\157\156\x65\73\167\x69\x64\164\x68\x3a\61\x30\x30\45\73\155\141\162\x67\151\156\x2d\142\157\x74\164\x6f\155\x3a\x20\61\65\160\170\x3b") . "\42\x20\151\x64\75\42\x6d\x69\156\151\157\162\x61\x6e\x67\145\x5f\157\164\x70\x5f\164\157\153\x65\x6e\x5f\x73\x75\x62\x6d\x69\x74\42\x20\164\151\164\x6c\145\75\42" . esc_attr(mo_("\120\x6c\145\x61\163\145\40\105\156\x74\x65\x72\40\x61\156\40\x45\155\141\x69\x6c\x20\101\144\x64\162\x65\x73\x73\x20\164\x6f\x20\x65\156\141\x62\x6c\x65\x20\x74\x68\x69\163\x2e")) . "\42\40\166\x61\x6c\x75\x65\x3d\x22";
goto Sr3;
evl:
echo "\74\151\156\160\x75\x74\x20\164\171\x70\x65\x3d\42\x62\x75\164\164\157\x6e\42\40\x63\x6c\141\163\163\x3d\x22\142\x75\x74\164\x6f\156\x20\141\x6c\164\42\x20\163\164\171\154\145\75\42" . ($this->popup_enabled ? "\x66\x6c\x6f\x61\164\x3a\x20\x72\151\x67\150\x74\73\x6c\151\x6e\x65\55\150\145\x69\x67\x68\164\x3a\40\x31\73\x6d\141\x72\x67\151\x6e\55\x72\x69\147\150\164\x3a\x20\62\145\155\x3b\x70\141\144\144\151\156\x67\x3a\x20\61\x65\155\40\x32\145\155\73\x20\x64\151\x73\160\154\141\171\x3a\x6e\157\156\145\x3b" : "\x64\x69\163\x70\x6c\x61\171\72\156\x6f\x6e\145\73\167\151\x64\164\x68\x3a\x31\x30\x30\45\73\155\141\x72\147\x69\x6e\x2d\142\x6f\x74\x74\157\x6d\72\x20\61\x35\x70\170\73") . "\x22\40\x69\144\75\x22\x6d\x69\x6e\151\x6f\162\141\156\147\145\x5f\157\164\160\137\164\x6f\x6b\x65\x6e\x5f\x73\165\x62\x6d\x69\164\x22\40\164\x69\164\x6c\x65\75\x22" . esc_attr(mo_("\120\154\x65\141\x73\x65\40\105\x6e\164\x65\162\x20\x61\40\120\x68\x6f\156\145\x20\116\165\x6d\x62\x65\x72\x20\x74\x6f\40\145\x6e\x61\142\x6c\145\40\164\x68\x69\163\x2e")) . "\42\x20\x76\x61\154\165\x65\75\x22";
Sr3:
echo esc_attr(mo_($this->button_text)) . "\42\76\x3c\57\x69\156\x70\165\164\x3e";
}
private function common_button_or_link_enable_disable_script()
{
echo "\74\x73\x63\x72\151\160\x74\76\152\x51\x75\145\x72\171\50\x64\x6f\143\x75\155\x65\x6e\x74\51\56\162\145\141\x64\171\x28\146\165\x6e\143\x74\151\x6f\156\x28\51\x20\x7b\x20\44\x6d\157\40\x3d\40\152\121\x75\145\x72\x79\54";
echo "\x24\155\x6f\50\42\x2e\167\157\157\x63\x6f\x6d\x6d\x65\162\143\x65\x2d\155\145\163\x73\x61\x67\145\x22\51\56\154\145\156\147\x74\150\x3e\60\46\46\50\44\x6d\x6f\50\42\43\155\x6f\137\155\x65\163\x73\x61\x67\x65\x22\x29\56\141\x64\x64\103\x6c\x61\x73\x73\x28\42\x77\x6f\157\x63\157\x6d\x6d\145\x72\143\145\x2d\155\x65\x73\163\141\147\x65\x22\51\x2c\44\155\x6f\50\x22\43\x6d\157\137\155\x65\163\x73\x61\147\x65\42\x29\56\163\150\x6f\167\50\x29\51";
}
private function place_after_validating_field()
{
echo "\74\163\x63\162\151\160\x74\76\152\x51\x75\145\162\x79\50\144\157\x63\165\x6d\145\x6e\164\51\56\x72\145\x61\x64\x79\x28\x66\x75\156\x63\x74\x69\157\156\x28\x29\x7b\15\xa\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\x73\x65\x74\124\151\x6d\x65\157\165\x74\50\146\x75\x6e\x63\164\151\x6f\x6e\x28\x29\x7b\15\xa\40\x20\40\40\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\152\x51\x75\x65\x72\x79\x28\x22\43\155\157\x5f\166\x61\154\x69\x64\x61\x74\151\x6f\156\137\167\x72\141\160\x70\x65\162\42\x29\x2e\151\156\163\x65\162\x74\x41\146\164\145\x72\50\42\x23\x62\151\x6c\x6c\x69\156\147\137" . (strcasecmp($this->otp_type, $this->type_phone_tag) === 0 ? "\160\150\157\156\145" : "\145\x6d\141\x69\x6c") . "\x5f\x66\151\x65\x6c\x64\42\51\x3b\xd\12\40\40\x20\x20\40\40\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\175\x2c\x32\60\x30\x29\x3b\15\12\40\40\40\40\x20\x20\x20\40\x7d\51\x3b\x3c\57\x73\x63\162\151\x70\164\76";
}
public function my_custom_checkout_field_process($kT, $errors)
{
if (!(file_exists(MOV_DIR . "\141\144\x64\x6f\156\163\57\167\143\163\145\x6c\145\x63\164\145\x64\143\141\164\x65\x67\157\162\171") && MoPHPSessions::get_session_var("\163\x70\x65\143\x69\x61\154\160\162\x6f\144\x75\x63\164\145\x78\151\163\x74") !== "\164\162\165\145")) {
goto S8B;
}
return;
S8B:
if (MoUtility::is_blank($errors->get_error_messages())) {
goto zxV;
}
return;
zxV:
if (!($this->guest_check_out_only && is_user_logged_in())) {
goto mMq;
}
return;
mMq:
if ($this->isPaymentVerificationNeeded()) {
goto m6o;
}
return;
m6o:
if (!$this->checkIfVerificationNotStarted()) {
goto KxD;
}
return;
KxD:
if (!$this->checkIfVerificationCodeNotEntered()) {
goto igS;
}
return;
igS:
$this->handle_otp_token_submitted();
}
private function handle_otp_token_submitted()
{
if (strcasecmp($this->otp_type, $this->type_phone_tag) === 0) {
goto OQo;
}
$FN = $this->processEmail();
goto DyD;
OQo:
$FN = $this->process_phone_number();
DyD:
if ($FN) {
goto SfI;
}
$this->validate_challenge($this->get_verification_type(), "\157\x72\144\145\162\x5f\166\145\162\x69\x66\x79");
SfI:
}
private function isPaymentVerificationNeeded()
{
$CX = isset($_POST["\160\141\x79\x6d\145\156\164\x5f\x6d\145\x74\150\157\144"]) ? sanitize_text_field(wp_unslash($_POST["\160\x61\171\x6d\145\x6e\x74\x5f\155\145\x74\x68\x6f\144"])) : '';
return $this->selective_payment ? array_key_exists($CX, $this->payment_methods) : true;
}
private function process_phone_number()
{
$is = isset($_POST["\x62\151\154\154\x69\156\x67\137\x70\150\x6f\156\x65"]) ? MoUtility::process_phone_number(sanitize_text_field(wp_unslash($_POST["\x62\x69\x6c\x6c\151\156\x67\137\160\x68\x6f\156\145"]))) : '';
if (!(strcasecmp(MoPHPSessions::get_session_var("\x70\x68\157\x6e\145\137\x6e\x75\x6d\142\x65\x72\x5f\155\157"), $is) !== 0)) {
goto j90;
}
wc_add_notice(MoMessages::showMessage(MoMessages::PHONE_MISMATCH), MoConstants::ERROR_JSON_TYPE);
return true;
j90:
return false;
}
private function processEmail()
{
$TC = isset($_POST["\x62\x69\154\x6c\x69\x6e\x67\x5f\x65\155\141\151\154"]) ? sanitize_email(wp_unslash($_POST["\x62\151\154\x6c\x69\x6e\147\137\x65\x6d\x61\151\154"])) : '';
if (!(strcasecmp(MoPHPSessions::get_session_var("\165\163\145\x72\x5f\x65\155\x61\x69\x6c"), $TC) !== 0)) {
goto zfQ;
}
wc_add_notice(MoMessages::showMessage(MoMessages::EMAIL_MISMATCH), MoConstants::ERROR_JSON_TYPE);
return true;
zfQ:
return false;
}
public function handle_failed_verification($cA, $xy, $Zg, $m2)
{
wc_add_notice(MoUtility::get_invalid_otp_method(), MoConstants::ERROR_JSON_TYPE);
}
public function handle_post_verification($KK, $cA, $xy, $Xm, $Zg, $ZG, $m2)
{
$this->unset_otp_session_variables();
MoPHPSessions::unset_session("\x73\x70\145\x63\151\x61\x6c\160\x72\x6f\144\165\143\164\145\170\151\x73\164");
}
public function enqueue_script_on_page()
{
if (!(file_exists(MOV_DIR . "\x61\x64\x64\x6f\x6e\x73\x2f\167\x63\163\145\x6c\x65\143\164\x65\144\143\141\x74\145\147\x6f\162\171") && MoPHPSessions::get_session_var("\163\x70\145\143\x69\x61\154\x70\162\x6f\144\165\143\x74\145\x78\151\163\164") !== "\x74\x72\165\x65")) {
goto TkW;
}
return;
TkW:
$hr = MOV_URL . "\151\156\143\x6c\x75\x64\x65\163\x2f\152\163\x2f\167\x63\143\150\145\x63\153\157\x75\x74\x2e\155\x69\x6e\x2e\152\163\x3f\166\145\x72\163\x69\x6f\156\x3d" . MOV_VERSION;
wp_register_script("\167\x63\143\x68\x65\143\153\157\x75\x74", $hr, array("\x6a\161\x75\145\x72\x79"), MOV_VERSION, true);
wp_localize_script("\x77\143\143\x68\x65\x63\153\157\165\164", "\155\x6f\x77\143\x63\150\145\x63\x6b\157\165\164", array("\160\x61\x79\x6d\x65\156\164\x4d\x65\x74\x68\157\x64\163" => $this->payment_methods, "\163\x65\154\145\143\x74\151\x76\145\120\x61\x79\x6d\x65\x6e\164\x45\156\141\x62\154\145\x64" => $this->selective_payment, "\x70\157\160\165\160\105\x6e\141\142\x6c\145\x64" => $this->popup_enabled, "\x69\x73\114\157\147\147\145\x64\111\156" => $this->guest_check_out_only && is_user_logged_in(), "\157\164\160\x54\171\160\145" => strcasecmp($this->otp_type, $this->type_phone_tag) === 0 ? "\160\150\x6f\156\145" : "\145\x6d\141\151\154"));
wp_enqueue_script("\x77\x63\143\x68\145\x63\153\x6f\x75\x74");
}
public function unset_otp_session_variables()
{
SessionUtils::unset_session(array($this->tx_session_id, $this->form_session_var));
}
public function get_phone_number_selector($kj)
{
if (!($this->is_form_enabled() && $this->otp_type === $this->type_phone_tag)) {
goto nZd;
}
array_push($kj, $this->phone_form_id);
nZd:
return $kj;
}
public function handle_form_options()
{
if (!(!MoUtility::are_form_options_being_saved($this->get_form_option()) || !current_user_can("\155\x61\156\x61\x67\145\137\x6f\x70\164\151\157\156\163") || !check_admin_referer($this->admin_nonce))) {
goto dZr;
}
return;
dZr:
if (!function_exists("\151\x73\x5f\x70\154\165\x67\151\x6e\137\x61\143\x74\x69\166\x65")) {
include_once ABSPATH . "\x77\x70\55\x61\144\x6d\151\x6e\57\151\x6e\143\x6c\165\x64\145\x73\57\x70\154\x75\x67\151\156\56\x70\x68\160";
}
if (is_plugin_active("\167\157\157\x63\x6f\x6d\x6d\145\162\143\x65\x2f\x77\157\157\143\x6f\x6d\155\145\x72\x63\x65\56\x70\150\160")) {
goto ARD;
}
return;
ARD:
$kT = MoUtility::mo_sanitize_array($_POST);
$Xa = array();
if (!array_key_exists("\167\143\137\x70\x61\x79\155\145\x6e\164", $kT)) {
goto BFo;
}
foreach ($kT["\167\143\137\160\x61\x79\x6d\x65\x6e\x74"] as $Bj) {
$Xa[$Bj] = $Bj;
PIr:
}
gI5:
BFo:
$this->is_form_enabled = $this->sanitize_form_post("\167\143\x5f\143\x68\x65\143\x6b\x6f\x75\x74\137\x65\x6e\x61\x62\x6c\145");
$this->otp_type = $this->sanitize_form_post("\167\143\137\x63\150\145\143\153\157\x75\x74\137\164\171\160\145");
$this->guest_check_out_only = $this->sanitize_form_post("\x77\x63\137\143\x68\x65\x63\153\x6f\x75\164\137\147\165\x65\163\164");
$this->show_button = $this->sanitize_form_post("\x77\143\137\143\x68\145\x63\153\x6f\165\164\x5f\x62\x75\164\x74\x6f\x6e");
$this->popup_enabled = $this->sanitize_form_post("\167\x63\x5f\x63\150\x65\x63\x6b\157\165\x74\137\160\157\x70\165\x70");
$this->selective_payment = $this->sanitize_form_post("\x77\x63\137\143\x68\x65\x63\x6b\x6f\x75\164\x5f\163\145\154\x65\143\x74\151\x76\x65\x5f\x70\x61\171\x6d\x65\x6e\164");
$this->button_text = $this->sanitize_form_post("\x77\x63\x5f\x63\150\145\x63\153\157\x75\x74\x5f\142\165\x74\164\x6f\x6e\x5f\x6c\151\156\153\137\164\145\170\164");
$this->payment_methods = $Xa;
$this->disable_auto_login = $this->sanitize_form_post("\x77\143\x5f\143\150\145\x63\x6b\157\x75\164\137\x64\x69\163\141\142\x6c\x65\x5f\141\x75\x74\x6f\137\x6c\x6f\x67\x69\156");
$this->restrict_duplicates = $this->sanitize_form_post("\167\143\x5f\x63\150\x65\143\153\157\x75\x74\x5f\162\145\163\164\162\151\x63\x74\x5f\144\x75\x70\x6c\x69\143\141\x74\145\163");
if (!$this->basic_validation_check(BaseMessages::WC_CHECKOUT_CHOOSE)) {
goto S92;
}
update_mo_option("\x77\143\137\x63\150\145\143\x6b\x6f\165\164\x5f\x72\x65\163\164\x72\151\143\x74\137\144\x75\x70\154\x69\x63\x61\x74\145\163", $this->restrict_duplicates);
update_mo_option("\167\x63\x5f\143\x68\x65\143\x6b\x6f\165\x74\137\x64\151\163\x61\142\x6c\x65\137\x61\x75\164\157\x5f\x6c\157\x67\x69\x6e", $this->disable_auto_login);
update_mo_option("\167\x63\x5f\143\x68\145\143\x6b\x6f\x75\164\x5f\x65\156\x61\142\154\145", $this->is_form_enabled);
update_mo_option("\167\x63\137\x63\x68\x65\143\153\x6f\x75\164\137\x74\171\x70\145", $this->otp_type);
update_mo_option("\167\x63\x5f\x63\150\145\143\153\157\165\164\x5f\x67\x75\145\163\x74", $this->guest_check_out_only);
update_mo_option("\167\x63\137\x63\x68\x65\143\x6b\x6f\165\164\x5f\142\x75\x74\x74\157\x6e", $this->show_button);
update_mo_option("\x77\x63\x5f\143\150\x65\x63\153\x6f\165\164\x5f\160\x6f\x70\165\160", $this->popup_enabled);
update_mo_option("\167\143\x5f\x63\x68\145\143\x6b\x6f\x75\x74\137\163\145\154\145\143\164\x69\166\145\137\x70\x61\171\155\x65\156\164", $this->selective_payment);
update_mo_option("\167\x63\137\x63\x68\145\x63\153\x6f\x75\x74\137\142\165\164\164\157\x6e\x5f\x6c\151\156\153\137\x74\145\x78\164", $this->button_text);
update_mo_option("\167\x63\x5f\143\150\145\143\153\157\165\x74\x5f\x70\x61\x79\x6d\x65\x6e\x74\x5f\x74\171\x70\145", maybe_serialize($Xa));
S92:
}
public function isGuestCheckoutOnlyEnabled()
{
return $this->guest_check_out_only;
}
public function showButtonInstead()
{
return $this->show_button;
}
public function isPopUpEnabled()
{
return $this->popup_enabled;
}
public function getPaymentMethods()
{
return $this->payment_methods;
}
public function isSelectivePaymentEnabled()
{
return $this->selective_payment;
}
public function isAutoLoginDisabled()
{
return $this->disable_auto_login;
}
}
mpI:
Function Calls
None |
Stats
MD5 | 41358240059698a3207f38a46af1fe4f |
Eval Count | 0 |
Decode Time | 92 ms |