2 // File : doc/webserver/submit/index.php
4 // Purpose : Submit form for ads and such
6 // Written by and Copyright (C) 2001 the SourceForge
7 // Privoxy team. http://www.privoxy.org/
9 // Based on the Internet Junkbuster originally written
10 // by and Copyright (C) 1997 Anonymous Coders and
11 // Junkbusters Corporation. http://www.junkbusters.com
13 // This program is free software; you can redistribute it
14 // and/or modify it under the terms of the GNU General
15 // Public License as published by the Free Software
16 // Foundation; either version 2 of the License, or (at
17 // your option) any later version.
19 // This program is distributed in the hope that it will
20 // be useful, but WITHOUT ANY WARRANTY; without even the
21 // implied warranty of MERCHANTABILITY or FITNESS FOR A
22 // PARTICULAR PURPOSE. See the GNU General Public
23 // License for more details.
25 // The GNU General Public License should be included with
26 // this file. If not, you can view it at
27 // http://www.gnu.org/copyleft/gpl.html
28 // or write to the Free Software Foundation, Inc., 59
29 // Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 $headers = getallheaders();
36 <title>Privoxy|Submit</title>
37 <link rel="stylesheet" type="text/css" href="../p_web.css">
40 <h1>Privoxy Feedback</h1>
43 href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug
45 href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature
46 requests</a>, this page is intended to optimize the blocking behavior
47 of Privoxy. Therefor we need your feedback.</p><p> If you have
48 observed and advertisement, that was not blocked or an image that was
49 incorrectly blocked, please use the forms below to report this.</p>
51 <h2>New Advertisement</h2>
53 <!-- testing mail sending
55 //$ret_val=mail("stefan@waldherr.org", "Subject", "Message"); echo $ret_val;
61 $cfile = "counter-data.inc";
62 $localip = "127.0.0.1";
63 $serverip = "127.0.0.1";
64 # Enter information on the next line, but only after you read
65 # the "c-readme.txt" file.
67 if (file_exists ($cfile)) {
68 $fp = fopen ($cfile,"r+");
69 $data = fgets ($fp,25);
70 $ip = chop (substr($data,0,15));
71 $count = substr($data,15);
72 # Unremark the second "if" statement and remark the first one if
73 # your site is on a hosted server and you have a dynamic IP, but
74 # only after you read "c-readme.txt" file.
75 if ($REMOTE_ADDR == $localip or $REMOTE_ADDR == $serverip)
76 # if ($REMOTE_ADDR == substr_count($HTTP_USER_AGENT,$browser_id) > 0)
83 fputs ($fp,substr($np." ",0,15).$count);
88 $fp = fopen($cfile,"w");
91 fputs ($fp,substr($np." ",0,15).$count);
99 <form action="http://privox.org/submit/confirmad.php" method="post">
100 <table border="0" cellpadding="0" cellspacing="4">
103 <td align="right">Your name:</td>
105 <input name="submit_name" value="anonymous" type="text" size="30" maxlength="30">
111 <td align="right">Your email address:</td>
113 <input name="submit_email" value="anonymous" type="text" size="30" maxlength="30">
119 <td align="right">Website, where I observed an ad:</td>
121 <input name="submit_url" value="prefilled" type="text" size="45" maxlength="255">
123 <td>Please change, if necessary</td>
127 <td align="right">How annoying is the ad:</td>
129 <select name="submit_annoy" size="1">
130 <option value="A0">Nice, not to have</option>
131 <option selected value="A1">Should be removed</option>
132 <option value="A2">Must be removed</option>
135 <td>Please select one</td>
139 <td align="right">Privoxy Version:</td>
141 <input name="submit_pversion" value="prefilled" readonly type="text" size="30" maxlength="30">
143 <td>Automatically determined</td>
147 <td align="right">Action File:</td>
149 <input name="submit_actionfile" value="prefilled" readonly type="text" size="30" maxlength="30">
151 <td>Automatically determined</td>
155 <td align="right">Action File Version:</td>
157 <input name="submit_actionversion" value="prefilled" readonly type="text" size="30" maxlength="30">
159 <td>Automatically determined</td>
163 <td align="right">Remarks:</td>
165 <textarea name="submit_remarks" cols="35" rows="3">
169 <td>Please change, if necessary</td>
173 <td align="right"></td>
175 <input type="hidden" name="submit_targeturl" value="/submit/confirmad.php">
176 <input type=submit value="Submit">
185 <h2>Incorrect blocking</h2>
186 <p>We soon present a form where you can submit websites, where the
187 default action file was too agressive.</p>