/*
* For testing:
*/
-$base_url = "http://www.oesterhelt.org/actions";
-//$base_url = "http://privoxy.org/actions";
-//$base_url = "http://localhost/actions";
//phpinfo();
-//error_reporting(E_NONE);
-error_reporting(E_ALL);
+//error_reporting(E_ALL);
+error_reporting(E_NONE);
/*
</div>
<div class="box">
- <form action="<?php echo($base_url); ?>/step3.php" method="post">
+ <form action="step3.php" method="post">
<p>
<input type="hidden" name="problem" value="<?php echo ($problem) ?>">
<input type="hidden" name="referrer_url" value="<?php echo ($referrer_url) ?>">
* in a table for the user to select
*/
preg_match_all('|<img\s+[^>]*?src=[\'"]?(.*?)[\'" >]|i', $page, $matches);
- $count = count($matches[0]);
+ $image_urls = array_values(array_unique($matches[1]));
+ $count = count($image_urls);
+
if ($count > 0)
{
/*
*/
for ($i=0; $i< $count; $i++)
{
- $image_url = $matches[1][$i];
+ $image_url = $image_urls[$i];
/*
* Make image URLs absolute: