PluginProbe
HTTP Headers / 1.14.0
HTTP Headers v1.14.0
1.19.5 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.12.0 1.12.1 1.12.2 1.13.0 1.13.1 1.13.2 1.13.3 1.13.4 1.14.0 1.14.1 1.14.2 1.15.0 All 60 releases
http-headers / views / advanced.php

advanced.php in HTTP Headers 1.14.0, at views/advanced.php

79 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 <form method="post" action="options.php">
10 <table class="form-table hh-table">
11 <tbody>
12 <tr valign="top">
13 <th scope="row"><?php _e('Default mode', 'http-headers'); ?>
14 <p class="description"><?php _e('Choose a method for sending of headers. Usually, the PHP method works perfectly. However, some third-party plugins like WP Super Cache may require switching to Apache method.', 'http-headers'); ?></p>
15 </th>
16 <td>&nbsp;</td>
17 <td>
18 <fieldset>
19 <?php settings_fields( 'http-headers-mtd' ); ?>
20 <?php do_settings_sections( 'http-headers-mtd' ); ?>
21 <?php
22 $items = array(
23 'php' => __('Use PHP to send headers (deprecated)', 'http-headers'),
24 'htaccess' => __('Use Apache (mod_headers) to send headers', 'http-headers'),
25 );
26 $method = get_option('hh_method');
27 foreach ($items as $key => $val) {
28 ?><p><label><input type="radio" name="hh_method" value="<?php echo $key; ?>"<?php checked($method, $key, true); ?>><?php echo $val; ?></label></p><?php
29 }
30 ?>
31 </fieldset>
32 </td>
33 </tr>
34 </tbody>
35 </table>
36 <?php submit_button(); ?>
37 </form>
38 </section>
39 <section class="hh-panel">
40 <table class="form-table hh-table">
41 <tbody>
42 <tr valign="top">
43 <th scope="row"><?php _e('Export', 'http-headers'); ?>
44 <p class="description"><?php _e('Export the plugin current state of settings for later use if recovery needs.', 'http-headers'); ?></p>
45 </th>
46 <td>&nbsp;</td>
47 <td>
48 <fieldset>
49 <form method="post" action="<?php echo admin_url('admin-post.php'); ?>" target="_blank">
50 <?php wp_nonce_field('export'); ?>
51 <input type="hidden" name="action" value="export">
52 <button type="submit" class="button button-primary"><?php _e('Export settings', 'http-headers'); ?></button>
53 </form>
54 </fieldset>
55 </td>
56 </tr>
57 <tr valign="top">
58 <th scope="row"><?php _e('Import', 'http-headers'); ?>
59 <p class="description"><?php _e('Import a previously saved state of settings.', 'http-headers'); ?></p>
60 </th>
61 <td>&nbsp;</td>
62 <td>
63 <fieldset>
64 <form method="post" action="<?php echo admin_url('admin-post.php'); ?>" enctype="multipart/form-data">
65 <?php wp_nonce_field('import'); ?>
66 <input type="hidden" name="action" value="import">
67 <input type="file" name="file" id="hh-import-file" class="hh-hidden">
68 <div class="button-group">
69 <button type="button" class="button hh-btn-import-choose"><?php _e('Choose file...', 'http-headers'); ?></button>
70 <button type="submit" class="button button-primary"><?php _e('Import settings', 'http-headers'); ?></button>
71 </div>
72 <p id="hh-import-name"></p>
73 </form>
74 </fieldset>
75 </td>
76 </tr>
77 </tbody>
78 </table>
79 </section>