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.5 2002/04/02 07:22:43 oes Exp $
14 Revision 1.5 2002/04/02 07:22:43 oes
17 Revision 1.4 2002/04/01 19:13:47 oes
18 Extended, fixed bugs, beefed up design, made IE-safe
20 Revision 1.1 2002/03/30 03:20:30 oes
21 Added Feedback mechanism for actions file
24 Written by and Copyright (C) 2002 the SourceForge
25 Privoxy team. http://www.privoxy.org/
27 This program is free software; you can redistribute it
28 and/or modify it under the terms of the GNU General
29 Public License as published by the Free Software
30 Foundation; either version 2 of the License, or (at
31 your option) any later version.
33 This program is distributed in the hope that it will
34 be useful, but WITHOUT ANY WARRANTY; without even the
35 implied warranty of MERCHANTABILITY or FITNESS FOR A
36 PARTICULAR PURPOSE. See the GNU General Public
37 License for more details.
39 The GNU General Public License should be included with
40 this file. If not, you can view it at
41 http://www.gnu.org/copyleft/gpl.html
42 or write to the Free Software Foundation, Inc., 59
43 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
48 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
56 //error_reporting(E_ALL);
57 error_reporting(E_NONE);
62 * Cannot start with step 3:
64 if (!isset($referrer_url))
66 echo (" <title>Invalid Feedback Submission</title>
67 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
70 <div class=\"title\">Invalid Feedback Submission</div>
71 <div align=\"center\">
72 <div class=\"errorbox\" align=\"left\">
73 When submitting your feedback please start with <a href=\"index.php\">step 1</a>.
83 * Cannot work on unknown problem:
87 echo (" <title>Invalid Feedback Submission</title>
88 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
91 <div class=\"title\">Invalid Feedback Submission</div>
92 <div align=\"center\">
93 <div class=\"errorbox\" align=\"left\">
94 You need to select the nature of the problem in <a href=\"index.php\">step 1</a>.
104 * Handle optional text fields:
106 if (!isset($name) || ($name == ""))
113 * Open the logfile or fail:
115 $logfile = "feedback-data.txt";
116 $fp = fopen($logfile, "a");
120 echo (" <title>Internal Script Error</title>
121 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
124 <div class=\"title\">Internal Script Error</div>
125 <div align=\"center\">
126 <div class=\"errorbox\" align=\"left\">
128 This script was unable to open its logfile.
131 Please <a href=\"mailto:info@privoxy.org?SUBJECT=Feedback-Script-Broken\">mail its owner</a>!
142 * Write Head (type, severity, user, client-ip)
145 fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR\n");
148 $lines = explode("\n", $remarks);
149 foreach ($lines as $line)
151 fwrite($fp, "#REMARKS: $line\n");
157 * Depending on the type of problem reported,
158 * we need to write additional data:
163 * Banner not blocked:
166 fwrite($fp, "#BLOCK-REFERRER: $referrer_url\n");
167 if (isset($num_images))
169 for($i=0; $i < $num_images; $i++)
171 if (isset($block_image[$i]))
173 fwrite($fp, "#BLOCK-URL: $image_url[$i]\n");
177 if (isset($manual_image_url) && ($manual_image_url != ""))
179 fwrite($fp, "#BLOCK-URL: $manual_image_url\n");
184 * Innocent image blocked:
187 fwrite($fp, "#UNBLOCK-REFERRER: $referrer_url\n");
188 if (isset($image_url) && ($image_url != ""))
190 fwrite($fp, "#UNBLOCK-URL: $image_url\n");
195 * All other problems:
198 fwrite($fp, "#PROBLEM-URL: $referrer_url\n");
206 <title>Privoxy Action List Feedback - Result</title>
207 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
212 <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Result
217 <b>Thank you very much for taking the time to submit your feedback!</b>
221 The developers will review and use your submission to improve the
222 distribution actions file.
226 <input type="submit" value="Close this window" onclick="window.close();">