| 1 |
<?php |
| 2 |
/* |
| 3 |
+=====================================================================+ |
| 4 |
| ____ _ ____ __ _ _ | |
| 5 |
| / ___|___ __| | ___ | _ \ _ __ ___ / _(_) | ___ _ __ | |
| 6 |
| | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| | |
| 7 |
| | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | | |
| 8 |
| \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| | |
| 9 |
| | |
| 10 |
| (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ | |
| 11 |
+=====================================================================+ |
| 12 |
*/ |
| 13 |
|
| 14 |
if (! defined('ABSPATH') ) { |
| 15 |
die('Forbidden'); |
| 16 |
} |
| 17 |
|
| 18 |
// ===================================================================== |
| 19 |
// Display the profiler's support page. |
| 20 |
|
| 21 |
if ( defined('CODE_PROFILER_TEXTAREA_HEIGHT') ) { |
| 22 |
$th = (int) CODE_PROFILER_TEXTAREA_HEIGHT; |
| 23 |
} else { |
| 24 |
$th = '450'; |
| 25 |
} |
| 26 |
|
| 27 |
echo code_profiler_display_tabs( 6 ); |
| 28 |
?> |
| 29 |
<br /> |
| 30 |
<p><?php esc_html_e('When contacting the support for help, please copy and paste the system information report below in your ticket:', 'code-profiler') ?></p> |
| 31 |
<table class="form-table"> |
| 32 |
<tr> |
| 33 |
<td> |
| 34 |
<textarea dir="auto" id="cp-troubleshooter" class="large-text code" style="height:<?php echo $th; ?>px;" wrap="off" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><?php |
| 35 |
require_once __DIR__ .'/class-troubleshooter.php'; |
| 36 |
new CP_Troubleshooter(); |
| 37 |
?></textarea> |
| 38 |
<p><input type="button" onClick="cpjs_copy_textarea('cp-troubleshooter')" class="button button-secondary" value="<?php esc_attr_e('Copy text', 'code-profiler') ?>" /></p> |
| 39 |
</td> |
| 40 |
</tr> |
| 41 |
</table> |
| 42 |
<?php |
| 43 |
|
| 44 |
// ===================================================================== |
| 45 |
// EOF |
| 46 |
|