1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
5 File : $Source: /cvsroot/ijbswa/current/doc/webserver/actions/step3.php,v $
7 Purpose : Submit form for actions file feedback (step 1)
9 ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
11 $Id: step3.php,v 1.7 2002/04/04 10:29:58 oes Exp $
14 Revision 1.7 2002/04/04 10:29:58 oes
15 Keeping feedback confidential
17 Revision 1.6 2002/04/03 19:36:04 swa
20 Revision 1.5 2002/04/02 07:22:43 oes
23 Revision 1.4 2002/04/01 19:13:47 oes
24 Extended, fixed bugs, beefed up design, made IE-safe
26 Revision 1.1 2002/03/30 03:20:30 oes
27 Added Feedback mechanism for actions file
30 Written by and Copyright (C) 2002 the SourceForge
31 Privoxy team. http://www.privoxy.org/
33 This program is free software; you can redistribute it
34 and/or modify it under the terms of the GNU General
35 Public License as published by the Free Software
36 Foundation; either version 2 of the License, or (at
37 your option) any later version.
39 This program is distributed in the hope that it will
40 be useful, but WITHOUT ANY WARRANTY; without even the
41 implied warranty of MERCHANTABILITY or FITNESS FOR A
42 PARTICULAR PURPOSE. See the GNU General Public
43 License for more details.
45 The GNU General Public License should be included with
46 this file. If not, you can view it at
47 http://www.gnu.org/copyleft/gpl.html
48 or write to the Free Software Foundation, Inc., 59
49 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
54 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
61 $logfile = "results/actions-feedback.txt";
67 //error_reporting(E_ALL);
68 error_reporting(E_NONE);
72 * Cannot start with step 3:
74 if (!isset($referrer_url))
76 echo (" <title>Invalid Feedback Submission</title>
79 <div class=\"title\">Invalid Feedback Submission</div>
80 <div align=\"center\">
81 <div class=\"errorbox\" align=\"left\">
82 When submitting your feedback please start with <a href=\"index.php\">step 1</a>.
92 * Cannot work on unknown problem:
96 echo (" <title>Invalid Feedback Submission</title>
99 <div class=\"title\">Invalid Feedback Submission</div>
100 <div align=\"center\">
101 <div class=\"errorbox\" align=\"left\">
102 You need to select the nature of the problem in <a href=\"index.php\">step 1</a>.
112 * Handle optional text fields:
114 if (!isset($name) || ($name == ""))
121 * Open the logfile or fail:
123 $fp = fopen($logfile, "a");
127 echo (" <title>Internal Script Error</title>
130 <div class=\"title\">Internal Script Error</div>
131 <div align=\"center\">
132 <div class=\"errorbox\" align=\"left\">
134 This script was unable to open its logfile.
137 Please <a href=\"mailto:info@privoxy.org?SUBJECT=Feedback-Script-Broken\">mail its owner</a>!
148 * Write Head (type, severity, user, client-ip)
151 fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR\n");
154 $lines = explode("\n", $remarks);
155 foreach ($lines as $line)
157 fwrite($fp, "#REMARKS: $line\n");
163 * Depending on the type of problem reported,
164 * we need to write additional data:
169 * Banner not blocked:
172 fwrite($fp, "#BLOCK-REFERRER: $referrer_url\n");
173 if (isset($num_images))
175 for($i=0; $i < $num_images; $i++)
177 if (isset($block_image[$i]))
179 fwrite($fp, "#BLOCK-URL: $image_url[$i]\n");
183 if (isset($manual_image_url) && ($manual_image_url != ""))
185 fwrite($fp, "#BLOCK-URL: $manual_image_url\n");
190 * Innocent image blocked:
193 fwrite($fp, "#UNBLOCK-REFERRER: $referrer_url\n");
194 if (isset($image_url) && ($image_url != ""))
196 fwrite($fp, "#UNBLOCK-URL: $image_url\n");
201 * All other problems:
204 fwrite($fp, "#PROBLEM-URL: $referrer_url\n");
212 <title>Privoxy Action List Feedback - Result</title>
217 <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Result
222 <b>Thank you very much for taking the time to submit your feedback!</b>
226 The developers will review and use your submission to improve the
227 distribution actions file.
231 <input type="submit" value="Close this window" onclick="window.close();">