X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Fstep2.php;h=0d189aa03a61a1931d3fbf0f291b1d8c3c77c115;hb=6de6bda5b29cbb5a8aef6863c1b5ca999ab4887b;hp=0a4d36bc17e047200730761665fe5739079f13f8;hpb=d9c1527acf72a0e83fe3dccaf2fe8467b41a5e49;p=privoxy.git diff --git a/doc/webserver/actions/step2.php b/doc/webserver/actions/step2.php index 0a4d36bc..0d189aa0 100644 --- a/doc/webserver/actions/step2.php +++ b/doc/webserver/actions/step2.php @@ -1,246 +1,23 @@ -Invalid Feedback Submission - - -

Invalid Feedback Submission

-

When submitting your feedback please start with - step 1.

- - "); - exit; -} - -/* - * Cannot work on unknown problem: - */ -if (!isset($problem) || $problem == "INVALID") -{ - echo ("Invalid Feedback Submission - - -

Invalid Feedback Submission

-

You need to select the nature of the problem in - step 1.

- - "); - exit; -} - - -/* - * Check if URL really exists and buffer its contents: - */ - -$ch = curl_init ($referrer_url); -curl_setopt ($ch, CURLOPT_HEADER, 0); -curl_setopt ($ch, CURLOPT_FAILONERROR, 1); - -ob_start(); -$success = curl_exec ($ch); -$page = ob_get_contents(); -ob_end_clean(); - -curl_close ($ch); - -if (!$success) -{ - echo ("Invalid Feedback Submission - - -

Invalid Feedback Submission

-

The URL that you entered ($referrer_url) -
could not be retrieved.

-

Make sure the URL is correct and publicly accessible.

-

Back to step 1

- - - "); - exit; -} - -/* - * Create description from problem code: - */ -switch($problem) -{ - case "P1": $problem_description="an advertisment was not blocked"; break; - case "P2": $problem_description="an innocent image was blocked"; break; - case "P3": $problem_description="the whole page was erraneously blocked"; break; - case "P4": $problem_description="the page needs popups but they don't work"; break; - case "P5": $problem_description="a problem occured"; break; - default: $problem_description="AN UNPROCESSABLE PROBLEM OCCURED"; -} - -?> - + - - Privoxy Action List Feedback - Step 2 of 2 - - - -

Privoxy Action List Feedback - Step 2 of 2

-

-You are about to report that -
on . -

- - -

-

- - - - -
- -]*?src=[\'"]?(.*?)[\'" >]|i', $page, $matches); - $count = count($matches[0]); - if ($count > 0) - { - $referrer_base = substr($referrer_url, 0, -strpos(strrev($referrer_url), '/')); - $referrer_host = "http://".strrev(strrchr(strrev(substr($referrer_url, 7)), "/")); - - echo ("
Choose the images to be blocked from the following list:

\n"); - echo ("\n"); - echo ("\n"); - for ($i=0; $i< $count; $i++) { - $image_url = $matches[1][$i]; - if (strncmp("http://", $image_url, 7)) - { - if ($image_url{0} == "/") - { - $image_url = $referrer_host.$image_url; - } - else - { - $image_url = $referrer_base.$image_url; - } - } - echo ("\n"); - echo ("\n"); - echo ("\n"); - echo ("\n"); - } - echo ("
$image_url:

If the banner that you saw is not listed above, enter the URL here\n"); - } - else - { - echo ("
URL of the advertisment image:\n"); - } -} - -?> - -
Hint: right-click the image, select "Copy image location" and paste the URL here.
-
-

-
-") ?> - - -
URL of the innocent image: -
Hint: right-click the image, select "Copy image location" and paste the URL here. -
This may not work if the image was blocked by size or if +image-blocker is set to redirect.
-
-

-
-") ?> - - -
Severity:
-
-

- -

-
- -
Remarks: (optional)
-
-

-
- -
Your Name: (optional)
-
-

-
- -
 
-
- -
- -
-
-

- - + + + + + + Out of action! + + +
+

Out of action!

+
+

+ If you want to report a problem, please + follow these instructions. +

+

+ 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. +

+