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: miniOrange LDAP Buddypress Integration Add-On Plugin URI: https:/..

Decoded Output download

<?php 
/* 
Plugin Name: miniOrange LDAP Buddypress Integration Add-On 
Plugin URI: https://www.miniorange.com 
Description: miniOrange LDAP Buddypress Integration Add-On. For use with Intranet LDAP Plugin. 
Author: miniorange 
Version: 1.1 
Author URI: https://www.miniorange.com 
*/ 
 
 
require "class-mo-buddypress-util.php"; 
class Mo_Ldap_Buddypress_Integration 
{ 
    function __construct() 
    { 
        add_action("mo_ldap_buddypress", array($this, "mo_buddypress_profile_update"), 99, 2); 
        add_action("mo_ldap_buddypress_update_attribute_mapping", array($this, "mo_ldap_buddypress_update_attribute_mapping_array"), 10, 1); 
        add_action("admin_init", array($this, "mo_buddypress_save_options"), 9); 
        if (!Mo_Ldap_Buddypress_Util::is_active()) { 
            goto zy; 
        } 
        add_action("mo_ldap_attribute_mapping_end", array($this, "mo_ldap_buddypress_add_addon_text")); 
        zy: 
    } 
    function mo_ldap_buddypress_update_attribute_mapping_array($Zw) 
    { 
        $kO = get_option("mo_ldap_bp_attribute_mapping"); 
        if (empty($kO)) { 
            goto xN; 
        } 
        unset($kO[array_search($Zw, $kO)]); 
        update_option("mo_ldap_bp_attribute_mapping", $kO); 
        xN: 
    } 
    function mo_buddypress_save_options() 
    { 
        if (!(isset($_POST["option"]) && $_POST["option"] == "mo_ldap_save_attribute_config")) { 
            goto pY; 
        } 
        $iv = array(); 
        $HO = 0; 
        foreach ($_POST as $ma => $id) { 
            if (!(strpos($ma, "mo_ldap_bp_attribute_key") !== false && !empty($_POST[$ma]))) { 
                goto cb; 
            } 
            $HO++; 
            $lr = "mo_ldap_bp_attribute_value_" . $HO; 
            $gk = $_POST[$lr]; 
            if (empty($gk)) { 
                goto dd; 
            } 
            $iv[$id] = $gk; 
            update_option("mo_ldap_local_custom_attribute_" . $gk, $gk); 
            dd: 
            cb: 
            dc: 
        } 
        Z3: 
        if (empty($iv)) { 
            goto a8; 
        } 
        update_option("mo_ldap_bp_attribute_mapping", $iv); 
        a8: 
        pY: 
    } 
    function mo_buddypress_profile_update($bi, $user) 
    { 
        if (!get_option("mo_ldap_bp_attribute_mapping")) { 
            goto fl; 
        } 
        $iv = get_option("mo_ldap_bp_attribute_mapping"); 
        error_log(print_r($iv, 1)); 
        error_log(print_r($bi, 1)); 
        foreach ($iv as $ma => $id) { 
            error_log("$key: " . $ma); 
            error_log("$value: " . $id); 
            $de = "mo_ldap_local_custom_attribute_" . $id; 
            error_log("$custom_value: " . $de); 
            error_log(array_key_exists($de, $bi)); 
            if (!array_key_exists($de, $bi)) { 
                goto hr; 
            } 
            $zV = $bi[$de]; 
            error_log("$attr_value: " . $zV); 
            error_log("$attr_key: " . $ma); 
            if ($id == "thumbnailphoto") { 
                goto Ef; 
            } 
            if (!(isset($zV) && !empty($zV))) { 
                goto l_; 
            } 
            $n3 = xprofile_get_field_id_from_name($ma); 
            error_log("$id: " . $n3); 
            if (xprofile_get_field($n3)->type == "datebox") { 
                goto Wn; 
            } 
            if (xprofile_get_field($n3)->type == "checkbox") { 
                goto An; 
            } 
            if (xprofile_get_field($n3)->type == "multiselectbox") { 
                goto lF; 
            } 
            xprofile_set_field_data($n3, $user->ID, $zV); 
            goto fF; 
            lF: 
            $uv = explode(",", $zV); 
            xprofile_set_field_data($n3, $user->ID, $uv); 
            fF: 
            goto v0; 
            An: 
            $Jm = explode(",", $zV); 
            xprofile_set_field_data($n3, $user->ID, $Jm); 
            v0: 
            goto IJ; 
            Wn: 
            $E0 = date_create($zV); 
            $zV = date_format($E0, "Y-m-d H:i:s"); 
            xprofile_set_field_data($n3, $user->ID, $zV); 
            IJ: 
            l_: 
            goto Y_; 
            Ef: 
            $l_ = $this->get_image_for_user($user, $zV); 
            update_user_meta($user->ID, "display_pic_url", $l_); 
            Y_: 
            hr: 
            x_: 
        } 
        wK: 
        fl: 
    } 
    function get_image_for_user($user, $kb) 
    { 
        $FV = wp_upload_dir()["basedir"] . DIRECTORY_SEPARATOR . "avatars" . DIRECTORY_SEPARATOR; 
        if (file_exists($FV)) { 
            goto Eb; 
        } 
        mkdir($FV); 
        Eb: 
        chmod($FV, 493); 
        $US = wp_upload_dir()["basedir"] . DIRECTORY_SEPARATOR . "avatars" . DIRECTORY_SEPARATOR . $user->ID; 
        if (file_exists($US)) { 
            goto Xd; 
        } 
        mkdir($US, 509); 
        Xd: 
        $AC = wp_upload_dir()["basedir"] . DIRECTORY_SEPARATOR . "avatars" . DIRECTORY_SEPARATOR . $user->ID . DIRECTORY_SEPARATOR . $user->user_nicename . "-bpfull.jpg"; 
        chmod($AC, 493); 
        $y_ = get_site_url() . "/wp-content/uploads/avatars/" . $user->ID . "/" . $user->user_nicename . "-bpfull.jpg"; 
        $Mg = imagecreatefromstring($kb); 
        $Vw = imagejpeg($Mg, $AC); 
        imagedestroy($Mg); 
        update_user_meta($user->ID, "miniorange_buddypress_avatar_url", $y_); 
        return $y_; 
    } 
    function mo_ldap_buddypress_add_addon_text() 
    { 
        echo "<tr id="tr_user_bp">\xd\xa\x9		\x9<td colspan="2">
		\x9	<h3>BuddyPress Custom Attributes</h3>Map custom BuddyPress attributes which you wish to be included in the user profile below. \xd
\x9			<p><u>Note:</u> For date type, the value mapped in the LDAP should be in dd-mm-yyyy or yyyy-mm-dd format.</p>\xd
	\x9\x9\x9<p><u>Note:</u> For checkbox and multiselect box type, the values mapped in the LDAP should be seperated by comma for multiple values. Also, the value should be from the options in the Checkbox only. </p>
	\x9	\x9</td><td><input type="button" name="add_attribute_bp" value="+" onclick="add_custom_attribute_bp()" class="button button-primary"  /></td>\xd\xa			\x9<td><input type="button" name="remove_attribute_bp" value="-" onclick="remove_custom_attribute_bp()" class="button button-primary"   /></td>\xd
\x9		</tr>"; 
        if (!get_option("mo_ldap_bp_attribute_mapping")) { 
            goto zx; 
        } 
        $iv = get_option("mo_ldap_bp_attribute_mapping"); 
        $Ze = 0; 
        foreach ($iv as $ma => $id) { 
            $Ze++; 
            echo "<tr class="bprows">\xd\xa\x9\x9\x9\x9		<td>\xd\xa							<select style="width:61%" name="mo_ldap_bp_attribute_key_" . $Ze . "" id="mo_ldap_bp_attribute_key_" . $Ze . "">" . $this->get_buddypress_profile_fields_options($ma) . "</select>\xd\xa\x9		\x9	\x9</td>
\xa	\x9	\x9	\x9<td style=\"width:100%;\">
	\x9			\x9	<input type="text" name="mo_ldap_bp_attribute_value_" . $Ze . "" placeholder="Enter LDAP attribute name" style="width:100%;" value="" . $id . "" />\xd\xa		\x9\x9		</td>\xd
\x9	\x9	</tr>"; 
            cy: 
        } 
        WJ: 
        zx: 
        echo "<script>\xd
	\x9	var countAttributesBp;\xd\xa
\xa	\x9	function add_custom_attribute_bp(){
\x9\x9	\x9countAttributesBp = jQuery("tr.bprows").length;\xd
\x9\x9	\x9html = "" . $this->get_buddypress_profile_fields_options() . "";\xd
\x9			countAttributesBp += 1;
	\x9		
\xa\x9			bprows="<tr id=\"row_" +countAttributesBp + "\" class=\"bprows\"><td><select style=\"width:61%\" name=\"mo_ldap_bp_attribute_key_" +countAttributesBp + "\"  id=\"mo_ldap_bp_attribute_key_" +countAttributesBp + "\">"+html+"</select></td><td style=\"width:100%;\"><input type=\"text\" name=\"mo_ldap_bp_attribute_value_"+countAttributesBp + "\" id=\"mo_ldap_bp_attribute_value_" +countAttributesBp + "\" placeholder=\"Enter LDAP Attribute Name\" style=\"width:100%;\" /></td></tr>";\xd\xa
\xa\x9\x9\x9\x9jQuery(bprows).insertBefore(jQuery("#save_config_element"));
\xa			}\xd
\xd
\x9\x9\x9function remove_custom_attribute_bp(){\xd
\x9\x9	\x9jQuery("#row_" + countAttributesBp).remove();\xd
\x9	\x9\x9countAttributesBp -= 1;
\xa	\x9\x9	if(countAttributesBp == 0) \xd
	\x9\x9		countAttributesBp = 1;
\x9\x9\x9}\xd
		</script>"; 
    } 
    function get_buddypress_profile_fields_options($ma = null) 
    { 
        global $wpdb; 
        $Im = $wpdb->prefix . "bp_xprofile_fields"; 
        $QB = $wpdb->get_results("SELECT * FROM {$Im} WHERE parent_id = 0;"); 
        $Eu = ''; 
        if (!empty($ma)) { 
            goto dD; 
        } 
        foreach ($QB as $K8) { 
            $Eu .= "<option value='" . $K8->name . "'>" . $K8->name; 
            $Eu .= "</option>"; 
            Bi: 
        } 
        Co: 
        goto df; 
        dD: 
        foreach ($QB as $K8) { 
            $vO = $ma == $K8->name ? "selected" : ''; 
            $Eu .= "<option value='" . $K8->name . "' " . $vO . ">" . $K8->name; 
            $Eu .= "</option>"; 
            Zs: 
        } 
        BD: 
        df: 
        return $Eu; 
    } 
} 
new Mo_Ldap_Buddypress_Integration(); ?>

