1 ##############################################################################
\r
3 # File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
\r
5 # Purpose : Template used to edit the actions file.
\r
8 # Copyright : Written by and Copyright (C) 2001 the SourceForge
\r
9 # IJBSWA team. http://ijbswa.sourceforge.net
\r
11 # Original Author: Copyright (C) 2001 Jonathan Foster
\r
12 # http://www.jon-foster.co.uk/
\r
14 # This program is free software; you can redistribute it
\r
15 # and/or modify it under the terms of the GNU General
\r
16 # Public License as published by the Free Software
\r
17 # Foundation; either version 2 of the License, or (at
\r
18 # your option) any later version.
\r
20 # This program is distributed in the hope that it will
\r
21 # be useful, but WITHOUT ANY WARRANTY; without even the
\r
22 # implied warranty of MERCHANTABILITY or FITNESS FOR A
\r
23 # PARTICULAR PURPOSE. See the GNU General Public
\r
24 # License for more details.
\r
26 # The GNU General Public License should be included with
\r
27 # this file. If not, you can view it at
\r
28 # http://www.gnu.org/copyleft/gpl.html
\r
29 # or write to the Free Software Foundation, Inc., 59
\r
30 # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
\r
35 ##############################################################################
\r
37 # Browser support for the CSS on this page:
\r
38 # MS Internet Explorer 5.5 - Yes - everything works.
\r
39 # Netscape 6.2 - Yes - everything works.
\r
40 # Netscape 4.75 - No - CSS buttons look really bad, but they are
\r
41 # usable. Everything else works.
\r
42 # Opera 5.12 - Yes - everything works.
\r
43 # MS Internet Explorer 4+ - Untested
\r
44 # MS IE 3.x, NS3.x - Untested (Don't support CSS, so everything
\r
45 # should work, but will look ugly).
\r
46 # Mozilla >=0.6 - Untested
\r
48 # All browsers should work, you just might not get the pretty CSS buttons.
\r
50 # If you're favorite browser isn't listed/tested, please test and add it.
\r
53 #############################################################################
\r
57 # This file currently produces valid HTML 4.01 Strict.
\r
59 # If you change it, please save the generated page from your web browser
\r
60 # and then upload it to http://validator.w3.org/ for checking.
\r
62 #############################################################################
\r
64 # Available variables include:
\r
70 #############################################################################
\r
71 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\r
75 <meta http-equiv="Content-Style-Type" content="text/css">
\r
76 <meta http-equiv="Content-Script-Type" content="text/javascript">
\r
77 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
\r
78 <meta name="robots" content="noindex,nofollow">
\r
80 <title>JunkBuster: Edit actions file - @filename@.action</title>
\r
82 <style type="text/css">
\r
83 body { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif;
\r
84 background-color: #ffffff;
\r
86 td.light { background-color: #eeeeee; }
\r
87 td.dark { background-color: #dddddd; }
\r
88 table.wide { border-color: white;
\r
89 border-style: solid;
\r
90 border-left-width: 10px;
\r
91 border-right-width: 10px;
\r
92 border-top-width: 0px;
\r
93 border-bottom-width: 0px; }
\r
94 tr.actions { background-color: #eeffee; }
\r
95 tr.url1 { background-color: #d0d0ff; }
\r
96 tr.url2 { background-color: #eeeeff; }
\r
97 tr.rule { background-color: #c0c0c0;
\r
101 tr.adv { background-color: #FFFFD0; }
\r
102 td.header { font-weight: bold; }
\r
103 td.url { font-weight: bold; }
\r
104 td.action { font-weight: bold;
\r
105 font-style: italic; }
\r
106 td.nobreak { white-space: nowrap; }
\r
107 a.cmd { white-space: nowrap;
\r
110 background-color: #dddddd;
\r
112 text-decoration: none;
\r
113 border-top: 1px solid #ffffff;
\r
114 border-left: 1px solid #ffffff;
\r
115 border-bottom: 1px solid #000000;
\r
116 border-right: 1px solid #000000; }
\r
117 a.cmd:hover { background-color: #eeeeee; }
\r
118 a.cmd:active { border-top: 1px solid #000000;
\r
119 border-left: 1px solid #000000;
\r
120 border-bottom: 1px solid #ffffff;
\r
121 border-right: 1px solid #ffffff; }
\r
125 <script type="text/javascript">
\r
129 window.alert("The feature you are trying to use has not been implemented yet.");
\r
132 // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
\r
133 // JavaScript-capable browsers will call this function, which does a
\r
134 // client-side prompt for speed. It may kick off the delete directly.
\r
135 // It always returns false to cancel following the link.
\r
136 function remove_pattern(section,pattern,curtext)
\r
138 if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
\r
139 { window.location.href="http://i.j.b/edit-actions-remove-url?filename=@filename@&ver=@ver@§ion="+section+"&pattern="+pattern+"#s"+section+"urls"; }
\r
149 <table cellpadding="20" cellspacing="10" border="0" width="100%">
\r
152 <p><b><big><big>This is the Internet
\r
153 J</big>UNK</big><i style="color: #ff0000">BUSTER</i><big><big>
\r
154 @version@ on @my-hostname@ (@my-ip-address@),
\r
156 @if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@</big></big></b></p>
\r
160 <!-- @if-unstable-start -->
\r
161 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
\r
163 <td style="background-color: #ffdddd" >
\r
164 <p><b>Please note that this <span style="color: #ff0000">@code-status@</span> release
\r
165 of the proxy software is not intended for production systems!
\r
166 <br>Use at your own risk. See the <a href="http://www.gnu.org/copyleft/gpl.html">license</a> for details.</b>
\r
169 <p>Feel free to <a href="mailto:ijbswa-developers@lists.sourceforge.net">mail the developers</a>
\r
170 with any problems you encounter.
\r
174 <!-- if-unstable-end@ -->
\r
178 <h2>Editing Actions File - @filename@.action</h2>
\r
180 <span><a class="cmd" href="http://i.j.b/edit-actions-section-add?filename=@filename@&ver=@ver@&section=0">Insert new section at top</a></span>
\r
188 <table cellpadding="20" cellspacing="10" border="0" width="100%">
\r
191 <h2>More Junkbuster:</h2>
\r
196 <!-- @if-have-help-info-start -->
\r
199 <h2>Local Junkbuster support:</h2>
\r
201 <!-- @if-have-proxy-info-start -->
\r
202 <p>You can consult the <a href="@proxy-info-url@">online documentation</a> for more information about this Junkbuster installation.
\r
203 <!-- if-have-proxy-info-end@ -->
\r
205 <!-- @if-have-adminaddr-info-start -->
\r
206 <p>Address e-mail questions about this service to
\r
207 <a href="mailto:@admin-address@"><code>@admin-address@</code></a>,
\r
208 who will be glad to help you.
\r
209 <!-- if-have-adminaddr-info-end@ -->
\r
214 <!-- if-have-help-info-end@ -->
\r
218 <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
\r