--- /home/archery/phpBB-backup/includes/usercp_confirm.php	2007-04-08 10:46:07.000000000 +0100
+++ usercp_confirm.php	2007-04-13 14:53:27.509101659 +0100
@@ -138,14 +138,40 @@
 
 	}
 	unset($hold);
-
+		
 	$image = create_png(gzcompress($image), $total_width, $total_height);
+	//adds some randomly sized ellipses and lines to hopefully fuck with captcha solvers
+	//need to create an "image resource" from the raw data in $image...
+	$foo_image = imagecreatefromstring( $image );
+	$col_ellipse = imagecolorallocate($foo_image, 234, 212, 160);
+	$ei = 0;
+	for($ei = 0; $ei < 10; $ei++)
+	{	
+		//ellipse centre, width, height
+		$ex = rand(10, 270);
+		$ey = rand(0, 30);
+		$ew = rand(50, 100);
+		$eh = rand(10, 40);
+		//line (x1,y1) (x2,y2)
+		$lx = rand(0, 270);
+		$ly = rand(0, 270);
+		$lxx = rand(0, 270);
+		$lyy = rand(0, 270);
+		$ewan_bool = imageellipse($foo_image, $ex,$ey,$ew,$eh, $col_ellipse);
+		$ewan_bool = imageline($foo_image, $lx,$ly,$lxx,$lyy, $col_ellipse);
+		$lx = rand(0, 270);
+		$ly = rand(0, 270);
+		$lxx = rand(0, 270);
+		$lyy = rand(0, 270);
+		$ewan_bool = imageline($foo_image, $lx,$ly,$lxx,$lyy, $col_ellipse);
+	}
+
 
 	// Output image
 	header('Content-Type: image/png');
 	header('Cache-control: no-cache, no-store');
-	echo $image;
-
+	//echo $image;
+	imagepng($foo_image);
 	unset($image);
 	unset($_png);
 	exit;
@@ -229,6 +255,7 @@
 	// IEND
 	$image .= png_chunk(0, 'IEND', '');
 
+	
 	return $image;
 }
 
@@ -432,4 +459,4 @@
 	return $_png;
 }
 
-?>
\ No newline at end of file
+?>
