d938b43a03a3aa5f189a521fe9dc02599a3a3a98
[privoxy.git] / templates / show-status
1 ##########################################################
2 #
3 # Show-Status-CGI Output template for Privoxy.
4 #
5 # USING HTML TEMPLATES:
6 # ---------------------
7 #
8 # Template files are written win plain HTML, with a few
9 # additions:
10 #
11 # - Lines that start with a '#' character like this one
12 #   are ignored
13 #
14 # - Each item in the below list of exported symbols will
15 #   be replaced by dynamically generated text, if they
16 #   are enclosed in '@'-characters. E.g. The string @version@
17 #   will be replaced by the version number of Privoxy.
18 #
19 # - One special application of this is to make whole blocks
20 #   of the HTML template disappear if the condition <name>
21 #   is not given. Simply enclose the block between the two
22 #   strings @if-<name>start and if-<name>-end@. The strings
23 #   should be placed in HTML comments (<!-- -->), so the
24 #   html structure won't be messed when the magic happens.
25 #
26 # USABLE SYMBOLS IN THIS TEMPLATE:
27 # --------------------------------
28 #
29 #  my-ip-addr:
30 #    The IP-address that the client used to reach Privoxy
31 #  my-hostname:
32 #    The hostname associated with my-ip-addr
33 #  admin-address:
34 #    The email address of the Privoxy administrator, as configured
35 #    in the config file
36 #  default-cgi:
37 #    The URL for the "main menu" builtin CGI of Privoxy
38 #  menu:
39 #    List of <li> elements linking to the other available CGIs
40 #  version:
41 #    The Privoxy version number
42 #  code-status:
43 #    The Privoxy development status: "alpha", "beta", or "stable".
44 #  homepage:
45 #    The URL of the Privoxy project, which maintains this software.
46 #
47 #  redirect-url:
48 #    The URL to a script that will redirect to the Privoxy
49 #    documentation for a given item
50 #  invocation:
51 #    The command line with which Privoxy was invoked
52 #  options:
53 #    The options read from the configfile, linked to their
54 #    explanations, plus warnings if parsing acl or forward
55 #    statements produced errors.
56 #  sourceversions:
57 #    A HTML-formatted list of the individual source file cvs versions
58 #  defines:
59 #    A HTML-formatted list of all conditional #defines used when
60 #    Privoxy was compiled
61 #
62 #
63 # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
64 # ------------------------------------------------------------------
65 #
66 #  unstable:
67 #    This is an alpha or beta Privoxy release
68 #  have-adminaddr-info:
69 #    An e-mail address for the local Privoxy administrator has
70 #    been specified and is available through the "admin-address"
71 #    symbol
72 #  have-proxy-info:
73 #    A URL for Privoxy's online documentation has been
74 #    specified and is available through the "proxy-info-url"
75 #    symbol
76 #  have-help-info:
77 #    If either have-proxy-info is true or have-adminaddr-info is
78 #    true, have-help-info is true.  Used to conditionally include
79 #    a grey box for any and all help info.
80 #  statistics:
81 #    Privoxy was compiled with statistics support
82 #  have-stats:
83 #    There have been previous requests and statistics have
84 #    been collected. In this case, the following symbols
85 #    are available:
86 #    requests-received:
87 #      The number of requests received so far
88 #    requests-blocked:
89 #      The number of request blocked so far
90 #    percent-blocked:
91 #      The percentage of blocked requests
92 #  have-no-stats:
93 #    There haven't any statistics been collected yet
94 #  pcrs-support:
95 #    Privoxy was compiled with pcrs support
96 #  trust-support:
97 #    Privoxy was compiled with trust support
98 #  actions-filenames:
99 #    The path to the actions files.
100 #  re-filter-filenames:
101 #    The path to the re_filter files. Only available if
102 #    pcrs-support is set
103 #  trust-filename:
104 #    The path to the trust file. Only available if
105 #    trust-support is set
106 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
107 <html>
108
109 <head>
110   <title>Privoxy@@my-hostname@: Proxy Status</title>
111   <meta http-equiv="Content-Style-Type" content="text/css">
112   <meta http-equiv="Content-Script-Type" content="text/javascript">
113   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
114   <meta name="robots" content="noindex,nofollow">
115   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
116   <link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
117 </head>
118
119 <body>
120
121   <table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
122     <tr>
123       <td class="title">
124
125 #include mod-title
126
127       </td>
128     </tr>
129
130 <!-- @if-unstable-start -->
131 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
132     <tr>
133       <td class="warning">
134
135 #include mod-unstable-warning
136
137       </td>
138     </tr>
139 <!-- if-unstable-end@ -->
140
141     <tr>
142       <td class="box">
143         <h2>The following files are in use:</h2>
144         <table summary="Action, filter and trust files in use." class="transparent">
145           <tr>
146             <th colspan="2"><a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">Actions Files:</a></th>
147           </tr>
148             @actions-filenames@
149           <tr>
150             <th colspan="2"><a href="@user-manual@filter-file.html">Filter Files:</a></th>
151           </tr>
152             @re-filter-filenames@
153 <!-- @if-trust-support-start -->
154           <tr>
155             <th colspan="2"><a href="@user-manual@config.html#TRUSTFILE">Trust File:</a></th>
156           </tr>
157           <tr>
158             <td>
159               @trust-filename@
160             </td>
161             <td class="buttons">
162               <!-- @if-have-trustfile-start -->
163               <a href="show-status?file=trust">View</a>
164               <!-- if-have-trustfile-end@ -->
165             </td>
166           </tr>
167 <!-- if-trust-support-end@ -->
168         </table>
169 <!-- @if-cgi-editor-is-disabled-start -->
170         <p>
171           The CGI editor is currently disabled, thus no edit buttons are shown.<br>
172           Please have a look at the
173            <a href="@user-manual@config.html#ENABLE-EDIT-ACTIONS">enable-edit-actions documentation</a>
174           to learn how to enable it and what the risks are.
175         </p>
176 <!--  if-cgi-editor-is-disabled-end@ -->
177       </td>
178     </tr>
179
180     <tr>
181       <td class="box">
182         <h2>Privoxy was <a href="@user-manual@startup.html#CMDOPTIONS">invoked</a> as follows:</h2>
183         <p>@invocation@</p>
184       </td>
185     </tr>
186
187     <tr>
188       <td class="box">
189         <h2>The following options were given in the <a href="@user-manual@config.html">config file</a>:</h2>
190         <p>@options@</p>
191       </td>
192     </tr>
193
194 <!-- @if-statistics-start -->
195     <tr>
196       <td class="box">
197         <h2>Blocking Statistics:</h2>
198         <p>
199   <!-- @if-have-stats-start -->
200           @requests-blocked@ out of @requests-received@ requests have been blocked,
201           which equals a block rate of @percent-blocked@%.
202         </p>
203         <p>
204           <strong>Note that the statistics currently don't work properly for
205           reused connections where only the last request gets counted.
206           You may want to look into Privoxy-Log-Parser's --statistics option,
207           which doesn't have this limitation.</strong>
208 <!-- if-have-stats-end@ -->
209 <!-- @if-have-no-stats-start -->
210           There haven't been any requests so far.
211 <!-- if-have-no-stats-end@ -->
212         </p>
213       </td>
214     </tr>
215 <!-- if-statistics-end@ -->
216
217     <tr>
218       <td class="box">
219         <h2>Conditional #defines:</h2>
220           <table summary="The state of some ./configure options and what they do." border="1" style="margin-left: 10px">
221             <tr>
222               <th>#define</th> <th>Enabled?</th> <th>Effects when enabled</th>
223             </tr>
224
225             <tr>
226               <td><code>FEATURE_64_BIT_TIME_T</code></td>
227               <td>@if-FEATURE_64_BIT_TIME_T-then@ Yes @else-not-FEATURE_64_BIT_TIME_T@ No @endif-FEATURE_64_BIT_TIME_T@</td>
228               <td>Dates before 1970 and after 2038 are (hopefully) supported.</td>
229             </tr>
230             <tr>
231               <td><code>FEATURE_ACCEPT_FILTER</code></td>
232               <td>@if-FEATURE_ACCEPT_FILTER-then@ Yes @else-not-FEATURE_ACCEPT_FILTER@ No @endif-FEATURE_ACCEPT_FILTER@</td>
233               <td>Support for FreeBSD's accf_http(9) which is also available on some other BSDs.</td>
234             </tr>
235             <tr>
236               <td><code>FEATURE_ACL</code></td>
237               <td>@if-FEATURE_ACL-then@ Yes @else-not-FEATURE_ACL@ No @endif-FEATURE_ACL@</td>
238               <td>Allows the use of an ACL to control access to Privoxy by IP address.</td>
239             </tr>
240             <tr>
241               <td><code>FEATURE_CGI_EDIT_ACTIONS</code></td>
242               <td>@if-FEATURE_CGI_EDIT_ACTIONS-then@ Yes @else-not-FEATURE_CGI_EDIT_ACTIONS@ No @endif-FEATURE_CGI_EDIT_ACTIONS@</td>
243               <td>Allows the use of the @if-FEATURE_CGI_EDIT_ACTIONS-then@<a
244                  href="@default-cgi@edit-actions">@else-not-FEATURE_CGI_EDIT_ACTIONS@
245                  @endif-FEATURE_CGI_EDIT_ACTIONS@web-based actions file
246                  editor@if-FEATURE_CGI_EDIT_ACTIONS-then@</a>@else-not-FEATURE_CGI_EDIT_ACTIONS@@endif-FEATURE_CGI_EDIT_ACTIONS@.</td>
247             </tr>
248             <tr>
249               <td><code>FEATURE_CLIENT_TAGS</code></td>
250               <td>@if-FEATURE_CLIENT_TAGS-then@ Yes @else-not-FEATURE_CLIENT_TAGS@ No @endif-FEATURE_CLIENT_TAGS@</td>
251               <td>
252                Allows clients to request to be tagged.
253               </td>
254             </tr>
255             <tr>
256               <td><code>FEATURE_COMPRESSION</code></td>
257               <td>@if-FEATURE_COMPRESSION-then@ Yes @else-not-FEATURE_COMPRESSION@ No @endif-FEATURE_COMPRESSION@</td>
258               <td>
259                Allows to compress buffered content before sending it to the client, assuming the client supports it.
260               </td>
261             </tr>
262             <tr>
263               <td><code>FEATURE_CONNECTION_KEEP_ALIVE</code></td>
264               <td>@if-FEATURE_CONNECTION_KEEP_ALIVE-then@ Yes @else-not-FEATURE_CONNECTION_KEEP_ALIVE@ No @endif-FEATURE_CONNECTION_KEEP_ALIVE@</td>
265               <td>
266                Allows to send multiple request through the same connections if the server supports it.
267                Requires the keep-alive-timeout config directive to be set.
268               </td>
269             </tr>
270             <tr>
271               <td><code>FEATURE_CONNECTION_SHARING</code></td>
272               <td>@if-FEATURE_CONNECTION_SHARING-then@ Yes @else-not-FEATURE_CONNECTION_SHARING@ No @endif-FEATURE_CONNECTION_SHARING@</td>
273               <td>
274                Allows to share outgoing connections between incoming connections.
275                Requires the connection-sharing config directive to be set.
276               </td>
277             </tr>
278             <tr>
279               <td><code>FEATURE_DYNAMIC_PCRE</code></td>
280               <td>@if-FEATURE_DYNAMIC_PCRE-then@ Yes @else-not-FEATURE_DYNAMIC_PCRE@ No @endif-FEATURE_DYNAMIC_PCRE@</td>
281               <td>Dynamically link to the PCRE library. This is set automatically
282                by <code>./configure</code> if you do not have libpcre installed.
283                Dynamically linking to an external libpcre is recommended as the one that is distributed
284                with Privoxy itself is outdated and lacks various features and bug-fixes you may be interested in.</td>
285             </tr>
286             <tr>
287               <td><code>FEATURE_FAST_REDIRECTS</code></td>
288               <td>@if-FEATURE_FAST_REDIRECTS-then@ Yes @else-not-FEATURE_FAST_REDIRECTS@ No @endif-FEATURE_FAST_REDIRECTS@</td>
289               <td>Allows the +fast-redirects action, to bypass redirect and logging scripts.</td>
290             </tr>
291             <tr>
292               <td><code>FEATURE_FORCE_LOAD</code></td>
293               <td>@if-FEATURE_FORCE_LOAD-then@ Yes @else-not-FEATURE_FORCE_LOAD@ No @endif-FEATURE_FORCE_LOAD@</td>
294               <td>Allows bypassing all filtering for a single page using the prefix
295                   <q><code>@force-prefix@</code></q>.</td>
296             </tr>
297             <tr>
298               <td><code>FEATURE_GRACEFUL_TERMINATION</code></td>
299               <td>@if-FEATURE_GRACEFUL_TERMINATION-then@ Yes @else-not-FEATURE_GRACEFUL_TERMINATION@ No @endif-FEATURE_GRACEFUL_TERMINATION@</td>
300               <td>Allows to shutdown Privoxy through the web interface.</td>
301             </tr>
302             <tr>
303               <td><code>FEATURE_IMAGE_BLOCKING</code></td>
304               <td>@if-FEATURE_IMAGE_BLOCKING-then@ Yes @else-not-FEATURE_IMAGE_BLOCKING@ No @endif-FEATURE_IMAGE_BLOCKING@</td>
305               <td>Allows the +handle-as-image action, to send <q>blocked</q> images instead of HTML.</td>
306             </tr>
307             <tr>
308               <td><code>FEATURE_IPV6_SUPPORT</code></td>
309               <td>@if-FEATURE_IPV6_SUPPORT-then@ Yes @else-not-FEATURE_IPV6_SUPPORT@ No @endif-FEATURE_IPV6_SUPPORT@</td>
310               <td>
311                Allows IPv6 addresses in incoming requests, when resolving domains to
312                IP addresses and in the configuration files.
313               </td>
314             </tr>
315             <tr>
316               <td><code>FEATURE_NO_GIFS</code></td>
317               <td>@if-FEATURE_NO_GIFS-then@ Yes @else-not-FEATURE_NO_GIFS@ No @endif-FEATURE_NO_GIFS@</td>
318               <td>Use PNG instead of GIF for the built-in images.</td>
319             </tr>
320             <tr>
321               <td><code>FEATURE_PTHREAD</code></td>
322               <td>@if-FEATURE_PTHREAD-then@ Yes @else-not-FEATURE_PTHREAD@ No @endif-FEATURE_PTHREAD@</td>
323               <td>Use POSIX threads rather than native threads</td>
324             </tr>
325             <tr>
326               <td><code>FEATURE_STATISTICS</code></td>
327               <td>@if-FEATURE_STATISTICS-then@ Yes @else-not-FEATURE_STATISTICS@ No @endif-FEATURE_STATISTICS@</td>
328               <td>Enables the statistics function.</td>
329             </tr>
330             <tr>
331               <td><code>FEATURE_STRPTIME_SANITY_CHECKS</code></td>
332               <td>@if-FEATURE_STRPTIME_SANITY_CHECKS-then@ Yes @else-not-FEATURE_STRPTIME_SANITY_CHECKS@ No @endif-FEATURE_STRPTIME_SANITY_CHECKS@</td>
333               <td>Try to work around broken strptime() implementations.</td>
334             </tr>
335             <tr>
336               <td><code>FEATURE_TOGGLE</code></td>
337               <td>@if-FEATURE_TOGGLE-then@ Yes @else-not-FEATURE_TOGGLE@ No @endif-FEATURE_TOGGLE@</td>
338               <td>Allow Privoxy to be <q>disabled</q> so it is just a normal non-blocking non-anonymizing proxy.</td>
339             </tr>
340             <tr>
341               <td><code>FEATURE_TRUST</code></td>
342               <td>@if-FEATURE_TRUST-then@ Yes @else-not-FEATURE_TRUST@ No @endif-FEATURE_TRUST@</td>
343               <td>Allows the use of trust files.</td>
344             </tr>
345             <tr>
346               <td><code>FEATURE_ZLIB</code></td>
347               <td>@if-FEATURE_ZLIB-then@ Yes @else-not-FEATURE_ZLIB@ No @endif-FEATURE_ZLIB@</td>
348               <td>Allows to decompress gzip and zlib compressed documents for filtering.
349                 Requires external zlib library and hasn't been tested on all platforms.</td>
350             </tr>
351           </table>
352       </td>
353     </tr>
354
355     <tr>
356       <td class="box">
357         <h2>More Privoxy:</h2>
358         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
359       </td>
360     </tr>
361
362 <!-- @if-have-help-info-start -->
363     <tr>
364       <td class="info">
365
366 #include mod-local-help
367
368       </td>
369     </tr>
370 <!-- if-have-help-info-end@ -->
371
372     <tr>
373       <td class="info">
374
375 #include mod-support-and-service
376
377       </td>
378     </tr>
379
380   </table>
381
382 </body>
383 </html>