1 ##############################################################################
3 # File : $Source: /cvsroot/ijbswa/current/templates/edit-actions-list,v $
5 # Purpose : Template used to edit the actions file.
8 # Copyright : Written by and Copyright (C) 2001-2007 the SourceForge
9 # Privoxy team. http://www.privoxy.org/
11 # Original Author: Copyright (C) 2001 Jonathan Foster
12 # http://www.jon-foster.co.uk/
14 # This program is free software; you can redistribute it
15 # and/or modify it under the terms of the GNU General
16 # Public License as published by the Free Software
17 # Foundation; either version 2 of the License, or (at
18 # your option) any later version.
20 # This program is distributed in the hope that it will
21 # be useful, but WITHOUT ANY WARRANTY; without even the
22 # implied warranty of MERCHANTABILITY or FITNESS FOR A
23 # PARTICULAR PURPOSE. See the GNU General Public
24 # License for more details.
26 # The GNU General Public License should be included with
27 # this file. If not, you can view it at
28 # http://www.gnu.org/copyleft/gpl.html
29 # or write to the Free Software Foundation, Inc., 59
30 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 # $Log: edit-actions-list,v $
34 # Revision 1.33 2007/04/08 13:21:06 fabiankeil
35 # Reference action files in CGI URLs by id instead
36 # of using the first part of the file name.
37 # Fixes BR 1694250 and BR 1590556.
39 # Revision 1.32 2007/01/23 16:03:16 fabiankeil
40 # - Add favicon links.
41 # - Remove useless W3C validator links.
43 # Revision 1.31 2006/09/10 14:39:24 hal9
44 # Fix typo + minor change.
46 # Revision 1.30 2006/09/09 01:12:15 hal9
47 # Soften actions files update interval.
49 # Revision 1.29 2006/07/18 14:49:13 david__schmidt
50 # Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
51 # with what was really the latest development (the v_3_0_branch branch)
53 # Revision 1.26.2.4 2003/12/17 16:35:17 oes
54 # Work around new & silly MSIE behaviour where the request resulting from
55 # changing window.location.href doesn't reveal the referrer anymore
57 # Revision 1.26.2.3 2002/09/25 15:34:09 oes
58 # - Work around JS problem in NS 2.0 (no joke)
59 # - Make JS string edit popup remove the pattern
60 # if edited to empty; make JS add popup do nothing
63 # Revision 1.26.2.2 2002/08/23 02:22:53 hal9
64 # Fix a perl brain fart with <li> in comments.
66 # Revision 1.26 2002/05/23 23:37:25 oes
69 # Revision 1.25 2002/05/21 21:02:52 oes
70 # Added more help links
72 # Revision 1.24 2002/05/21 19:11:40 oes
73 # - Added client-side JavaScript versions of edit and add URL forms
74 # - Moved jump targets to before container table cell
75 # - Let earu determine the jump target when removing URLs via JS
76 # - Fixed broken help link
78 # Revision 1.23 2002/05/12 15:53:10 jongfoster
79 # Restoring CVS log information accidentally removed in
82 # Revision 1.22 2002/05/12 15:45:33 jongfoster
83 # Applying [Patch 552094] New templates for edit-actions-list
84 # This cleans up the templates by:
85 # - Removing the (confusing) alternating color scheme.
86 # - Making everything left-justified.
88 # Revision 1.21 2002/05/03 22:58:15 jongfoster
89 # Fixing link target in all URLs section
91 # Revision 1.20 2002/04/26 12:57:18 oes
92 # - Central "button" link style in cgi-style.css
93 # - Help links now dynamic
95 # Revision 1.19 2002/04/24 02:19:16 oes
96 # - Show name of actions file being edited
97 # - Show context sensitive help
98 # - Add buttons for easy changing of defaults
99 # - Cosmetics and clarifications
101 # Revision 1.18 2002/04/18 19:21:09 jongfoster
102 # Added code to detect "conventional" action files, that start
103 # with a set of actions for all URLs (the pattern "/").
104 # These are special-cased in the "edit-actions-list" CGI, so
105 # that a special UI can be written for them.
107 # Revision 1.17 2002/04/10 13:32:53 oes
108 # Made templates modular
110 # Revision 1.16 2002/04/08 17:08:14 oes
111 # Cosmetic: make status in title lowercase
113 # Revision 1.15 2002/04/05 16:01:32 oes
114 # Correct HTML, external Stylesheets, eye candy, some fixes
116 # Revision 1.14 2002/03/26 22:29:56 swa
117 # we have a new homepage!
119 # Revision 1.13 2002/03/24 15:23:33 jongfoster
122 # Revision 1.12 2002/03/24 11:01:06 swa
125 # Revision 1.11 2002/03/23 16:18:15 swa
126 # renamed every reference to the old name with foobar.
127 # fixed "application foobar application" tag, fixed
128 # "the foobar" with "foobar". left junkbuster in cvs
129 # comments and remarks to history untouched. should
130 # make final rename easier.
132 # Revision 1.10 2002/03/16 15:22:19 jongfoster
133 # Moving 'alpha' warning to the end of the page
135 # Revision 1.9 2002/03/05 00:24:51 jongfoster
136 # Patch to always edit the current actions file.
138 # Revision 1.8 2002/03/03 10:29:12 swa
139 # point users to the right feedback forms,
140 # not necessarily the developer list.
142 # Revision 1.7 2002/01/23 00:26:45 jongfoster
143 # Reducing length of URLs
144 # Where encoded and unencoded versions of a string existed, removing
147 # Revision 1.6 2002/01/17 21:33:00 jongfoster
148 # Replacing all references to the URL of the config interface
151 # Revision 1.5 2002/01/17 21:21:05 jongfoster
152 # DOS->Unix line endings
154 # Revision 1.4 2001/11/13 00:58:18 jongfoster
155 # New version of actions file editor templates
158 ##############################################################################
160 # Browser support for the CSS on this page:
161 # MS Internet Explorer 5.5 - Yes - everything works.
162 # Netscape 6.2 - Yes - everything works.
163 # Netscape 4.75 - No - CSS buttons look really bad, but they are
164 # usable. Everything else works.
165 # Opera 5.12 - Yes - everything works.
166 # MS Internet Explorer 4+ - Untested
167 # MS IE 3.x, NS3.x - Untested (Don't support CSS, so everything
168 # should work, but will look ugly).
169 # Mozilla >=0.6 - Yes - everything works.
171 # All browsers should work, you just might not get the pretty CSS buttons.
173 # If your favorite browser isn't listed/tested, please test and add it.
176 #############################################################################
180 # This file currently produces valid HTML 4.01 Strict.
182 # If you change it, please save the generated page from your web browser
183 # and then upload it to http://validator.w3.org/ for checking.
185 #############################################################################
187 # Available variables include:
193 #############################################################################
194 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
198 <meta http-equiv="Content-Style-Type" content="text/css">
199 <meta http-equiv="Content-Script-Type" content="text/javascript">
200 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
201 <meta name="robots" content="noindex,nofollow">
202 <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
203 <link rel="shortcut icon" href="@default-cgi@favicon.ico" type="image/x-icon">
205 <title>Privoxy: Edit actions file @actions-file@</title>
207 <style type="text/css">
210 border: solid black 1px;
214 background-color: #eeffee;
217 background-color: #ddddff;
220 background-color: #FFFFD0;
225 padding: 10px 15px 2px 15px;
243 <script type="text/javascript">
246 // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
247 // JavaScript-capable browsers will call this function, which does a
248 // client-side prompt for speed. It may kick off the delete directly.
249 // It always returns false to cancel following the link.
250 function rm_p(link,pattern,curtext)
252 if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
254 link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern;
260 function e_p(link,pattern,curtext)
262 if ((newtext=window.prompt("Edit the pattern to your needs:", unescape(curtext))) != null)
265 { link.href="edit-actions-url?f=@f@&v=@v@&p="+pattern+"&u="+escape(newtext); }
267 { link.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern; }
273 function a_p(link,section)
275 if (((newtext=window.prompt("Enter the new pattern:", "")) != null ) && (newtext != ""))
277 link.href="edit-actions-add-url?f=@f@&v=@v@&s="+section+"&u="+escape(newtext);
288 <table cellpadding="20" cellspacing="10" border="0" width="100%">
297 <!-- @if-unstable-start -->
298 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
302 #include mod-unstable-warning
306 <!-- if-unstable-end@ -->
310 <h2>What is all this?</h2>
312 If you haven't already done so, it is <b>strongly recommended</b> that you at
313 least skim <a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">the
314 chapter on actions files</a> in the <a href="@user-manual@">User Manual</a>
315 before making any changes. You will also find a comprehensive list of
316 all available actions there, as well how the settings on this page
319 <!-- @if-all-urls-present-then@ -->
321 Please note that <b>the first section has special importance</b>. It sets the default actions for
322 all URLs. The resulting actions for a particular URL may differ from these defaults if that
323 URL matches again further down, but this section is largely responsible for your browsing
324 experience. Edit manually with great care, or choose from the predefined sets of actions.
326 <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
327 <!-- @if-default-action-then@ -->
329 This is the default action file. Updates for it are available from
330 <a href="http://www.privoxy.org/">Privoxy.org</a> from time to time.
331 It is therefore <b>not recommended</b> that you add your private
332 rules here, since they will be lost if you install an update in the future.
333 Put your rules in a separate actions file, like <tt>user.action</tt> instead.
335 <!-- @else-not-default-action@@endif-default-action@ -->
341 <div class="buttons">
342 <h2>Editing Actions File @actions-file@</h2>
343 <!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
344 <p><a class="cmd" href="edit-actions-section-add?f=@f@&v=@v@&s=0">Insert new section at top</a></p>
345 <!-- @endif-all-urls-present@ -->
350 <!-- @if-all-urls-present-then@ -->
352 <td class="container"><a name="l@all-urls-s@"></a>
353 <table border="0" width="100%" cellspacing="2" cellpadding="3" class="framed">
354 <tr class="actions"><td class="header"><a href="@user-manual@@actions-help-prefix@ACTIONS">Actions</a>:</td></tr>
356 <td class="indentbuttons">
357 <a href="eafu?f=@f@&v=@v@&s=@all-urls-s@">Edit</a>
361 <tr class="actions"><td class="action">@all-urls-actions@</td></tr>
362 <tr class="url"><td class="header"><a href="@user-manual@@actions-help-prefix@AF-PATTERNS">URL patterns</a>:</td></tr>
363 <tr class="url"><td class="indentbuttons">/ <i>(Matches all requests)</a></td></tr>
364 <tr class="adv"><td class="header">Advanced:</td></tr>
366 <td class="indentbuttons">
367 <a href="easa?f=@f@&v=@v@&s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a>
373 <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
379 <h2>More Privoxy:</h2>
380 <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
387 #include mod-support-and-service
392 <!-- @if-have-help-info-start -->
396 #include mod-local-help
400 <!-- if-have-help-info-end@ -->