3 error_reporting(E_NONE);
4 #error_reporting(E_ALL);
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/
16 // Written by and Copyright (C) 2001 the SourceForge
17 // Privoxy team. http://www.privoxy.org/
19 // Based on the Internet Junkbuster originally written
20 // by and Copyright (C) 1997 Anonymous Coders and
21 // Junkbusters Corporation. http://www.junkbusters.com
23 // This program is free software; you can redistribute it
24 // and/or modify it under the terms of the GNU General
25 // Public License as published by the Free Software
26 // Foundation; either version 2 of the License, or (at
27 // your option) any later version.
29 // This program is distributed in the hope that it will
30 // be useful, but WITHOUT ANY WARRANTY; without even the
31 // implied warranty of MERCHANTABILITY or FITNESS FOR A
32 // PARTICULAR PURPOSE. See the GNU General Public
33 // License for more details.
35 // The GNU General Public License should be included with
36 // this file. If not, you can view it at
37 // http://www.gnu.org/copyleft/gpl.html
38 // or write to the Free Software Foundation, Inc., 59
39 // Temple Place - Suite 330, Boston, MA 02111-1307, USA.
44 * Cannot start with step 3:
46 if (!isset($referrer_url))
48 echo ("<html><head><title>Invalid Feedback Submission</title></head>
49 <body><h2>Invalid Feedback Submission</h2>
50 <p>When submitting your feedback please start with
51 <a href=\"test.php\">step 1</a>.</p>
58 * Cannot work on unknown problem:
62 echo ("<html><head><title>Invalid Feedback Submission</title></head>
63 <body><h2>Invalid Feedback Submission</h2>
64 <p>You need to select the nature of the problem in
65 <a href=\"test.php\">step 1</a>.</p>
72 * Handle optional text fields:
82 $logfile = "feedback-data.txt";
83 $fp = fopen($logfile, "a");
87 echo ("<html><head><title>Internal Script Error</title></head>
88 <body><h2>Internal Script Error</h2>
89 <p>This script was unable to open its logfile.</p>
90 <p>Please <a href=\"mailto:info@privoxy.org?SUBJECT=Feedback-Script-Broken\">mail its owner</a>!</p>
97 * Write Head and remarks field:
99 fwrite($fp, "#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR\n");
102 $lines = explode("\n", $remarks);
103 foreach ($lines as $line)
105 fwrite($fp, "#REMARKS: $line\n");
110 * Depending on the type of problem reported,
111 * we need to write additional data:
116 fwrite($fp, "#BLOCK-REFERRER: $referrer_url\n");
117 if (isset($num_images))
119 for($i=0; $i < $num_images; $i++)
121 if (isset($block_image[$i]))
123 fwrite($fp, "#BLOCK-URL: $image_url[$i]\n");
127 if (isset($manual_image_url) && ($manual_image_url != ""))
129 fwrite($fp, "#BLOCK-URL: $manual_image_url\n");
134 fwrite($fp, "#UNBLOCK-REFERRER: $referrer_url\n");
135 if (isset($manual_image_url) && ($manual_image_url != ""))
137 fwrite($fp, "#UNBLOCK-URL: image_url\n");
150 <title>Privoxy Action List Feedback - Result</title>
151 <link rel="stylesheet" type="text/css" href="../p_web.css">
154 <h2><a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Result</h2>
156 <p><b>Thank you very much for taking the time to submit your feedback!</b></p>
158 <p>It will be reviewed by the developers and used to improve the
159 distribution actions file.</p>
161 <input type="submit" value="Close this window" onClick="window.close()">