C:\xampp\htdocs\landing\wp-content\plugins\better-wp-security\core\modules\global\logs.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
52
<?php

/**
 * Class ITSEC_Global_Logs
 */
class ITSEC_Global_Logs {

    public function 
__construct() {
        
add_filter'itsec_logs_prepare_core_entry_for_list_display', array( $this'filter_entry_for_list_display' ), 10);
        
add_filter'itsec_logs_prepare_core_entry_for_details_display', array( $this'filter_entry_for_details_display' ), 10);
        
add_filter'itsec_logs_prepare_core_filter_row_action_for_code', array( $this'code_row_action' ), 10);
    }

    public function 
filter_entry_for_list_display$entry$code$data ) {
        
$entry['module_display'] = esc_html__'Core''better-wp-security' );


        if ( 
$description $this->get_description$entry$code$data ) ) {
            
$entry['description'] = $description;
        }

        return 
$entry;
    }

    public function 
filter_entry_for_details_display$details$entry$code$code_data ) {
        
$details['module']['content'] = esc_html__'Core''better-wp-security' );

        if ( 
$description $this->get_description$entry$code$code_data ) ) {
            
$details['description']['content'] = $description;
        }

        return 
$details;
    }

    public function 
code_row_action$vars$entry$code$data ) {

        return 
$vars;
    }

    private function 
get_description$entry$code$data ) {
        switch ( 
$code ) {
            case 
'itsec-config-file-update-empty':
                list( 
$type ) = $data;

                return 
sprintfesc_html__'Empty file encountered when attempting to update %s config file.''better-wp-security' ), '<code>' esc_html$type ) . '</code>' );
        }

        return 
null;
    }
}

new 
ITSEC_Global_Logs();
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586