Constants

WARNING

WARNING = 1

ERROR

ERROR = 2

Properties

$subPages

$subPages : array

The Info page sub-pages.

Type

array — Sub pages.

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init_menu()

init_menu() 

Method init_menu()

Initiate Info subPage menu.

init_left_menu()

init_left_menu(array  $subPages = array()) 

Initiates Server Information left menu.

Parameters

array $subPages

array of subpages.

render_footer()

render_footer() 

Renders Server Information footer.

render_actions_bar()

render_actions_bar() 

Renders Server Information action bar element.

render()

render() : void

Renders Server Information page.

render_wordpress_check_tbody()

render_wordpress_check_tbody() : void

Renders WordPress checks table body.

render_php_check_tbody()

render_php_check_tbody() : void

Renders PHP checks table body.

render_mysql_check_tbody()

render_mysql_check_tbody() : void

Renders MySQL checks table body.

render_server_check_tbody()

render_server_check_tbody() : void

Renders Server checks table body.

render_dashboard_check_tbody()

render_dashboard_check_tbody() : void

Renders MainWP Dashboard checks table body.

render_extensions_license_check_tbody()

render_extensions_license_check_tbody() : void

Renders extensions API License status table body.

render_plugins_check_tbody()

render_plugins_check_tbody() : void

Renders plugins check table body.

render_quick_setup_system_check()

render_quick_setup_system_check() : void

Renders MainWP system requirements check.

get_mainwp_version_check()

get_mainwp_version_check() : mixed

Compares the detected MainWP Dashboard version agains the verion in WP.org.

Returns

mixed —

Pass|self::get_warning_html().

render_cron()

render_cron() : void

Renders the Cron Schedule page.

get_schedule_auto_update_label()

get_schedule_auto_update_label(integer  $freq) : string

Get frequency auto update to show.

Parameters

integer $freq

frequency of auto update.

Returns

string —

label of frequency.

get_schedule_next_time_to_show()

get_schedule_next_time_to_show(string  $job_freq, integer  $lasttime_run, integer  $local_timestamp) : integer

Get next time of schedule job to show.

Parameters

string $job_freq

frequency of schedule job.

integer $lasttime_run

Lasttime to run.

integer $local_timestamp

current local time.

Returns

integer —

next run time of schedule job.

check_directory_mainwp_directory()

check_directory_mainwp_directory() : boolean

Checks if the .

./wp-content/uploads/mainwp/ directory is writable.

Returns

boolean —

True if writable, false if not.

render_directory_row()

render_directory_row(string  $name, string  $check, string  $result, boolean  $passed) : boolean

Renders the directory check row.

Parameters

string $name

check name.

string $check

desired result.

string $result

detected result.

boolean $passed

true|false check result.

Returns

boolean —

true.

render_row()

render_row(string  $config, string  $compare, mixed  $version, mixed  $getter, string  $extraText = '', null  $extraCompare = null, null  $extraVersion = null, null  $whatType = null, integer  $errorType = self::WARNING) 

Renders server information table row.

Parameters

string $config

configuraion check.

string $compare

comparison operator.

mixed $version

reqiored minium version number.

mixed $getter

detected version number.

string $extraText

additionl text.

null $extraCompare

extra compare.

null $extraVersion

extra version.

null $whatType

comparison type.

integer $errorType

global variable self::WARNING = 1.

render_row_with_description()

render_row_with_description(string  $config, string  $compare, mixed  $version, mixed  $getter, string  $extraText = '', null  $extraCompare = null, null  $extraVersion = null, null  $whatType = null, integer  $errorType = self::WARNING) 

Renders server information table row with description.

Parameters

string $config

configuraion check.

string $compare

comparison operator.

mixed $version

reqiored minium version number.

mixed $getter

detected version number.

string $extraText

additionl text.

null $extraCompare

extra compare.

null $extraVersion

extra version.

null $whatType

comparison type.

integer $errorType

global variable self::WARNING = 1.

get_file_system_method_check()

get_file_system_method_check() : mixed

Checks if file system method is direct.

Returns

mixed —

html|self::get_warning_html().

render_error_log_page()

render_error_log_page() 

Renders Error Log page.

Plugin-Name: Error Log Dashboard Widget Plugin URI: http://wordpress.org/extend/plugins/error-log-dashboard-widget/ Description: Robust zero-configuration and low-memory way to keep an eye on error log. Author: Andrey "Rarst" Savchenko Author URI: http://www.rarst.net/ Version: 1.0.2 License: GPLv2 or later

Includes last_lines() function by phant0m, licensed under cc-wiki and GPLv2+

render_wp_config()

render_wp_config() : void

Renders the WP Config page.

render_action_logs()

render_action_logs() 

Renders action logs page.

render_plugin_privacy_page()

render_plugin_privacy_page() : void

Renders the Plugin Privacy page.

render_htaccess()

render_htaccess() : void

Renders .htaccess File page.

php_disabled_functions()

php_disabled_functions() : void

Checks for disable PHP Functions.

display_mainwp_options()

display_mainwp_options() : void

Renders MainWP Settings 'Options'.

get_warning_html()

get_warning_html(integer  $errorType = self::WARNING) : string

Renders PHP Warning HTML.

Parameters

integer $errorType

Global variable self::WARNING = 1.

Returns

string —

PHP Warning html.

get_pass_html()

get_pass_html() : string

Renders PHP Pass HTML.

Returns

string —

PHP Pass html.