X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=doc%2Fwebserver%2Factions%2Fstep2.php;h=0d189aa03a61a1931d3fbf0f291b1d8c3c77c115;hp=0a1d94f107ceaf3834a9404fd566ceae764b9d2a;hb=7a99a61ab1a3ce0401821aedcd06eba19a698b2a;hpb=095a106241a625b4838869b0666efc2f891b3d9a diff --git a/doc/webserver/actions/step2.php b/doc/webserver/actions/step2.php index 0a1d94f1..0d189aa0 100644 --- a/doc/webserver/actions/step2.php +++ b/doc/webserver/actions/step2.php @@ -1,403 +1,23 @@ - - - - - - - -Invalid Feedback Submission - - -
Invalid Feedback Submission
-
-
When submitting your feedback please start with - step 1. -
-
- - \n"); - 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. -
-
- - \n"); - exit; -} - - -/* - * Check if URL really exists and buffer its contents: - * - * FIXME: Curl is not installed on SF; Filed as Alexandria - * Feature Request #537014. - * PHP's fopen() supports URLs, but it seems that - * curls options for Timeouts and HTTP error handling - * are not supported by fopen(). - */ -$ch = curl_init ($referrer_url); - -curl_setopt ($ch, CURLOPT_HEADER, 0); -curl_setopt ($ch, CURLOPT_FAILONERROR, 1); -curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); -curl_setopt ($ch, CURLOPT_TIMEOUT, 20); - -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

-
-
- - \n"); - 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 + + + + + Out of action! - -
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) - { - /* - * Base URL ends in slash: don't touch. - */ - if (strpos(strrev($referrer_url), '/') == 0) - { - $referrer_base = $referrer_url; - } - /* - * Else grab URL up to last slash as base. - */ - else - { - $referrer_base = substr($referrer_url, 0, -strpos(strrev($referrer_url), '/')); - } - - /* - * Get the protocol + host info for relative links - * that start with slash. FIXME: Cut trailing slash off! - */ - $referrer_host = "http://".strrev(strrchr(strrev(substr($referrer_url, 7)), "/")); - - /* - * Open section in
; Open table: - */ - echo ("
Choose the images you want blocked from the following list:
-
-

- - \n"); - /* - * Print one table row for each image found: - */ - for ($i=0; $i< $count; $i++) - { - $image_url = $matches[1][$i]; - - /* - * Make image URLs absolute: - */ - if (strncmp("http://", $image_url, 7)) - { - if ($image_url{0} == "/") - { - $image_url = $referrer_host.$image_url; - } - else - { - $image_url = $referrer_base.$image_url; - } - } - - /* - * Print the row(s): - */ - echo (" - - - - - - - \n"); - } - echo ("
- - - $image_url: - - -
- \"banner -
-

- -
- 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!

+
+

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