C:\xampp\htdocs\landing\wp-content\plugins\autoptimize\classes\critcss-inc\admin_settings_debug.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
 * Debug panel.
 */

// Attach wpdb() object.
global $wpdb;

// Query AO's options.
$ao_options $wpdb->get_results('
  SELECT option_name  AS name,
         option_value AS value
  FROM ' 
$wpdb->options '
  WHERE option_name LIKE "autoptimize_%%"
  ORDER BY name
'
ARRAY_A);

// Query AO's transients.
$ao_trans $wpdb->get_results('
  SELECT option_name  AS name,
         option_value AS value
  FROM ' 
$wpdb->options '
  WHERE option_name LIKE "_transient_autoptimize_%%"
     OR option_name LIKE "_transient_timeout_autoptimize_%%"
'
ARRAY_A);

// Render debug panel if there's something to show.
if ( $ao_options || $ao_trans ) {
?>
<!-- BEGIN: Settings Debug -->
<ul>
    <li class="itemDetail">
        <h2 class="itemTitle"><?php _e'Debug Information''autoptimize' ); ?></h2>

        <?php
        
// Render options.
        
if ( $ao_options ) {
        
?>
            <h4><?php _e'Options''autoptimize' ); ?>:</h4>
            <table class="form-table debug">
            <?php
            
foreach ( $ao_options as $option ) {
            
?>
                <tr>
                    <th scope="row">
                        <?php echo $option['name']; ?>
                    </th>
                    <td>
                        <?php
                        
if ( 'autoptimize_ccss_queue' == $option['name'] || 'autoptimize_ccss_rules' == $option['name'] ) {
                            
$value print_rjson_decode$option['value'], true ), true );
                            if ( 
$value ) {
                                echo 
"Raw JSON:\n<pre>" $option['value'] . "</pre>\n\nDecoded JSON:\n<pre>" $value '</pre>';
                            } else {
                                echo 
'Empty';
                            }
                        } else {
                            echo 
$option['value'];
                        }
                        
?>
                    </td>
                </tr>
            <?php
            
}
            
?>
            </table>
            <hr />
            <?php
        
}
        
// Render WP-Cron intervals and scheduled events.
        
?>
        <h4><?php _e'WP-Cron Intervals''autoptimize' ); ?>:</h4>
        <pre><?php print_rwp_get_schedules() ); ?></pre>
        <hr />
        <h4><?php _e'WP-Cron Scheduled Events''autoptimize' ); ?>:</h4>
        <pre><?php print_r_get_cron_array() ); ?></pre>
    </li>
</ul>
<!-- END: Settings Debug -->
<?php
}
x

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