PluginProbe
HTTP Headers / trunk
HTTP Headers vtrunk
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 / manual.php

manual.php in HTTP Headers trunk, at views/manual.php

121 lines 3.6 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/breadcrumbs.inc.php';
6 ?>
7 <div class="hh-tabs">
8 <ul>
9 <li class="hh-active"><a href="#hh-tab-1">Apache</a></li>
10 <li><a href="#hh-tab-2">Nginx</a></li>
11 </ul>
12 <div id="hh-tab-1" class="hh-tab-active">
13 <h3><span class="hh-highlight"><?php echo esc_html(http_headers_get_htaccess_filename()); ?></span></h3>
14 <textarea class="hh-textarea-manual" rows="20" readonly><?php
15 $http_headers_lines = http_headers_apache_headers_directives();
16 if ($http_headers_lines)
17 {
18 echo esc_textarea(join("\n", $http_headers_lines));
19 echo "\n\n";
20 }
21
22 $http_headers_lines = http_headers_apache_auth_directives();
23 if ($http_headers_lines)
24 {
25 echo esc_textarea(join("\n", $http_headers_lines));
26 echo "\n\n";
27 }
28
29 $http_headers_lines = http_headers_apache_content_encoding_directives();
30 if ($http_headers_lines)
31 {
32 echo esc_textarea(join("\n", $http_headers_lines));
33 echo "\n\n";
34 }
35
36 $http_headers_lines = http_headers_apache_expires_directives();
37 if ($http_headers_lines)
38 {
39 echo esc_textarea(join("\n", $http_headers_lines));
40 echo "\n\n";
41 }
42
43 $http_headers_lines = http_headers_apache_cookie_security_directives();
44 if ($http_headers_lines)
45 {
46 echo esc_textarea(join("\n", $http_headers_lines));
47 echo "\n\n";
48 }
49
50 $http_headers_lines = http_headers_apache_timing_directives();
51 echo esc_textarea(join("\n", $http_headers_lines));
52 ?></textarea>
53 <?php
54 $http_headers_credentials = http_headers_apache_auth_credentials();
55 if ($http_headers_credentials)
56 {
57 ?>
58 <h3><span class="hh-highlight"><?php echo esc_html($http_headers_credentials['ht_file']); ?></span></h3>
59 <textarea class="hh-textarea-manual" rows="5" readonly><?php
60 echo esc_textarea($http_headers_credentials['auth']);
61 ?></textarea><?php
62 }
63 ?>
64 </div>
65 <div id="hh-tab-2" class="hh-hidden">
66 <textarea class="hh-textarea-manual" rows="20" readonly><?php
67 $http_headers_lines = http_headers_nginx_headers_directives();
68 if ($http_headers_lines)
69 {
70 echo esc_textarea(join("\n", $http_headers_lines));
71 echo "\n\n";
72 }
73
74 $http_headers_lines = http_headers_nginx_auth_directives();
75 if ($http_headers_lines)
76 {
77 echo esc_textarea(join("\n", $http_headers_lines));
78 echo "\n\n";
79 }
80
81 $http_headers_lines = http_headers_nginx_content_encoding_directives();
82 if ($http_headers_lines)
83 {
84 echo esc_textarea(join("\n", $http_headers_lines));
85 echo "\n\n";
86 }
87
88 $http_headers_lines = http_headers_nginx_expires_directives();
89 if ($http_headers_lines)
90 {
91 echo esc_textarea(join("\n", $http_headers_lines));
92 echo "\n\n";
93 }
94
95 $http_headers_lines = http_headers_nginx_cookie_security_directives();
96 if ($http_headers_lines)
97 {
98 echo esc_textarea(join("\n", $http_headers_lines));
99 echo "\n\n";
100 }
101
102 $http_headers_lines = http_headers_nginx_timing_directives();
103 if ($http_headers_lines)
104 {
105 echo esc_textarea(join("\n", $http_headers_lines));
106 echo "\n\n";
107 }
108 ?></textarea>
109 <?php
110 $http_headers_credentials = http_headers_nginx_auth_credentials();
111 if ($http_headers_credentials)
112 {
113 ?>
114 <h3><span class="hh-highlight"><?php echo esc_html($http_headers_credentials['ht_file']); ?></span></h3>
115 <textarea class="hh-textarea-manual" rows="5" readonly><?php
116 echo esc_textarea($http_headers_credentials['auth']);
117 ?></textarea><?php
118 }
119 ?>
120 </div>
121 </div>