<?php
/**
 * @package embed-sharepoint-onedrive-documents
 * @author miniOrange
 * @link https://plugins.miniorange.com
 */


namespace MoSharePointObjectSync\Wrappers;

use MoSharePointObjectSync\LicenseLibrary\Mo_License_Service;
use MoSharePointObjectSync\API\CustomerMOSPS;
use WP_Roles;
class wpWrapper
{
    private static $instance;
    public static function getWrapper()
    {
        if (isset(self::$instance)) {
            goto Sm;
        }
        $pj = __CLASS__;
        self::$instance = new $pj();
        Sm:
        return self::$instance;
    }
    public static function mo_sps_set_option($cD, $V7)
    {
        if (!current_user_can("\155\x61\x6e\141\147\145\x5f\157\160\x74\151\x6f\156\163")) {
            goto a7;
        }
        update_option($cD, $V7);
        a7:
    }
    public static function mo_sps_get_option($cD)
    {
        return get_option($cD);
    }
    public static function mo_sps_delete_option($cD)
    {
        if (!current_user_can("\155\x61\x6e\x61\147\145\x5f\x6f\160\164\x69\157\156\163")) {
            goto eA;
        }
        delete_option($cD);
        eA:
    }
    public static function rojpolopbar()
    {
        $ZJ = "\x3c\144\x69\166\76\15\12\x20\x20\40\x20\x20\x20\x20\x20\x3c\x64\151\166\x20\x73\164\x79\x6c\x65\75\x22\x64\151\163\160\x6c\141\171\72\x66\x6c\145\x78\73\152\x75\163\164\x69\146\171\x2d\143\x6f\156\164\x65\x6e\164\72\143\145\x6e\164\x65\162\x3b\x61\154\x69\147\x6e\x2d\x69\x74\145\155\163\72\143\x65\x6e\164\145\x72\73\x77\151\x64\164\x68\x3a\61\60\60\x25\73\150\145\151\x67\x68\164\x3a\64\60\60\160\x78\73\x22\76\15\xa\40\x20\x20\x20\x20\40\40\40\x20\40\40\40\40\40\x20\40\74\144\x69\x76\x20\x73\164\x79\154\145\x3d\x22\144\151\163\x70\x6c\141\171\x3a\146\x6c\145\170\x3b\146\154\x65\x78\x2d\144\151\162\145\143\164\151\x6f\156\x3a\x63\x6f\x6c\165\x6d\x6e\73\x61\154\151\147\156\x2d\151\x74\x65\x6d\163\72\x63\145\x6e\x74\145\162\73\x22\x3e\xd\12\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\40\40\40\40\40\x20\40\x20\74\151\155\147\x20\163\164\x79\x6c\x65\75\42\x77\151\144\164\150\x3a\x33\x30\x70\x78\x20\41\151\x6d\160\x6f\x72\164\141\x6e\x74\x3b\40\150\145\151\x67\150\x74\72\63\x30\160\170\x20\x21\x69\155\160\157\x72\x74\141\x6e\164\73\42\x20\x73\162\x63\75\42" . esc_url(plugin_dir_url(__FILE__) . "\x2e\x2e\x2f\151\x6d\x61\x67\145\163\x2f\x65\x72\x72\157\x72\56\x70\156\147") . "\42\76\74\142\162\76\15\xa\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\74\x64\x69\x76\76\131\157\x75\x20\141\x72\x65\x20\156\x6f\164\x20\x63\157\156\156\145\x63\x74\x65\x64\56\x3c\57\144\151\x76\x3e\x3c\x62\162\76\xd\12\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\40\x3c\144\x69\166\40\163\164\171\x6c\x65\x3d\42\x74\x65\x78\164\55\x61\x6c\x69\147\x6e\x3a\x63\x65\156\164\x65\162\73\x22\76\x50\154\145\x61\x73\145\x20\x63\x6f\156\156\x65\x63\x74\40\167\151\164\x68\x20\123\x68\x61\162\145\120\157\x69\156\164\x2c\x20\117\156\145\104\162\x69\166\x65\x20\102\x75\x73\151\x6e\x65\163\163\57\x50\145\x72\x73\157\x6e\141\154\40\151\x6e\x20\x3c\142\76\74\141\x20\x68\x72\145\146\75\x22" . admin_url("\x61\144\x6d\151\156\x2e\160\x68\160\77\160\141\x67\x65\x3d\155\157\x5f\163\160\163") . "\x26\164\141\142\x3d\141\160\160\x5f\x63\157\156\146\151\x67" . "\42\x3e\x4d\141\156\x61\147\145\x20\x41\160\160\x6c\151\143\141\164\x69\157\156\74\57\x61\x3e\x3c\57\x62\76\40\164\x61\x62\x20\141\156\144\40\164\x68\145\156\40\x74\162\171\40\x61\147\141\x69\156\x2e\74\57\x64\x69\166\76\xd\12\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x3c\57\144\x69\166\76\15\12\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\x3c\57\144\151\x76\76\xd\12\x20\x20\40\40\40\40\x20\x20\74\57\x64\151\166\76";
        return $ZJ;
    }
    public static function mo_sps_get_user_roles_and_emails()
    {
        $wp_roles = new WP_Roles();
        $BW = $wp_roles->get_names();
        $SN = ["\x72\x6f\154\145\163" => [], "\x65\155\x61\x69\154\163" => [], "\143\x75\162\162\x65\156\x74\x5f\x75\x73\145\162\137\x72\x6f\154\x65\x73" => [], "\143\165\162\x72\145\x6e\x74\x5f\165\163\x65\162\137\x65\x6d\141\151\x6c" => ''];
        foreach ($BW as $cD => $d2) {
            $SN["\x72\157\x6c\x65\x73"][$cD] = $d2;
            ui:
        }
        Ah:
        $current_user = wp_get_current_user();
        $SN["\x63\x75\x72\x72\145\x6e\x74\x5f\165\x73\145\162\137\x72\x6f\154\145\x73"] = $current_user->exists() && count($current_user->roles) ? $current_user->roles : [];
        $tW = [];
        foreach ($SN["\143\165\x72\162\145\156\164\x5f\x75\x73\x65\162\137\162\x6f\x6c\x65\163"] as $O1) {
            foreach ($SN["\162\x6f\x6c\x65\163"] as $cD => $d2) {
                if (!($cD == $O1)) {
                    goto ge;
                }
                array_push($tW, $d2);
                ge:
                q7:
            }
            tm:
            Eb:
        }
        YI:
        $SN["\x63\165\162\162\145\x6e\x74\x5f\165\163\145\162\x5f\x72\x6f\154\145\x73"] = $tW;
        $SN["\x63\165\162\162\145\156\164\137\x75\163\x65\x72\137\x65\x6d\x61\151\154"] = $current_user->user_email;
        $Fd = get_users();
        foreach ($Fd as $user) {
            array_push($SN["\145\x6d\141\151\x6c\x73"], $user->user_email);
            Rc:
        }
        GA:
        return $SN;
    }
    public static function checkLicenseValidity()
    {
        $current_user = wp_get_current_user();
        $BW = $current_user->roles;
        if (Mo_License_Service::is_customer_license_valid()) {
            goto GN;
        }
        if (isset($BW) && in_array("\141\x64\x6d\x69\156\151\x73\x74\x72\141\164\157\162", $BW)) {
            goto PP;
        }
        return "\x3c\142\x3e\x5b\127\x50\x53\120\x53\105\x52\122\60\x32\71\x5d\74\x2f\142\x3e\40\x53\x6f\155\x65\x74\150\151\x6e\x67\40\167\145\156\x74\x20\x77\x72\157\x6e\x67\x2e\40\x50\x6c\x65\x61\163\145\40\143\157\x6e\164\141\143\164\x20\171\x6f\165\162\x20\x61\144\155\151\x6e\x69\x73\x74\x72\x61\164\157\x72\40\167\151\164\x68\x20\x74\150\145\40\155\145\156\x74\x69\x6f\156\145\x64\40\143\157\x64\145\x2e";
        goto cq;
        PP:
        return "\x59\x6f\x75\162\40\154\x69\x63\x65\x6e\x73\x65\x20\x68\141\x73\40\145\x78\x70\151\x72\x65\x64\x2e\40\122\145\x6e\x65\x77\x20\156\157\167\x20\x74\x6f\40\x61\143\x63\145\x73\163\x20\145\x6d\142\145\144\x64\x65\x64\40\144\x6f\143\x75\155\145\x6e\164\163\x20\x77\x69\x74\150\x20\x6f\165\x72\x20\x45\x6d\x62\x65\x64\x20\x53\150\141\x72\x65\120\157\x69\156\x74\40\x4f\x6e\145\104\162\x69\166\145\x20\151\x6e\x74\x65\147\x72\141\x74\151\157\x6e\x20\x70\154\165\147\x69\156";
        cq:
        GN:
        return 0;
    }
    public static function mo_sps__show_error_notice($bt)
    {
        self::mo_sps_set_option(pluginConstants::notice_message, $bt);
        $pL = "\141\x64\155\151\156\x5f\x6e\x6f\164\151\143\145\163";
        remove_action($pL, [self::getWrapper(), "\x6d\x6f\137\x73\160\x73\137\163\x75\143\143\145\163\x73\137\156\157\164\x69\143\x65"]);
        add_action($pL, [self::getWrapper(), "\x6d\x6f\x5f\x73\x70\163\x5f\145\x72\x72\x6f\x72\x5f\156\157\x74\x69\143\145"]);
    }
    public static function mo_sps__show_success_notice($bt)
    {
        self::mo_sps_set_option(pluginConstants::notice_message, $bt);
        $pL = "\141\x64\155\x69\156\137\x6e\x6f\164\151\x63\145\163";
        remove_action($pL, [self::getWrapper(), "\155\x6f\137\x73\x70\163\x5f\145\162\x72\157\x72\137\156\157\164\x69\x63\x65"]);
        add_action($pL, [self::getWrapper(), "\155\x6f\x5f\163\x70\163\137\163\165\x63\x63\145\163\163\137\x6e\x6f\x74\x69\x63\x65"]);
    }
    public function mo_sps_success_notice()
    {
        $pj = "\165\x70\144\x61\164\145\x64";
        $bt = self::mo_sps_get_option(pluginConstants::notice_message);
        echo "\74\x64\x69\166\x20\x73\164\x79\x6c\x65\x3d\x27\155\141\162\x67\x69\156\72\65\x70\x78\40\x30\x27\x20\x63\x6c\x61\163\163\x3d\47" . esc_attr($pj) . "\47\76\40\74\x70\x3e" . esc_attr($bt) . "\74\57\160\x3e\x3c\x2f\x64\151\x76\76";
    }
    public function mo_sps_error_notice()
    {
        $pj = "\145\162\162\157\162";
        $bt = self::mo_sps_get_option(pluginConstants::notice_message);
        echo "\74\x64\x69\166\40\x73\x74\171\154\145\75\x27\x6d\141\162\147\x69\x6e\72\65\160\170\40\x30\x27\x20\143\154\141\x73\x73\75\47" . esc_attr($pj) . "\47\76\x20\74\x70\76" . esc_attr($bt) . "\74\57\160\x3e\74\57\144\151\166\76";
    }
    public static function mo_sps_encrypt_data($KY, $cD)
    {
        $cD = openssl_digest($cD, "\x73\x68\141\62\x35\66");
        $mj = "\x61\145\x73\55\x31\x32\x38\55\x65\x63\x62";
        $g2 = openssl_encrypt($KY, $mj, $cD, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING);
        return base64_encode($g2);
    }
    public static function mo_sps_get_domain_from_url($xr)
    {
        $oC = parse_url($xr, PHP_URL_SCHEME);
        $HP = '';
        if ($oC == "\150\x74\x74\160") {
            goto W_;
        }
        $HP = str_replace("\x68\164\164\x70\x73\72\57\x2f", '', $xr);
        goto Ie;
        W_:
        $HP = str_replace("\150\164\x74\160\72\x2f\57", '', $xr);
        Ie:
        $HP = rtrim($HP, "\57");
        return $HP;
    }
    public static function mo_sps_decrypt_data($KY, $cD)
    {
        $en = base64_decode($KY);
        $cD = openssl_digest($cD, "\163\150\x61\x32\65\66");
        $mj = "\101\x45\x53\x2d\x31\62\70\55\105\103\102";
        $Qq = openssl_cipher_iv_length($mj);
        $SW = substr($en, 0, $Qq);
        $KY = substr($en, $Qq);
        $Sn = openssl_decrypt($KY, $mj, $cD, OPENSSL_RAW_DATA || OPENSSL_ZERO_PADDING, $SW);
        return $Sn;
    }
    public static function djkasjdksa()
    {
        $bi = "\x21\176\x40\43\44\45\136\x26\52\x28\51\137\53\x7c\173\x7d\x3c\76\77\60\61\x32\63\x34\65\x36\x37\70\71\x61\142\x63\144\145\x66\x67\150\151\152\x6b\154\155\x6e\x6f\160\x71\x72\163\x74\x75\166\167\x78\x79\x7a\101\102\103\x44\x45\x46\x47\110\x49\x4a\x4b\x4c\115\116\x4f\x50\121\122\123\124\x55\126\x57\x58\x59\x5a";
        $Ze = strlen($bi);
        $MA = '';
        $pa = 0;
        ZJ:
        if (!($pa < 10000)) {
            goto By;
        }
        $MA .= $bi[rand(0, $Ze - 1)];
        Dg:
        $pa++;
        goto ZJ;
        By:
        return $MA;
    }
    public static function mo_sps_sps_get_domain_from_url($xr)
    {
        $oC = parse_url($xr, PHP_URL_SCHEME);
        $HP = '';
        if ($oC == "\x68\164\x74\160") {
            goto L1;
        }
        $HP = str_replace("\x68\x74\164\x70\163\72\x2f\x2f", '', $xr);
        goto ke;
        L1:
        $HP = str_replace("\150\164\164\160\72\57\x2f", '', $xr);
        ke:
        $HP = rtrim($HP, "\57");
        return $HP;
    }
    public static function mo_sps_is_customer_registered($PW = false)
    {
        $w6 = get_option("\x6d\x6f\x5f\163\160\163\x5f\141\x64\155\151\156\x5f\145\x6d\141\x69\x6c");
        $wH = get_option("\155\157\x5f\x73\160\163\137\x61\x64\x6d\151\x6e\x5f\x63\165\x73\164\x6f\x6d\x65\x72\x5f\x6b\145\x79");
        if (!(!$w6 || !$wH || !is_numeric(trim($wH)))) {
            goto Dn;
        }
        return $PW ? "\x64\x69\x73\141\x62\154\145\144" : 0;
        Dn:
        return $PW ? '' : 1;
    }
    public static function mo_sps_is_customer_license_key_verified($PW = false)
    {
        $cD = get_option("\155\157\x5f\163\160\163\137\143\165\x73\164\157\155\x65\x72\x5f\164\157\153\x65\156");
        $g4 = get_option("\163\x70\163\x5f\154\153");
        $w6 = get_option("\155\x6f\137\163\x70\163\x5f\x61\144\155\151\156\137\145\x6d\x61\151\x6c");
        $wH = get_option("\155\157\137\x73\160\x73\137\x61\x64\x6d\x69\x6e\x5f\143\x75\163\x74\x6f\155\145\x72\x5f\x6b\x65\x79");
        if (!(!$g4 || !$w6 || !$wH || !is_numeric(trim($wH)))) {
            goto cr;
        }
        return $PW ? "\x64\x69\x73\141\x62\x6c\x65\144" : 0;
        cr:
        return $PW ? '' : 1;
    }
    public static function mo_sps_site_check()
    {
        return true;
        $eR = false;
        $cD = get_option("\155\x6f\x5f\x73\x70\x73\x5f\x63\x75\163\164\157\155\x65\x72\x5f\164\157\153\145\x6e");
        if (!get_option("\163\x69\164\145\137\x63\153\137\x6c")) {
            goto qy;
        }
        if (!(wpWrapper::mo_sps_decrypt_data(get_option("\163\151\164\145\x5f\143\153\137\x6c"), $cD) == "\164\162\165\145")) {
            goto tj;
        }
        $eR = true;
        tj:
        qy:
        if (!($eR && wpWrapper::mo_sps_lk_multi_host())) {
            goto N2;
        }
        $Lg = get_option("\155\x6f\137\163\160\163\x5f\166\x6c\137\x63\x68\145\x63\x6b\137\164");
        if (!$Lg) {
            goto wq;
        }
        $Lg = intval($Lg);
        if (!(time() - $Lg < 3600 * 24 * 3)) {
            goto o1;
        }
        return $eR;
        o1:
        wq:
        $Cf = get_option("\x73\x70\163\x5f\154\x6b");
        if (!$Cf) {
            goto GX;
        }
        $Cf = wpWrapper::mo_sps_decrypt_data($Cf, $cD);
        $za = new CustomerMOSPS();
        $ZJ = $za->mo_sps_vl($Cf, true);
        if ($ZJ) {
            goto xF;
        }
        return;
        xF:
        $ZJ = json_decode($ZJ, true);
        if (strcasecmp($ZJ["\163\x74\x61\x74\x75\163"], "\123\125\103\103\105\123\123") == 0) {
            goto su;
        }
        update_option("\166\154\137\143\x68\145\143\x6b\137\x73", wpWrapper::mo_sps_encrypt_data("\x66\x61\x6c\x73\x65", $cD));
        goto kL;
        su:
        delete_option("\x76\154\137\x63\x68\145\x63\153\137\163");
        kL:
        GX:
        update_option("\155\157\x5f\163\x70\x73\x5f\x76\154\137\x63\150\x65\x63\x6b\x5f\164", time());
        N2:
        return $eR;
    }
    public static function mo_sps_lk_multi_host()
    {
        $G0 = get_option("\x76\154\137\x63\150\145\x63\x6b\137\163");
        $cD = get_option("\x6d\x6f\x5f\163\x70\163\x5f\x63\x75\x73\164\x6f\155\x65\x72\137\x74\157\x6b\145\156");
        if (!$G0) {
            goto sp;
        }
        $G0 = wpWrapper::mo_sps_decrypt_data($G0, $cD);
        if (!($G0 == "\x66\x61\x6c\x73\x65")) {
            goto tO;
        }
        return true;
        tO:
        sp:
        return false;
    }
    public static function mo_sps__checkPasswordPattern($bA)
    {
        $ky = "\x2f\136\133\x28\x5c\167\x29\x2a\x28\134\41\x5c\x40\134\43\134\44\134\x25\134\x5e\134\46\134\52\134\x2e\134\x2d\x5c\137\x29\52\135\x2b\x24\x2f";
        return !preg_match($ky, $bA);
    }
    public static function mo_sps_deactivate()
    {
        delete_option("\155\157\137\x73\x70\163\137\150\x6f\x73\x74\137\156\141\x6d\x65");
        delete_option("\x6d\157\x5f\x73\160\163\x5f\156\x65\x77\137\162\145\147\x69\163\x74\162\141\164\151\x6f\x6e");
        delete_option("\x6d\x6f\x5f\x73\x70\163\137\141\x64\155\x69\x6e\137\x70\150\157\x6e\x65");
        delete_option("\155\x6f\137\163\160\163\x5f\x61\x64\x6d\151\x6e\x5f\160\x61\163\x73\167\x6f\162\x64");
        delete_option("\x6d\x6f\137\163\x70\163\x5f\166\145\x72\x69\146\171\137\143\165\163\x74\x6f\155\145\x72");
        delete_option("\155\157\137\x73\160\x73\x5f\x61\144\155\x69\x6e\137\x63\165\x73\x74\x6f\x6d\145\162\x5f\153\145\x79");
        delete_option("\x6d\157\137\163\x70\x73\137\141\144\x6d\x69\x6e\x5f\141\160\151\x5f\153\x65\171");
        delete_option("\155\x6f\137\x73\x70\x73\137\143\x75\x73\x74\x6f\x6d\x65\162\x5f\x74\x6f\x6b\x65\x6e");
        delete_option("\x6d\x6f\137\163\160\x73\137\155\x65\x73\163\x61\x67\145");
        delete_option("\x6d\157\x5f\x73\160\163\137\162\x65\x67\151\x73\x74\162\x61\164\151\157\156\x5f\x73\164\x61\164\x75\163");
        delete_option("\x6d\x6f\137\x73\x70\163\137\x69\144\x70\137\143\x6f\x6e\146\151\147\x5f\143\x6f\155\160\154\145\x74\x65");
        delete_option("\x6d\157\137\x73\160\x73\x5f\164\x72\141\x6e\x73\141\x63\x74\151\x6f\156\111\144");
        delete_option("\x6d\157\x5f\163\160\163\x5f\166\x6c\x5f\143\x68\145\x63\x6b\x5f\164");
        delete_option("\x73\x70\163\137\154\153");
        delete_option("\166\x6c\137\x63\x68\145\143\x6b\137\163");
        delete_option("\x6d\x6f\137\163\x70\163\x5f\x63\x65\162\x74");
        delete_option("\155\x6f\x5f\x73\x70\x73\137\x63\x65\x72\x74\137\x70\x72\151\x76\x61\164\x65\137\x6b\145\171");
        delete_option("\155\157\137\x73\x70\163\137\x65\156\141\142\154\145\137\143\154\157\x75\x64\x5f\x62\162\x6f\153\145\162");
    }
    public static function mo_sps_check_plugin_state()
    {
        if (!wpWrapper::mo_sps_is_customer_registered()) {
            goto o0;
        }
        if (wpWrapper::mo_sps_is_customer_license_key_verified()) {
            goto Go;
        }
        echo "\x3c\144\x69\166\x20\x73\x74\171\154\145\75\x22\167\x69\x64\x74\150\72\71\60\x25\73\x6d\141\x72\147\x69\156\72\x31\67\x70\x78\x3b\42\76\74\x64\151\x76\x3e\74\x64\151\x76\x20\163\164\x79\154\x65\x3d\42\x64\151\x73\x70\154\x61\x79\x3a\x62\x6c\157\x63\x6b\73\x6d\141\x72\x67\x69\156\55\x74\x6f\x70\x3a\x31\x30\160\x78\x3b\143\x6f\x6c\x6f\162\x3a\x72\x65\144\73\x62\141\x63\x6b\x67\162\x6f\165\156\x64\x2d\143\x6f\x6c\x6f\x72\x3a\162\x67\x62\141\50\x32\65\61\x2c\x20\x32\63\62\x2c\x20\60\54\40\60\x2e\x31\x35\51\73\x70\141\x64\144\x69\x6e\x67\x3a\65\160\x78\73\x62\x6f\162\144\x65\x72\72\163\157\x6c\x69\x64\x20\61\x70\170\x20\162\x67\x62\141\x28\62\x35\65\54\x20\x30\54\x20\71\54\40\x30\x2e\63\66\51\x3b\42\76";
        if (!wpWrapper::mo_sps_site_check()) {
            goto jo;
        }
        echo "\120\x6c\x65\x61\x73\145\x20\145\156\164\x65\x72\x20\171\157\165\x72\x3c\x61\x20\150\162\145\x66\75\x22" . add_query_arg(array("\164\x61\x62" => "\x61\143\x63\157\x75\156\x74\x5f\163\145\164\x75\160"), $_SERVER["\122\x45\121\125\105\123\x54\x5f\125\x52\x49"]) . "\x22\x3e\40\154\151\x63\x65\x6e\163\x65\x20\x6b\145\x79\x3c\x2f\141\x3e\40\164\x6f\x20\x61\x63\x74\151\x76\141\164\x65\x20\164\150\145\x20\160\154\x75\147\x69\x6e\x2e";
        goto qo;
        jo:
        echo "\120\x6c\145\141\x73\145\x20\x65\x6e\164\x65\162\40\171\157\165\x72\x3c\x61\x20\x68\x72\145\146\75\x22" . add_query_arg(array("\164\141\142" => "\141\x63\x63\157\x75\x6e\164\x5f\163\145\164\x75\x70"), $_SERVER["\122\x45\x51\125\x45\x53\x54\x5f\125\x52\111"]) . "\42\76\40\x6c\x69\143\x65\156\163\145\x20\x6b\x65\171\74\57\x61\76\x20\164\x6f\x20\141\143\x74\151\166\x61\x74\x65\40\164\x68\145\x20\x70\x6c\165\147\x69\x6e\x2e";
        qo:
        echo "\74\x2f\x64\151\x76\76\x3c\x2f\x64\x69\166\76\x3c\57\x64\151\166\76";
        Go:
        goto d1;
        o0:
        echo "\74\x64\151\x76\x20\x73\x74\171\154\x65\x3d\42\167\151\144\x74\x68\72\x39\60\45\73\x6d\x61\x72\x67\151\156\72\x31\67\x70\x78\73\x22\x3e\74\144\x69\166\x3e\xd\xa\40\40\40\40\74\144\151\x76\x20\x73\164\x79\x6c\x65\x3d\42\x64\151\163\160\x6c\141\x79\x3a\x62\154\157\x63\x6b\x3b\x6d\141\162\147\151\x6e\x2d\x74\x6f\x70\x3a\61\x30\x70\170\x3b\143\x6f\x6c\157\x72\72\x72\x65\144\x3b\142\x61\143\x6b\x67\x72\x6f\x75\156\144\55\x63\x6f\154\157\x72\x3a\x72\x67\x62\x61\x28\x32\65\x31\x2c\x20\62\63\62\54\40\x30\54\x20\60\x2e\61\65\x29\73\160\141\144\144\151\156\147\x3a\65\x70\170\x3b\142\x6f\162\144\x65\162\x3a\163\157\x6c\151\144\40\x31\160\170\x20\162\147\x62\x61\50\x32\65\65\x2c\x20\60\x2c\40\71\54\x20\x30\56\63\66\x29\73\42\x3e\x50\154\145\x61\x73\x65\x20\x3c\141\40\150\x72\x65\x66\x3d\42" . add_query_arg(array("\x74\141\x62" => "\141\143\x63\157\165\x6e\164\x5f\x73\145\164\x75\160"), $_SERVER["\x52\105\x51\x55\x45\123\124\137\x55\x52\x49"]) . "\x22\x3e\122\x65\x67\x69\x73\164\x65\x72\x20\157\x72\x20\x4c\x6f\147\151\x6e\x20\x77\151\164\x68\40\x6d\x69\x6e\x69\117\162\x61\x6e\x67\145\74\x2f\141\76\x20\x74\x6f\x20\x63\x6f\x6e\x66\151\x67\165\162\145\40\x74\150\145\40\x45\155\x62\x65\x64\x20\x53\x68\141\162\x65\x50\x6f\151\156\164\x20\117\x6e\145\x44\x72\151\166\x65\x20\104\157\x63\165\155\145\156\164\x73\40\x50\154\165\x67\151\156\x2e\x3c\x2f\x64\x69\166\x3e\x3c\57\x64\151\x76\x3e\x3c\57\144\x69\x76\76";
        d1:
    }
    public static function mo_sps_check_plugin_license()
    {
        echo "\74\x64\151\166\40\163\164\x79\154\x65\75\42\x77\x69\144\164\x68\x3a\71\60\45\x3b\155\141\162\147\151\156\x3a\61\x37\x70\x78\73\42\76";
        $uG = Mo_License_Service::is_license_expired();
        if (!($uG["\123\124\x41\x54\x55\x53"] == true)) {
            goto mk;
        }
        echo "\74\x64\x69\166\x3e\15\xa\40\40\40\x20\x3c\144\151\166\40\163\x74\x79\x6c\145\75\42\144\x69\163\x70\x6c\x61\x79\x3a\x62\154\157\143\x6b\73\155\141\162\x67\151\x6e\55\164\157\160\x3a\x31\x30\x70\170\x3b\143\x6f\154\157\x72\72\x72\x65\x64\73\x62\x61\143\x6b\147\x72\157\x75\x6e\x64\55\143\x6f\x6c\157\x72\72\x72\147\142\x61\x28\x32\65\x31\54\40\62\63\62\54\40\x30\54\40\60\56\x31\65\x29\73\x70\141\x64\144\x69\156\147\x3a\x35\160\x78\73\x62\x6f\162\x64\145\x72\x3a\x73\157\154\x69\x64\x20\61\x70\170\x20\162\x67\x62\141\x28\62\x35\65\x2c\40\x30\x2c\40\71\54\40\x30\56\63\x36\51\73\x22\x3e\74\x62\76\120\154\145\x61\x73\x65\40\74\141\x20\150\x72\x65\x66\x3d\x22\x68\x74\x74\x70\x73\72\x2f\x2f\146\x61\161\x2e\x6d\151\156\x69\157\x72\141\x6e\x67\145\x2e\143\x6f\x6d\x2f\153\156\157\167\154\145\x64\147\145\142\141\x73\145\57\150\x6f\x77\x2d\x63\x61\x6e\x2d\151\55\162\145\x6e\145\167\55\x6d\151\156\x69\157\162\x61\156\x67\x65\x2d\x70\154\165\147\x69\x6e\55\x6c\151\x63\x65\x6e\163\145\57\x22\164\x61\x72\x67\145\164\75\x22\137\142\x6c\x61\156\153\x22\x3e\x52\145\156\145\167\x20\x79\x6f\165\162\x20\160\154\x75\x67\151\156\40\x6c\x69\x63\145\156\163\x65\xd\12\x20\x20\40\40\x69\x6d\155\145\x64\151\x61\164\x65\x6c\171\74\x2f\x62\x3e\x20\x3c\57\x61\76\40\x74\x6f\40\x63\x6f\x6e\x74\151\x6e\165\145\x20\165\x73\x69\156\147\40\x74\x68\x65\40\x50\x6c\165\147\x69\156\x2e\x3c\57\144\x69\166\x3e\x3c\57\144\x69\x76\76";
        mk:
    }
    public static function mo_sps_get_image_src($Yc)
    {
        return esc_url(plugin_dir_url(MO_SPS_PLUGIN_FILE) . "\151\155\141\147\x65\163\x2f" . $Yc);
    }
    public static function mo_sps_get_plugin_details()
    {
        $xr = get_site_url();
        $JQ = base64_decode("\143\x32\x68\x68\x4d\x6a\125\x32");
        $VE = pluginConstants::DMYR;
        $Oe = pluginConstants::TMUT;
        $FD = pluginConstants::PROU;
        $PL = time();
        $TA = wpWrapper::mo_sps_asdfet($PL, $Oe);
        $s2 = wpWrapper::mo_sps_asdfdesc($JQ, $FD, $VE, $Oe);
        if ($TA === true && $s2 === true) {
            goto vU;
        }
        return false;
        goto xr;
        vU:
        return true;
        xr:
    }
    public static function mo_sps_asdfet($PL, $Oe)
    {
        if ($PL <= base64_decode($Oe)) {
            goto Pf;
        }
        return false;
        goto G_;
        Pf:
        return true;
        G_:
    }
    public static function mo_sps_asdfdesc($JQ, $FD, $VE, $Oe)
    {
        $dK = base64_decode($VE);
        $JS = base64_decode($Oe);
        $bD = $dK . $JS;
        $s2 = base64_encode(hash($JQ, $bD));
        if ($s2 === $FD) {
            goto AX;
        }
        return false;
        goto Fu;
        AX:
        return true;
        Fu:
    }
}
