/var/www/(Del)hsihk.com/wp-content/plugins/ninja-forms/includes/classes/class-nf-system-status.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
 * 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();