<?php
-// File : $Source: /cvsroot/ijbswa/current/doc/webserver/submit/index.php,v $
+// File : $Source: /cvsroot/ijbswa/current/doc/webserver/submit/Attic/index.php,v $
//
// 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 $
+// $Id: index.php,v 1.5 2002/03/29 21:03:56 swa Exp $
//
// Written by and Copyright (C) 2001 the SourceForge
// Privoxy team. http://www.privoxy.org/
<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>
</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$
+ $Log: index.php,v $
+ Revision 1.5 2002/03/29 21:03:56 swa
+ further testing for email and file operations
+
+ Revision 1.4 2002/03/29 09:55:21 swa
+ .
+
+ Revision 1.3 2002/03/29 09:39:48 swa
+ added form
+
-->
\ No newline at end of file