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


namespace MoSharePointObjectSync\View;

use MoSharePointObjectSync\Wrappers\pluginConstants;
use MoSharePointObjectSync\Wrappers\wpWrapper;
use WP_Roles;
class advanceSettings
{
    private static $instance;
    private static $isliveri;
    public static function getView()
    {
        if (isset(self::$instance)) {
            goto RW;
        }
        $pj = __CLASS__;
        self::$instance = new $pj();
        self::$isliveri = Mo_License_Service::is_customer_license_valid();
        RW:
        return self::$instance;
    }
    public function mo_sps_display__tab_details()
    {
        echo "\x20\x20\40\x20\40\x20\x20\40\x3c\x64\x69\166\40\143\154\x61\x73\x73\75\42\155\x6f\55\155\x73\55\x74\141\x62\55\143\157\x6e\164\145\156\164\42\x3e\15\12\40\x20\x20\40\x20\x20\40\40\40\40\x20\40\x3c\150\x31\x3e\x41\144\x76\x61\x6e\143\145\144\x20\x53\145\x74\x74\x69\x6e\147\x73\74\x2f\150\61\x3e\xd\12\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\74\144\151\x76\x20\163\x74\x79\x6c\x65\75\42\167\x69\144\x74\x68\72\40\66\70\x25\x22\76\15\xa\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\74\x64\151\166\40\x63\x6c\141\x73\163\x3d\42\155\157\55\x6d\x73\x2d\164\141\x62\x2d\143\x6f\x6e\x74\145\156\164\55\154\x65\146\x74\55\x62\x6f\x72\144\145\x72\42\76\15\xa\x20\40\x20\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\40\40\40\x20";
        wpWrapper::mo_sps_check_plugin_state();
        $this->mo_sps_display__group_mapping();
        echo "\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\74\x2f\x64\x69\x76\x3e\15\xa\40\40\40\x20\x20\x20\x20\x20\40\40\x20\x20\74\x2f\144\151\x76\x3e\xd\xa\40\40\x20\40\x20\x20\x20\x20\x3c\57\x64\151\166\76\xd\xa\x20\40\40\x20\40\40\x20\40";
    }
    private function mo_sps_display__group_mapping()
    {
        $FQ = wpWrapper::mo_sps_get_option("\x69\163\137\145\156\x61\142\154\145\137\x72\x6f\x6c\x65\x5f\146\x6f\x6c\x64\145\162\x5f\x6d\x61\160\x70\151\x6e\x67");
        $wp_roles = new WP_Roles();
        $BW = $wp_roles->get_names();
        $cv = maybe_unserialize(get_option("\155\157\x5f\163\160\163\x5f\147\162\160\137\x66\x6f\x6c\144\x65\162\137\155\141\160\160\151\x6e\x67"));
        $bW = wpWrapper::mo_sps_get_option(pluginConstants::SHAREPOINT_ROOT_FOLDER);
        $cx = get_term_children($bW, "\167\x70\x6d\146\55\143\x61\164\145\x67\157\x72\x79");
        echo "\x20\40\x20\40\40\40\x20\x20\x3c\146\157\x72\155\x20\x63\154\141\x73\163\75\x22\x6d\157\137\155\163\x67\162\141\160\150\137\141\x6a\x61\170\137\x73\165\x62\x6d\151\x74\137\x66\x6f\x72\x6d\x22\40\x69\144\x3d\42\x6d\157\137\163\x70\163\x5f\x73\141\166\x65\x5f\162\157\154\145\137\x66\x6f\x6c\x64\145\x72\x5f\x6d\x61\x70\x70\x69\156\147\x5f\x66\x6f\162\x6d\x22\x20\x6d\145\164\150\157\144\75\42\160\x6f\163\x74\x22\x3e\xd\12\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\x3c\x69\x6e\160\x75\164\x20\164\x79\x70\x65\75\x22\150\x69\144\x64\x65\156\x22\x20\156\x61\155\x65\x3d\x22\157\x70\x74\x69\157\x6e\42\x20\166\x61\154\165\x65\75\42\155\x6f\x5f\163\x70\163\137\163\141\166\x65\x5f\x72\x6f\154\145\137\146\x6f\x6c\x64\145\x72\x5f\x6d\x61\160\x70\x69\156\147\x5f\x6f\x70\x74\151\x6f\156\42\76\xd\12\x20\x20\x20\40\40\x20\x20\40\40\x20\40\x20\x3c\151\156\x70\x75\x74\x20\x74\171\160\x65\x3d\x22\150\151\144\144\145\x6e\x22\40\x6e\x61\155\145\x3d\42\x6d\x6f\x5f\163\160\163\x5f\x74\141\x62\42\x20\166\141\x6c\165\145\75\42\x61\144\x76\137\143\x6f\x6e\x66\151\x67\x22\x3e\15\12\40\40\40\40\40\40\40\x20\x20\x20\x20\x20";
        wp_nonce_field("\x6d\157\137\x73\160\x73\x5f\x73\x61\x76\x65\137\162\x6f\x6c\x65\x5f\x66\x6f\x6c\x64\145\162\x5f\x6d\x61\x70\x70\151\x6e\147\x5f\157\160\164\x69\157\x6e");
        echo "\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x3c\x64\151\166\40\x63\x6c\x61\163\163\75\42\155\157\x2d\155\163\55\164\x61\142\55\143\157\x6e\x74\x65\x6e\164\x2d\164\x69\x6c\145\42\x3e\xd\xa\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\74\144\x69\166\x20\143\x6c\141\163\163\x3d\x22\x6d\x6f\55\x6d\x73\55\x74\x61\x62\55\x63\x6f\x6e\164\x65\156\x74\x2d\x74\x69\x6c\145\x2d\x63\x6f\156\164\x65\156\x74\42\x3e\15\xa\x20\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\74\x64\x69\166\x20\x73\x74\x79\154\x65\75\42\144\x69\x73\160\154\141\x79\72\146\154\145\170\x3b\x22\x3e\xd\xa\40\x20\x20\x20\40\x20\40\40\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\40\40\x3c\x73\160\x61\156\x20\x73\x74\171\x6c\x65\x3d\x22\146\x6f\156\164\55\x73\x69\x7a\x65\72\40\x31\x38\x70\170\73\x66\x6f\156\x74\55\167\x65\151\x67\150\x74\72\x20\62\60\x30\x3b\42\76\122\x6f\154\x65\57\106\157\154\144\x65\162\x20\x4d\x61\160\160\151\156\147\x3c\57\x73\x70\x61\x6e\x3e\x3c\142\162\76\xd\12\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\40\x3c\x64\x69\x76\x20\x73\164\171\x6c\145\x3d\42\x64\151\163\160\154\x61\171\x3a\x20\146\154\x65\x78\73\x6d\141\x72\147\x69\x6e\x2d\x6c\145\x66\164\72\x31\x30\160\170\x3b\42\x3e\15\12\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\74\144\151\x76\40\163\164\171\x6c\145\75\42\x70\141\x64\144\x69\x6e\147\x2d\162\x69\x67\150\x74\72\x20\61\x35\x70\x78\73\x70\141\x64\x64\x69\156\147\x2d\164\x6f\x70\72\x20\62\x70\170\x3b\42\x3e\xd\xa\40\40\x20\40\x20\40\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x3c\x6c\141\142\145\x6c\40\143\x6c\x61\x73\163\x3d\x22\x73\x77\x69\x74\143\x68\x22\x3e\15\12\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\40\74\x69\x6e\160\165\164\x20";
        echo self::$isliveri ? '' : "\x64\151\x73\x61\x62\x6c\145\144";
        echo "\40\x74\171\x70\x65\75\42\x63\x68\145\143\x6b\x62\157\170\x22\40\156\141\155\x65\x3d\42\x69\163\137\145\156\141\142\154\145\x5f\x72\x6f\x6c\x65\x5f\x66\157\154\144\x65\x72\137\x6d\141\160\x70\151\156\147\42\x20";
        checked($FQ, "\x6f\x6e", true);
        echo "\76\xd\12\40\x20\40\40\x20\40\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x3c\163\160\141\x6e\40\143\x6c\141\163\x73\x3d\x22\163\x6c\151\x64\145\x72\40\x72\157\165\156\x64\42\x3e\74\57\163\160\x61\x6e\x3e\15\12\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\40\74\x2f\154\x61\x62\x65\154\76\15\12\x20\40\x20\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\x20\40\x20\40\x20\x20\74\57\144\151\x76\x3e\15\12\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\40\x3c\57\x64\151\x76\76\15\12\40\x20\40\x20\40\x20\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\x3c\x2f\144\x69\166\76\15\12\x20\40\x20\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\x20\x3c\144\151\166\76\xd\12\x20\x20\40\40\40\40\x20\40\x20\40\40\40\x20\40\40\x20\40\40\40\40\x20\x20\x20\x20\74\164\141\x62\154\x65\40\x63\154\x61\x73\163\x3d\x22\x6d\157\55\x6d\x73\x2d\164\x61\142\x2d\143\157\x6e\x74\145\x6e\x74\x2d\141\x70\x70\x2d\143\157\x6e\146\151\147\x2d\164\x61\x62\x6c\145\42\76\xd\12\40\40\40\40\40\x20\40\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x3c\143\x6f\154\147\x72\157\165\x70\76\xd\xa\x20\40\40\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\74\143\157\154\x20\x73\x70\141\156\x3d\x22\x31\42\x20\163\164\x79\154\145\75\x22\x77\151\144\164\x68\x3a\40\x31\x35\45\73\x22\x3e\xd\xa\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\40\74\143\x6f\x6c\x20\x73\x70\141\x6e\x3d\x22\62\x22\x20\163\x74\x79\154\x65\x3d\x22\x77\x69\x64\164\x68\72\40\x36\60\45\73\42\x3e\15\xa\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x3c\57\x63\157\x6c\147\x72\157\x75\160\x3e\xd\12\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\40";
        foreach ($BW as $mL => $jh) {
            $iJ = empty($cv) || !isset($cv[$mL]) ? '' : $cv[$mL];
            echo "\x20\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\x3c\164\162\76\xd\xa\x20\40\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\74\x74\144\x3e\74\163\160\141\x6e\76";
            echo $jh;
            echo "\74\57\x73\x70\x61\156\x3e\74\57\164\x64\76\15\xa\40\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\74\x74\144\x3e\xd\12\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\x20\x20\40\x3c\163\x65\x6c\x65\x63\164\40\x6d\165\x6c\x74\x69\x70\154\145\x20\x63\154\141\x73\x73\x3d\42\x6d\157\x5f\x73\x70\x73\x5f\163\145\154\145\143\164\42\x20";
            echo self::$isliveri ? '' : "\x64\x69\x73\141\142\154\x65\144";
            echo "\40\163\164\171\154\145\75\42\x77\x69\144\164\150\72\x37\x35\x25\x3b\x22\40\x74\171\x70\x65\75\x22\164\x65\x78\164\42\40\156\141\x6d\145\x3d\x22\155\x6f\137\163\160\163\137\146\x6f\x6c\144\145\162\x73\x5f\x66\157\x72\137\162\157\154\x65\137";
            echo $mL;
            echo "\x5b\135\42\x20\76\15\12\40\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\40\40\40\x20\40\40\40\x20\40\x20\40\x20";
            foreach ($cx as $o7) {
                echo "\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\x20\x20\x3c\x6f\160\164\151\157\156\40";
                echo !empty($iJ) && in_array($o7, $iJ) ? "\163\145\x6c\145\x63\x74\145\x64" : '';
                echo "\40\166\141\x6c\x75\145\x3d\42";
                echo $o7;
                echo "\42\76";
                echo get_term($o7, "\x77\x70\155\146\55\143\x61\x74\x65\147\x6f\162\171")->name;
                echo "\74\x2f\x6f\x70\164\151\157\156\x3e\15\12\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\40\40\x20\40\40\40\x20\x20";
                CE:
            }
            rO:
            echo "\x20\40\x20\40\40\40\40\40\x20\40\40\40\40\40\40\x20\x20\40\x20\x20\40\40\40\40\40\40\x20\x20\40\40\40\40\40\40\40\40\40\40\40\40\40\40\x20\x20\40\x20\x20\x20\74\57\163\145\x6c\x65\x63\164\76\15\12\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\40\40\40\40\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\40\40\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\74\x2f\x74\x64\x3e\15\xa\x20\40\x20\40\40\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\40\40\40\40\40\40\40\40\x20\40\x20\x3c\x2f\164\162\x3e\15\12\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20";
            V3:
        }
        G5:
        echo "\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\x3c\164\162\76\x3c\164\x64\76\x3c\x2f\142\162\76\74\57\x74\x64\x3e\x3c\57\164\x72\76\15\xa\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x3c\x74\162\76\15\12\x20\40\x20\40\x20\40\x20\40\40\40\x20\40\40\40\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\x20\x20\74\164\x64\76\xd\xa\40\40\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\40\40\40\x20\40\40\40\x20\40\74\151\x6e\x70\x75\164\x20";
        echo self::$isliveri ? '' : "\x64\151\163\141\x62\154\145\x64";
        echo "\40\x74\171\160\x65\x3d\42\163\165\x62\155\151\164\x22\x20\x63\154\141\163\x73\75\42\155\x6f\x2d\155\163\x2d\x74\x61\142\x2d\143\x6f\x6e\164\x65\156\x74\x2d\142\x75\x74\x74\x6f\156\42\x20\x76\x61\x6c\x75\x65\x3d\42\123\141\x76\x65\42\x3e\xd\12\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\x3c\57\164\x64\76\xd\12\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x3c\x2f\164\162\76\15\12\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\74\57\x74\x61\142\x6c\x65\x3e\xd\xa\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\74\x2f\x64\x69\166\76\15\xa\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\x3c\x2f\144\x69\166\76\xd\xa\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\74\57\x64\151\x76\x3e\15\xa\40\40\40\40\x20\x20\x20\40\x3c\x2f\x66\157\162\155\x3e\15\12\40\x20\x20\x20\40\x20\x20\40";
    }
    private function mo_sps_get_test_url()
    {
        return admin_url("\77\x6f\160\164\151\x6f\x6e\75\164\145\163\164\123\x50\x53\x55\x73\145\162");
    }
}