Did this file decode correctly?

Original Code

<?php
/*
Plugin Name: miniOrange LDAP Buddypress Integration Add-On
Plugin URI: https://www.miniorange.com
Description: miniOrange LDAP Buddypress Integration Add-On. For use with Intranet LDAP Plugin.
Author: miniorange
Version: 1.1
Author URI: https://www.miniorange.com
*/


require "\x63\x6c\x61\x73\163\x2d\155\x6f\55\142\x75\144\x64\x79\160\x72\x65\x73\163\x2d\x75\x74\151\x6c\56\x70\x68\160";
class Mo_Ldap_Buddypress_Integration
{
    function __construct()
    {
        add_action("\x6d\x6f\x5f\154\x64\141\160\137\142\165\x64\x64\171\160\x72\145\163\x73", array($this, "\155\x6f\x5f\x62\x75\x64\x64\171\160\x72\x65\x73\163\137\160\162\157\146\151\x6c\145\137\165\160\x64\x61\164\145"), 99, 2);
        add_action("\x6d\x6f\137\x6c\144\x61\x70\137\142\x75\144\x64\x79\160\162\145\163\x73\x5f\165\160\x64\x61\164\x65\137\141\x74\x74\x72\x69\142\165\x74\x65\x5f\x6d\141\160\160\151\156\147", array($this, "\x6d\x6f\137\154\144\x61\160\137\x62\165\x64\x64\x79\160\162\145\163\163\x5f\x75\160\144\141\x74\145\x5f\141\164\x74\162\151\x62\165\x74\145\x5f\155\141\x70\160\x69\156\147\x5f\x61\x72\x72\x61\x79"), 10, 1);
        add_action("\141\144\x6d\151\x6e\137\x69\x6e\x69\164", array($this, "\155\157\x5f\x62\x75\x64\x64\x79\x70\x72\x65\x73\163\x5f\163\141\166\x65\x5f\157\160\x74\x69\x6f\156\163"), 9);
        if (!Mo_Ldap_Buddypress_Util::is_active()) {
            goto zy;
        }
        add_action("\155\157\137\154\x64\x61\160\137\x61\164\x74\x72\151\142\x75\164\145\137\x6d\141\160\160\x69\x6e\x67\x5f\x65\156\x64", array($this, "\x6d\157\x5f\154\144\141\x70\x5f\142\165\144\x64\x79\160\162\x65\163\163\x5f\x61\144\144\137\x61\144\x64\157\156\x5f\164\145\x78\x74"));
        zy:
    }
    function mo_ldap_buddypress_update_attribute_mapping_array($Zw)
    {
        $kO = get_option("\155\157\137\154\x64\x61\x70\137\x62\160\137\141\164\164\x72\x69\x62\165\x74\x65\x5f\155\x61\160\x70\151\156\x67");
        if (empty($kO)) {
            goto xN;
        }
        unset($kO[array_search($Zw, $kO)]);
        update_option("\155\x6f\x5f\x6c\x64\x61\160\x5f\x62\160\x5f\141\x74\164\x72\x69\x62\165\x74\145\x5f\155\x61\x70\x70\151\156\147", $kO);
        xN:
    }
    function mo_buddypress_save_options()
    {
        if (!(isset($_POST["\x6f\x70\x74\151\x6f\156"]) && $_POST["\157\x70\x74\151\x6f\156"] == "\155\x6f\x5f\x6c\x64\141\160\x5f\x73\x61\166\145\137\141\x74\164\162\151\x62\165\164\x65\137\143\x6f\156\x66\x69\x67")) {
            goto pY;
        }
        $iv = array();
        $HO = 0;
        foreach ($_POST as $ma => $id) {
            if (!(strpos($ma, "\x6d\x6f\137\x6c\144\x61\x70\137\142\x70\x5f\141\x74\164\162\x69\x62\x75\x74\x65\137\x6b\145\x79") !== false && !empty($_POST[$ma]))) {
                goto cb;
            }
            $HO++;
            $lr = "\x6d\x6f\137\x6c\x64\141\160\x5f\142\x70\137\x61\x74\x74\162\x69\x62\165\164\x65\x5f\166\141\x6c\165\145\x5f" . $HO;
            $gk = $_POST[$lr];
            if (empty($gk)) {
                goto dd;
            }
            $iv[$id] = $gk;
            update_option("\x6d\x6f\x5f\154\144\x61\160\x5f\154\x6f\143\141\x6c\x5f\x63\x75\163\x74\x6f\155\137\x61\164\x74\x72\x69\x62\165\x74\145\137" . $gk, $gk);
            dd:
            cb:
            dc:
        }
        Z3:
        if (empty($iv)) {
            goto a8;
        }
        update_option("\x6d\x6f\137\x6c\x64\141\x70\x5f\142\160\137\x61\164\164\162\151\142\x75\x74\x65\x5f\x6d\141\x70\160\x69\x6e\x67", $iv);
        a8:
        pY:
    }
    function mo_buddypress_profile_update($bi, $user)
    {
        if (!get_option("\155\x6f\x5f\x6c\144\x61\160\x5f\142\160\137\x61\164\164\x72\151\x62\165\x74\145\137\x6d\x61\x70\160\151\156\x67")) {
            goto fl;
        }
        $iv = get_option("\x6d\157\137\154\144\141\x70\x5f\x62\160\x5f\141\x74\x74\162\151\x62\165\x74\x65\x5f\155\141\160\x70\151\x6e\147");
        error_log(print_r($iv, 1));
        error_log(print_r($bi, 1));
        foreach ($iv as $ma => $id) {
            error_log("\44\x6b\145\x79\72\40" . $ma);
            error_log("\44\166\141\x6c\165\x65\x3a\x20" . $id);
            $de = "\x6d\157\x5f\x6c\144\141\x70\137\154\x6f\x63\141\x6c\137\143\x75\x73\164\157\x6d\x5f\141\164\164\162\x69\x62\x75\164\145\137" . $id;
            error_log("\44\143\165\163\x74\157\155\x5f\166\x61\x6c\x75\145\72\40" . $de);
            error_log(array_key_exists($de, $bi));
            if (!array_key_exists($de, $bi)) {
                goto hr;
            }
            $zV = $bi[$de];
            error_log("\44\141\x74\x74\162\x5f\166\141\154\x75\145\x3a\40" . $zV);
            error_log("\x24\x61\x74\164\162\x5f\153\x65\x79\72\40" . $ma);
            if ($id == "\x74\150\165\x6d\x62\x6e\141\x69\x6c\x70\x68\x6f\164\x6f") {
                goto Ef;
            }
            if (!(isset($zV) && !empty($zV))) {
                goto l_;
            }
            $n3 = xprofile_get_field_id_from_name($ma);
            error_log("\44\x69\x64\72\x20" . $n3);
            if (xprofile_get_field($n3)->type == "\x64\141\164\x65\x62\x6f\x78") {
                goto Wn;
            }
            if (xprofile_get_field($n3)->type == "\x63\150\x65\x63\153\142\157\170") {
                goto An;
            }
            if (xprofile_get_field($n3)->type == "\155\x75\154\164\151\x73\x65\x6c\145\x63\164\142\x6f\170") {
                goto lF;
            }
            xprofile_set_field_data($n3, $user->ID, $zV);
            goto fF;
            lF:
            $uv = explode("\54", $zV);
            xprofile_set_field_data($n3, $user->ID, $uv);
            fF:
            goto v0;
            An:
            $Jm = explode("\54", $zV);
            xprofile_set_field_data($n3, $user->ID, $Jm);
            v0:
            goto IJ;
            Wn:
            $E0 = date_create($zV);
            $zV = date_format($E0, "\x59\55\x6d\55\x64\40\x48\72\151\72\163");
            xprofile_set_field_data($n3, $user->ID, $zV);
            IJ:
            l_:
            goto Y_;
            Ef:
            $l_ = $this->get_image_for_user($user, $zV);
            update_user_meta($user->ID, "\x64\151\x73\160\154\x61\x79\x5f\x70\x69\x63\x5f\x75\x72\154", $l_);
            Y_:
            hr:
            x_:
        }
        wK:
        fl:
    }
    function get_image_for_user($user, $kb)
    {
        $FV = wp_upload_dir()["\x62\x61\163\145\x64\151\x72"] . DIRECTORY_SEPARATOR . "\x61\166\x61\x74\141\162\x73" . DIRECTORY_SEPARATOR;
        if (file_exists($FV)) {
            goto Eb;
        }
        mkdir($FV);
        Eb:
        chmod($FV, 493);
        $US = wp_upload_dir()["\142\141\163\x65\x64\x69\x72"] . DIRECTORY_SEPARATOR . "\x61\166\x61\164\x61\162\163" . DIRECTORY_SEPARATOR . $user->ID;
        if (file_exists($US)) {
            goto Xd;
        }
        mkdir($US, 509);
        Xd:
        $AC = wp_upload_dir()["\x62\x61\x73\145\144\151\x72"] . DIRECTORY_SEPARATOR . "\141\166\141\x74\x61\x72\x73" . DIRECTORY_SEPARATOR . $user->ID . DIRECTORY_SEPARATOR . $user->user_nicename . "\x2d\x62\160\x66\x75\x6c\154\56\152\x70\x67";
        chmod($AC, 493);
        $y_ = get_site_url() . "\57\167\x70\55\143\x6f\x6e\x74\145\156\x74\x2f\165\x70\154\157\x61\x64\x73\57\x61\x76\x61\x74\141\162\163\57" . $user->ID . "\x2f" . $user->user_nicename . "\x2d\142\x70\x66\165\154\x6c\56\x6a\160\x67";
        $Mg = imagecreatefromstring($kb);
        $Vw = imagejpeg($Mg, $AC);
        imagedestroy($Mg);
        update_user_meta($user->ID, "\155\151\x6e\x69\x6f\x72\141\156\147\145\137\x62\165\144\144\171\160\x72\x65\163\163\137\x61\x76\x61\164\x61\162\137\165\x72\154", $y_);
        return $y_;
    }
    function mo_ldap_buddypress_add_addon_text()
    {
        echo "\x3c\164\x72\40\x69\144\75\42\164\x72\x5f\x75\x73\x65\x72\x5f\x62\160\x22\76\xd\xa\x9\11\11\x9\74\x74\144\x20\x63\157\x6c\x73\x70\x61\x6e\75\x22\x32\42\x3e\15\12\11\11\x9\11\74\150\x33\x3e\x42\x75\x64\x64\x79\120\162\145\163\163\x20\x43\165\163\x74\x6f\155\x20\x41\x74\x74\x72\x69\x62\x75\x74\145\x73\74\x2f\x68\x33\x3e\x4d\141\160\40\x63\x75\x73\x74\x6f\x6d\x20\x42\x75\144\144\171\x50\162\x65\163\x73\40\141\164\164\162\x69\x62\x75\164\145\163\x20\167\x68\151\143\150\40\171\x6f\x75\x20\x77\151\x73\x68\40\x74\x6f\x20\142\145\x20\x69\156\x63\x6c\x75\144\x65\144\x20\x69\156\x20\164\150\145\40\165\x73\145\x72\x20\160\162\157\x66\x69\x6c\145\x20\142\145\x6c\157\167\x2e\40\xd\12\x9\11\11\11\x3c\x70\76\74\165\76\x4e\x6f\x74\x65\72\x3c\x2f\x75\x3e\x20\x46\x6f\x72\x20\x64\141\164\x65\40\x74\x79\160\145\54\40\164\x68\145\40\166\x61\154\x75\145\x20\x6d\141\x70\x70\145\144\40\151\x6e\x20\164\150\145\40\x4c\104\x41\x50\x20\x73\x68\x6f\165\x6c\x64\40\x62\x65\x20\x69\x6e\x20\x64\x64\55\x6d\x6d\x2d\x79\x79\171\x79\40\x6f\x72\40\171\171\171\x79\55\155\x6d\55\144\x64\40\146\x6f\162\155\141\x74\x2e\74\57\160\x3e\xd\12\11\x9\x9\x9\74\x70\x3e\x3c\x75\76\116\157\164\x65\72\74\57\165\76\x20\x46\157\x72\40\143\150\x65\143\153\142\x6f\x78\x20\x61\x6e\144\40\x6d\x75\x6c\x74\x69\x73\x65\x6c\x65\x63\x74\x20\142\157\170\40\164\x79\x70\145\x2c\x20\x74\x68\x65\40\166\x61\x6c\x75\145\163\x20\155\141\x70\x70\x65\x64\40\x69\x6e\x20\164\x68\145\40\114\104\x41\120\x20\x73\x68\157\165\154\144\40\142\x65\40\x73\x65\x70\145\162\141\164\x65\144\x20\x62\171\x20\x63\157\x6d\155\x61\x20\146\x6f\162\x20\155\x75\x6c\164\x69\160\x6c\145\40\x76\x61\154\165\x65\163\x2e\40\101\154\163\157\x2c\x20\164\150\145\x20\166\x61\154\165\145\40\163\x68\x6f\x75\x6c\x64\40\142\x65\40\146\x72\x6f\155\x20\164\x68\145\x20\157\160\164\151\x6f\156\163\40\x69\156\40\164\x68\145\x20\x43\x68\145\143\x6b\142\157\170\40\157\x6e\154\171\x2e\x20\x3c\x2f\x70\76\15\12\11\x9\11\x9\x3c\57\164\144\x3e\x3c\164\x64\x3e\74\151\156\160\x75\164\x20\164\x79\160\145\x3d\x22\142\x75\x74\x74\x6f\x6e\42\x20\x6e\x61\155\145\x3d\x22\x61\x64\144\x5f\x61\164\x74\162\x69\x62\x75\164\145\x5f\142\x70\42\40\166\141\154\165\x65\x3d\42\x2b\x22\40\157\x6e\x63\x6c\x69\143\153\x3d\x22\x61\144\144\x5f\x63\165\x73\x74\157\155\137\x61\164\x74\162\151\x62\165\164\x65\x5f\142\160\50\51\x22\40\x63\x6c\141\x73\163\x3d\42\x62\x75\164\164\x6f\x6e\x20\142\165\x74\x74\157\x6e\55\x70\162\x69\155\x61\162\171\x22\x20\x20\x2f\x3e\74\57\x74\x64\76\xd\xa\11\11\11\x9\x3c\x74\144\76\74\x69\x6e\x70\165\x74\40\164\x79\x70\x65\75\42\x62\165\164\x74\x6f\x6e\42\x20\x6e\x61\155\x65\x3d\42\x72\x65\x6d\157\x76\x65\x5f\x61\164\164\x72\x69\x62\165\x74\145\x5f\x62\160\x22\40\x76\141\x6c\x75\145\x3d\x22\x2d\x22\40\x6f\x6e\143\x6c\x69\143\x6b\75\x22\x72\x65\x6d\x6f\x76\145\137\x63\165\163\x74\157\155\x5f\x61\164\164\x72\x69\142\x75\x74\145\137\x62\x70\50\x29\42\x20\143\154\141\x73\163\75\42\x62\x75\x74\x74\x6f\x6e\40\142\165\164\x74\x6f\x6e\x2d\160\162\x69\155\x61\x72\x79\42\40\40\40\57\76\x3c\57\x74\x64\76\xd\12\x9\11\11\x3c\57\164\162\x3e";
        if (!get_option("\155\157\x5f\x6c\x64\141\160\137\x62\x70\x5f\x61\164\164\x72\151\x62\165\164\x65\137\155\x61\160\160\151\x6e\147")) {
            goto zx;
        }
        $iv = get_option("\155\x6f\x5f\x6c\144\141\x70\137\142\x70\x5f\141\x74\x74\162\x69\x62\x75\x74\145\137\155\141\x70\160\151\156\147");
        $Ze = 0;
        foreach ($iv as $ma => $id) {
            $Ze++;
            echo "\x3c\x74\162\x20\x63\154\x61\x73\163\x3d\x22\x62\160\x72\x6f\x77\x73\x22\76\xd\xa\x9\x9\x9\x9\11\11\74\164\x64\x3e\xd\xa\11\11\11\11\11\11\11\74\163\145\154\x65\143\164\40\163\164\171\x6c\145\75\x22\167\x69\x64\164\x68\72\x36\x31\x25\42\40\x6e\141\155\145\75\x22\155\x6f\137\154\x64\x61\x70\137\x62\160\137\141\x74\x74\x72\x69\x62\x75\164\145\x5f\x6b\145\x79\x5f" . $Ze . "\x22\40\x69\x64\75\x22\x6d\x6f\137\154\x64\141\x70\137\142\160\137\141\x74\164\162\151\x62\165\x74\145\137\x6b\145\171\137" . $Ze . "\42\x3e" . $this->get_buddypress_profile_fields_options($ma) . "\x3c\57\x73\145\154\145\143\x74\x3e\xd\xa\x9\11\11\x9\11\x9\74\57\x74\x64\x3e\15\xa\11\x9\11\x9\11\x9\x3c\x74\144\x20\163\x74\171\x6c\x65\75\134\42\167\x69\144\x74\150\x3a\x31\60\x30\45\73\134\x22\76\15\12\11\x9\11\11\11\x9\11\x3c\x69\156\160\x75\x74\x20\x74\171\x70\x65\x3d\x22\164\x65\170\164\x22\x20\x6e\141\x6d\145\x3d\42\155\x6f\x5f\154\x64\x61\x70\137\x62\x70\137\141\x74\164\162\x69\x62\x75\164\145\x5f\166\141\154\x75\x65\x5f" . $Ze . "\x22\40\160\x6c\x61\x63\x65\150\x6f\x6c\144\145\x72\75\x22\x45\156\164\145\x72\40\114\104\x41\x50\40\141\x74\x74\162\x69\x62\165\x74\145\x20\x6e\141\x6d\x65\42\x20\x73\x74\x79\154\145\x3d\x22\167\x69\x64\x74\150\72\x31\x30\60\45\x3b\42\40\x76\x61\x6c\165\145\75\x22" . $id . "\x22\40\x2f\76\xd\xa\11\11\x9\x9\11\11\x3c\57\x74\144\x3e\xd\12\x9\11\x9\11\74\57\x74\162\x3e";
            cy:
        }
        WJ:
        zx:
        echo "\74\163\143\162\151\160\x74\76\xd\12\11\x9\11\166\x61\x72\x20\x63\157\x75\x6e\x74\101\x74\x74\x72\x69\x62\165\x74\x65\163\102\x70\73\xd\xa\15\xa\11\x9\11\x66\165\x6e\x63\164\151\157\x6e\x20\141\144\144\137\143\x75\x73\164\157\x6d\137\141\164\x74\x72\x69\x62\165\x74\x65\137\142\x70\x28\51\173\15\12\x9\x9\11\x9\x63\157\x75\156\x74\101\x74\164\162\151\x62\x75\x74\x65\163\102\160\x20\x3d\x20\x6a\121\165\x65\x72\171\50\x22\164\162\56\x62\x70\162\157\167\x73\x22\x29\56\x6c\x65\x6e\147\164\150\x3b\xd\12\x9\x9\11\x9\150\x74\x6d\x6c\40\75\x20\42" . $this->get_buddypress_profile_fields_options() . "\42\x3b\xd\12\x9\11\11\11\x63\x6f\x75\156\164\101\x74\164\x72\x69\142\x75\x74\x65\x73\x42\160\x20\53\x3d\x20\x31\73\15\12\11\x9\11\11\15\xa\x9\11\11\11\142\x70\x72\157\x77\163\75\x22\74\164\x72\40\x69\144\75\x5c\x22\x72\157\167\x5f\x22\x20\53\x63\157\x75\x6e\x74\x41\164\164\162\x69\142\x75\164\x65\163\x42\160\x20\x2b\40\42\x5c\x22\x20\x63\x6c\141\163\163\75\134\42\142\x70\162\157\x77\163\x5c\42\76\74\x74\144\76\x3c\x73\145\154\x65\143\x74\x20\163\164\171\154\x65\x3d\134\x22\167\151\144\164\150\x3a\66\61\x25\134\42\x20\x6e\x61\155\x65\x3d\134\42\x6d\x6f\x5f\x6c\x64\x61\x70\137\x62\160\x5f\x61\x74\164\162\x69\x62\x75\x74\x65\137\x6b\145\x79\x5f\x22\x20\x2b\143\x6f\165\156\x74\x41\164\164\x72\x69\142\165\x74\145\163\x42\160\40\53\x20\42\134\42\x20\x20\x69\x64\75\134\42\x6d\x6f\x5f\x6c\x64\141\x70\137\x62\x70\137\x61\164\x74\162\151\142\x75\x74\x65\x5f\x6b\x65\x79\x5f\42\x20\53\x63\x6f\x75\156\164\x41\164\164\x72\x69\x62\165\164\145\x73\102\x70\40\x2b\x20\42\x5c\x22\x3e\42\53\150\164\155\154\x2b\x22\74\57\x73\145\154\x65\x63\x74\x3e\x3c\x2f\x74\144\x3e\74\164\x64\x20\163\x74\x79\154\145\75\134\42\x77\x69\144\164\x68\72\x31\x30\60\45\73\134\x22\x3e\74\151\156\x70\165\164\40\164\x79\160\x65\75\134\x22\x74\145\x78\164\134\42\40\x6e\141\x6d\x65\x3d\134\42\155\x6f\x5f\154\x64\141\x70\x5f\142\x70\x5f\x61\x74\164\162\151\142\x75\164\145\x5f\166\141\x6c\165\x65\137\x22\x2b\143\157\165\x6e\164\x41\x74\x74\x72\151\142\x75\164\145\163\x42\160\40\53\40\x22\134\x22\x20\x69\x64\x3d\x5c\42\x6d\157\x5f\154\144\x61\160\137\142\160\137\x61\164\x74\162\151\142\165\164\145\137\x76\x61\x6c\165\145\137\42\x20\53\x63\x6f\x75\156\x74\x41\x74\164\x72\x69\x62\x75\164\x65\163\102\160\x20\53\x20\42\134\42\x20\160\x6c\141\143\145\150\x6f\154\x64\145\162\75\x5c\x22\105\x6e\x74\x65\162\x20\114\x44\x41\120\x20\x41\x74\x74\162\151\x62\165\164\145\40\116\141\x6d\145\x5c\42\x20\163\x74\171\154\145\x3d\x5c\x22\x77\x69\x64\164\x68\72\61\60\x30\45\x3b\x5c\x22\40\x2f\76\74\x2f\x74\x64\76\x3c\x2f\164\x72\76\42\73\xd\xa\15\xa\x9\x9\x9\x9\152\x51\165\x65\x72\x79\x28\x62\x70\162\x6f\167\x73\x29\x2e\151\156\163\x65\x72\x74\x42\145\x66\157\x72\x65\x28\x6a\x51\165\x65\162\171\x28\42\x23\x73\x61\x76\x65\137\x63\157\156\x66\151\147\x5f\x65\154\x65\155\x65\156\164\42\51\51\x3b\15\xa\11\11\11\175\xd\12\xd\12\x9\x9\x9\146\x75\156\143\164\151\157\x6e\40\x72\x65\155\157\166\x65\x5f\143\165\163\164\x6f\x6d\137\x61\x74\x74\x72\151\142\x75\x74\145\137\x62\x70\50\x29\173\xd\12\x9\x9\11\x9\152\x51\165\x65\x72\x79\50\x22\x23\x72\x6f\x77\x5f\x22\40\53\x20\143\x6f\x75\156\x74\101\x74\x74\162\151\142\x75\x74\x65\163\102\x70\x29\56\x72\x65\155\x6f\x76\x65\50\x29\x3b\xd\12\x9\11\x9\x9\x63\157\x75\156\164\101\164\x74\162\151\x62\x75\x74\145\163\x42\x70\40\55\x3d\x20\61\x3b\15\xa\11\x9\x9\11\151\146\x28\x63\157\165\x6e\x74\x41\164\164\x72\x69\x62\165\164\x65\163\x42\x70\x20\x3d\75\40\x30\x29\x20\xd\12\11\x9\x9\11\11\x63\x6f\x75\x6e\164\x41\164\164\162\151\142\165\164\x65\163\x42\x70\40\75\40\61\x3b\15\12\x9\x9\x9\175\xd\12\11\11\x3c\x2f\x73\x63\x72\x69\160\164\x3e";
    }
    function get_buddypress_profile_fields_options($ma = null)
    {
        global $wpdb;
        $Im = $wpdb->prefix . "\x62\x70\137\x78\x70\162\157\146\151\x6c\145\x5f\x66\151\145\x6c\x64\x73";
        $QB = $wpdb->get_results("\x53\105\114\x45\103\124\x20\52\x20\106\x52\117\x4d\x20{$Im}\x20\127\x48\x45\122\x45\x20\160\x61\162\x65\x6e\x74\137\x69\x64\x20\75\40\60\x3b");
        $Eu = '';
        if (!empty($ma)) {
            goto dD;
        }
        foreach ($QB as $K8) {
            $Eu .= "\x3c\157\160\x74\x69\157\156\40\x76\141\154\x75\x65\x3d\x27" . $K8->name . "\47\76" . $K8->name;
            $Eu .= "\x3c\x2f\x6f\x70\x74\x69\157\x6e\76";
            Bi:
        }
        Co:
        goto df;
        dD:
        foreach ($QB as $K8) {
            $vO = $ma == $K8->name ? "\x73\x65\x6c\x65\143\x74\x65\x64" : '';
            $Eu .= "\74\157\x70\164\151\x6f\156\x20\x76\x61\154\x75\x65\x3d\x27" . $K8->name . "\x27\x20" . $vO . "\76" . $K8->name;
            $Eu .= "\74\57\157\x70\x74\151\x6f\x6e\76";
            Zs:
        }
        BD:
        df:
        return $Eu;
    }
}
new Mo_Ldap_Buddypress_Integration();

Function Calls

None

Variables

None

Stats

MD5 e4903fa0e0cb318d2b9463c404a64a73
Eval Count 0
Decode Time 162 ms