\MainWP\DashboardMainWP_Server_Information_Handler

Class MainWP Server_Information_Handler

Summary

Methods
Properties
Constants
get_class_name()
get_current_version()
get_mainwp_version()
check_if_multisite()
filesize_compare()
curlssl_compare()
get_file_system_method()
get_loaded_php_extensions()
get_wordpress_memory_limit()
get_curl_version()
get_curl_ssl_version()
get_wordpress_version()
get_ssl_support()
get_ssl_warning()
get_openssl_working_status()
is_openssl_config_warning()
get_curl_support()
get_curl_timeout()
get_php_version()
get_max_execution_time()
get_max_input_time()
get_upload_max_filesize()
get_post_max_size()
get_mysql_version()
get_php_memory_limit()
get_os()
get_architecture()
memory_usage()
get_output_buffer_size()
get_php_safe_mode()
get_sql_mode()
get_php_allow_url_fopen()
get_php_exif()
get_php_iptc()
get_php_xml()
get_server_gateway_interface()
get_server_ip()
get_server_name()
get_server_software()
is_apache_server_software()
get_server_protocol()
get_server_request_time()
get_server_http_accept()
get_server_accept_charset()
get_http_host()
get_complete_url()
get_user_agent()
get_https()
server_self_connect()
get_remote_address()
get_remote_host()
get_remote_port()
get_script_file_name()
get_server_port()
get_current_page_uri()
get_wp_root()
time_compare()
last_lines()
mainwp_options()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Gets Class Name.

Returns

string —

CLASS

get_current_version()

get_current_version() : mixed

Gets current MainWP Plugin version.

Returns

mixed —

$currentVersion verion number/

get_mainwp_version()

get_mainwp_version() : mixed

Gets current MainWP Dashboard version.

Returns

mixed —

false|version

check_if_multisite()

check_if_multisite() : boolean

Checks if WP environment is Mutisilte or not.

Returns

boolean —

true|false.

filesize_compare()

filesize_compare(mixed  $value1, mixed  $value2, null  $operator = null) : mixed

Compares filesize.

Parameters

mixed $value1

First file size.

mixed $value2

Second file size.

null $operator

Comparison operator.

Returns

mixed —

version_compare() value.

curlssl_compare()

curlssl_compare(mixed  $version, null  $operator) : mixed

Compares cURL SSL Version.

Parameters

mixed $version

CURL SSL version number.

null $operator

Comparison operator.

Returns

mixed —

false|version

get_file_system_method()

get_file_system_method() : string

Gets file system method.

Returns

string —

$fs File System Method.

get_loaded_php_extensions()

get_loaded_php_extensions() 

Gets loaded PHP Extensions.

get_wordpress_memory_limit()

get_wordpress_memory_limit() : mixed

Gets the WP_MEMORY_LIMIT value.

Returns

mixed —

WP_MEMORY_LIMIT WordPress Memmory Limit.

get_curl_version()

get_curl_version() : mixed

Method get_curl_version()

Get current cURL Version.

Returns

mixed —

$curlversion['version'] Currently installed cURL Version.

get_curl_ssl_version()

get_curl_ssl_version() : mixed

Method get_curl_ssl_version()

Get current SSL Version installed.

Returns

mixed —

$curlversion['ssl_version'] Currently installed SSL version.

get_wordpress_version()

get_wordpress_version() : mixed

Method get_wordpress_version()

Get current WordPress Version

Returns

mixed —

$wp_version Current installed WordPress version

get_ssl_support()

get_ssl_support() : mixed

Method get_ssl_support()

Get SSL Support.

Returns

mixed —

Open SSL Extentions loaded.

get_ssl_warning()

get_ssl_warning() : string

Method get_ssl_warning()

Get any SSL Warning Messages.

Returns

string —

SSL Error message.

get_openssl_working_status()

get_openssl_working_status() : boolean

To verify openssl working.

Returns

boolean —

Working status.

is_openssl_config_warning()

is_openssl_config_warning() : boolean

Method is_openssl_config_warning()

Check if open ssl is configured correctly.

Returns

boolean —

true|false.

get_curl_support()

get_curl_support() : string

Method get_curl_support()

Get cURL Version.

Returns

string —

cURL Version.

get_curl_timeout()

get_curl_timeout() : string

Method get_curl_timeout()

Get cURL_Timeout value.

Returns

string —

cURL_Timeout value.

get_php_version()

get_php_version() : string

Method get_php_version()

Get PHP Version.

Returns

string —

phpversion().

get_max_execution_time()

get_max_execution_time() : string

Method get_max_execution_time()

Get MAX_EXECUTION_TIME.

Returns

string —

MAX_EXECUTION_TIME.

get_max_input_time()

