Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * Plugin Name: Page Restriction WordPress (WP) - Protect WP Pages/Post * Desc..

Decoded Output download

<?php 
/** 
* Plugin Name: Page Restriction WordPress (WP) - Protect WP Pages/Post 
* Description: This plugin allows restriction over users based on their roles and whether they are logged in or not. 
* Version: 4.0.2 
* Author: miniOrange 
* Author URI: http://miniorange.com 
* License: MIT/Expat 
* License URI: https://docs.miniorange.com/mit-license 
*/ 
 
 
require_once "page-restriction-save.php"; 
require_once "page-restriction-menu-settings.php"; 
include_once "page-restriction-utility.php"; 
class page_and_post_restriction_add_on 
{ 
    function __construct() 
    { 
        update_option("papr_host_name", "https://login.xecurify.com"); 
        add_action("admin_menu", array($this, "papr_menu"), 11); 
        add_action("admin_init", "papr_save_setting", 1, 0); 
        add_action("admin_enqueue_scripts", array($this, "papr_plugin_settings_script")); 
        register_deactivation_hook(__FILE__, array($this, "papr_deactivate")); 
        remove_action("admin_notices", "papr_success_message"); 
        remove_action("admin_notices", "papr_error_message"); 
        add_action("save_post", array($this, "papr_save_meta_box_info"), 10, 3); 
        add_action("wp", array($this, "papr_initialize_page_restrict"), 0); 
        add_action("add_meta_boxes", array($this, "papr_add_custom_meta_box")); 
        add_shortcode("restrict_content", array($this, "papr_restrict_content")); 
        add_action("plugin_action_links_" . plugin_basename(__FILE__), array($this, "papr_add_plugin_settings")); 
    } 
    function papr_menu() 
    { 
        add_menu_page("Page and Post Restriction", "Page Restriction", "administrator", "page_restriction", "papr_page_restriction", plugin_dir_url(__FILE__) . "includes/images/miniorange.png"); 
    } 
    function papr_add_plugin_settings($jL) 
    { 
        $jL = array_merge(array("<a href="" . esc_url(admin_url("admin.php?page=page_restriction")) . "">" . __("Settings") . "</a>"), $jL); 
        return $jL; 
    } 
    function papr_deactivate() 
    { 
        wp_redirect("plugins.php"); 
        delete_option("papr_admin_email"); 
        delete_option("papr_admin_customer_key"); 
        delete_option("papr_host_name"); 
        delete_option("papr_new_registration"); 
        delete_option("papr_admin_phone"); 
        delete_option("papr_admin_password"); 
        delete_option("papr_admin_customer_key"); 
        delete_option("papr_admin_api_key"); 
        delete_option("papr_customer_token"); 
        delete_option("papr_message"); 
        delete_option("papr_allowed_roles_for_pages"); 
        delete_option("papr_restricted_pages"); 
        delete_option("papr_allowed_roles_for_posts"); 
        delete_option("papr_restricted_posts"); 
        delete_option("papr_allowed_redirect_for_pages"); 
        delete_option("papr_allowed_redirect_for_posts"); 
    } 
    function papr_plugin_settings_script($Ww) 
    { 
        if (!($Ww != "toplevel_page_page_restriction")) { 
            goto Yg; 
        } 
        return; 
        Yg: 
        wp_enqueue_script("jquery"); 
        wp_enqueue_script("jquery-ui-autocomplete"); 
        wp_enqueue_script("papr_admin_settings_phone_script", plugins_url("includes/js/phone.js", __FILE__)); 
        wp_enqueue_style("papr_admin_bootstrap_settings_script", plugins_url("includes/js/bootstrap/bootstrap.min.js", __FILE__)); 
        wp_enqueue_style("papr_admin_bootstrap_settings_script", plugins_url("includes/js/bootstrap/popper.min.js", __FILE__)); 
        wp_enqueue_style("papr_admin_settings_phone_style", plugins_url("includes/css/phone.css", __FILE__)); 
        wp_enqueue_style("papr_admin_bootstrap_settings_style", plugins_url("includes/css/bootstrap/bootstrap.min.css", __FILE__)); 
        wp_enqueue_style("papr_admin_settings_style", plugins_url("includes/css/papr_settings_style.css", __FILE__)); 
    } 
    function papr_restrict_content($uF, $qb = '') 
    { 
        $P0 = "You are not allowed to view this content!"; 
        if (is_user_logged_in()) { 
            goto Et; 
        } 
        return $P0; 
        Et: 
        if (!isset($uF["role"])) { 
            goto Bc; 
        } 
        $PZ = wp_get_current_user(); 
        $nw = $PZ->roles; 
        foreach ($nw as $Rc => $Vl) { 
            if (!(stripos($uF["role"], $Vl) !== false)) { 
                goto Nk; 
            } 
            return "<p>" . $qb . "</p>"; 
            Nk: 
            II: 
        } 
        UV: 
        return $P0; 
        Bc: 
        return "<p>" . $qb . "</p>"; 
    } 
    function papr_add_custom_meta_box($LG) 
    { 
        if (!($LG != "post" && $LG != "page")) { 
            goto Ch; 
        } 
        return; 
        Ch: 
        global $bW; 
        $Sy = get_option("papr_allowed_metabox_roles"); 
        if (!empty($Sy)) { 
            goto L5; 
        } 
        $Sy = "Editor; Author;"; 
        L5: 
        if (!($Sy == "papr_no_roles")) { 
            goto Pm; 
        } 
        $Sy = ''; 
        Pm: 
        $i2 = explode(";", $Sy); 
        $current_user = wp_get_current_user(); 
        $G7 = $current_user->roles; 
        if (!in_array($bW, array("post-new.php"))) { 
            goto F9; 
        } 
        if ($LG == "page" && get_option("papr_select_all_pages") == "checked") { 
            goto t6; 
        } 
        if (!(get_option("papr_select_all_posts") == "checked")) { 
            goto ns; 
        } 
        $Q3 = maybe_unserialize(get_option("papr_allowed_redirect_for_posts")); 
        $Q3[get_the_ID()] = true; 
        update_option("papr_allowed_redirect_for_posts", $Q3); 
        ns: 
        goto h6; 
        t6: 
        $Q3 = maybe_unserialize(get_option("papr_allowed_redirect_for_pages")); 
        $Q3[get_the_ID()] = true; 
        update_option("papr_allowed_redirect_for_pages", $Q3); 
        h6: 
        F9: 
        if (!is_array($G7)) { 
            goto eG; 
        } 
        if (!(empty(array_intersect($i2, $G7)) && !in_array("administrator", $G7))) { 
            goto vC; 
        } 
        return; 
        vC: 
        eG: 
        $Qj = get_post_type_object($LG); 
        add_meta_box("demo-meta-box", "Page Restrict Access", array($this, "papr_meta_box"), $LG, "side", "high", null); 
    } 
    function restrict_logged_in_users($l7, $Pa) 
    { 
        $this->apply_restriction_if_toggle_is_enabled($l7, $Pa); 
        $hE = maybe_unserialize(get_option("papr_allowed_redirect_for_pages")) ? maybe_unserialize(get_option("papr_allowed_redirect_for_pages")) : array(); 
        $gN = maybe_unserialize(get_option("papr_allowed_redirect_for_posts")) ? maybe_unserialize(get_option("papr_allowed_redirect_for_posts")) : array(); 
        $LG = get_post_type($l7); 
        if (!(is_page() && array_key_exists($l7, $hE) || is_front_page() && array_key_exists(get_option("page_on_front"), $hE) || is_single() && array_key_exists($l7, $gN))) { 
            goto o1; 
        } 
        if (has_action("mo_restrict_page_option")) { 
            goto Oz; 
        } 
        error_log("not mo_restrict_page_option"); 
        $this->restriction($l7, $Pa); 
        goto M9; 
        Oz: 
        do_action("mo_restrict_page_option"); 
        M9: 
        o1: 
    } 
    function restriction($l7, $Pa) 
    { 
        $FD = $this->check_type($l7, $Pa, "papr_before_login_"); 
        $h7 = $FD["option"] ?? ''; 
        $Vt = $FD["choice"] ?? ''; 
        if ($Vt) { 
            goto No; 
        } 
        $Vt = "mo_display_message"; 
        No: 
        if ($Vt == "mo_display_message") { 
            goto fE; 
        } 
        if ($Vt == "mo_display_page") { 
            goto yc; 
        } 
        if ($Vt == "mo_display_redirect_IDP") { 
            goto KY; 
        } 
        $CU = get_option("papr_login_page_url"); 
        error_log("custom login => " . print_r($CU, true)); 
        if (!empty($CU)) { 
            goto TS; 
        } 
        auth_redirect(); 
        goto Jh; 
        TS: 
        $es = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}"; 
        error_log("current url custom_login => " . print_r($es, true)); 
        header("cache-control: max-age=0, private, no-store, no-cache, must-revalidate"); 
        if (strpos($CU, "?") !== false) { 
            goto DE; 
        } 
        header("Location:" . $CU . "?redirect_to=" . urlencode($es)); 
        goto ZS; 
        DE: 
        header("Location:" . $CU . "&redirect_to=" . urlencode($es)); 
        ZS: 
        Jh: 
        goto c9; 
        KY: 
        $ZX = $h7[$Vt]; 
        $es = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}"; 
        error_log("current url mo_display_redirect_idp => " . print_r($es, true)); 
        $MO = papr_is_sso_enabled(); 
        if ($ZX == "true" && ($MO != '' || class_exists("MoOAuthClient\MOUtils"))) { 
            goto I0; 
        } 
        if (!empty($S5)) { 
            goto Tt; 
        } 
        $S5 = "Oops! You are not authorized to access this"; 
        Tt: 
        wp_die($S5); 
        goto tj; 
        I0: 
        $iF = site_url() . "?option=saml_user_login&redirect_to=" . $es; 
        if (!class_exists("MoOAuthClient\MOUtils")) { 
            goto Ut; 
        } 
        $ux = $h7["mo_oauth_app_name"]; 
        $iF = site_url() . "?option=oauthredirect&app_name=" . $ux . "&redirect_url=" . urlencode($es) . "&restrictedredirect=true"; 
        Ut: 
        error_log("url mo_display_redirect => " . print_r($iF, true)); 
        header("cache-control: max-age=0, private, no-store, no-cache, must-revalidate"); 
        header("Location:" . $iF); 
        exit; 
        tj: 
        c9: 
        goto m0; 
        yc: 
        $eq = $h7[$Vt]; 
        $es = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}"; 
        error_log("current url mo_display_page => " . print_r($es, true)); 
        header("cache-control: max-age=0, private, no-store, no-cache, must-revalidate"); 
        if (strpos($eq, "?") !== false) { 
            goto pH; 
        } 
        header("Location:" . $eq . "?redirect_to=" . urlencode($es)); 
        goto ir; 
        pH: 
        header("Location:" . $eq . "&redirect_to=" . urlencode($es)); 
        ir: 
        exit; 
        m0: 
        goto Ax; 
        fE: 
        $S5 = $h7["mo_display_message"] ?? ''; 
        if (!empty($S5)) { 
            goto S0; 
        } 
        $S5 = "Oops! You are not authorized to access this"; 
        S0: 
        wp_die($S5); 
        Ax: 
    } 
    function apply_restriction_if_toggle_is_enabled($l7, $Pa) 
    { 
        $B6 = get_option("papr_access_for_only_loggedin") != '' ? get_option("papr_access_for_only_loggedin") : ''; 
        $Cn = maybe_unserialize(get_option("papr_login_unrestricted_pages")) ? maybe_unserialize(get_option("papr_login_unrestricted_pages")) : array(); 
        $f7 = get_option("papr_access_for_only_loggedin_posts") != '' ? get_option("papr_access_for_only_loggedin_posts") : ''; 
        $kp = maybe_unserialize(get_option("papr_login_unrestricted_posts")) ? maybe_unserialize(get_option("papr_login_unrestricted_posts")) : array(); 
        if (is_front_page() && !array_key_exists(get_option("page_on_front"), $Cn) && $B6 == 1) { 
            goto jD; 
        } 
        if (!is_front_page() && is_page() && $B6 == 1 && !array_key_exists($l7, $Cn)) { 
            goto La; 
        } 
        if (!(is_single() && $f7 == 1 && !array_key_exists($l7, $kp))) { 
            goto hl; 
        } 
        error_log("is_single"); 
        $this->restriction($l7, $Pa); 
        hl: 
        goto I6; 
        La: 
        error_log("!is_front_page"); 
        $this->restriction($l7, $Pa); 
        I6: 
        goto Hs; 
        jD: 
        error_log("is_front_page"); 
        $this->restriction(get_option("page_on_front"), $Pa); 
        Hs: 
    } 
    function check_type($T3, $EL, $tN) 
    { 
        if (is_page($T3) || is_front_page()) { 
            goto qH; 
        } 
        $ny = maybe_unserialize(get_option($tN . "post_access")); 
        goto rI; 
        qH: 
        $ny = maybe_unserialize(get_option($tN . "page_access")); 
        rI: 
        return $ny; 
    } 
    function papr_restrict_by_role($T3, $EL) 
    { 
        $Ra = get_option("papr_allowed_roles_for_posts"); 
        $R5 = maybe_unserialize(get_option("papr_allowed_roles_for_pages")); 
        $hE = maybe_unserialize(get_option("papr_restricted_pages")); 
        $gN = maybe_unserialize(get_option("papr_restricted_posts")); 
        $user = wp_get_current_user(); 
        $G7 = $user->roles; 
        foreach ($G7 as $Rc => $BC) { 
            if (is_front_page() && !empty($R5["mo_page_0"]) && stripos(strtolower($R5["mo_page_0"]), $BC) !== FALSE) { 
                goto sg; 
            } 
            if (is_array($R5) && array_key_exists($T3, $R5) && stripos($R5[$T3], $BC) !== false) { 
                goto LI; 
            } 
            if (!(is_array($Ra) && array_key_exists($T3, $Ra) && stripos($Ra[$T3], $BC) !== false)) { 
                goto n5; 
            } 
            return; 
            n5: 
            goto Yj; 
            LI: 
            return; 
            Yj: 
            goto hz; 
            sg: 
            return; 
            hz: 
            Xj: 
        } 
        M1: 
        if (!(is_array($R5) || is_array($Ra))) { 
            goto Nr; 
        } 
        if (!(is_front_page() && !empty($R5["mo_page_0"]) || is_page() && !empty($R5[$T3]) || !is_front_page() && !empty($Ra[$T3]))) { 
            goto l5; 
        } 
        if (has_action("mo_restrict_page_option")) { 
            goto CM; 
        } 
        $ny = $this->check_type($T3, $EL, "papr_after_login_"); 
        $h7 = $ny["option"] ?? ''; 
        $Vt = $ny["choice"] ?? ''; 
        if ($Vt) { 
            goto jt; 
        } 
        $Vt = "mo_display_message_log"; 
        jt: 
        if ($Vt == "mo_display_message_log") { 
            goto UG; 
        } 
        if (!($Vt == "mo_display_page_log")) { 
            goto VR; 
        } 
        $eq = $h7[$Vt]; 
        header("cache-control: max-age=0, private, no-store, no-cache, must-revalidate"); 
        header("Location:" . $eq); 
        exit; 
        VR: 
        goto iJ; 
        UG: 
        $S5 = $h7["mo_display_message_log"] ?? ''; 
        if (!empty($S5)) { 
            goto Bv; 
        } 
        $S5 = "Oops! You are not authorized to access this"; 
        Bv: 
        wp_die($S5); 
        iJ: 
        goto LJ; 
        CM: 
        do_action("mo_restrict_page_option"); 
        LJ: 
        l5: 
        Nr: 
    } 
    function papr_initialize_page_restrict() 
    { 
        if (papr_is_customer_license_key_verified()) { 
            goto LQ; 
        } 
        return; 
        LQ: 
        global $post; 
        $EL = get_query_var("cat") > 0 ? true : false; 
        if ($EL) { 
            goto cL; 
        } 
        $T3 = get_the_ID() ? get_the_ID() : 0; 
        goto nN; 
        cL: 
        $T3 = get_query_var("cat"); 
        nN: 
        $zL = false; 
        if (!get_option("mo_saml_guest_user_login")) { 
            goto Qe; 
        } 
        if (!(!session_id() || session_id() == '' || !isset($_SESSION))) { 
            goto DX; 
        } 
        session_start(); 
        DX: 
        if (!isset($_SESSION["mo_saml"])) { 
            goto s5; 
        } 
        if (!(isset($_SESSION["mo_saml"]["can_access_site"]) and $_SESSION["mo_saml"]["can_access_site"] == true)) { 
            goto Ob; 
        } 
        $zL = true; 
        Ob: 
        s5: 
        Qe: 
        if (!is_user_logged_in() and !$zL) { 
            goto SI; 
        } 
        $this->papr_restrict_by_role($T3, $EL); 
        goto vF; 
        SI: 
        $this->restrict_logged_in_users($T3, $EL); 
        vF: 
    } 
    public static function papr_meta_box($post) 
    { 
        wp_nonce_field("my_meta_box_nonce", "meta_box_nonce"); 
        global $wp_roles; 
        $BX = $wp_roles->role_names; 
        asort($BX); 
        $Qj = $post->post_type; 
        if ($Qj == "page") { 
            goto sx; 
        } 
        $gL = maybe_unserialize(get_option("papr_allowed_roles_for_posts")); 
        goto qq; 
        sx: 
        $gL = maybe_unserialize(get_option("papr_allowed_roles_for_pages")); 
        qq: 
        $jo = array(); 
        if (!(!empty($gL) && array_key_exists($post->ID, $gL))) { 
            goto LW; 
        } 
        $IL = $gL[$post->ID]; 
        $jo = explode(";", $IL); 
        LW: 
        $Tu = "false"; 
        if ($Qj == "page") { 
            goto kC; 
        } 
        $Q3 = maybe_unserialize(get_option("papr_allowed_redirect_for_posts")); 
        goto fc; 
        kC: 
        $Q3 = maybe_unserialize(get_option("papr_allowed_redirect_for_pages")); 
        fc: 
        if (empty($Q3)) { 
            goto Pa; 
        } 
        if (!(array_key_exists($post->ID, $Q3) && $Q3[$post->ID] == "true")) { 
            goto Cv; 
        } 
        $Tu = "true"; 
        Cv: 
        Pa: 
        echo "<div class="row">\xd\xa    <img src=""; 
        echo plugin_dir_url(__FILE__); 
        echo "includes/images/miniorange-logo.png"
        alt="miniOrange Page and Post Restriction" width="35px">\xd
    <h4 style="position:absolute;top:-0.6rem;left:4.2rem;">Page and Post Restriction</h4>
\xa</div>\xd
\xd\xa<p> "; 
        esc_html_e("Limit access to Logged in users.", "mo-wpum"); 
        echo " </p>
<div class="page-restrict-loggedin-user-div">
    <input type="hidden" name="papr_metabox" value="true">
    <ul class="page-restrict-loggedin-user">\xd
        "; 
        if (filter_var($Tu, FILTER_VALIDATE_BOOLEAN)) { 
            goto nP; 
        } 
        echo "        <input type="checkbox" name="restrict_page_access_loggedin_user" value="true" />"; 
        goto Kd; 
        nP: 
        echo "        <input type="checkbox" name="restrict_page_access_loggedin_user" checked value="true" />\xd
        "; 
        Kd: 
        echo "        Require Login\xd
    </ul>\xd\xa</div>\xd\xa
\xa<hr>\xd
<p>\xd\xa    "; 
        esc_html_e("Limit access to this post's content to users of the selected roles.", "mo-wpum"); 
        echo "</p>
\xd
<div class="role-list-wrap">\xd
\xd\xa    <ul class="role-list">
\xd\xa        "; 
        foreach ($BX as $gL => $mE) { 
            echo "        <li>\xd
            <label>
                <input type="checkbox" name="papr_access_role[]"\xd\xa                    "; 
            checked(is_array($jo) && in_array($gL, $jo)); 
            echo "                    value=""; 
            echo esc_attr($gL); 
            echo "" />\xd
                "; 
            echo esc_html(translate_user_role($gL)); 
            echo "            </label>
        </li>\xd
        "; 
            Sy: 
        } 
        f5: 
        echo "
    </ul>\xd\xa</div>\xd
"; 
    } 
    static function papr_save_meta_box_info($Gh, $post, $rU) 
    { 
        if (isset($_POST["papr_metabox"])) { 
            goto wA; 
        } 
        return; 
        wA: 
        $Qj = get_post_type(); 
        $e7 = array(); 
        $hE = array(); 
        $DY = array(); 
        if (!(defined("DOING_AUTOSAVE") && DOING_AUTOSAVE)) { 
            goto PV; 
        } 
        return; 
        PV: 
        $H6 = maybe_unserialize(get_option("papr_default_role_parent")) != '' ? maybe_unserialize(get_option("papr_default_role_parent")) : array(); 
        if ($Qj == "page") { 
            goto m9; 
        } 
        $qE = maybe_unserialize(get_option("papr_allowed_roles_for_posts")); 
        $VV = maybe_unserialize(get_option("papr_restricted_posts")); 
        if ($VV) { 
            goto pT; 
        } 
        $VV = array(); 
        pT: 
        $e7 = maybe_unserialize(get_option("papr_allowed_redirect_for_posts")); 
        $Cn = maybe_unserialize(get_option("papr_login_unrestricted_posts")) ? maybe_unserialize(get_option("papr_login_unrestricted_posts")) : array(); 
        $B6 = get_option("papr_access_for_only_loggedin_posts") != '' ? get_option("papr_access_for_only_loggedin_posts") : ''; 
        goto Og; 
        m9: 
        $qE = maybe_unserialize(maybe_unserialize(get_option("papr_allowed_roles_for_pages"))); 
        $VV = maybe_unserialize(get_option("papr_restricted_pages")); 
        if ($VV) { 
            goto L8; 
        } 
        $VV = array(); 
        L8: 
        $e7 = maybe_unserialize(get_option("papr_allowed_redirect_for_pages")); 
        $Cn = maybe_unserialize(get_option("papr_login_unrestricted_pages")) ? maybe_unserialize(get_option("papr_login_unrestricted_pages")) : array(); 
        $B6 = get_option("papr_access_for_only_loggedin") != '' ? get_option("papr_access_for_only_loggedin") : ''; 
        Og: 
        if (isset($_POST["papr_access_role"])) { 
            goto YE; 
        } 
        $vD = $VV; 
        if (!is_array($vD)) { 
            goto yM; 
        } 
        n2: 
        if (!(($I1 = array_search($Gh, $vD)) !== false)) { 
            goto Vc; 
        } 
        unset($vD[$I1]); 
        unset($qE[$Gh]); 
        goto n2; 
        Vc: 
        yM: 
        $VV = $vD; 
        goto GM; 
        YE: 
        array_push($VV, $Gh); 
        $w_ = $_POST["papr_access_role"]; 
        $qE[$Gh] = implode(";", $w_); 
        GM: 
        if (isset($_POST["restrict_page_access_loggedin_user"]) || $B6 == 1) { 
            goto iC; 
        } 
        unset($e7[$Gh]); 
        $Cn[$Gh] = true; 
        goto Ig; 
        iC: 
        $e7[$Gh] = true; 
        unset($Cn[$Gh]); 
        Ig: 
        $hA = wp_get_post_parent_id($Gh); 
        if (!($Qj == "page" && $hA)) { 
            goto EU; 
        } 
        if (!($H6[$hA] == true)) { 
            goto yj; 
        } 
        $VV = maybe_unserialize(get_option("papr_restricted_pages")); 
        if (!in_array($hA, $VV)) { 
            goto oZ; 
        } 
        array_push($VV, $Gh); 
        $qE = maybe_unserialize(get_option("papr_allowed_roles_for_pages")); 
        $Pd = $qE[$hA]; 
        $qH = explode(";", $Pd); 
        $qE[$Gh] = implode(";", $qH); 
        if ($qE[$Gh] != '') { 
            goto jx; 
        } 
        unset($VV[$Gh]); 
        goto H4; 
        jx: 
        if (in_array($Gh, $VV)) { 
            goto UY; 
        } 
        array_push($VV, $Gh); 
        UY: 
        H4: 
        oZ: 
        if (in_array($hA, $e7)) { 
            goto CI; 
        } 
        unset($e7[$Gh]); 
        $Cn[$Gh] = true; 
        goto Ln; 
        CI: 
        $e7[$Gh] = true; 
        unset($Cn[$Gh]); 
        Ln: 
        yj: 
        EU: 
        if (!($Qj == "page")) { 
            goto KL; 
        } 
        $Uc = get_option("papr_default_role_parent_page_toggle") != '' ? get_option("papr_default_role_parent_page_toggle") : ''; 
        if (!(array_key_exists($Gh, $H6) || $Uc == 1)) { 
            goto E0; 
        } 
        if (!($Gh != 0)) { 
            goto Eh; 
        } 
        $H6[$Gh] = true; 
        $FU = get_pages(array("child_of" => $Gh)); 
        if (!(count($FU) > 0)) { 
            goto HN; 
        } 
        foreach ($FU as $Za) { 
            $XA = $Za->ID; 
            $qE[$Za->ID] = $qE[$Gh]; 
            if ($qE[$Za->ID] != '') { 
                goto nr; 
            } 
            unset($VV[$Za->ID]); 
            goto MD; 
            nr: 
            if (in_array($Za->ID, $VV)) { 
                goto ER; 
            } 
            array_push($VV, $Za->ID); 
            ER: 
            MD: 
            if (array_key_exists($Gh, $e7)) { 
                goto jo; 
            } 
            unset($e7[$Za->ID]); 
            $Cn[$Za->ID] = true; 
            goto A5; 
            jo: 
            if (!($e7[$Gh] == 1 || $e7[$Gh] == "on" || $e7[$Gh] == "true")) { 
                goto sX; 
            } 
            $e7[$Za->ID] = true; 
            unset($Cn[$Za->ID]); 
            sX: 
            A5: 
            $qh = get_pages(array("child_of" => $Za->ID)); 
            if (!(count($qh) > 0)) { 
                goto cp; 
            } 
            $H6[$Za->ID] = true; 
            cp: 
            EV: 
        } 
        l0: 
        HN: 
        Eh: 
        E0: 
        KL: 
        if ($Qj == "page") { 
            goto E5; 
        } 
        update_option("papr_restricted_posts", $VV); 
        update_option("papr_allowed_roles_for_posts", $qE); 
        update_option("papr_allowed_redirect_for_posts", $e7); 
        update_option("papr_login_unrestricted_posts", $Cn); 
        update_option("papr_message", "This post has been restricted successfully."); 
        goto Kw; 
        E5: 
        update_option("papr_default_role_parent", $H6); 
        update_option("papr_login_unrestricted_pages", $Cn); 
        update_option("papr_restricted_pages", $VV); 
        update_option("papr_allowed_roles_for_pages", $qE); 
        update_option("papr_allowed_redirect_for_pages", $e7); 
        update_option("papr_message", "This page has been restricted successfully."); 
        Kw: 
    } 
} 
new page_and_post_restriction_add_on(); 
 ?>

