1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 File : $Source: /cvsroot/ijbswa/current/doc/webserver/actions/index.php,v $
7 Purpose : Submit form for actions file feedback (step 1)
9 ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
11 $Id: index.php,v 1.25.2.7 2004/01/30 17:16:44 oes Exp $
14 Revision 1.25.2.7 2004/01/30 17:16:44 oes
17 Revision 1.25.2.6 2003/11/30 11:39:52 oes
20 Revision 1.25.2.5 2003/09/01 15:20:45 oes
23 Revision 1.25.2.4 2003/03/19 14:00:20 oes
26 Revision 1.25.2.3 2002/08/27 16:33:39 oes
27 Require AF 1.5 & Privoxy 3.0
29 Revision 1.25.2.2 2002/08/06 08:39:09 oes
30 Require AF 1.4; link to new AF download location
32 Revision 1.25.2.1 2002/07/27 18:47:49 oes
33 Require Privoxy 2.9.16 and AF 1.3
35 Revision 1.25 2002/04/29 17:30:20 oes
38 Revision 1.24 2002/04/28 16:56:47 swa
41 Revision 1.23 2002/04/13 14:13:19 oes
42 Require exact AF version; Added hint where to go for BRs, FRs and SRs
44 Revision 1.22 2002/04/11 10:11:04 oes
45 Actionsfile Version 1.2
47 Revision 1.21 2002/04/10 13:51:19 oes
48 Updated to new Bookmarklet
50 Revision 1.20 2002/04/10 00:07:35 oes
51 Moved window sizing and positioning code to Bookmarklet
53 Revision 1.19 2002/04/09 13:06:29 oes
54 Resize and jump to the right on load
56 Revision 1.18 2002/04/08 17:03:29 oes
57 - Fixed problem with spaces in URLs
58 - Adapt to unified stylesheet
60 Revision 1.17 2002/04/08 10:32:00 oes
63 Revision 1.16 2002/04/08 08:11:04 oes
64 Bumped up actions file number
66 Revision 1.15 2002/04/07 17:13:08 oes
67 Ooops: fixing submit target url
69 Revision 1.14 2002/04/07 15:10:12 oes
72 Revision 1.13 2002/04/06 15:19:35 oes
73 Clean-up, smarter handling of unreachable URLs
75 Revision 1.12 2002/04/06 11:34:44 oes
78 Revision 1.11 2002/04/04 19:48:11 oes
79 Reactivating the scripts ,-)
81 Revision 1.10 2002/04/03 19:36:04 swa
84 Revision 1.9 2002/04/02 19:32:45 oes
85 Adding temporary fix for missing curl support on SF (step 2 + 3 on oesterhelt.org)
87 Revision 1.8 2002/04/02 08:45:22 oes
88 Made script location indepandant
90 Revision 1.7 2002/04/02 07:21:34 oes
91 Using relative link for step2
93 Revision 1.6 2002/04/02 06:14:22 oes
96 Revision 1.5 2002/04/01 19:13:47 oes (based on 1.2)
97 Extended, fixed bugs, beefed up design, made IE-safe
99 Revision 1.4 2002/03/30 20:44:44 swa
100 have consistent look and feel. part 2.
103 Revision 1.3 2002/03/30 19:49:34 swa
104 have consistent look and feel
106 Revision 1.2 2002/03/30 03:35:48 oes
109 Revision 1.1 2002/03/30 03:20:30 oes
110 Added Feedback mechanism for actions file
113 Copyright (C) 2002 the SourceForge Privoxy team.
114 http://www.privoxy.org/
116 Written by Andreas Oesterhelt
118 This program is free software; you can redistribute it
119 and/or modify it under the terms of the GNU General
120 Public License as published by the Free Software
121 Foundation; either version 2 of the License, or (at
122 your option) any later version.
124 This program is distributed in the hope that it will
125 be useful, but WITHOUT ANY WARRANTY; without even the
126 implied warranty of MERCHANTABILITY or FITNESS FOR A
127 PARTICULAR PURPOSE. See the GNU General Public
128 License for more details.
130 The GNU General Public License should be included with
131 this file. If not, you can view it at
132 http://www.gnu.org/copyleft/gpl.html
133 or write to the Free Software Foundation, Inc., 59
134 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
139 <meta http-equiv="Content-Style-Type" content="text/css">
140 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
141 <meta http-equiv="Content-Script-Type" content="text/javascript">
142 <link rel="stylesheet" type="text/css" href="../privoxy.css">
143 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
150 $required_actions_file_version = "1.8";
151 $required_privoxy_version = "3.0";
152 $actions_file_download = "http://sourceforge.net/project/showfiles.php?group_id=11118&release_id=147447";
153 $submit_target = "http://www.oesterhelt.org/actions/step2.php";
160 //error_reporting(E_ALL);
161 error_reporting(E_NONE);
164 * Function: error_abort
165 * Purpose: Return an error page with $title and $message
167 function error_abort($title, $message)
169 if ($title == "invalid") /* shortcut */
171 $title = "Invalid Feedback Submission";
174 echo (" <title>Privoxy: $title</title>
177 <div class=\"title\">
179 <a href=\"http://www.privoxy.org/\">Privoxy</a>: $title
183 <div class=\"warning\">
187 <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
195 * Bookmarklet that leads here:
197 $my_address = "http://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $PHP_SELF;
198 $bookmarklet = "javascript:w=Math.floor(screen.width/2);h=Math.floor(screen.height*0.9);void(window.open('$my_address?url='+escape(location.href)," .
199 "'Feedback','screenx='+w+',width='+w+',height='+h+',scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no," .
200 "copyhistory=no').focus());";
203 * Provide default if URL unset
207 $url = "http://www.example.com/";
211 $url = strtr($url, " ", "+");
215 * Deny feedback which is not based on our latest
218 $headers = getallheaders();
220 if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Version"] != $required_actions_file_version)
223 error_abort("invalid", "<p><b>Thank you for using <a href=\"http://www.privoxy.org/\" target=\"_blank\">Privoxy</a>'s
224 feedback reporting mechanism!</b> However, in order to make optimal use of our limited development resources,
225 we regret that we can at this time only accept problem reports based on:
228 <li><a href=\"http://www.privoxy.org/\" target=\"_blank\">Privoxy</a> version $required_privoxy_version or later</li>
229 <li><a href=\"$actions_file_download\">Actionsfile</a> version version $required_actions_file_version</li>
231 <p>We hope you will understand that we feel unable to maintain concurrent versions of the file.</p>
232 <p><i>Hint: To upgrade your actions file, follow the above link to download the file, then save as
233 default.action in your Privoxy config directory</i>
239 <title>Privoxy Action List Feedback - Step 1 of 2</title>
245 <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Step 1 of 2
251 <b>Thank you for reporting a missing or invalid action!</b>
255 The Privoxy team relies on <b>your</b> feedback to maintain an efficient actions file!
256 <br>Please fill the below form and click to proceed to step 2.
260 Please keep in mind that this is <b>not</b> the place for
261 <a href="http://sourceforge.net/tracker/?group_id=11118&atid=211118" target="_blank">support requests</a>,
262 <br><a href="http://sourceforge.net/tracker/?group_id=11118&atid=111118" target="_blank">bug reports</a> or
263 <a href="http://sourceforge.net/tracker/?atid=361118&group_id=11118" target="_blank">feature requests</a>.
269 <form action="<?php echo($submit_target); ?>" method="post">
271 <table border="0" cellpadding="0" cellspacing="4">
274 <td align="right">URL:</td>
276 <input name="referrer_url" value="<?php echo($url); ?>" type="text" size="45" maxlength="255">
281 <td align="right">Nature of the problem:</td>
283 <select name="problem" size="1">
284 <option selected value="INVALID">Please select...</option>
285 <option value="P1">An advertisment was NOT blocked</option>
286 <option value="P2">An innocent image WAS blocked</option>
287 <option value="P3">The whole page was erroneously blocked</option>
288 <option value="P4">The page needs popups but they don't work</option>
289 <option value="P5">Other problem</option>
297 <input type=submit value="Proceed to step 2">
307 <h2>Using <a href="http://www.bookmarklets.com" target="_blank">Bookmarklets</a> for Feedback</h2>
309 To make it even easier for you, we provide a bookmarklet which will not only take you here from
310 any troubled page you might be surfing, but also pre-fill the form!
313 Please right-click the following link and choose "Add to Favorites" (IE) or "Add Bookmark for Link" (Netscape):
314 <a href="<?php echo($bookmarklet); ?>">Privoxy - Submit Actions File Feedback</a>
318 <i>You might get a warning that the bookmark "may not be safe" (IE) - just click OK.
319 For even faster access, you can put it on the "Links" bar (IE) or the "Personal Toolbar" (Netscape),
320 and submit feedback with a single click!</i>
325 <p>Valid <a href="http://validator.w3.org/">HTML 4.01 Transitional</a></p>