3 error_reporting(E_NONE);
4 #error_reporting(E_ALL);
6 // File : $Source: /cvsroot/ijbswa/current/doc/webserver/actions/index.php,v $
8 // Purpose : Submit form for actions file feedback (step 1)
9 // This file belongs in
10 // ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
12 // $Id: index.php,v 1.3 2002/03/30 19:49:34 swa Exp $
14 // $Log: index.php,v $
15 // Revision 1.3 2002/03/30 19:49:34 swa
16 // have consistent look and feel
18 // Revision 1.2 2002/03/30 03:35:48 oes
19 // Updated bookmarklet
21 // Revision 1.1 2002/03/30 03:20:30 oes
22 // Added Feedback mechanism for actions file
25 // Written by and Copyright (C) 2001 the SourceForge
26 // Privoxy team. http://www.privoxy.org/
28 // Based on the Internet Junkbuster originally written
29 // by and Copyright (C) 1997 Anonymous Coders and
30 // Junkbusters Corporation. http://www.junkbusters.com
32 // This program is free software; you can redistribute it
33 // and/or modify it under the terms of the GNU General
34 // Public License as published by the Free Software
35 // Foundation; either version 2 of the License, or (at
36 // your option) any later version.
38 // This program is distributed in the hope that it will
39 // be useful, but WITHOUT ANY WARRANTY; without even the
40 // implied warranty of MERCHANTABILITY or FITNESS FOR A
41 // PARTICULAR PURPOSE. See the GNU General Public
42 // License for more details.
44 // The GNU General Public License should be included with
45 // this file. If not, you can view it at
46 // http://www.gnu.org/copyleft/gpl.html
47 // or write to the Free Software Foundation, Inc., 59
48 // Temple Place - Suite 330, Boston, MA 02111-1307, USA.
53 * MUST be updated in sync with actions file:
55 $current_actions_file_version = "1.0";
60 #$base_url = "http://www.oesterhelt.org/actions";
61 $base_url = "http://www.privoxy.org/actions";
62 #$base_url = "http://localhost/actions";
66 * Provide default if unset
70 $url = "http://www.example.com/";
74 * Deny feedback which is not based on our latest
77 $headers = getallheaders();
79 if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Version"] < $current_actions_file_version)
81 echo ("<html><head><title>Invalid Privoxy Action List Feedback</title>
82 <link rel=\"stylesheet\" type=\"text/css\" href=\"../p_web.css\">
83 </head><body><h2>Invalid Feedback Submission</h2>
84 <p>You are either not using Privoxy at all, or using an
85 actions file which is not based on the recent
86 distribution actions file (version $current_actions_file_version).</p>
87 <p>As much as we welcome your feedback, we are unable to process
88 input for the actions file if not based on our distribution. Sorry.</p>
89 <p>You can <a href=\"http://www.privoxy.org/\">download the latest version of
100 <title>Privoxy Action List Feedback - Step 1 of 2</title>
101 <link rel="stylesheet" type="text/css" href="../p_web.css">
104 <h2><a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Step 1 of 2</h2>
107 <b>Thank you for reporting a missing or invalid action!</b>
110 Please fill the below form and click to
114 <form action="<?php echo($base_url); ?>/step2.php" method="post">
116 <table border="0" cellpadding="0" cellspacing="4">
119 <td align="right">URL:</td>
121 <input name="referrer_url" value="<?php echo ($url); ?>" type="text" size="45" maxlength="255">
126 <td align="right">Nature of the problem:</td>
128 <select name="problem" size="1">
129 <option selected value="INVALID">Please select...</option>
130 <option value="P1">An advertisment was NOT blocked</option>
131 <option value="P2">An innocent image WAS blocked</option>
132 <option value="P3">The whole page was erraneously blocked</option>
133 <option value="P4">The page needs popups but they don't work</option>
134 <option value="P5">Other problem</option>
140 <td align="right"></td>
142 <input type=submit value="Proceed to step 2">
152 This special page helps the Privoxy team to improve the filters. Once
153 you have bookmarked the page, surf to a troubled page and click on the
154 bookmark, which will take you here and pre-fill the URL field.</p>
156 <p>Use the following link as a bookmark:
157 <a href="javascript:void(window.open('http://privoxy.org/actions/?url='+escape(location.href),'Feedback','width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());">Privoxy-Submit</a>.
159 Right-click the link and choose "Add to Favorites" (IE) or "Add Bookmark" (Netscape). You will get a warning that the bookmark "may not be safe" - just click OK. For even faster access, you can put them on the "Links" bar (IE) or the "Personal Toolbar" (Netscape), and submit feedback with a single click.