*/ class ServerInfo_Server_Details { public function __construct() { $this->init(); } public function init() { $server_info = new ServerInfo(); $help = ''; $enabled = ' ' . esc_html__( 'Enabled', 'adminify' ) . ''; $disabled = ' ' . esc_html__( 'Disabled', 'adminify' ) . ''; $yes = ' ' . esc_html__( 'Yes', 'adminify' ) . ''; $no = ' ' . esc_html__( 'No', 'adminify' ) . ''; $entered = ' ' . esc_html__( 'Defined', 'adminify' ) . ''; $not_entered = ' ' . esc_html__( 'Not defined', 'adminify' ) . ''; $sec_key = ' ' . esc_html__( 'Please enter this security key in the wp-confiq.php file', 'adminify' ) . '!'; ?>

linfo or phpsysinfo to get more information about the web server' ); ?>.

php.ini file in the WordPress /wp-admin/ folder. Learn more about here' ); ?>.

SoapClient' ); } // DOMDocument. $fields['dom_document']['name'] = 'DOMDocument'; if ( class_exists( 'DOMDocument' ) ) { $fields['dom_document']['success'] = true; } else { $fields['dom_document']['success'] = false; /* translators: %s: DOMDocument class link */ $fields['dom_document']['note'] = sprintf( __( 'Your server does not have the %s class enabled - HTML/Multipart emails, and also some extensions, will not work without DOMDocument.', 'adminify' ), 'DOMDocument' ); } // GZIP. $fields['gzip']['name'] = 'GZip'; if ( is_callable( 'gzopen' ) ) { $fields['gzip']['success'] = true; } else { $fields['gzip']['success'] = false; /* translators: %s: gzopen function link */ $fields['gzip']['note'] = sprintf( __( 'Your server does not support the %s function - this is required to use the GeoIP database from MaxMind.', 'adminify' ), 'gzopen' ); } // Multibyte String. $fields['mbstring']['name'] = 'Multibyte String'; if ( extension_loaded( 'mbstring' ) ) { $fields['mbstring']['success'] = true; } else { $fields['mbstring']['success'] = false; /* translators: %s: mbstring functions link */ $fields['mbstring']['note'] = sprintf( __( 'Your server does not support the %s functions - this is required for better character encoding. Some fallbacks will be used instead for it.', 'adminify' ), 'mbstring' ); } foreach ( $fields as $field ) { $mark = ( !empty( $field['success'] ) ? 'yes' : 'error' ); ?>
: /
:
:
:
:
: get_wp_timezone() ) . ')'; ?>
: ' . wp_kses_post( Utils::kses_custom( $no ) ) . sprintf( wp_kses_post( 'Default timezone is %s - it should be UTC', 'adminify' ), esc_html( $default_timezone ) ) . ''; } else { echo wp_kses_post( Utils::kses_custom( $yes ) ); } ?>
:
:
:
get_server_cpu_load_percentage() ) ) . '% '; ?>
: get_cpu_load_average() ) ); ?>
: get_server_disk_size(); if ( $disk_space != 'N/A' ) { echo esc_html__( 'Total', 'adminify' ) . ': ' . esc_html( $disk_space['size'] ) . ' GB / ' . esc_html__( 'Free', 'adminify' ) . ': ' . esc_html( $disk_space['free'] ) . ' GB / ' . esc_html__( 'Used', 'adminify' ) . ': ' . esc_html( $disk_space['used'] ) . ' GB'; } else { echo esc_html( $disk_space ); } ?>
: get_server_disk_size(); if ( $disk_space != 'N/A' ) { ?>
: get_server_ram_details(); if ( $server_ram != 'N/A' ) { echo esc_html( $server_ram['MemTotal'] ) . ' GB'; } else { echo esc_html( $server_ram ); } ?>
: get_server_ram_details(); if ( $server_ram != 'N/A' ) { echo esc_html( $server_ram['MemFree'] ) . ' GB'; } else { echo esc_html( $server_ram ); } ?>
: get_server_ram_details(); if ( $server_ram != 'N/A' ) { ?>
:
: get_php_version() ) ); ?>
: get_wp_memory_limit() ) ); ?>
: get_server_memory_usage()['MemLimitGet'] == '-1' ) { ?> get_server_memory_usage()['MemUsageFormat'] ) ) . ' ' . esc_html__( 'of', 'adminify' ) . ' ' . esc_html__( 'Unlimited', 'adminify' ) . ' (-1)'; ?> get_server_memory_usage()['MemUsageFormat'] ) ) . ' ' . esc_html__( 'of', 'adminify' ) . ' ' . wp_kses_post( Utils::kses_custom( $server_info->get_server_memory_usage()['MemLimitFormat'] ) ); ?>
get_server_memory_usage()['MemUsageCalc'] ) ) . '% '; ?>
:
: convert_memory_size( ini_get( 'post_max_size' ) ) ) ); ?>
:
:
:
:
: get_cURL_version() ) ); ?>
: ' : '–' ); ?>
:
: