| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/ninja-forms/deprecated/includes/classes/ |
Upload File : |
<?php if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Debug/Status page
*
* @author Patrick Rauland
* @category Admin
* @since 2.2.50
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'NF_System_Status' ) ) :
/**
* NF_System_Status Class
*/
class NF_System_Status {
/**
* Initializes the class
*/
public function __construct(){
// register the system status page
add_action('admin_init', array($this, 'ninja_forms_register_tab_system_status'));
}
/**
* Handles output of the reports page in admin.
*/
public function ninja_forms_register_tab_system_status(){
// include the file
require_once( NINJA_FORMS_DIR . "/includes/admin/pages/system-status.php" );
// add the arugements
$args = array(
'name' => __( 'Ninja Forms System Status', 'ninja-forms' ),
'page' => 'ninja-forms-system-status',
'display_function' => 'ninja_forms_tab_system_status',
'save_function' => '',
'show_save' => false,
);
// register the tab
ninja_forms_register_tab('system_status', $args);
}
}
endif;
return new NF_System_Status();