X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Fstep3.php;h=3ead655868330beeb239a6b7c24351800fc59542;hb=a275fe3bae5ad66c91709c492a16eaeec28aac0a;hp=3bcd1323ff8652fd6a95fc94ed3c65b95a1a1f3d;hpb=19927aa9d8b953e4fdfa2005b7c09adfcedd1aaa;p=privoxy.git diff --git a/doc/webserver/actions/step3.php b/doc/webserver/actions/step3.php index 3bcd1323..3ead6558 100644 --- a/doc/webserver/actions/step3.php +++ b/doc/webserver/actions/step3.php @@ -8,11 +8,11 @@ This file belongs in ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/ - $Id: step3.php,v 1.6 2002/04/03 19:36:04 swa Exp $ + $Id: step3.php,v 1.10 2002/04/06 15:19:35 oes Exp $ $Log: step3.php,v $ - Revision 1.6 2002/04/03 19:36:04 swa - consistent look + Revision 1.10 2002/04/06 15:19:35 oes + Clean-up, smarter handling of unreachable URLs Revision 1.5 2002/04/02 07:22:43 oes Cosmetics @@ -48,7 +48,10 @@ --> - + + + + Invalid Feedback Submission - + if ($title == "invalid") /* shortcut */ + { + $title = "Invalid Feedback Submission"; + } + + echo (" Privoxy: $title -
Invalid Feedback Submission
-
-
- When submitting your feedback please start with step 1. +
+

+ Privoxy: $title +

-
+
+
+ $message +
+
+

Valid HTML 4.01 Transitional

- "); + \n"); exit; } +/* + * Cannot start with step 3: + */ +if (!isset($referrer_url)) +{ + error_abort("invalid", "When submitting your feedback please start with step 1."); +} + + /* * Cannot work on unknown problem: */ if (!isset($problem)) { - echo (" Invalid Feedback Submission - - - -
Invalid Feedback Submission
-
-
- You need to select the nature of the problem in step 1. -
-
- - "); - exit; + error_abort("invalid", "You need to select the nature of the problem in step 1."); +} + + +/* + * Don't accept unconfirmed URLs + */ +if (!isset($url_confirmed)) +{ + error_abort("invalid", "When submitting URLs that this script can't retrieve, you need to check \"Yes, I'm sure\" + step 2."); } @@ -124,12 +144,13 @@ $fp = fopen($logfile, "a"); if(!$fp) { echo (" Internal Script Error - -
Internal Script Error
-
-
+
+

Privoxy: Internal Script Error

+
+
+

This script was unable to open its logfile.

@@ -137,7 +158,7 @@ if(!$fp) Please mail its owner!

-
+ "); exit; @@ -148,7 +169,7 @@ if(!$fp) * Write Head (type, severity, user, client-ip) * and remarks field: */ -fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR\n"); +fwrite($fp, "\n#FEEDBACK TYPE $problem SEVERITY $severity FROM $name ON $REMOTE_ADDR VERIFIED $url_verified TIME " . date("r") ."\n"); if (isset($remarks)) { $lines = explode("\n", $remarks); @@ -207,15 +228,80 @@ switch ($problem) fclose($fp); +// now fill the tracker on sf with all the necessary values: +// +//
+// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// we can either put everything in here (nicely formatted) .. +// +// +// ... or attach a file (with the html header so it gets displayed +// as if it is a html file +// +// +// +// +// + ?> Privoxy Action List Feedback - Result -
- Privoxy Action List Feedback - Result +

+ Privoxy Action List Feedback - Result +

@@ -224,7 +310,7 @@ fclose($fp);

- The developers will review and use your submission to improve the + It will be reviewed by the developers and used to improve the distribution actions file.

@@ -233,5 +319,8 @@ fclose($fp);

+ +

Valid HTML 4.01 Transitional

+