+ // only show latest captcha for each known identity\r
+ $lastid='';\r
+ $shown=0;\r
+ while(($record=$st->fetch()) && $shown<30)\r
+ {\r
+ if($lastid!=$record[2])\r
+ {\r
+ $lastid=$record[2];\r
+ print "<img src=\"showcaptcha.php?UUID=".$record[0]."\">";\r
+ print "<input type=\"hidden\" name=\"uuid[]\" value=\"".$record[0]."\">";\r
+ print "<input type=\"hidden\" name=\"day[]\" value=\"".$record[1]."\">";\r
+ print "<input type=\"text\" name=\"solution[]\">";\r
+ print "<br>";\r
+ $shown++;\r
+ }\r
+ }\r
+ \r
+ if($shown>0)\r
+ {\r
+ ?>\r
+ <input type="submit" value="Announce">\r
+ <?php\r
+ }\r
+ else\r