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

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace IDP\Actions; use IDP\Helper\Traits\Instance; use IDP\Exception\Us..

Decoded Output download

<?php 
 
 
namespace IDP\Actions; 
 
use IDP\Helper\Traits\Instance; 
use IDP\Exception\UserCountExceededException; 
use IDP\Helper\Utilities\MoIDPUtility; 
class ManageUserTableViewAction 
{ 
    use Instance; 
    private function __construct() 
    { 
        if (!get_site_option("mo_idp_show_sso_users")) { 
            goto DU; 
        } 
        add_filter("manage_users_columns", array($this, "new_modify_user_table"), 1, 1); 
        add_filter("manage_users_custom_column", array($this, "new_modify_user_table_row"), 1, 3); 
        add_filter("pre_get_users", array($this, "filter_sso_user_table"), 99, 1); 
        add_action("manage_users_extra_tablenav", array($this, "render_filter_sso_user_actions"), 99, 1); 
        DU: 
    } 
    function new_modify_user_table($R0) 
    { 
        $R0["ssouser"] = "User Type"; 
        return $R0; 
    } 
    function new_modify_user_table_row($tL, $Vp, $uE) 
    { 
        switch ($Vp) { 
            case "ssouser": 
                return get_user_meta($uE, "mo_idp_user_type", true) ? "<button id='sso_btn' class='button' style='pointer-events: none'>SSO User</button>" : ''; 
                goto zS; 
            default: 
        } 
        ih: 
        zS: 
        return $tL; 
    } 
    function filter_sso_user_table($lB) 
    { 
        if (is_admin()) { 
            goto wE; 
        } 
        return $lB; 
        wE: 
        global $pagenow; 
        if (!("users.php" === $pagenow)) { 
            goto Mv; 
        } 
        if (!(isset($_GET["mo_idp_sso_user"]) && $_GET["mo_idp_sso_user"] !== "0")) { 
            goto L1; 
        } 
        switch ($_GET["mo_idp_sso_user"]) { 
            case "sso-users": 
                $vL = array(array("key" => "mo_idp_user_type", "value" => "sso_user", "compare" => "=")); 
                goto fy; 
            case "non-sso-users": 
                $vL = array(array("key" => "mo_idp_user_type", "compare" => "NOT EXISTS")); 
                goto fy; 
        } 
        WT: 
        fy: 
        $lB->set("meta_query", $vL); 
        L1: 
        Mv: 
        return $lB; 
    } 
    function render_filter_sso_user_actions($UY) 
    { 
        $Cu = "bottom" === $UY ? "mo_idp_sso_user2" : "mo_idp_sso_user"; 
        echo "<select onchange="idpFilterActionsChange(this.name)" id="" . $Cu . "" name="" . $Cu . "">\xd
	\x9		<option value="0">User Type</option>
\x9		\x9<option value="sso-users" " . (isset($_GET["mo_idp_sso_user"]) && $_GET["mo_idp_sso_user"] == "sso-users" ? "selected" : '') . ">SSO Users</option>\xd
	\x9\x9	<option value="non-sso-users" " . (isset($_GET["mo_idp_sso_user"]) && $_GET["mo_idp_sso_user"] == "non-sso-users" ? "selected" : '') . ">Non-SSO Users</option>
\xa			</select>\xd\xa
\x9\x9	<input type="submit" class="button action" value="Filter">"; 
        echo "<script>\xd
		\x9	function idpFilterActionsChange(name) {
\xa\x9\x9\x9\x9	if(name == "mo_idp_sso_user") {
\xa	\x9	\x9\x9	dropdown1 = document.getElementById("mo_idp_sso_user");\xd\xa\x9\x9	\x9	\x9value1 = dropdown1.value;\xd\xa\x9	\x9\x9\x9\x9dropdown2 = document.getElementById("mo_idp_sso_user2");\xd
\x9\x9		\x9	dropdown2.value = value1;
	\x9		\x9}\xd\xa		\x9	\x9else if(name == "mo_idp_sso_user2") {
\xa\x9\x9\x9\x9	\x9dropdown2 = document.getElementById("mo_idp_sso_user2");\xd\xa\x9	\x9\x9		value2 = dropdown2.value;
\x9	\x9\x9\x9\x9dropdown1 = document.getElementById("mo_idp_sso_user");\xd
\x9			\x9	dropdown1.value = value2;\xd
	\x9\x9	\x9}
\xa\x9\x9\x9\x9}\xd\xa\x9		</script>"; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


namespace IDP\Actions;

use IDP\Helper\Traits\Instance;
use IDP\Exception\UserCountExceededException;
use IDP\Helper\Utilities\MoIDPUtility;
class ManageUserTableViewAction
{
    use Instance;
    private function __construct()
    {
        if (!get_site_option("\x6d\157\x5f\x69\144\x70\137\163\x68\157\167\x5f\x73\163\157\x5f\165\163\145\x72\x73")) {
            goto DU;
        }
        add_filter("\155\x61\156\x61\x67\145\137\165\x73\x65\162\x73\x5f\143\157\x6c\165\x6d\x6e\163", array($this, "\156\x65\x77\x5f\x6d\157\144\151\x66\x79\x5f\x75\x73\145\162\137\164\x61\142\154\x65"), 1, 1);
        add_filter("\x6d\141\x6e\141\x67\145\137\165\x73\x65\x72\x73\x5f\x63\x75\x73\x74\157\x6d\x5f\x63\x6f\x6c\165\155\x6e", array($this, "\156\x65\167\137\155\157\x64\151\146\x79\137\165\163\145\x72\x5f\164\x61\142\x6c\145\137\162\x6f\x77"), 1, 3);
        add_filter("\x70\x72\145\x5f\147\x65\164\x5f\x75\x73\145\x72\163", array($this, "\x66\x69\x6c\x74\145\x72\x5f\163\x73\157\137\165\163\x65\x72\137\x74\141\x62\154\145"), 99, 1);
        add_action("\155\x61\x6e\x61\x67\x65\x5f\x75\x73\x65\x72\163\137\145\x78\164\x72\x61\x5f\164\x61\x62\x6c\x65\x6e\141\x76", array($this, "\x72\145\156\x64\x65\162\x5f\146\x69\154\164\x65\162\x5f\x73\x73\x6f\x5f\x75\x73\x65\x72\137\141\x63\164\x69\157\x6e\163"), 99, 1);
        DU:
    }
    function new_modify_user_table($R0)
    {
        $R0["\x73\163\x6f\x75\x73\x65\162"] = "\125\x73\145\x72\x20\x54\171\x70\x65";
        return $R0;
    }
    function new_modify_user_table_row($tL, $Vp, $uE)
    {
        switch ($Vp) {
            case "\163\163\x6f\x75\163\145\x72":
                return get_user_meta($uE, "\x6d\157\x5f\x69\x64\x70\137\165\x73\145\x72\x5f\x74\x79\x70\145", true) ? "\74\142\165\164\164\x6f\x6e\x20\x69\x64\x3d\47\163\163\157\137\142\x74\x6e\x27\40\143\154\141\x73\x73\x3d\47\142\x75\164\x74\157\x6e\x27\40\x73\x74\x79\x6c\145\x3d\47\160\157\x69\x6e\164\x65\x72\55\x65\x76\145\x6e\164\x73\x3a\x20\156\x6f\156\145\x27\x3e\x53\123\117\x20\x55\163\145\x72\x3c\x2f\x62\165\164\164\157\x6e\x3e" : '';
                goto zS;
            default:
        }
        ih:
        zS:
        return $tL;
    }
    function filter_sso_user_table($lB)
    {
        if (is_admin()) {
            goto wE;
        }
        return $lB;
        wE:
        global $pagenow;
        if (!("\165\x73\145\x72\163\x2e\x70\150\x70" === $pagenow)) {
            goto Mv;
        }
        if (!(isset($_GET["\x6d\157\137\151\x64\160\137\163\163\x6f\137\x75\x73\x65\162"]) && $_GET["\155\157\137\x69\x64\x70\x5f\x73\x73\157\x5f\165\163\145\x72"] !== "\x30")) {
            goto L1;
        }
        switch ($_GET["\x6d\157\x5f\x69\144\160\137\x73\x73\x6f\137\x75\163\x65\162"]) {
            case "\x73\163\x6f\55\165\163\145\162\x73":
                $vL = array(array("\x6b\145\x79" => "\x6d\157\137\151\144\160\137\x75\163\x65\x72\x5f\164\171\160\145", "\166\x61\x6c\165\x65" => "\x73\x73\x6f\x5f\x75\x73\145\x72", "\x63\x6f\155\160\x61\162\x65" => "\75"));
                goto fy;
            case "\x6e\x6f\156\55\x73\163\157\55\165\x73\145\x72\x73":
                $vL = array(array("\x6b\x65\171" => "\x6d\x6f\137\151\x64\x70\137\165\x73\x65\x72\x5f\x74\171\x70\x65", "\x63\x6f\155\160\x61\x72\x65" => "\x4e\x4f\124\40\105\130\x49\x53\124\x53"));
                goto fy;
        }
        WT:
        fy:
        $lB->set("\x6d\x65\x74\x61\137\x71\x75\145\162\x79", $vL);
        L1:
        Mv:
        return $lB;
    }
    function render_filter_sso_user_actions($UY)
    {
        $Cu = "\142\157\x74\164\157\155" === $UY ? "\x6d\157\137\x69\144\160\137\x73\163\x6f\x5f\x75\163\145\162\x32" : "\155\x6f\137\151\x64\x70\137\x73\163\x6f\x5f\x75\x73\x65\162";
        echo "\x3c\163\145\x6c\x65\x63\164\x20\157\156\x63\150\141\x6e\147\145\x3d\x22\x69\x64\160\106\151\154\164\x65\162\x41\x63\164\x69\x6f\x6e\x73\103\150\141\156\147\x65\x28\164\150\x69\163\56\156\x61\x6d\x65\x29\42\x20\x69\x64\75\42" . $Cu . "\x22\x20\156\141\155\x65\x3d\42" . $Cu . "\42\x3e\xd\12\11\x9\11\11\x3c\157\x70\x74\x69\x6f\x6e\x20\166\141\154\x75\145\x3d\x22\x30\x22\76\125\163\145\x72\x20\124\171\160\145\74\x2f\x6f\x70\x74\x69\157\x6e\x3e\15\12\x9\11\11\x9\74\157\x70\164\151\157\156\x20\166\141\x6c\x75\x65\x3d\x22\163\x73\x6f\x2d\165\163\x65\162\163\x22\x20" . (isset($_GET["\x6d\157\137\151\144\x70\x5f\163\163\157\137\x75\163\145\x72"]) && $_GET["\x6d\x6f\137\x69\x64\160\137\163\x73\157\x5f\x75\163\x65\x72"] == "\163\163\x6f\x2d\x75\163\x65\162\x73" ? "\163\x65\154\x65\143\164\x65\x64" : '') . "\76\123\123\117\x20\125\163\145\x72\x73\x3c\x2f\157\x70\x74\x69\157\x6e\76\xd\12\11\x9\x9\11\74\x6f\160\x74\x69\x6f\156\x20\x76\x61\154\165\x65\75\x22\x6e\157\x6e\x2d\x73\163\x6f\x2d\165\x73\145\x72\x73\x22\40" . (isset($_GET["\x6d\157\x5f\151\x64\x70\x5f\163\163\x6f\x5f\x75\163\145\162"]) && $_GET["\x6d\157\x5f\x69\x64\160\x5f\x73\x73\x6f\x5f\x75\163\x65\162"] == "\156\x6f\x6e\55\163\x73\x6f\55\165\x73\x65\162\163" ? "\163\145\154\145\x63\x74\x65\x64" : '') . "\76\116\157\156\x2d\x53\123\x4f\40\x55\x73\145\x72\x73\74\x2f\157\160\164\x69\x6f\x6e\76\15\xa\11\11\11\74\x2f\163\145\154\145\x63\164\76\xd\xa\15\12\x9\x9\11\x3c\x69\156\x70\165\164\40\x74\x79\x70\145\75\42\x73\x75\x62\155\x69\164\42\x20\x63\x6c\x61\x73\163\x3d\42\142\165\x74\x74\x6f\156\x20\x61\143\x74\x69\x6f\x6e\x22\x20\166\x61\154\x75\145\x3d\42\106\151\154\x74\145\x72\x22\x3e";
        echo "\x3c\x73\143\162\151\x70\x74\x3e\xd\12\11\11\x9\11\x66\x75\156\x63\x74\151\157\x6e\x20\151\144\x70\x46\x69\x6c\164\145\162\101\143\164\151\157\156\x73\103\x68\141\156\147\145\50\156\x61\155\x65\x29\40\x7b\15\xa\x9\x9\x9\x9\11\x69\x66\50\x6e\x61\155\x65\x20\x3d\x3d\40\x22\x6d\157\137\x69\x64\x70\137\163\x73\x6f\x5f\x75\x73\x65\162\42\x29\40\173\15\xa\11\x9\11\x9\x9\11\144\x72\157\160\144\157\x77\156\x31\40\x3d\x20\x64\x6f\x63\x75\155\x65\x6e\x74\x2e\147\x65\x74\x45\154\145\x6d\x65\156\164\x42\171\x49\144\x28\42\155\157\x5f\151\x64\160\137\x73\x73\157\137\165\163\x65\x72\42\51\x3b\xd\xa\x9\x9\11\x9\11\x9\166\x61\154\x75\x65\61\40\75\x20\144\x72\157\x70\x64\x6f\167\x6e\x31\x2e\166\x61\154\165\x65\73\xd\xa\x9\11\x9\x9\x9\x9\x64\x72\157\x70\144\x6f\167\x6e\62\x20\75\40\x64\157\143\x75\155\145\x6e\164\x2e\147\145\x74\105\x6c\x65\x6d\x65\156\164\x42\171\111\x64\50\x22\x6d\157\x5f\151\144\x70\x5f\x73\x73\x6f\x5f\165\x73\145\162\62\42\x29\73\xd\12\x9\x9\11\11\x9\11\x64\x72\x6f\160\144\x6f\167\156\62\56\166\141\154\x75\x65\40\x3d\40\x76\141\154\x75\145\61\x3b\15\12\11\x9\11\11\x9\175\xd\xa\11\11\x9\11\x9\x65\154\x73\x65\x20\151\x66\x28\156\141\155\x65\x20\75\x3d\40\x22\155\157\x5f\x69\144\x70\x5f\x73\x73\x6f\x5f\165\163\145\x72\x32\x22\51\x20\x7b\15\xa\x9\x9\x9\x9\11\x9\x64\x72\x6f\x70\144\x6f\x77\156\x32\x20\75\x20\144\157\x63\165\155\x65\x6e\x74\56\x67\145\x74\x45\x6c\145\155\145\x6e\164\102\171\111\x64\x28\42\155\157\137\x69\144\x70\137\163\x73\157\x5f\165\x73\145\162\62\42\x29\73\xd\xa\x9\11\x9\x9\11\11\x76\141\x6c\x75\x65\x32\x20\75\40\144\162\157\x70\x64\157\167\x6e\62\x2e\166\x61\x6c\165\145\73\15\12\x9\11\x9\x9\x9\x9\144\x72\x6f\x70\144\157\x77\x6e\x31\40\x3d\x20\x64\157\143\x75\x6d\x65\156\164\x2e\x67\x65\164\105\154\x65\x6d\x65\156\164\102\171\111\144\50\x22\155\157\x5f\x69\144\x70\x5f\x73\163\157\x5f\165\163\x65\162\x22\51\73\xd\12\x9\11\11\11\x9\11\x64\x72\x6f\160\x64\157\x77\x6e\x31\56\166\x61\154\165\145\40\75\40\x76\141\x6c\165\x65\62\x3b\xd\12\11\x9\x9\11\x9\x7d\15\xa\x9\x9\x9\x9\175\xd\xa\x9\11\11\x3c\57\x73\143\x72\x69\x70\x74\x3e";
    }
}

Function Calls

None

Variables

None

Stats

MD5 9624d829ab0a1db898d0a580e0e6a78b
Eval Count 0
Decode Time 42 ms