PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.7.4
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.7.4
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 1.6.8 All 40 releases
← All changes | lib/menu_log.php +25 -2 1.6.41.7.4 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') ) {
@@ -87,8 +87,9 @@
87 87 }
88 88
89 89 echo code_profiler_display_tabs( 4 );
90 90 ?>
91 +<h3><?php esc_html_e('Code Profiler log', 'code-profiler'); ?></h3>
91 92 <form name="cplogform" method="post">
92 93 <table class="form-table">
93 94 <tr>
94 95 <td width="100%">
@@ -131,9 +132,9 @@
131 132 <input id="cxdebug" type="checkbox" name="debug"<?php disabled( $debug, 0 ) ?> onClick="cpjs_filter_log();"<?php echo $disabled ?> />
132 133 <span style="display: inline-block"><?php esc_html_e('Debug', 'code-profiler') ?></span>&nbsp;
133 134 </label>
134 135 </p>
135 - <input type="submit" onclick="return cpjs_delete_log();" name="cp-delete-log" class="button-primary" value="<?php esc_attr_e('Delete log', 'code-profiler') ?>"<?php disabled( $logline, '') ?> />
136 + <input type="submit" onclick="return cpjs_delete_log();" name="cp-delete-log" class="button button-primary" value="<?php esc_attr_e('Delete log', 'code-profiler') ?>"<?php disabled( $logline, '') ?> />
136 137 <?php wp_nonce_field('cp_delete_log', 'cp_nonce', 0); ?>
137 138 <p class="description"><?php esc_html_e('The log is deleted automatically when it reaches 100KB.', 'code-profiler') ?></p>
138 139 </td>
139 140 </tr>
@@ -138,8 +139,30 @@
138 139 </td>
139 140 </tr>
140 141 </table>
141 142 </form>
143 +
144 +<h3><?php esc_html_e('HTTP response log', 'code-profiler'); ?></h3>
145 +<table class="form-table">
146 + <tr>
147 + <td width="100%">
148 + <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
149 +
150 + /**
151 + * Search for an eventual "last_request.1727412303.5681.log" file.
152 + */
153 + $file = code_profiler_glob( CODE_PROFILER_UPLOAD_DIR, '^last_request\.\d+?\.\d+?\.log$', true );
154 + if ( empty( $file[0] ) ) {
155 + echo "\n\n > " . esc_html__('The HTTP response log is empty.', 'code-profiler');
156 + } else {
157 + $log = file_get_contents( $file[0] );
158 + echo esc_textarea( $log );
159 + }
160 + ?></textarea>
161 + <p class="description"><?php esc_html_e('The log shows the HTTP 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