Did this file decode correctly?

Original Code

<?php
/**
* Plugin Name: Page Restriction WordPress (WP) - Protect WP Pages/Post
* Description: This plugin allows restriction over users based on their roles and whether they are logged in or not.
* Version: 4.0.2
* Author: miniOrange
* Author URI: http://miniorange.com
* License: MIT/Expat
* License URI: https://docs.miniorange.com/mit-license
*/


require_once "\160\141\147\145\x2d\x72\145\x73\164\162\151\x63\164\x69\x6f\x6e\x2d\x73\x61\x76\145\56\160\150\160";
require_once "\x70\141\147\x65\55\x72\145\163\x74\x72\x69\x63\164\x69\x6f\x6e\55\155\x65\156\165\x2d\163\x65\164\164\x69\x6e\147\163\56\160\150\160";
include_once "\x70\141\x67\145\x2d\162\x65\163\x74\x72\x69\x63\x74\x69\x6f\x6e\55\165\164\151\x6c\151\164\171\56\x70\150\x70";
class page_and_post_restriction_add_on
{
    function __construct()
    {
        update_option("\160\141\x70\162\x5f\150\x6f\x73\164\137\156\x61\155\x65", "\x68\x74\x74\x70\x73\72\57\x2f\x6c\157\147\x69\x6e\x2e\x78\x65\143\x75\162\x69\x66\171\56\143\x6f\x6d");
        add_action("\141\x64\155\151\156\x5f\x6d\145\x6e\165", array($this, "\160\x61\160\x72\x5f\x6d\x65\156\165"), 11);
        add_action("\141\144\x6d\x69\x6e\x5f\x69\x6e\x69\164", "\x70\x61\160\x72\x5f\x73\x61\166\145\137\163\145\x74\164\x69\x6e\x67", 1, 0);
        add_action("\141\x64\x6d\151\156\137\145\x6e\x71\165\x65\x75\145\137\x73\143\162\151\160\164\163", array($this, "\x70\x61\160\x72\x5f\x70\x6c\165\147\151\156\x5f\163\x65\164\164\151\x6e\147\163\x5f\x73\x63\162\151\x70\x74"));
        register_deactivation_hook(__FILE__, array($this, "\160\141\160\162\137\x64\x65\x61\143\x74\151\166\141\x74\x65"));
        remove_action("\141\x64\155\151\156\x5f\x6e\x6f\164\151\x63\x65\x73", "\160\141\160\162\137\163\165\143\143\x65\x73\163\137\155\x65\163\163\x61\147\x65");
        remove_action("\141\144\x6d\x69\x6e\137\x6e\157\164\x69\143\145\163", "\x70\x61\x70\x72\137\145\x72\x72\x6f\x72\x5f\155\x65\x73\163\141\147\x65");
        add_action("\x73\141\166\145\x5f\160\157\163\x74", array($this, "\x70\141\x70\x72\137\x73\141\x76\x65\137\155\x65\x74\x61\x5f\142\x6f\x78\137\x69\156\146\x6f"), 10, 3);
        add_action("\167\x70", array($this, "\160\141\160\162\137\x69\x6e\x69\x74\151\141\154\151\x7a\145\137\160\x61\147\x65\x5f\x72\145\x73\x74\x72\x69\143\164"), 0);
        add_action("\141\144\144\x5f\x6d\145\164\x61\x5f\x62\157\x78\x65\163", array($this, "\160\x61\160\162\x5f\x61\x64\x64\137\x63\x75\x73\x74\x6f\155\x5f\155\145\x74\x61\x5f\x62\157\x78"));
        add_shortcode("\x72\145\163\164\162\151\x63\164\137\x63\x6f\156\164\x65\156\164", array($this, "\160\141\x70\162\137\x72\x65\163\x74\x72\151\x63\164\137\143\157\156\164\x65\x6e\x74"));
        add_action("\x70\154\165\147\x69\156\137\x61\143\x74\x69\157\156\x5f\x6c\x69\x6e\x6b\163\137" . plugin_basename(__FILE__), array($this, "\160\141\x70\162\137\x61\x64\144\137\160\154\x75\147\151\156\x5f\163\145\x74\164\x69\x6e\147\x73"));
    }
    function papr_menu()
    {
        add_menu_page("\120\141\147\145\x20\x61\x6e\144\40\x50\x6f\x73\x74\40\122\x65\163\x74\x72\x69\143\x74\x69\157\x6e", "\x50\x61\x67\x65\40\x52\145\x73\164\x72\x69\143\x74\x69\157\156", "\x61\144\155\151\156\151\163\x74\162\x61\164\x6f\162", "\160\141\x67\x65\x5f\x72\x65\x73\164\162\x69\x63\x74\x69\157\156", "\x70\141\160\162\137\160\x61\x67\145\137\162\x65\163\x74\162\151\143\x74\x69\x6f\x6e", plugin_dir_url(__FILE__) . "\151\156\x63\x6c\165\x64\145\163\57\x69\x6d\141\x67\145\x73\57\155\151\156\151\x6f\162\x61\156\147\x65\56\160\x6e\147");
    }
    function papr_add_plugin_settings($jL)
    {
        $jL = array_merge(array("\x3c\141\40\150\x72\145\146\75\x22" . esc_url(admin_url("\141\x64\155\151\x6e\x2e\160\150\160\x3f\x70\141\147\145\x3d\160\141\x67\x65\137\162\145\163\x74\x72\151\143\164\151\x6f\156")) . "\42\x3e" . __("\123\x65\x74\164\x69\x6e\x67\x73") . "\x3c\x2f\141\x3e"), $jL);
        return $jL;
    }
    function papr_deactivate()
    {
        wp_redirect("\160\x6c\165\147\151\x6e\x73\x2e\x70\x68\160");
        delete_option("\x70\x61\x70\x72\137\141\144\155\151\156\x5f\x65\155\141\x69\154");
        delete_option("\x70\141\x70\162\137\141\x64\x6d\x69\156\137\143\x75\163\164\x6f\155\145\x72\x5f\153\145\x79");
        delete_option("\x70\141\x70\162\137\150\x6f\x73\164\x5f\x6e\x61\x6d\x65");
        delete_option("\x70\141\160\x72\137\x6e\145\x77\x5f\x72\x65\x67\151\163\x74\162\x61\164\x69\157\x6e");
        delete_option("\160\141\x70\162\137\x61\x64\155\x69\156\x5f\x70\150\157\x6e\x65");
        delete_option("\160\x61\160\162\x5f\x61\x64\155\x69\156\x5f\160\141\163\x73\167\157\x72\144");
        delete_option("\x70\141\160\x72\x5f\x61\x64\x6d\x69\x6e\137\143\x75\x73\x74\x6f\155\x65\162\137\153\145\x79");
        delete_option("\160\141\160\x72\137\x61\x64\155\x69\x6e\x5f\141\160\x69\x5f\153\145\171");
        delete_option("\x70\x61\x70\x72\137\x63\165\163\164\x6f\155\x65\162\x5f\x74\157\153\x65\x6e");
        delete_option("\x70\141\x70\x72\137\x6d\145\163\x73\x61\147\145");
        delete_option("\160\141\160\x72\x5f\x61\154\154\157\x77\145\144\x5f\x72\x6f\154\x65\163\137\146\157\x72\137\160\x61\147\145\163");
        delete_option("\160\141\x70\x72\x5f\162\x65\x73\x74\x72\x69\x63\164\x65\144\x5f\160\x61\x67\145\x73");
        delete_option("\x70\x61\x70\x72\137\141\154\154\x6f\x77\x65\144\137\162\x6f\154\145\x73\x5f\146\157\x72\137\160\x6f\x73\x74\x73");
        delete_option("\x70\141\160\x72\137\x72\x65\x73\x74\162\151\x63\x74\x65\144\x5f\x70\x6f\163\164\x73");
        delete_option("\160\141\160\162\137\x61\154\154\157\167\x65\144\x5f\x72\x65\x64\151\x72\145\x63\x74\137\x66\x6f\x72\x5f\x70\x61\x67\x65\x73");
        delete_option("\160\141\160\x72\x5f\141\154\x6c\157\167\145\x64\x5f\x72\x65\144\x69\162\x65\143\164\x5f\x66\157\x72\x5f\x70\157\x73\164\x73");
    }
    function papr_plugin_settings_script($Ww)
    {
        if (!($Ww != "\x74\157\160\154\145\x76\145\x6c\137\160\x61\147\x65\137\160\141\x67\x65\x5f\162\145\x73\x74\162\151\143\164\151\157\156")) {
            goto Yg;
        }
        return;
        Yg:
        wp_enqueue_script("\152\161\165\x65\x72\171");
        wp_enqueue_script("\x6a\161\165\145\162\x79\55\x75\151\55\141\165\164\157\143\x6f\x6d\160\x6c\x65\164\x65");
        wp_enqueue_script("\x70\x61\160\162\x5f\141\144\x6d\151\156\x5f\x73\x65\x74\x74\151\156\147\163\x5f\x70\x68\157\156\x65\137\163\143\162\x69\160\x74", plugins_url("\x69\156\x63\x6c\165\x64\145\163\57\x6a\x73\57\x70\150\x6f\156\x65\x2e\152\163", __FILE__));
        wp_enqueue_style("\160\141\160\x72\137\141\x64\155\x69\x6e\137\x62\157\x6f\164\x73\x74\x72\141\x70\x5f\163\145\164\x74\x69\156\x67\x73\x5f\163\x63\162\x69\x70\164", plugins_url("\151\x6e\143\154\165\x64\x65\x73\57\x6a\163\57\142\157\x6f\164\x73\x74\162\141\160\57\142\157\x6f\164\x73\164\162\141\160\56\155\151\x6e\56\152\163", __FILE__));
        wp_enqueue_style("\160\141\x70\162\137\141\144\x6d\151\156\x5f\x62\x6f\x6f\x74\163\x74\162\x61\160\137\x73\145\164\x74\151\156\147\x73\137\163\x63\x72\x69\160\164", plugins_url("\151\156\x63\x6c\x75\144\145\x73\57\152\163\57\x62\x6f\x6f\x74\x73\164\162\141\160\57\x70\x6f\160\160\145\162\x2e\x6d\151\156\x2e\152\x73", __FILE__));
        wp_enqueue_style("\x70\141\x70\x72\x5f\141\x64\x6d\x69\156\137\x73\x65\x74\x74\151\156\147\163\x5f\x70\x68\157\156\x65\137\x73\164\x79\154\145", plugins_url("\x69\x6e\143\x6c\165\x64\x65\163\x2f\143\x73\x73\57\x70\150\x6f\156\145\x2e\143\163\163", __FILE__));
        wp_enqueue_style("\x70\141\x70\162\x5f\x61\x64\155\151\156\137\142\x6f\x6f\x74\x73\164\x72\x61\160\137\x73\145\164\x74\x69\x6e\x67\x73\x5f\163\x74\x79\x6c\x65", plugins_url("\x69\156\143\x6c\x75\x64\145\163\57\x63\163\x73\57\142\157\157\164\163\164\162\141\x70\x2f\142\x6f\x6f\164\163\x74\x72\141\x70\56\x6d\151\156\56\x63\163\163", __FILE__));
        wp_enqueue_style("\x70\x61\160\x72\x5f\141\x64\155\151\156\x5f\163\x65\164\164\151\156\x67\163\x5f\163\164\x79\x6c\145", plugins_url("\151\x6e\143\154\165\144\x65\x73\x2f\x63\163\x73\x2f\160\x61\x70\x72\x5f\163\145\x74\164\151\x6e\x67\163\x5f\x73\x74\171\154\145\56\143\163\x73", __FILE__));
    }
    function papr_restrict_content($uF, $qb = '')
    {
        $P0 = "\x59\x6f\x75\x20\x61\162\145\40\156\x6f\x74\x20\141\x6c\154\x6f\x77\145\144\x20\x74\157\x20\166\x69\145\167\40\x74\150\x69\x73\40\x63\157\156\164\145\x6e\164\x21";
        if (is_user_logged_in()) {
            goto Et;
        }
        return $P0;
        Et:
        if (!isset($uF["\x72\x6f\x6c\145"])) {
            goto Bc;
        }
        $PZ = wp_get_current_user();
        $nw = $PZ->roles;
        foreach ($nw as $Rc => $Vl) {
            if (!(stripos($uF["\x72\x6f\154\145"], $Vl) !== false)) {
                goto Nk;
            }
            return "\74\x70\x3e" . $qb . "\74\57\160\76";
            Nk:
            II:
        }
        UV:
        return $P0;
        Bc:
        return "\74\160\76" . $qb . "\x3c\x2f\x70\76";
    }
    function papr_add_custom_meta_box($LG)
    {
        if (!($LG != "\x70\x6f\x73\x74" && $LG != "\160\x61\x67\x65")) {
            goto Ch;
        }
        return;
        Ch:
        global $bW;
        $Sy = get_option("\160\141\x70\162\x5f\x61\x6c\154\157\167\145\x64\137\155\145\164\x61\x62\157\x78\137\162\x6f\x6c\x65\163");
        if (!empty($Sy)) {
            goto L5;
        }
        $Sy = "\105\x64\151\164\157\162\73\x20\x41\165\x74\x68\157\162\73";
        L5:
        if (!($Sy == "\160\141\160\x72\137\x6e\157\137\162\157\x6c\145\x73")) {
            goto Pm;
        }
        $Sy = '';
        Pm:
        $i2 = explode("\73", $Sy);
        $current_user = wp_get_current_user();
        $G7 = $current_user->roles;
        if (!in_array($bW, array("\160\x6f\163\164\55\156\145\x77\x2e\160\150\x70"))) {
            goto F9;
        }
        if ($LG == "\160\141\147\x65" && get_option("\160\x61\x70\162\x5f\163\145\x6c\145\x63\x74\137\x61\x6c\154\137\160\x61\147\x65\163") == "\143\150\145\x63\x6b\x65\144") {
            goto t6;
        }
        if (!(get_option("\x70\141\x70\x72\x5f\x73\x65\x6c\x65\x63\164\x5f\x61\x6c\x6c\137\160\157\x73\x74\163") == "\x63\150\x65\x63\153\x65\144")) {
            goto ns;
        }
        $Q3 = maybe_unserialize(get_option("\x70\x61\160\x72\137\x61\154\x6c\157\x77\x65\x64\x5f\162\145\144\151\x72\145\x63\164\x5f\x66\x6f\162\x5f\x70\157\x73\x74\163"));
        $Q3[get_the_ID()] = true;
        update_option("\160\x61\x70\x72\x5f\141\x6c\154\157\167\145\x64\137\162\145\144\151\162\145\143\164\x5f\146\157\162\x5f\x70\x6f\x73\x74\163", $Q3);
        ns:
        goto h6;
        t6:
        $Q3 = maybe_unserialize(get_option("\x70\141\160\x72\x5f\x61\x6c\x6c\x6f\167\x65\144\x5f\162\145\x64\x69\162\x65\143\164\x5f\x66\157\162\137\x70\x61\147\x65\x73"));
        $Q3[get_the_ID()] = true;
        update_option("\x70\x61\160\162\x5f\x61\x6c\x6c\x6f\x77\x65\x64\137\162\145\144\x69\162\145\x63\x74\137\146\157\x72\x5f\160\x61\x67\x65\x73", $Q3);
        h6:
        F9:
        if (!is_array($G7)) {
            goto eG;
        }
        if (!(empty(array_intersect($i2, $G7)) && !in_array("\141\x64\x6d\151\156\x69\163\x74\162\141\164\157\x72", $G7))) {
            goto vC;
        }
        return;
        vC:
        eG:
        $Qj = get_post_type_object($LG);
        add_meta_box("\144\145\x6d\157\x2d\155\145\164\141\55\142\x6f\170", "\120\141\x67\x65\40\122\145\x73\x74\x72\x69\x63\164\x20\101\143\x63\145\163\163", array($this, "\160\141\x70\162\137\155\145\x74\x61\137\142\x6f\x78"), $LG, "\163\151\x64\x65", "\150\151\147\150", null);
    }
    function restrict_logged_in_users($l7, $Pa)
    {
        $this->apply_restriction_if_toggle_is_enabled($l7, $Pa);
        $hE = maybe_unserialize(get_option("\160\141\x70\162\x5f\141\154\x6c\157\x77\x65\144\x5f\162\145\x64\x69\162\x65\143\x74\137\x66\x6f\162\137\x70\x61\x67\145\163")) ? maybe_unserialize(get_option("\x70\141\x70\162\137\x61\x6c\154\157\x77\145\x64\x5f\x72\x65\x64\x69\162\145\143\164\x5f\x66\157\162\x5f\160\x61\x67\145\163")) : array();
        $gN = maybe_unserialize(get_option("\x70\141\160\162\137\141\x6c\154\157\167\145\144\137\x72\145\144\151\x72\145\143\x74\137\x66\157\x72\x5f\160\x6f\x73\x74\x73")) ? maybe_unserialize(get_option("\160\141\160\162\x5f\x61\154\154\x6f\x77\145\144\x5f\x72\145\x64\151\x72\x65\x63\164\x5f\x66\157\162\137\x70\x6f\x73\x74\x73")) : array();
        $LG = get_post_type($l7);
        if (!(is_page() && array_key_exists($l7, $hE) || is_front_page() && array_key_exists(get_option("\x70\141\147\145\x5f\157\x6e\137\146\x72\157\x6e\164"), $hE) || is_single() && array_key_exists($l7, $gN))) {
            goto o1;
        }
        if (has_action("\x6d\x6f\x5f\162\145\163\164\162\151\143\164\137\x70\141\147\145\137\157\x70\x74\151\x6f\x6e")) {
            goto Oz;
        }
        error_log("\156\x6f\164\x20\x6d\x6f\x5f\162\x65\x73\x74\162\151\143\164\137\160\141\147\x65\x5f\x6f\x70\x74\151\157\156");
        $this->restriction($l7, $Pa);
        goto M9;
        Oz:
        do_action("\155\x6f\137\162\145\163\164\x72\x69\143\x74\x5f\160\141\x67\x65\137\x6f\160\x74\151\x6f\156");
        M9:
        o1:
    }
    function restriction($l7, $Pa)
    {
        $FD = $this->check_type($l7, $Pa, "\160\x61\x70\x72\137\142\145\x66\x6f\x72\x65\137\154\x6f\147\151\x6e\x5f");
        $h7 = $FD["\157\160\x74\x69\x6f\156"] ?? '';
        $Vt = $FD["\143\x68\157\x69\143\x65"] ?? '';
        if ($Vt) {
            goto No;
        }
        $Vt = "\x6d\157\x5f\x64\x69\163\x70\x6c\x61\171\x5f\155\x65\x73\163\x61\x67\x65";
        No:
        if ($Vt == "\155\x6f\137\144\151\x73\160\154\141\171\137\x6d\145\x73\x73\x61\147\145") {
            goto fE;
        }
        if ($Vt == "\155\x6f\x5f\x64\151\x73\x70\154\141\171\x5f\160\141\147\x65") {
            goto yc;
        }
        if ($Vt == "\x6d\157\137\144\x69\x73\x70\x6c\141\171\x5f\x72\x65\x64\x69\162\x65\143\164\137\111\x44\120") {
            goto KY;
        }
        $CU = get_option("\160\x61\x70\x72\x5f\154\157\x67\x69\156\x5f\x70\x61\147\x65\x5f\165\162\154");
        error_log("\143\165\163\x74\157\155\x20\154\157\x67\x69\x6e\40\x3d\76\x20" . print_r($CU, true));
        if (!empty($CU)) {
            goto TS;
        }
        auth_redirect();
        goto Jh;
        TS:
        $es = (isset($_SERVER["\x48\124\124\120\x53"]) && $_SERVER["\110\x54\124\120\x53"] === "\x6f\156" ? "\150\x74\164\x70\163" : "\150\164\164\160") . "\72\x2f\x2f{$_SERVER["\x48\124\124\120\x5f\x48\117\123\124"]}{$_SERVER["\122\x45\121\125\105\x53\124\x5f\x55\122\x49"]}";
        error_log("\x63\x75\x72\162\145\156\x74\40\165\162\x6c\40\143\x75\163\x74\157\x6d\x5f\154\157\x67\151\156\40\x3d\x3e\x20" . print_r($es, true));
        header("\143\x61\x63\x68\145\55\143\x6f\156\x74\162\157\x6c\72\40\x6d\141\x78\x2d\141\147\145\75\60\54\x20\x70\x72\151\x76\141\164\x65\x2c\40\x6e\157\55\163\x74\x6f\x72\145\x2c\x20\156\x6f\55\143\141\143\x68\x65\x2c\40\x6d\165\163\164\x2d\162\145\166\x61\x6c\151\x64\141\164\145");
        if (strpos($CU, "\77") !== false) {
            goto DE;
        }
        header("\114\x6f\143\x61\x74\x69\x6f\156\72" . $CU . "\77\x72\x65\x64\x69\x72\145\143\164\x5f\x74\x6f\75" . urlencode($es));
        goto ZS;
        DE:
        header("\114\157\143\141\164\151\x6f\156\x3a" . $CU . "\x26\x72\x65\x64\151\162\x65\x63\164\137\164\x6f\x3d" . urlencode($es));
        ZS:
        Jh:
        goto c9;
        KY:
        $ZX = $h7[$Vt];
        $es = (isset($_SERVER["\x48\124\x54\120\123"]) && $_SERVER["\110\124\124\x50\123"] === "\x6f\x6e" ? "\x68\x74\164\x70\163" : "\x68\x74\164\x70") . "\72\57\x2f{$_SERVER["\x48\124\124\120\x5f\x48\x4f\x53\x54"]}{$_SERVER["\x52\x45\121\125\105\x53\124\137\125\x52\111"]}";
        error_log("\143\x75\162\x72\x65\x6e\x74\40\x75\x72\x6c\x20\x6d\157\137\144\151\163\160\x6c\141\171\x5f\x72\145\x64\151\162\145\x63\x74\x5f\x69\x64\160\x20\x3d\76\40" . print_r($es, true));
        $MO = papr_is_sso_enabled();
        if ($ZX == "\164\x72\x75\145" && ($MO != '' || class_exists("\115\157\117\x41\x75\x74\x68\x43\154\x69\145\156\x74\x5c\x4d\117\125\164\151\154\163"))) {
            goto I0;
        }
        if (!empty($S5)) {
            goto Tt;
        }
        $S5 = "\x4f\157\x70\x73\x21\40\131\x6f\x75\x20\x61\162\145\40\x6e\157\x74\x20\x61\x75\x74\150\157\162\151\x7a\x65\x64\40\x74\x6f\40\141\143\x63\145\163\x73\x20\x74\150\x69\x73";
        Tt:
        wp_die($S5);
        goto tj;
        I0:
        $iF = site_url() . "\77\x6f\160\x74\151\157\156\x3d\x73\141\155\x6c\x5f\165\x73\145\x72\x5f\154\157\147\151\x6e\46\x72\x65\x64\151\x72\x65\143\x74\x5f\x74\157\75" . $es;
        if (!class_exists("\115\157\x4f\101\x75\x74\x68\103\154\x69\x65\156\164\134\x4d\117\125\x74\x69\x6c\x73")) {
            goto Ut;
        }
        $ux = $h7["\155\157\x5f\157\x61\x75\x74\150\x5f\141\160\160\137\156\x61\x6d\145"];
        $iF = site_url() . "\77\x6f\160\x74\x69\157\156\x3d\x6f\141\x75\164\x68\x72\145\144\151\162\145\143\x74\46\x61\160\x70\x5f\x6e\141\155\x65\x3d" . $ux . "\46\162\145\144\x69\x72\x65\x63\164\137\165\162\x6c\x3d" . urlencode($es) . "\46\x72\145\163\x74\162\x69\143\164\145\144\x72\145\144\x69\162\145\x63\x74\75\x74\x72\165\x65";
        Ut:
        error_log("\x75\162\154\x20\155\x6f\x5f\144\x69\163\x70\x6c\x61\x79\x5f\162\x65\x64\x69\162\145\143\x74\x20\x3d\x3e\x20" . print_r($iF, true));
        header("\x63\x61\x63\150\145\55\x63\x6f\156\x74\162\157\x6c\x3a\x20\155\x61\x78\55\x61\x67\x65\x3d\60\x2c\40\x70\x72\x69\x76\141\164\145\54\x20\156\x6f\x2d\x73\164\157\162\x65\x2c\x20\x6e\x6f\x2d\143\x61\x63\150\145\54\40\155\x75\163\x74\55\x72\x65\166\141\x6c\151\x64\x61\x74\x65");
        header("\114\x6f\143\x61\164\x69\157\156\x3a" . $iF);
        exit;
        tj:
        c9:
        goto m0;
        yc:
        $eq = $h7[$Vt];
        $es = (isset($_SERVER["\x48\124\x54\x50\123"]) && $_SERVER["\x48\x54\124\120\x53"] === "\x6f\156" ? "\150\x74\x74\160\163" : "\x68\x74\164\160") . "\72\57\x2f{$_SERVER["\110\124\124\x50\x5f\x48\x4f\x53\x54"]}{$_SERVER["\x52\105\121\x55\x45\123\x54\x5f\125\x52\x49"]}";
        error_log("\x63\165\162\x72\x65\x6e\x74\40\165\162\x6c\40\155\x6f\x5f\x64\x69\x73\x70\154\141\171\x5f\160\141\147\145\x20\x3d\76\x20" . print_r($es, true));
        header("\x63\x61\x63\150\145\55\143\x6f\x6e\x74\x72\x6f\x6c\72\x20\x6d\141\170\x2d\x61\147\145\75\60\54\x20\x70\162\151\166\x61\x74\145\54\40\x6e\157\x2d\x73\x74\x6f\162\x65\54\40\156\x6f\55\143\x61\x63\x68\145\54\x20\155\x75\x73\164\x2d\x72\145\x76\141\x6c\x69\144\x61\x74\145");
        if (strpos($eq, "\x3f") !== false) {
            goto pH;
        }
        header("\x4c\x6f\143\141\164\x69\x6f\x6e\x3a" . $eq . "\x3f\x72\x65\x64\151\x72\145\143\164\137\x74\x6f\x3d" . urlencode($es));
        goto ir;
        pH:
        header("\x4c\157\x63\141\164\x69\x6f\156\72" . $eq . "\x26\x72\145\144\x69\x72\x65\143\x74\x5f\x74\x6f\75" . urlencode($es));
        ir:
        exit;
        m0:
        goto Ax;
        fE:
        $S5 = $h7["\155\157\x5f\144\x69\163\x70\x6c\141\x79\x5f\155\145\x73\163\141\x67\x65"] ?? '';
        if (!empty($S5)) {
            goto S0;
        }
        $S5 = "\117\x6f\160\163\x21\40\131\157\165\40\141\162\145\40\x6e\x6f\x74\x20\141\165\x74\x68\x6f\162\x69\172\145\144\40\x74\x6f\40\x61\x63\x63\x65\163\163\x20\164\x68\x69\163";
        S0:
        wp_die($S5);
        Ax:
    }
    function apply_restriction_if_toggle_is_enabled($l7, $Pa)
    {
        $B6 = get_option("\160\x61\x70\162\137\141\143\x63\x65\x73\x73\137\x66\157\x72\137\157\156\x6c\171\137\154\x6f\147\147\145\x64\x69\156") != '' ? get_option("\160\x61\x70\x72\x5f\x61\143\143\x65\x73\x73\x5f\x66\157\x72\137\157\156\x6c\171\137\x6c\x6f\x67\x67\145\144\x69\156") : '';
        $Cn = maybe_unserialize(get_option("\160\x61\x70\162\137\154\x6f\x67\x69\x6e\x5f\165\156\162\145\163\x74\162\151\143\x74\145\x64\137\160\x61\x67\145\163")) ? maybe_unserialize(get_option("\160\141\x70\x72\x5f\x6c\157\147\151\156\x5f\x75\x6e\162\x65\x73\164\162\151\143\164\145\144\137\160\x61\147\x65\x73")) : array();
        $f7 = get_option("\160\141\x70\x72\137\141\143\x63\x65\163\x73\x5f\146\x6f\x72\x5f\157\156\154\171\137\x6c\157\x67\x67\x65\x64\151\156\x5f\160\157\x73\164\x73") != '' ? get_option("\160\x61\160\162\137\x61\x63\143\145\163\x73\137\146\157\162\x5f\x6f\x6e\154\x79\x5f\x6c\x6f\147\147\145\144\x69\156\137\160\157\x73\x74\x73") : '';
        $kp = maybe_unserialize(get_option("\x70\141\x70\x72\137\x6c\157\147\151\156\x5f\x75\156\162\x65\x73\x74\x72\151\x63\x74\145\144\137\x70\x6f\x73\164\x73")) ? maybe_unserialize(get_option("\160\x61\x70\162\x5f\x6c\x6f\x67\151\156\137\165\156\x72\145\x73\x74\x72\x69\143\164\x65\x64\137\x70\x6f\163\164\163")) : array();
        if (is_front_page() && !array_key_exists(get_option("\160\141\x67\x65\x5f\157\156\137\x66\162\x6f\x6e\164"), $Cn) && $B6 == 1) {
            goto jD;
        }
        if (!is_front_page() && is_page() && $B6 == 1 && !array_key_exists($l7, $Cn)) {
            goto La;
        }
        if (!(is_single() && $f7 == 1 && !array_key_exists($l7, $kp))) {
            goto hl;
        }
        error_log("\151\x73\x5f\163\x69\156\x67\154\145");
        $this->restriction($l7, $Pa);
        hl:
        goto I6;
        La:
        error_log("\x21\x69\163\x5f\146\162\157\156\164\x5f\160\x61\x67\145");
        $this->restriction($l7, $Pa);
        I6:
        goto Hs;
        jD:
        error_log("\151\163\137\146\x72\x6f\156\x74\x5f\160\x61\147\145");
        $this->restriction(get_option("\x70\141\147\x65\137\157\156\137\146\x72\157\x6e\x74"), $Pa);
        Hs:
    }
    function check_type($T3, $EL, $tN)
    {
        if (is_page($T3) || is_front_page()) {
            goto qH;
        }
        $ny = maybe_unserialize(get_option($tN . "\x70\x6f\x73\x74\137\x61\x63\143\145\163\163"));
        goto rI;
        qH:
        $ny = maybe_unserialize(get_option($tN . "\x70\x61\x67\x65\137\141\143\x63\x65\163\x73"));
        rI:
        return $ny;
    }
    function papr_restrict_by_role($T3, $EL)
    {
        $Ra = get_option("\x70\141\x70\x72\x5f\x61\x6c\x6c\x6f\167\145\144\137\x72\157\154\x65\163\x5f\146\157\x72\x5f\160\x6f\163\x74\163");
        $R5 = maybe_unserialize(get_option("\x70\x61\160\162\137\x61\x6c\154\x6f\x77\x65\x64\137\162\x6f\154\x65\163\x5f\x66\157\x72\x5f\x70\x61\x67\x65\163"));
        $hE = maybe_unserialize(get_option("\160\141\x70\162\x5f\x72\145\163\164\x72\151\x63\x74\145\144\x5f\x70\141\x67\x65\163"));
        $gN = maybe_unserialize(get_option("\x70\141\160\162\x5f\x72\145\163\164\x72\x69\143\164\x65\144\137\x70\157\x73\164\x73"));
        $user = wp_get_current_user();
        $G7 = $user->roles;
        foreach ($G7 as $Rc => $BC) {
            if (is_front_page() && !empty($R5["\155\157\137\160\x61\147\145\x5f\60"]) && stripos(strtolower($R5["\155\157\x5f\160\x61\x67\x65\x5f\60"]), $BC) !== FALSE) {
                goto sg;
            }
            if (is_array($R5) && array_key_exists($T3, $R5) && stripos($R5[$T3], $BC) !== false) {
                goto LI;
            }
            if (!(is_array($Ra) && array_key_exists($T3, $Ra) && stripos($Ra[$T3], $BC) !== false)) {
                goto n5;
            }
            return;
            n5:
            goto Yj;
            LI:
            return;
            Yj:
            goto hz;
            sg:
            return;
            hz:
            Xj:
        }
        M1:
        if (!(is_array($R5) || is_array($Ra))) {
            goto Nr;
        }
        if (!(is_front_page() && !empty($R5["\x6d\157\137\x70\141\x67\x65\x5f\60"]) || is_page() && !empty($R5[$T3]) || !is_front_page() && !empty($Ra[$T3]))) {
            goto l5;
        }
        if (has_action("\x6d\x6f\137\162\x65\x73\x74\162\x69\x63\164\137\160\141\x67\x65\x5f\x6f\x70\x74\x69\x6f\156")) {
            goto CM;
        }
        $ny = $this->check_type($T3, $EL, "\x70\141\x70\162\137\x61\x66\164\145\162\x5f\x6c\157\x67\151\x6e\137");
        $h7 = $ny["\x6f\x70\x74\151\157\156"] ?? '';
        $Vt = $ny["\143\x68\157\151\x63\145"] ?? '';
        if ($Vt) {
            goto jt;
        }
        $Vt = "\x6d\157\137\144\151\x73\x70\x6c\141\171\x5f\x6d\x65\x73\163\x61\147\x65\137\154\157\x67";
        jt:
        if ($Vt == "\x6d\x6f\x5f\x64\x69\163\x70\154\141\x79\137\155\145\163\x73\x61\147\x65\x5f\x6c\157\x67") {
            goto UG;
        }
        if (!($Vt == "\155\157\x5f\x64\151\x73\160\154\x61\x79\x5f\160\141\147\x65\x5f\154\157\x67")) {
            goto VR;
        }
        $eq = $h7[$Vt];
        header("\143\x61\x63\x68\x65\55\x63\157\156\164\x72\157\x6c\x3a\40\x6d\141\x78\x2d\141\147\x65\x3d\60\54\40\x70\x72\x69\x76\x61\x74\x65\54\x20\156\157\55\163\x74\x6f\x72\x65\54\40\x6e\x6f\x2d\143\141\x63\x68\x65\x2c\x20\155\x75\x73\x74\x2d\x72\145\166\141\x6c\151\x64\141\x74\x65");
        header("\114\x6f\143\x61\164\151\x6f\x6e\x3a" . $eq);
        exit;
        VR:
        goto iJ;
        UG:
        $S5 = $h7["\155\x6f\x5f\x64\x69\163\x70\x6c\x61\171\x5f\155\x65\x73\163\x61\x67\145\137\154\157\147"] ?? '';
        if (!empty($S5)) {
            goto Bv;
        }
        $S5 = "\x4f\157\x70\163\x21\40\131\x6f\165\x20\141\x72\145\40\x6e\x6f\164\x20\141\x75\x74\150\x6f\162\x69\172\145\144\40\164\157\40\x61\143\x63\x65\x73\x73\x20\164\150\151\163";
        Bv:
        wp_die($S5);
        iJ:
        goto LJ;
        CM:
        do_action("\x6d\x6f\137\x72\x65\163\164\x72\151\143\x74\137\x70\x61\x67\x65\x5f\x6f\x70\x74\x69\x6f\156");
        LJ:
        l5:
        Nr:
    }
    function papr_initialize_page_restrict()
    {
        if (papr_is_customer_license_key_verified()) {
            goto LQ;
        }
        return;
        LQ:
        global $post;
        $EL = get_query_var("\143\x61\x74") > 0 ? true : false;
        if ($EL) {
            goto cL;
        }
        $T3 = get_the_ID() ? get_the_ID() : 0;
        goto nN;
        cL:
        $T3 = get_query_var("\143\x61\x74");
        nN:
        $zL = false;
        if (!get_option("\155\x6f\x5f\x73\141\x6d\x6c\x5f\x67\165\x65\x73\164\x5f\x75\163\x65\162\x5f\x6c\157\x67\x69\x6e")) {
            goto Qe;
        }
        if (!(!session_id() || session_id() == '' || !isset($_SESSION))) {
            goto DX;
        }
        session_start();
        DX:
        if (!isset($_SESSION["\155\157\137\x73\x61\x6d\x6c"])) {
            goto s5;
        }
        if (!(isset($_SESSION["\155\x6f\x5f\x73\x61\x6d\x6c"]["\x63\141\156\x5f\x61\x63\143\145\163\x73\137\163\x69\x74\x65"]) and $_SESSION["\x6d\x6f\x5f\x73\x61\155\x6c"]["\x63\x61\156\x5f\x61\143\x63\x65\163\163\137\163\x69\x74\145"] == true)) {
            goto Ob;
        }
        $zL = true;
        Ob:
        s5:
        Qe:
        if (!is_user_logged_in() and !$zL) {
            goto SI;
        }
        $this->papr_restrict_by_role($T3, $EL);
        goto vF;
        SI:
        $this->restrict_logged_in_users($T3, $EL);
        vF:
    }
    public static function papr_meta_box($post)
    {
        wp_nonce_field("\x6d\171\137\x6d\145\x74\x61\137\142\x6f\x78\x5f\156\x6f\x6e\x63\145", "\155\x65\x74\x61\x5f\142\157\170\137\x6e\157\156\143\x65");
        global $wp_roles;
        $BX = $wp_roles->role_names;
        asort($BX);
        $Qj = $post->post_type;
        if ($Qj == "\x70\x61\147\x65") {
            goto sx;
        }
        $gL = maybe_unserialize(get_option("\160\x61\x70\x72\x5f\141\154\154\157\167\145\x64\137\162\157\154\x65\x73\137\146\x6f\162\x5f\x70\157\x73\164\x73"));
        goto qq;
        sx:
        $gL = maybe_unserialize(get_option("\x70\x61\x70\162\x5f\x61\154\154\157\x77\x65\144\x5f\x72\x6f\x6c\x65\x73\137\146\x6f\162\137\160\141\147\x65\x73"));
        qq:
        $jo = array();
        if (!(!empty($gL) && array_key_exists($post->ID, $gL))) {
            goto LW;
        }
        $IL = $gL[$post->ID];
        $jo = explode("\x3b", $IL);
        LW:
        $Tu = "\x66\141\154\x73\145";
        if ($Qj == "\x70\141\x67\x65") {
            goto kC;
        }
        $Q3 = maybe_unserialize(get_option("\160\x61\160\162\x5f\x61\154\x6c\157\x77\x65\x64\137\x72\x65\144\151\162\x65\143\x74\x5f\x66\157\x72\137\160\157\163\x74\x73"));
        goto fc;
        kC:
        $Q3 = maybe_unserialize(get_option("\x70\x61\x70\162\x5f\141\154\154\157\x77\x65\x64\x5f\162\145\144\x69\x72\145\143\164\x5f\x66\x6f\162\137\160\x61\x67\x65\163"));
        fc:
        if (empty($Q3)) {
            goto Pa;
        }
        if (!(array_key_exists($post->ID, $Q3) && $Q3[$post->ID] == "\164\162\165\145")) {
            goto Cv;
        }
        $Tu = "\164\x72\x75\145";
        Cv:
        Pa:
        echo "\x3c\x64\x69\x76\40\143\x6c\x61\163\163\x3d\x22\x72\x6f\x77\42\x3e\xd\xa\40\40\x20\x20\x3c\x69\x6d\x67\40\163\162\143\x3d\x22";
        echo plugin_dir_url(__FILE__);
        echo "\151\x6e\x63\154\165\x64\x65\163\x2f\x69\x6d\141\x67\x65\x73\57\155\151\156\151\x6f\162\x61\156\147\x65\x2d\x6c\x6f\x67\157\x2e\x70\x6e\x67\x22\15\12\x20\40\40\x20\x20\x20\40\40\141\154\164\x3d\x22\155\151\x6e\151\x4f\x72\x61\156\x67\145\x20\120\x61\147\145\x20\x61\156\144\x20\x50\x6f\163\x74\40\x52\x65\x73\x74\x72\151\143\x74\x69\x6f\x6e\42\x20\x77\151\x64\x74\x68\75\42\x33\65\x70\170\42\x3e\xd\12\x20\x20\x20\40\74\150\x34\40\x73\164\171\154\x65\x3d\42\160\x6f\163\151\164\151\x6f\156\x3a\x61\142\x73\x6f\154\x75\164\x65\x3b\164\x6f\160\x3a\55\x30\56\66\x72\x65\155\73\x6c\145\x66\x74\72\64\56\62\x72\145\x6d\73\42\x3e\x50\x61\147\145\x20\x61\x6e\144\x20\x50\x6f\x73\x74\40\122\x65\x73\x74\x72\151\x63\x74\151\157\156\x3c\x2f\x68\x34\x3e\15\xa\74\57\x64\151\x76\76\xd\12\xd\xa\x3c\x70\x3e\x20";
        esc_html_e("\114\151\155\151\164\x20\x61\x63\143\145\x73\163\40\x74\x6f\40\114\157\147\x67\x65\x64\x20\151\156\40\165\x73\x65\162\163\x2e", "\x6d\157\x2d\167\x70\165\155");
        echo "\40\74\x2f\160\76\15\12\x3c\x64\x69\166\40\x63\x6c\x61\x73\163\x3d\x22\x70\141\x67\145\55\x72\145\x73\x74\x72\x69\x63\164\55\154\157\147\x67\145\x64\x69\156\x2d\x75\163\145\x72\55\144\151\166\42\76\15\12\40\40\40\40\x3c\x69\156\x70\x75\164\x20\164\x79\x70\x65\75\x22\x68\151\144\x64\x65\x6e\x22\x20\x6e\x61\x6d\x65\x3d\42\160\141\x70\x72\x5f\155\145\x74\141\142\x6f\170\42\40\x76\141\x6c\165\145\75\x22\x74\x72\165\x65\x22\x3e\15\12\40\x20\40\40\74\165\x6c\40\143\x6c\141\163\163\75\x22\160\141\x67\x65\x2d\162\145\163\x74\x72\x69\x63\x74\x2d\x6c\x6f\147\x67\145\144\151\x6e\55\x75\163\145\x72\42\x3e\xd\12\x20\x20\40\x20\40\x20\x20\40";
        if (filter_var($Tu, FILTER_VALIDATE_BOOLEAN)) {
            goto nP;
        }
        echo "\x20\x20\40\40\x20\40\40\x20\74\151\x6e\x70\165\164\40\x74\171\x70\145\x3d\x22\143\150\145\143\x6b\x62\157\x78\x22\40\156\x61\155\145\75\x22\x72\x65\x73\x74\x72\151\x63\x74\137\160\x61\x67\x65\137\141\x63\x63\145\163\x73\137\154\157\147\x67\x65\144\x69\156\x5f\165\x73\145\162\42\40\x76\141\154\x75\x65\75\42\x74\x72\165\x65\42\x20\x2f\x3e";
        goto Kd;
        nP:
        echo "\40\x20\x20\40\40\40\x20\40\74\151\156\x70\165\x74\x20\x74\171\160\145\x3d\42\x63\150\145\x63\x6b\x62\157\x78\x22\40\156\x61\155\145\75\42\162\145\163\x74\x72\x69\x63\x74\x5f\x70\x61\147\145\x5f\141\x63\143\x65\163\x73\137\x6c\x6f\147\147\x65\x64\151\x6e\137\165\163\145\162\x22\40\143\x68\145\x63\153\x65\x64\x20\166\141\x6c\165\x65\x3d\42\164\162\x75\x65\x22\40\x2f\x3e\xd\12\x20\x20\x20\x20\x20\40\x20\x20";
        Kd:
        echo "\40\40\40\40\40\40\40\x20\122\x65\x71\165\151\x72\x65\40\x4c\157\x67\151\156\xd\12\40\40\x20\x20\x3c\x2f\165\x6c\76\xd\xa\74\x2f\144\151\166\76\xd\xa\15\xa\74\150\162\x3e\xd\12\x3c\160\76\xd\xa\x20\40\x20\40";
        esc_html_e("\x4c\x69\155\151\164\x20\x61\143\x63\x65\163\163\x20\x74\157\40\164\x68\x69\163\x20\x70\x6f\x73\x74\47\163\40\143\157\x6e\164\x65\x6e\164\x20\164\157\x20\x75\163\x65\162\163\40\157\146\x20\164\x68\145\40\163\x65\154\145\143\x74\145\x64\40\x72\x6f\x6c\x65\163\56", "\155\x6f\x2d\x77\x70\165\155");
        echo "\x3c\x2f\160\76\15\12\xd\12\74\144\151\x76\x20\x63\154\x61\163\163\75\x22\162\157\154\x65\55\x6c\x69\163\x74\x2d\167\x72\x61\x70\42\76\xd\12\xd\xa\40\x20\x20\40\74\x75\154\40\x63\154\141\x73\163\x3d\42\162\x6f\x6c\x65\55\x6c\151\x73\164\42\x3e\15\12\xd\xa\x20\x20\x20\40\40\40\40\40";
        foreach ($BX as $gL => $mE) {
            echo "\x20\40\40\x20\x20\x20\x20\x20\74\154\151\x3e\xd\12\x20\40\40\40\x20\x20\x20\40\x20\40\40\x20\74\154\141\142\145\x6c\76\15\12\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\74\151\x6e\x70\x75\x74\x20\164\x79\160\x65\75\x22\x63\150\145\143\153\x62\157\x78\x22\40\x6e\141\x6d\145\x3d\42\x70\141\x70\x72\x5f\141\x63\143\x65\x73\x73\137\x72\x6f\x6c\145\x5b\135\42\xd\xa\x20\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20";
            checked(is_array($jo) && in_array($gL, $jo));
            echo "\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\40\40\40\40\x20\166\141\154\165\x65\x3d\x22";
            echo esc_attr($gL);
            echo "\42\40\x2f\76\xd\12\40\x20\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\40\40";
            echo esc_html(translate_user_role($gL));
            echo "\40\40\x20\x20\x20\40\x20\x20\40\40\40\x20\74\57\154\x61\142\145\x6c\x3e\15\12\40\x20\40\x20\x20\40\x20\40\x3c\57\154\x69\76\xd\12\x20\x20\x20\40\x20\x20\40\x20";
            Sy:
        }
        f5:
        echo "\15\12\40\x20\40\x20\x3c\57\x75\154\x3e\xd\xa\x3c\57\144\151\166\x3e\xd\12";
    }
    static function papr_save_meta_box_info($Gh, $post, $rU)
    {
        if (isset($_POST["\x70\141\x70\x72\137\x6d\145\164\x61\x62\157\x78"])) {
            goto wA;
        }
        return;
        wA:
        $Qj = get_post_type();
        $e7 = array();
        $hE = array();
        $DY = array();
        if (!(defined("\x44\117\x49\x4e\107\x5f\x41\125\x54\117\123\x41\x56\105") && DOING_AUTOSAVE)) {
            goto PV;
        }
        return;
        PV:
        $H6 = maybe_unserialize(get_option("\x70\x61\x70\162\x5f\x64\145\x66\141\165\154\164\x5f\x72\157\154\145\137\x70\x61\x72\x65\x6e\x74")) != '' ? maybe_unserialize(get_option("\x70\x61\160\162\137\144\145\146\x61\165\x6c\x74\x5f\x72\x6f\154\x65\x5f\x70\x61\162\145\156\164")) : array();
        if ($Qj == "\160\141\147\x65") {
            goto m9;
        }
        $qE = maybe_unserialize(get_option("\160\141\160\162\137\141\x6c\x6c\157\x77\x65\144\x5f\x72\157\154\x65\163\x5f\146\x6f\162\x5f\x70\x6f\x73\x74\x73"));
        $VV = maybe_unserialize(get_option("\160\141\160\x72\137\162\x65\163\x74\x72\151\x63\164\145\x64\x5f\160\157\x73\x74\163"));
        if ($VV) {
            goto pT;
        }
        $VV = array();
        pT:
        $e7 = maybe_unserialize(get_option("\x70\141\x70\x72\137\x61\x6c\x6c\157\167\x65\x64\x5f\162\145\x64\151\162\145\143\164\x5f\x66\x6f\x72\x5f\160\x6f\x73\164\163"));
        $Cn = maybe_unserialize(get_option("\160\x61\160\x72\137\154\157\x67\x69\156\x5f\165\x6e\162\145\163\164\162\x69\143\x74\145\x64\137\160\x6f\163\164\x73")) ? maybe_unserialize(get_option("\x70\141\160\x72\137\x6c\x6f\x67\x69\x6e\x5f\x75\156\x72\145\163\x74\x72\151\143\164\x65\144\x5f\160\157\x73\x74\163")) : array();
        $B6 = get_option("\x70\141\160\162\x5f\141\x63\x63\145\x73\163\x5f\x66\157\162\137\x6f\156\x6c\x79\x5f\x6c\x6f\147\147\145\x64\151\x6e\x5f\160\157\163\x74\163") != '' ? get_option("\x70\x61\x70\x72\x5f\x61\x63\x63\x65\163\163\137\x66\157\162\x5f\x6f\x6e\x6c\171\x5f\x6c\157\147\147\145\144\151\x6e\x5f\x70\157\163\164\x73") : '';
        goto Og;
        m9:
        $qE = maybe_unserialize(maybe_unserialize(get_option("\x70\x61\160\x72\x5f\x61\x6c\x6c\x6f\x77\145\x64\x5f\x72\x6f\154\x65\x73\137\x66\x6f\162\137\160\x61\x67\145\x73")));
        $VV = maybe_unserialize(get_option("\x70\x61\x70\x72\137\162\145\x73\164\x72\x69\x63\164\x65\144\x5f\160\x61\x67\145\x73"));
        if ($VV) {
            goto L8;
        }
        $VV = array();
        L8:
        $e7 = maybe_unserialize(get_option("\x70\141\x70\162\137\141\154\x6c\157\167\x65\x64\137\162\145\x64\x69\162\145\143\164\x5f\146\x6f\162\x5f\x70\x61\x67\x65\x73"));
        $Cn = maybe_unserialize(get_option("\160\141\x70\x72\x5f\x6c\157\x67\151\x6e\137\165\x6e\162\x65\x73\x74\162\x69\x63\x74\145\144\x5f\160\x61\147\145\163")) ? maybe_unserialize(get_option("\160\141\x70\x72\137\154\x6f\x67\151\156\137\x75\156\x72\x65\163\164\162\x69\x63\164\x65\x64\137\x70\x61\147\x65\163")) : array();
        $B6 = get_option("\160\141\160\162\x5f\141\143\x63\145\x73\x73\x5f\x66\157\x72\x5f\x6f\156\x6c\171\x5f\x6c\157\x67\147\145\144\x69\x6e") != '' ? get_option("\x70\x61\160\162\x5f\141\x63\x63\145\x73\x73\137\146\157\x72\137\157\x6e\x6c\x79\137\x6c\x6f\147\x67\145\144\151\x6e") : '';
        Og:
        if (isset($_POST["\160\x61\160\x72\x5f\x61\143\x63\x65\x73\x73\137\x72\x6f\x6c\x65"])) {
            goto YE;
        }
        $vD = $VV;
        if (!is_array($vD)) {
            goto yM;
        }
        n2:
        if (!(($I1 = array_search($Gh, $vD)) !== false)) {
            goto Vc;
        }
        unset($vD[$I1]);
        unset($qE[$Gh]);
        goto n2;
        Vc:
        yM:
        $VV = $vD;
        goto GM;
        YE:
        array_push($VV, $Gh);
        $w_ = $_POST["\x70\x61\160\162\137\x61\x63\x63\145\163\163\137\x72\x6f\154\x65"];
        $qE[$Gh] = implode("\x3b", $w_);
        GM:
        if (isset($_POST["\162\x65\x73\x74\x72\x69\x63\164\137\x70\x61\147\x65\x5f\141\143\143\145\x73\x73\x5f\154\x6f\x67\x67\145\x64\151\156\137\165\163\x65\x72"]) || $B6 == 1) {
            goto iC;
        }
        unset($e7[$Gh]);
        $Cn[$Gh] = true;
        goto Ig;
        iC:
        $e7[$Gh] = true;
        unset($Cn[$Gh]);
        Ig:
        $hA = wp_get_post_parent_id($Gh);
        if (!($Qj == "\160\x61\147\x65" && $hA)) {
            goto EU;
        }
        if (!($H6[$hA] == true)) {
            goto yj;
        }
        $VV = maybe_unserialize(get_option("\160\x61\160\x72\137\162\145\x73\164\x72\151\x63\164\x65\144\137\x70\141\147\x65\x73"));
        if (!in_array($hA, $VV)) {
            goto oZ;
        }
        array_push($VV, $Gh);
        $qE = maybe_unserialize(get_option("\x70\x61\160\x72\x5f\141\x6c\x6c\x6f\x77\x65\144\x5f\162\x6f\154\145\x73\137\x66\x6f\162\137\x70\x61\x67\x65\x73"));
        $Pd = $qE[$hA];
        $qH = explode("\73", $Pd);
        $qE[$Gh] = implode("\x3b", $qH);
        if ($qE[$Gh] != '') {
            goto jx;
        }
        unset($VV[$Gh]);
        goto H4;
        jx:
        if (in_array($Gh, $VV)) {
            goto UY;
        }
        array_push($VV, $Gh);
        UY:
        H4:
        oZ:
        if (in_array($hA, $e7)) {
            goto CI;
        }
        unset($e7[$Gh]);
        $Cn[$Gh] = true;
        goto Ln;
        CI:
        $e7[$Gh] = true;
        unset($Cn[$Gh]);
        Ln:
        yj:
        EU:
        if (!($Qj == "\160\141\x67\x65")) {
            goto KL;
        }
        $Uc = get_option("\x70\141\160\x72\x5f\x64\x65\146\x61\x75\x6c\164\x5f\x72\x6f\x6c\x65\137\x70\x61\x72\145\156\164\137\x70\x61\x67\x65\x5f\164\x6f\x67\147\x6c\x65") != '' ? get_option("\x70\141\x70\x72\x5f\144\145\x66\141\165\x6c\x74\x5f\x72\x6f\154\x65\x5f\160\x61\x72\x65\x6e\x74\137\x70\x61\x67\145\x5f\164\157\147\x67\154\145") : '';
        if (!(array_key_exists($Gh, $H6) || $Uc == 1)) {
            goto E0;
        }
        if (!($Gh != 0)) {
            goto Eh;
        }
        $H6[$Gh] = true;
        $FU = get_pages(array("\x63\x68\x69\154\x64\x5f\x6f\146" => $Gh));
        if (!(count($FU) > 0)) {
            goto HN;
        }
        foreach ($FU as $Za) {
            $XA = $Za->ID;
            $qE[$Za->ID] = $qE[$Gh];
            if ($qE[$Za->ID] != '') {
                goto nr;
            }
            unset($VV[$Za->ID]);
            goto MD;
            nr:
            if (in_array($Za->ID, $VV)) {
                goto ER;
            }
            array_push($VV, $Za->ID);
            ER:
            MD:
            if (array_key_exists($Gh, $e7)) {
                goto jo;
            }
            unset($e7[$Za->ID]);
            $Cn[$Za->ID] = true;
            goto A5;
            jo:
            if (!($e7[$Gh] == 1 || $e7[$Gh] == "\x6f\156" || $e7[$Gh] == "\x74\x72\x75\145")) {
                goto sX;
            }
            $e7[$Za->ID] = true;
            unset($Cn[$Za->ID]);
            sX:
            A5:
            $qh = get_pages(array("\143\x68\x69\154\144\x5f\x6f\146" => $Za->ID));
            if (!(count($qh) > 0)) {
                goto cp;
            }
            $H6[$Za->ID] = true;
            cp:
            EV:
        }
        l0:
        HN:
        Eh:
        E0:
        KL:
        if ($Qj == "\160\141\147\145") {
            goto E5;
        }
        update_option("\160\141\160\x72\137\162\145\163\x74\162\x69\143\x74\x65\144\x5f\160\x6f\x73\164\x73", $VV);
        update_option("\160\x61\x70\162\x5f\x61\x6c\154\157\167\x65\144\137\x72\157\154\x65\x73\137\x66\157\162\137\x70\157\x73\164\x73", $qE);
        update_option("\160\141\x70\162\x5f\141\x6c\x6c\157\167\x65\x64\137\x72\x65\144\151\x72\145\x63\164\x5f\146\x6f\162\x5f\160\157\x73\x74\163", $e7);
        update_option("\160\x61\x70\x72\x5f\x6c\157\147\151\x6e\137\x75\156\x72\x65\163\x74\162\151\143\164\x65\144\137\x70\157\x73\x74\163", $Cn);
        update_option("\160\x61\160\x72\x5f\155\145\163\163\x61\x67\x65", "\124\x68\151\163\40\160\x6f\163\164\x20\150\141\163\x20\x62\145\x65\x6e\x20\x72\145\163\x74\x72\151\143\x74\x65\144\x20\163\165\x63\143\x65\163\163\x66\x75\154\154\x79\x2e");
        goto Kw;
        E5:
        update_option("\160\x61\x70\x72\137\144\145\146\x61\x75\x6c\x74\x5f\x72\157\x6c\x65\137\x70\x61\162\145\156\164", $H6);
        update_option("\160\x61\x70\162\x5f\154\157\x67\151\156\x5f\165\x6e\162\x65\x73\164\x72\x69\143\x74\145\x64\x5f\160\141\147\x65\163", $Cn);
        update_option("\160\141\160\162\x5f\162\145\163\x74\x72\151\143\x74\145\x64\137\x70\x61\147\x65\163", $VV);
        update_option("\160\141\160\x72\x5f\141\154\x6c\157\x77\145\x64\x5f\x72\157\x6c\x65\163\x5f\x66\157\x72\x5f\x70\141\147\x65\x73", $qE);
        update_option("\160\141\160\162\x5f\141\154\154\157\x77\x65\144\x5f\x72\x65\x64\x69\162\145\143\x74\x5f\x66\157\162\x5f\x70\141\x67\x65\163", $e7);
        update_option("\x70\141\x70\x72\x5f\x6d\x65\x73\x73\x61\x67\145", "\124\x68\x69\x73\40\x70\141\147\x65\40\x68\141\163\x20\142\x65\145\156\40\162\x65\x73\x74\x72\151\143\164\x65\x64\x20\x73\165\x63\x63\145\x73\x73\146\165\154\x6c\171\x2e");
        Kw:
    }
}
new page_and_post_restriction_add_on();

Function Calls

None

Variables

None

Stats

MD5 91b0d78378d48278cfeb5c95e93cc2a2
Eval Count 0
Decode Time 73 ms