Rearrange struct client_state to reduce memory on amd64
[privoxy.git] / doc / webserver / submit / index.php
index ff8a598..ddf7baf 100644 (file)
@@ -1,11 +1,7 @@
 <?php
-//  File :  $Source: /cvsroot/ijbswa/current/doc/webserver/submit/index.php,v $
+//  File :   doc/webserver/submit/index.php
 //
 //  Purpose  :  Submit form for ads and such
-//              This file belongs in
-//              ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
-//
-//  $Id: index.php,v 1.2 2002/03/29 07:57:00 swa Exp $
 //
 //  Written by and Copyright (C) 2001 the SourceForge
 //  Privoxy team. http://www.privoxy.org/
@@ -41,17 +37,66 @@ $headers = getallheaders();
     <link rel="stylesheet" type="text/css" href="../p_web.css">
 </head>
 
-<h1>Feedback</h1>
+<h1>Privoxy Feedback</h1>
 
-<p>Bla bla bla</p>
+<p>Compared to <a
+href="http://sourceforge.net/tracker/?group_id=11118&atid=111118">bug
+reports</a> or <a
+href="http://sourceforge.net/tracker/?atid=361118&group_id=11118&func=browse">feature
+requests</a>, this page is intended to optimize the blocking behavior
+of Privoxy. Therefor we need your feedback.</p><p> If you have
+observed and advertisement, that was not blocked or an image that was
+incorrectly blocked, please use the forms below to report this.</p>
+
+<h2>New Advertisement</h2>
 
-<h2>Advertisements</h2>
+<!-- testing mail sending
+// <?
+//$ret_val=mail("stefan@waldherr.org", "Subject", "Message"); echo $ret_val;
+?>
+-->
+
+
+<?
+$cfile  = "counter-data.inc";
+$localip = "127.0.0.1";
+$serverip = "127.0.0.1";
+# Enter information on the next line, but only after you read
+# the "c-readme.txt" file.
+$browser_id = "";
+if (file_exists ($cfile)) {
+       $fp = fopen ($cfile,"r+");
+       $data = fgets ($fp,25);
+       $ip = chop (substr($data,0,15));
+       $count = substr($data,15);
+# Unremark the second "if" statement and remark the first one if
+# your site is on a hosted server and you have a dynamic IP, but
+# only after you read "c-readme.txt" file.
+       if ($REMOTE_ADDR == $localip or $REMOTE_ADDR == $serverip)
+#       if ($REMOTE_ADDR == substr_count($HTTP_USER_AGENT,$browser_id) > 0)
+               $np = $ip;
+       else
+               $np = $REMOTE_ADDR;
+       if ($np != $ip)
+               $count += 1;
+       rewind ($fp);
+       fputs ($fp,substr($np."        ",0,15).$count);
+       fclose ($fp);
+       echo $count;
+}
+else {
+       $fp = fopen($cfile,"w");
+       $np = $REMOTE_ADDR;
+       $count = "1";
+       fputs ($fp,substr($np."        ",0,15).$count);
+       fclose ($fp);
+       echo $count;
+}
+?>
 
-<p>You have seen an ad and want to support us making it disappear.
-Great. Please fill out the form below and hit "Submit".</p>
 
 <p>
-<form action="http://privoxy.org/submit/confirmad.php" method="post">
+<form action="http://privox.org/submit/confirmad.php" method="post">
 <table border="0" cellpadding="0" cellspacing="4">
 
 <tr>
@@ -135,17 +180,14 @@ None.
 
 </table>
 </form>
-
 </p>
 
-<h2>Misc</h2>
+<h2>Incorrect blocking</h2>
+<p>We soon present a form where you can submit websites, where the
+default action file was too agressive.</p>
 
+<h2>Misc</h2>
 <p>Bla bla bla</p>
 
-
 </body>
 </html>
-
-<!--
-       $Log$
--->
\ No newline at end of file