PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.9.6
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.9.6
1.9.6 1.9.5 1.9.4 1.9.3 trunk 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 All 41 releases
← All changes | lib/menu_log.php +24 -1 1.6.61.9.6 View file →
@@ -6,9 +6,9 @@
6 6 | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| |
7 7 | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | |
8 8 | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| |
9 9 | |
10 - | (c) Jerome Bruandet ~ https://code-profiler.com/ |
10 + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ |
11 11 +=====================================================================+
12 12 */
13 13
14 14 if (! defined('ABSPATH') ) {
@@ -17,8 +17,10 @@
17 17
18 18 // =====================================================================
19 19 // Display the profiler's log.
20 20
21 +require __DIR__.'/class-logs.php';
22 +
21 23 // Delete the log?
22 24 if (! empty( $_POST['cp-delete-log'] ) ) {
23 25 if ( empty( $_POST['cp_nonce'] ) || ! wp_verify_nonce( $_POST['cp_nonce'], 'cp_delete_log') ) {
24 26 printf(
@@ -87,8 +89,9 @@
87 89 }
88 90
89 91 echo code_profiler_display_tabs( 4 );
90 92 ?>
93 +<h3><?php esc_html_e('Code Profiler log', 'code-profiler'); ?></h3>
91 94 <form name="cplogform" method="post">
92 95 <table class="form-table">
93 96 <tr>
94 97 <td width="100%">
@@ -138,8 +141,28 @@
138 141 </td>
139 142 </tr>
140 143 </table>
141 144 </form>
145 +
146 +<h3><?php esc_html_e('HTTP response log', 'code-profiler'); ?></h3>
147 +<table class="form-table">
148 + <tr>
149 + <td width="100%">
150 + <textarea dir="auto" name="cptxtlog" class="large-text code" style="height:<?php echo $th; ?>px;" wrap="off" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><?php
151 + /**
152 + * Display the last HTTP response log.
153 + */
154 + $log = CodeProfiler_Logs::get_HTTP_log();
155 + if ( $log === false ) {
156 + echo "\n\n > " . esc_html__('The HTTP response log is empty.', 'code-profiler');
157 + } else {
158 + echo esc_textarea( $log );
159 + }
160 + ?></textarea>
161 + <p class="description"><?php esc_html_e('The log shows the HTTP request and its payload, the response headers and body for the last profile.', 'code-profiler') ?></p>
162 + </td>
163 + </tr>
164 +</table>
142 165 <?php
143 166
144 167 // =====================================================================
145 168 // EOF