Server IP : 104.21.14.48 / Your IP : 3.147.7.215 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/chroot/var/www/wp-content/plugins/defender-security/src/behavior/ |
Upload File : |
<?php namespace WP_Defender\Behavior; use Calotes\Component\Behavior; use WP_Defender\Traits\IO; use WP_Defender\Traits\Formats; use WP_Defender\Traits\Defender_Dashboard_Client; use WP_Defender\Traits\Defender_Hub_Client; use WP_Defender\Behavior\WPMUDEV_Const_Interface; /** * This class contains everything relate to WPMUDEV. * Class WPMUDEV * * @package WP_Defender\Behavior * @since 2.2 */ class WPMUDEV extends Behavior implements WPMUDEV_Const_Interface { use IO; use Formats; use Defender_Dashboard_Client; use Defender_Hub_Client; /** * Get membership status. * * @return bool */ public function is_pro() { return false; } /** * Get WPMUDEV API KEY. * * @return bool|string */ public function get_apikey() { if ( ! class_exists( '\WPMUDEV_Dashboard' ) ) { return false; } \WPMUDEV_Dashboard::instance(); $membership_status = \WPMUDEV_Dashboard::$api->get_membership_data(); $key = \WPMUDEV_Dashboard::$api->get_key(); if ( ! empty( $membership_status['hub_site_id'] ) && ! empty( $key ) ) { return $key; } return false; } /** * @since 2.5.5 Use Whitelabel filters instead of calling the whitelabel functions directly. * @return bool */ public function is_whitelabel_enabled() { return false; } /** * Hide WPMU DEV urls for the current user if: * 1) Whitelabel option is enabled, * 2) the user is not listed in WPMU DEV > Settings > Permissions. * * @return bool * @since 4.1.0 */ public function hide_wpmu_dev_urls(): bool { return false; } /** * Show support links if: * plugin version isn't Free, * Whitelabel is disabled. * * @return bool * @since 2.5.5 */ public function show_support_links() { return false; } }