Privoxy: $title

Privoxy: $title

$message

Valid HTML 4.01 Transitional

\n"); exit; } /* * Cannot start with step 2: */ if (!isset($referrer_url)) { error_abort("invalid", "When submitting your feedback please start with step 1."); } /* * Cannot work on unknown problem: */ if (!isset($problem) || $problem == "INVALID") { error_abort("invalid", "You need to select the nature of the problem in step 1."); } /* * If the protocol is missing from $referrer_url, prepend "http://" */ if (strncmp("http://", $referrer_url, 7)) { $referrer_url = "http://" . $referrer_url; } /* * 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(). */ /* * Slurp the page in: */ $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) { $url_confirm = "

Confirm the URL:

The URL that you entered could not be retrieved. Please make sure that

$referrer_url

is correct and publicly accssible.

Yes, I'm sure.

"; } else { $url_confirm = ""; } /* * 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); $image_urls = array_values(array_unique($matches[1])); $count = count($image_urls); if ($count > 0) { /* * 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 = link_to_absolute($referrer_url, $image_urls[$i]); /* * 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, public)

 

Valid HTML 4.01 Transitional