/var/www/hkosl.com/aga/wp-content/plugins/foogallery/freemius/templates/debug/logger.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
    
/**
     * @package     Freemius
     * @copyright   Copyright (c) 2015, Freemius, Inc.
     * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
     * @since       1.1.7.3
     */

    
if ( ! defined'ABSPATH' ) ) {
        exit;
    }

    
$log_book FS_Logger::get_log();
?>
<h1><?php fs_echo_inline'Log' ?></h1>

<table class="widefat" style="font-size: 11px;">
    <thead>
    <tr>
        <th>#</th>
        <th><?php fs_esc_html_echo_inline'ID''id' ?></th>
        <th><?php fs_esc_html_echo_inline'Type' ?></th>
        <th><?php fs_esc_html_echo_inline'Function' ?></th>
        <th><?php fs_esc_html_echo_inline'Message' ?></th>
        <th><?php fs_esc_html_echo_inline'File' ?></th>
        <th><?php fs_esc_html_echo_inline'Timestamp' ?></th>
    </tr>
    </thead>
    <tbody>

    <?php $i 0;
        foreach ( 
$log_book as $log ) : ?>
            <?php
            
/**
             * @var FS_Logger $logger
             */
            
$logger $log['logger'];
            
?>
            <tr<?php if ( $i ) {
                echo 
' class="alternate"';
            } 
?>>
                <td><?php echo $log['cnt'?>.</td>
                <td><?php echo $logger->get_id() ?></td>
                <td><?php echo $log['log_type'?></td>
                <td><b><code style="color: blue;"><?php echo ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'?></code></b></td>
                <td>
                    <?php
                        printf
(
                            
'<a href="#" style="color: darkorange !important;" onclick="jQuery(this).parent().find(\'div\').toggle(); return false;"><nobr>%s</nobr></a>',
                            
esc_htmlsubstr$log['msg'], 032 ) ) . ( 32 strlen$log['msg'] ) ? '...' '' )
                        );
                    
?>
                    <div style="display: none;">
                        <b style="color: darkorange;"><?php echo esc_html$log['msg'] ) ?></b>
                    </div>
                </td>
                <td><?php
                        
if ( isset( $log['file'] ) ) {
                            echo 
substr$log['file'], $logger->get_file() ) . ':' $log['line'];
                        }
                    
?></td>
                <td><?php echo number_format100 * ( $log['timestamp'] - WP_FS__SCRIPT_START_TIME ), ) . ' ' fs_text_x_inline'ms''milliseconds' ?></td>
            </tr>
            <?php $i ++; endforeach ?>
    </tbody>
</table>