get_max_input_time() : string

Method get_max_execution_time()

Get MAX_INPUT_TIME.

Returns

string —

MAX_EXECUTION_TIME.

get_upload_max_filesize()

get_upload_max_filesize() : string

Method get_max_execution_time()

Get MAX_UPLOAD_FILESIZE.

Returns

string —

MAX_UPLOAD_FILESIZE.

get_post_max_size()

get_post_max_size() : string

Method get_max_execution_time()

Get MAX_POST_SIZE.

Returns

string —

MAX_POST_SIZE.

get_mysql_version()

get_mysql_version() : string

Method get_mysql_version()

Get MySql Version.

Returns

string —

MySQL Version.

get_php_memory_limit()

get_php_memory_limit() : string

Method get_php_memory_limit()

Get PHP_MEMORY_LIMIT.

Returns

string —

PHP_MEMORY_LIMIT.

get_os()

get_os(boolean  $return_value = false) : mixed

Method get_os()

Get Host OS.

Parameters

boolean $return_value

= false.

Returns

mixed —

PHP_OS.

get_architecture()

get_architecture() 

Method get_architecture()

Get PHP_INT_SIZE * 8bit.

memory_usage()

memory_usage() 

Method memory_usage()

Get currently used memory.

get_output_buffer_size()

get_output_buffer_size() : string

Method get_output_buffer_size()

Get putput buffer size.

Returns

string —

Current output buffer Size.

get_php_safe_mode()

get_php_safe_mode() : boolean

Method get_php_safe_mode()

Get PHP Safe Mode.

Returns

boolean —

true|false.

get_sql_mode()

get_sql_mode() 

Method get_sql_mode()

Get SQL Mode.

get_php_allow_url_fopen()

get_php_allow_url_fopen() 

Checks if PHP url fopen is allowed.

get_php_exif()

get_php_exif() 

Method get_php_exif()

Check if PHP Exif is enabled.

get_php_iptc()

get_php_iptc() 

Method get_php_iptc()

Check if iptcparse is enabled.

get_php_xml()

get_php_xml() 

Method get_php_xml()

Check if PHP XML Parser is enabled.

get_server_gateway_interface()

get_server_gateway_interface() 

Method get_server_gateway_interface()

Get server gateway interface.

get_server_ip()

get_server_ip() 

Method get_server_ip()

Get server IP address.

get_server_name()

get_server_name(boolean  $return_value = false) : string

Method get_server_name()

Get server name.

Parameters

boolean $return_value

Return or not.

Returns

string —

$_SERVER['SERVER_NAME'].

get_server_software()

get_server_software(boolean  $return_value = false) : string

Method get_server_software()

Get server software.

Parameters

boolean $return_value

Return or not.

Returns

string —

$_SERVER['SERVER_SOFTWARE'].

is_apache_server_software()

is_apache_server_software() : boolean

Method is_apache_server_software()

Check if server software is apache.

Returns

boolean —

True|false.

get_server_protocol()

get_server_protocol() 

Gets server protocol.

get_server_request_time()

get_server_request_time() 

Gets server request time.

get_server_http_accept()

get_server_http_accept() 

Gets server HTTP accept.

get_server_accept_charset()

get_server_accept_charset() 

Gets server accepted character set.

get_http_host()

get_http_host() 

Gets HTTP host.

get_complete_url()

get_complete_url() 

Gets complete URL.

get_user_agent()

get_user_agent() 

Gets user agent.

get_https()

get_https() 

Checks if HTTPS is enabled.

server_self_connect()

server_self_connect() 

Method server_self_connect()

Check if server self-connect is possible.

get_remote_address()

get_remote_address() 

Gets server remote address.

get_remote_host()

get_remote_host() 

Gets server remote host.

get_remote_port()

get_remote_port() 

Gets server remote port.

get_script_file_name()

get_script_file_name() 

Gets server script filename.

get_server_port()

get_server_port() 

Method get_server_port()

Get server port.

get_current_page_uri()

get_current_page_uri() 

Method get_current_page_uri()

Get current page URI.

get_wp_root()

get_wp_root() 

Method get_wp_root()

Get WP Root Path.

time_compare()

time_compare(mixed  $a, mixed  $b) 

Compares time.

Parameters

mixed $a

first time to compare.

mixed $b

second time to compare.

last_lines()

last_lines(mixed  $path, integer  $line_count, integer  $block_size = 512) : string

Gets line count.

Parameters

mixed $path

the error log file location.

integer $line_count

number of lines in the error log.

integer $block_size

block size.

Returns

string —

Line Count.

mainwp_options()

mainwp_options() : array

Gets MainWP Set Options.

Returns

array —

$options_value MainWP Options array.