]*?src=[\'"]?(.*?)[\'" >]|i', $page, $matches); foreach (array_unique($matches[1]) as $image_link) { $result[] = link_to_absolute($url, $image_link); } return count($result) ? $result : 0; } /* * Function: get_image_urls * * Purpose: If the page is a frameset, rerurn the image URLs from all * its frame SRCes, else from the page itself. */ function get_image_urls($page, $url) { preg_match_all('|]*?src=[\'"]?(.*?)[\'" >]|i', $page, $matches); if (count($matches[1])) { foreach(array_unique($matches[1]) as $frame_link) { $framebuf = slurp_page(link_to_absolute($url, $frame_link)); $result = array_merge($result, get_image_urls_sp($framebuf, link_to_absolute($url, $frame_link))); } } else { $result = get_image_urls_sp($page, $url); } return array_values(array_unique($result)); } /* * Function: error_abort * Purpose: Return an error page with $title and $message */ function error_abort($title, $message) { if ($title == "invalid") /* shortcut */ { $title = "Invalid Feedback Submission"; } echo (" 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: */ if (($page = slurp_page($referrer_url)) == "FAILED") { $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 .

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