Move ACTION_VANILLA_WAFER handling from jcc's chat() into
[privoxy.git] / templates / show-url-info
1 ########################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/show-url-info,v $
4 #
5 # Purpose     :  Template for Privoxy's show-url-info CGI page.
6 #
7 # Copyright   :  Written by and Copyright (C) 2001-2007 the SourceForge
8 #                Privoxy team. http://www.privoxy.org/
9 #
10 #                This program is free software; you can redistribute it 
11 #                and/or modify it under the terms of the GNU General
12 #                Public License as published by the Free Software
13 #                Foundation; either version 2 of the License, or (at
14 #                your option) any later version.
15 #
16 #                This program is distributed in the hope that it will
17 #                be useful, but WITHOUT ANY WARRANTY; without even the
18 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
19 #                PARTICULAR PURPOSE.  See the GNU General Public
20 #                License for more details.
21 #
22 #                The GNU General Public License should be included with
23 #                this file.  If not, you can view it at
24 #                http://www.gnu.org/copyleft/gpl.html
25 #                or write to the Free Software Foundation, Inc., 59
26 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27 #
28 # Revisions   :
29 #    $Log: show-url-info,v $
30 #    Revision 1.19  2007/02/10 16:55:22  fabiankeil
31 #    - Show forwarding settings on the show-url-info page
32 #    - Fix some HTML syntax errors.
33 #
34 #
35 #########################################################################
36 # USING HTML TEMPLATES:
37 # ---------------------
38 #
39 # Template files are written win plain HTML, with a few
40 # additions:
41
42 # - Lines that start with a '#' character like this one
43 #   are ignored
44 #
45 # - Each item in the below list of exported symbols will
46 #   be replaced by dynamically generated text, if they
47 #   are enclosed in '@'-characters. E.g. The string @version@
48 #   will be replaced by the version number of Privoxy.
49 #
50 # - One special application of this is to make whole blocks
51 #   of the HTML template disappear if the condition <name>
52 #   is not given. Simply enclose the block between the two
53 #   strings @if-<name>start and if-<name>-end@. The strings
54 #   should be placed in HTML comments (<!-- -->), so the
55 #   html structure won't be messed when the magic happens.
56 #   
57 # USABLE SYMBOLS IN THIS TEMPLATE:
58 # --------------------------------
59 #
60 #  my-ip-addr:
61 #    The IP-address that the client used to reach Privoxy
62 #  my-hostname:
63 #    The hostname associated with my-ip-addr
64 #  admin-address:
65 #    The email address of the Privoxy administrator, as configured
66 #    in the config file
67 #  default-cgi:
68 #    The URL for Privoxy's "main menu" builtin CGI page
69 #  menu:
70 #    List of <li> elements linking to the other available CGIs
71 #  version:
72 #    Privoxy's version number
73 #  code-status:
74 #    Privoxy's development status: "alpha", "beta", or "stable".
75 #  homepage:
76 #    The Privoxy web site.
77 #
78 # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
79 # ------------------------------------------------------------------
80 #
81 #  unstable:
82 #    this is an alpha or beta release of the proxy software
83 #  have-adminaddr-info:
84 #    An e-mail address for the local Privoxy adminstrator has
85 #    been specified and is available through the "admin-address"
86 #    symbol
87 #  have-proxy-info:
88 #    A URL for online documentation about this proxy has been
89 #    specified and is available through the "proxy-info-url"
90 #    symbol
91 #  have-help-info:
92 #    If either have-proxy-info is true or have-adminaddr-info is
93 #    true, have-help-info is true.  Used to conditionally include
94 #    a grey box for any and all help info.
95 #  url-given:
96 #    The CGI was called with a url parameter. In that case, the
97 #    following symbols are available:
98 #    url:
99 #      The given URL
100 #    default:
101 #      The system default for actions
102 #    matches:
103 #      The list of all matches in the actions file that this URL
104 #      produced, along with the actions that were triggered by
105 #      these matches
106 #    final:
107 #      The actions that are associated with the URL at the end of
108 #      the matching process
109 #  no-forwarder: Requests to url will be made directly.
110 #  http-forwarder:
111 #      Requests to url will be made through a HTTP proxy
112 #      forward-host:
113 #         The IP address or its hostname
114 #      forward-port.
115 #         The proxy port
116 #  socks-forwarder:
117 #      Requests to url will be made through a socks proxy
118 #      socks-type:
119 #         The socks type: socks4 or socks4a
120 #      gateway-host:
121 #         The IP address or its hostname
122 #      gateway-port:
123 #         The proxy port.
124 #
125 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
126 <html>
127
128 <head>
129   <title>Privoxy@@my-hostname@ URL Info</title>
130   <meta http-equiv="Content-Style-Type" content="text/css">
131   <meta http-equiv="Content-Script-Type" content="text/javascript">
132   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
133   <meta name="robots" content="noindex,nofollow">
134   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
135   <link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
136 </head>
137
138 <body>
139
140   <table summary="" cellpadding="20" cellspacing="10" border="0" width="100%">
141     <tr>
142       <td class="title">
143
144 #include mod-title
145
146       </td>
147     </tr>
148
149 <!-- @if-unstable-start -->
150 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
151     <tr>
152       <td class="warning">
153
154 #include mod-unstable-warning
155
156       </td>
157     </tr>
158 <!-- if-unstable-end@ -->
159
160 <!-- @if-url-given-start -->
161     <tr>
162       <td class="box">
163 <!-- @if-valid-url-start -->
164         <h2>Forwarding settings:</h2>
165         <p>
166           Requests for <a href="@url@">@url@</a> will be <!--
167
168 # "Interesting" formatting to prevent white space at the end of the sentence..
169
170           @if-no-forwarder-start -->
171
172              made <b>directly</b>, no forwarding settings apply<!--
173
174           if-no-forwarder-end@--><!--
175           @if-http-forwarder-start --><!-- @if-socks-forwarder-start -->
176
177              first <!--
178
179           if-socks-forwarder-end@ --><!-- if-http-forwarder-end@ --><!--
180           @if-socks-forwarder-start -->
181
182              forwarded through <b>@socks-type@-proxy @gateway-host@:@gateway-port@</b><!--
183
184           if-socks-forwarder-end@ --><!--
185           @if-http-forwarder-start --><!-- @if-socks-forwarder-start -->
186
187              and then <!--
188
189           if-socks-forwarder-end@ --><!-- if-http-forwarder-end@ --><!--
190           @if-http-forwarder-start -->
191
192              forwarded through <b>HTTP-proxy @forward-host@:@forward-port@</b><!--
193
194           if-http-forwarder-end@ -->.
195       </td>
196     </tr>
197     <tr>
198       <td class="box">
199 <!-- @if-https-start -->
200         <h2>NOTE:</h2>
201         <p>This is a secure (https:) URL, so the part after the "/" is ignored.
202           This is a feature of the HTTPS protocol - the exact address of the
203           page you're visiting is hidden.  Privoxy can only detect the host
204           part of the URL.</p>
205         <p>&nbsp;</p>
206 <!-- if-https-end@ -->
207 <!-- if-valid-url-end@ -->
208         <h2>Matches for <a href="@url@">@url@</a>:</h2>
209         @matches@
210       </td>
211     </tr>
212 <!-- @if-valid-url-start -->
213     <tr>
214       <td class="box">
215         <h2>Final results:</h2>
216         <p><b>@final@</b></p>
217       </td>
218     </tr>
219 <!-- if-valid-url-end@ -->
220 <!-- if-url-given-end@ -->
221
222 <!-- @if-privoxy-is-toggled-off-start -->
223
224     <tr>
225       <td class="warning">
226         <h2>Warning:</h2>
227         <p>
228           <strong>Privoxy is currently toggled off. Matching actions will not apply
229           unless you <a href="@default-cgi@toggle?set=enable">toggle Privoxy on</a> first.</strong>
230         </p>
231       </td>
232     </tr>
233 <!-- if-privoxy-is-toggled-off-end@ -->
234
235     <tr>
236       <td class="box">
237         <h2>Look up the actions for a 
238 <!-- @if-url-given-start -->new<!-- if-url-given-end@ -->
239           URL:</h2>
240         <form method="GET" action="@default-cgi@show-url-info">
241           <p>
242             <input type="text" name="url" size="80" value="@url@"> 
243             <input type="submit" value="Go">
244           </p>
245         </form>
246       </td>
247     </tr>
248
249     <tr>
250       <td class="box">
251         <h2>More Privoxy:</h2>
252         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
253       </td>
254     </tr>
255
256     <tr>
257       <td class="info">
258
259 #include mod-support-and-service
260
261       </td>
262     </tr>
263
264 <!-- @if-have-help-info-start -->
265     <tr>
266       <td class="info">
267
268 #include mod-local-help
269
270       </td>
271     </tr>
272 <!-- if-have-help-info-end@ -->
273
274   </table>
275
276 </body>
277 </html>