X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Fstep3.php;h=0d189aa03a61a1931d3fbf0f291b1d8c3c77c115;hb=96275ce7b4fbf89de4c7672a68171fd8c2e19f9b;hp=3ead655868330beeb239a6b7c24351800fc59542;hpb=a275fe3bae5ad66c91709c492a16eaeec28aac0a;p=privoxy.git diff --git a/doc/webserver/actions/step3.php b/doc/webserver/actions/step3.php index 3ead6558..0d189aa0 100644 --- a/doc/webserver/actions/step3.php +++ b/doc/webserver/actions/step3.php @@ -1,326 +1,23 @@ - + - - + - - -Privoxy: $title - - -
-

- 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)) -{ - 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."); -} - - -/* - * Handle optional text fields: - */ -if (!isset($name) || ($name == "")) -{ - $name = "anonymous"; -} - - -/* - * Open the logfile or fail: - */ -$fp = fopen($logfile, "a"); - -if(!$fp) -{ - echo (" Internal Script Error - - -
-

Privoxy: Internal Script Error

-
-
-
-

- This script was unable to open its logfile. -

-

- Please mail its owner! -

-
-
- - "); - exit; -} - - -/* - * Write Head (type, severity, user, client-ip) - * and remarks field: - */ -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); - foreach ($lines as $line) - { - fwrite($fp, "#REMARKS: $line\n"); - } -} - - -/* - * Depending on the type of problem reported, - * we need to write additional data: - */ -switch ($problem) -{ - /* - * Banner not blocked: - */ - case "P1": - fwrite($fp, "#BLOCK-REFERRER: $referrer_url\n"); - if (isset($num_images)) - { - for($i=0; $i < $num_images; $i++) - { - if (isset($block_image[$i])) - { - fwrite($fp, "#BLOCK-URL: $image_url[$i]\n"); - } - } - } - if (isset($manual_image_url) && ($manual_image_url != "")) - { - fwrite($fp, "#BLOCK-URL: $manual_image_url\n"); - } - break; - - /* - * Innocent image blocked: - */ - case "P2": - fwrite($fp, "#UNBLOCK-REFERRER: $referrer_url\n"); - if (isset($image_url) && ($image_url != "")) - { - fwrite($fp, "#UNBLOCK-URL: $image_url\n"); - } - break; - - /* - * All other problems: - */ - default: - fwrite($fp, "#PROBLEM-URL: $referrer_url\n"); - break; -} - -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 + Out of action! - -
-

- Privoxy Action List Feedback - Result -

-
- -
+
+

Out of action!

+

- Thank you very much for taking the time to submit your feedback! + If you want to report a problem, please + follow these instructions.

-

- It will be reviewed by the developers and used to improve the - distribution actions file. + Note that if your are reading this text, you are probably using an obsolete Privoxy version + and the problem may already be fixed in a more recent release.

- -

- -

- -
- -

Valid HTML 4.01 Transitional

-