| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
include dirname(__FILE__) . '/includes/config.inc.php'; |
| 6 |
include dirname(__FILE__) . '/includes/breadcrumbs.inc.php'; |
| 7 |
?> |
| 8 |
<section class="hh-panel"> |
| 9 |
<h3><span class="hh-highlight"><?php esc_html_e('Inspect headers', 'http-headers'); ?></span></h3> |
| 10 |
<p><?php esc_html_e("Use this tool to inspect the HTTP headers of your website or your competitor's website.", 'http-headers'); ?></p> |
| 11 |
<div class="form-wrap"> |
| 12 |
<form action="<?php echo esc_attr(admin_url('admin-ajax.php')); ?>" method="get" id="frmIspect"> |
| 13 |
<?php wp_nonce_field('inspect'); ?> |
| 14 |
<input type="hidden" name="action" value="inspect"> |
| 15 |
<div class="form-row"> |
| 16 |
<div class="form-field form-col-6"> |
| 17 |
<label class="form-label">URL:</label> |
| 18 |
<input type="text" name="url" size="40" placeholder="<?php echo esc_attr(home_url('/')); ?>" value="<?php echo esc_attr(home_url('/')); ?>"> |
| 19 |
</div> |
| 20 |
<div class="form-field form-col-6"> |
| 21 |
<label class="form-label"> </label> |
| 22 |
<label><input type="checkbox" name="authentication" id="authentication"><?php esc_html_e('Authentication', 'http-headers'); ?></label> |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
<div id="box-authentication" style="display: none"> |
| 26 |
<div class="form-row"> |
| 27 |
<div class="form-field form-col-6"> |
| 28 |
<label class="form-label" for="username"><?php esc_html_e('Username', 'http-headers'); ?>:</label> |
| 29 |
<input type="text" name="username"> |
| 30 |
</div> |
| 31 |
<div class="form-field form-col-6"> |
| 32 |
<label class="form-label" for="password"><?php esc_html_e('Password', 'http-headers'); ?>:</label> |
| 33 |
<input type="text" name="password"> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
<?php submit_button(__('Inspect', 'http-headers')); ?> |
| 38 |
</form> |
| 39 |
</div> |
| 40 |
</section> |
| 41 |
|
| 42 |
<div id="hh-result"></div> |