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.6 2002/04/03 19:36:04 swa Exp $
14 Revision 1.6 2002/04/03 19:36:04 swa
17 Revision 1.5 2002/04/02 07:22:43 oes
20 Revision 1.4 2002/04/01 19:13:47 oes
21 Extended, fixed bugs, beefed up design, made IE-safe
23 Revision 1.1 2002/03/30 03:20:30 oes
24 Added Feedback mechanism for actions file
27 Written by and Copyright (C) 2002 the SourceForge
28 Privoxy team. http://www.privoxy.org/
30 This program is free software; you can redistribute it
31 and/or modify it under the terms of the GNU General
32 Public License as published by the Free Software
33 Foundation; either version 2 of the License, or (at
34 your option) any later version.
36 This program is distributed in the hope that it will
37 be useful, but WITHOUT ANY WARRANTY; without even the
38 implied warranty of MERCHANTABILITY or FITNESS FOR A
39 PARTICULAR PURPOSE. See the GNU General Public
40 License for more details.
42 The GNU General Public License should be included with
43 this file. If not, you can view it at
44 http://www.gnu.org/copyleft/gpl.html
45 or write to the Free Software Foundation, Inc., 59
46 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
51 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
58 $logfile = "results/actions-feedback.txt";
64 //error_reporting(E_ALL);
65 error_reporting(E_NONE);
69 * Cannot start with step 3:
71 if (!isset($referrer_url))
73 echo (" <title>Invalid Feedback Submission</title>
74 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
77 <div class=\"title\">Invalid Feedback Submission</div>
78 <div align=\"center\">
79 <div class=\"errorbox\" align=\"left\">
80 When submitting your feedback please start with <a href=\"index.php\">step 1</a>.
90 * Cannot work on unknown problem:
94 echo (" <title>Invalid Feedback Submission</title>
95 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
98 <div class=\"title\">Invalid Feedback Submission</div>
99 <div align=\"center\">
100 <div class=\"errorbox\" align=\"left\">
101 You need to select the nature of the problem in <a href=\"index.php\">step 1</a>.
111 * Handle optional text fields:
113 if (!isset($name) || ($name == ""))
120 * Open the logfile or fail:
122 $fp = fopen($logfile, "a");
126 echo (" <title>Internal Script Error</title>
127 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
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>
213 <link rel="stylesheet" type="text/css" href="../p_feedback.css">
218 <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Result
223 <b>Thank you very much for taking the time to submit your feedback!</b>
227 The developers will review and use your submission to improve the
228 distribution actions file.
232 <input type="submit" value="Close this window" onclick="window.close();">