$value){ $$key = $value; //echo $key . " " . $value . "
"; } include "pg_connect.php"; $whozzat=$_COOKIE["rbname"]; $ssql="select * from tblposters where poster='$whozzat'"; $result = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); $rex=pg_num_rows($result); if($rex > 0){ pg_close($pg_connection); Header("Location: ePoster_.php?HL=$HL"); }else{ if($right_id != ''){ $ssql="select _description from tbl_captchas where id=$right_id"; $result = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); $row = pg_fetch_object($result); if($row->_description==$_guess){ Header("Location: ePoster_.php?HL=$HL"); }else{ Header('Location: http://www.roadsideamerica.com'); } } $ssql="select count(*) as t from tbl_captchas"; $result = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); $row = pg_fetch_object($result); $num=$row->t; $num=rn($num)-1; $ssql="select * from tbl_captchas limit 1 offset $num"; $result = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); $row = pg_fetch_object($result); $pic=$row->_path; $right_answer=$row->_description; $right_id=$row->id; $arrAnswers[0]=$right_answer; $thing=1; $ssql="select _description from tbl_captchas where _description != '" . str_replace("'","''",$right_answer) ."'"; $result = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); $r=pg_num_rows($result); while($row=pg_fetch_object($result)){ $arrAnswers[$thing++]=$row->_description; } $d=range(1,$thing-1); //Fill with numbers 1 to rowcount shuffle($d); $arrnx[0]=0; for($i=1;$i < 5;$i++){ $arrnx[$i]=$d[$i]; } shuffle($arrnx); ?> Are you a spambot?
We're sorry.

Due to repeated abuse, we've been forced to ban spambots from posting at Rantburg. If you're a spambot, please go away and bother somebody else.

If you're a human being, you can prove it by taking this simple test. Below, you'll see a picture, followed by five possible descriptions. If you can tell which caption matches the picture, you're free to post. If not, your hard drive will be wiped, your BIOS flashed to nothing, and your computer will melt before your very eyes.

Go ahead. Make our day.

"; } ?>